* { box-sizing: border-box; }
:root {
  --brand: #9b4103;
  --secondary: #ffab03;
  --accent: #ffab03;
  --ink: #181411;
  --muted: #6f625b;
  --line: #e6ded9;
  --paper: #ffffff;
  --soft: #f7f2ef;
  --dark: #211610;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(41, 22, 11, .14);
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; letter-spacing: 0; }
.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}
.brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.nav-links { display: flex; align-items: center; gap: 24px; color: #30241d; font-size: .95rem; }
.nav-links a { padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-links a.active { color: var(--brand); border-color: var(--brand); }
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  font-size: .95rem;
}
.nav-cta, .button.primary { color: #fff; background: var(--brand); }
.button.ghost { color: var(--brand); background: #fff; }
.admin-link { color: var(--muted); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; padding: 9px 12px; border-radius: 8px; }
.hero-slider { position: relative; height: min(720px, calc(100vh - 76px)); min-height: 560px; overflow: hidden; background: #160f0a; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vw, 90px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .75s ease, transform 1.2s ease;
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 11, 4, .74), rgba(22, 11, 4, .22), rgba(22, 11, 4, .04)); }
.slide.current { opacity: 1; transform: scale(1); }
.hero-copy { position: relative; max-width: 720px; color: #fff; }
.hero-copy h1 { margin: 0; font-size: clamp(2.5rem, 7vw, 6rem); line-height: .96; letter-spacing: 0; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: 0; }
.hero-copy p, .page-hero p { max-width: 640px; margin: 22px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.slider-button {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-50%);
  font-size: 2rem;
}
.slider-button.prev { left: 24px; }
.slider-button.next { right: 24px; }
.section { padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 76px); }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section h2, .section-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: 0; }
.section p, .section-heading p { color: var(--muted); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: center; background: var(--soft); }
.intro-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-card strong { display: block; font-size: 1.6rem; }
.intro-card span { display: block; color: var(--muted); margin: 8px 0 20px; }
.intro-card a, .text-link { color: var(--brand); font-weight: 800; }
.service-grid, .team-grid, .product-grid, .gallery-grid, .kpi-grid { display: grid; gap: 22px; }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid article, .review-card, .product-card, .form-card, .contact-panel, .team-grid article, .admin-card, .quote-card, .kpi-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(41, 22, 11, .08);
}
.service-grid article { padding: 24px; }
.service-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; color: #fff; background: var(--brand); border-radius: 8px; font-weight: 950; }
.service-grid h3, .product-card h2, .team-grid h3 { margin: 0 0 10px; }
.social-proof { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; background: #18110d; color: #fff; }
.social-proof p, .social-proof span { color: rgba(255,255,255,.72); }
.review-card { padding: 22px; margin-bottom: 14px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); box-shadow: none; }
.facebook-box iframe { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); background: #fff; }
.partner-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.marquee { display: flex; align-items: center; gap: 18px; width: max-content; padding: 14px 0; animation: marquee 15s linear infinite; }
.marquee span { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 210px; padding: 14px 24px; color: var(--brand); background: rgba(255,255,255,.82); border: 1px solid rgba(155,65,3,.10); border-radius: 18px; box-shadow: 0 12px 32px rgba(70,31,7,.08); font-weight: 900; text-transform: uppercase; }
.marquee img { width: 96px; height: 70px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.marquee small { color: var(--muted); font-size: .82rem; text-align: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer { display: flex; justify-content: space-between; gap: 28px; padding: 34px clamp(18px, 5vw, 76px); background: var(--dark); color: #fff; }
.rich-footer { display: grid; grid-template-columns: 1.4fr .7fr 1fr 1.1fr; padding-top: 56px; padding-bottom: 56px; }
.rich-footer h3 { margin: 0 0 12px; color: #fff; }
.rich-footer a { display: block; color: rgba(255,255,255,.78); margin: 8px 0; }
.rich-footer > div:first-child a { display: inline-flex; padding: 11px 14px; margin-top: 12px; color: #fff; background: var(--brand); border-radius: 8px; font-weight: 850; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
.footer-social span, .footer-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; color: #fff; background: var(--brand); border-radius: 50%; font-weight: 900; }
.footer p { color: rgba(255,255,255,.72); margin: 6px 0; }
.phone-list { display: grid; gap: 7px; }
.phone-line { display: inline-flex; align-items: center; gap: 8px; }
.phone-line i { display: inline-grid; place-items: center; width: 22px; height: 22px; color: #241507; background: var(--secondary); border-radius: 50%; font-size: .78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-hero {
  min-height: 230px;
  display: flex;
  align-items: end;
  padding: clamp(24px, 4vw, 54px);
  color: #fff;
  background: linear-gradient(90deg, rgba(28,15,8,.82), rgba(28,15,8,.28)), url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=85") center/cover;
}
.presentation-hero { background-image: linear-gradient(90deg, rgba(28,15,8,.78), rgba(28,15,8,.18)), url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1800&q=85"); }
.shop-hero { background-image: linear-gradient(90deg, rgba(28,15,8,.80), rgba(28,15,8,.18)), url("https://images.unsplash.com/photo-1616627561950-9f746e330187?auto=format&fit=crop&w=1800&q=85"); }
.contact-hero { background-image: linear-gradient(90deg, rgba(28,15,8,.78), rgba(28,15,8,.22)), url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1800&q=85"); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.timeline div { padding: 20px; border-left: 4px solid var(--brand); background: var(--soft); }
.timeline span { display: block; color: var(--muted); margin-top: 8px; }
.about-rich { padding-top: 70px; }
.about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-columns article,
.mission-vision article,
.why-fdecor,
.values-grid article,
.expertise-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(41, 22, 11, .08);
}
.about-columns article { padding: 28px; }
.about-columns p { margin: 0 0 16px; line-height: 1.8; }
.expertise-grid,
.values-grid { display: grid; gap: 18px; }
.expertise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.expertise-grid article { padding: 22px; transition: transform .22s ease, box-shadow .22s ease; }
.expertise-grid article:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(41, 22, 11, .12); }
.expertise-grid i {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 171, 3, .18);
  color: var(--brand);
  font-size: 1.2rem;
}
.expertise-grid h3,
.values-grid h3 { margin: 0 0 10px; color: var(--brand); }
.mission-vision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mission-vision article { padding: 34px; background: linear-gradient(135deg, #fff, #fff8ed); }
.mission-vision h2 { margin-top: 8px; }
.values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values-grid article { padding: 24px; border-top: 4px solid var(--secondary); }
.why-fdecor {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  background: linear-gradient(135deg, #fff, #fff5df);
}
.why-fdecor ul { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.why-fdecor li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(155, 65, 3, .12);
  font-weight: 750;
}
.why-fdecor li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-weight: 950;
}
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.gallery-grid img,
.gallery-grid video { width: 100%; height: 310px; object-fit: cover; display: block; background: #181411; }
.gallery-grid figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; color: #fff; background: rgba(0,0,0,.5); border-radius: 7px; }
.gallery-hero { background-image: linear-gradient(90deg, rgba(28,15,8,.78), rgba(28,15,8,.20)), url("https://images.unsplash.com/photo-1600121848594-d8644e57abab?auto=format&fit=crop&w=1800&q=85"); }
.gallery-large figure:nth-child(3n + 1) { grid-column: span 2; }
.gallery-large img { height: 360px; }
.gallery-category-block { margin-top: 44px; }
.gallery-category-block h3 { margin: 0 0 18px; color: var(--brand); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.gallery-search-bar {
  max-width: 780px;
  margin: 0 auto 34px;
  padding: 14px;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.gallery-search-bar label {
  display: block;
  margin: 0 0 9px;
  color: var(--brand);
  font-size: .88rem;
  font-weight: 900;
}
.gallery-search-bar div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf1;
}
.gallery-search-bar i {
  color: var(--brand);
}
.gallery-search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}
.gallery-search-bar input::placeholder {
  color: rgba(24, 20, 17, .55);
}
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.portfolio-filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 850; cursor: pointer; }
.portfolio-filters img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.portfolio-filters button.active { color: #241507; background: var(--secondary); border-color: var(--secondary); }
.gallery-media-section { margin-top: 36px; }
.gallery-media-section.active { display: block; }
.gallery-media-section.is-empty .gallery-grid::after {
  content: "Aucun média ne correspond à votre recherche.";
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(155, 65, 3, .24);
  border-radius: 16px;
  background: #fffaf1;
  color: var(--brand);
  font-weight: 900;
  text-align: center;
}
.gallery-media-section h3 {
  margin: 12px 0 18px;
  color: var(--brand);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.gallery-page.gallery-ready,
.gallery-page.gallery-ready .gallery-media-section,
.gallery-page.gallery-ready .gallery-grid,
.gallery-page.gallery-ready figure[data-gallery-category] {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.gallery-page.gallery-ready .gallery-grid {
  display: grid;
  height: auto;
  overflow: visible;
}
.gallery-page.gallery-ready figure[data-gallery-category] {
  min-width: 0;
  min-height: 250px;
}
.gallery-page.gallery-ready figure[data-gallery-category][hidden] {
  display: none !important;
}
.gallery-page.gallery-ready .gallery-open {
  display: block;
  width: 100%;
  min-height: 250px;
}
.portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portfolio-grid figure:nth-child(3n + 1) { grid-column: span 1; }
.portfolio-grid img { height: 250px; }
.portfolio-grid figcaption { display: grid; gap: 2px; }
.portfolio-grid figcaption span { font-size: .78rem; color: rgba(255,255,255,.8); }
.gallery-lightbox {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  border: 0;
  padding: 0;
  overflow: visible;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}
.gallery-lightbox::backdrop { background: rgba(18, 9, 4, .78); backdrop-filter: blur(10px); }
.gallery-viewer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  min-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(24,14,8,.98), rgba(84,36,5,.96));
  box-shadow: 0 30px 100px rgba(0,0,0,.44);
}
.gallery-viewer-media { position: relative; display: grid; place-items: center; min-height: 580px; padding: clamp(16px, 2vw, 26px); }
.gallery-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0,0,0,.34);
}
.gallery-stage img,
.gallery-stage video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 88px);
  object-fit: contain;
  background: #140b05;
}
.gallery-viewer-panel {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  color: #fff;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,171,3,.22), transparent 16rem),
    rgba(20,11,5,.36);
}
.gallery-kicker { width: fit-content; padding: 7px 11px; color: #241507; background: var(--secondary); border-radius: 999px; font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.gallery-viewer-panel h2 { margin: 0; color: #fff; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.05; }
.gallery-viewer-panel p { margin: 0; color: rgba(255,255,255,.76); font-weight: 800; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; max-height: 280px; overflow: auto; }
.gallery-thumbs button {
  position: relative;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.gallery-thumbs button.active { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(255,171,3,.16); }
.gallery-thumbs img,
.gallery-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs span { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; color: #241507; background: rgba(255,171,3,.72); }
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 50%;
  color: #fff;
  background: rgba(36,21,7,.72);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  font-size: 2.25rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-nav.prev { left: 34px; }
.gallery-nav.next { right: 34px; }
.gallery-lightbox .gallery-close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 42px; height: 42px; color: #241507; background: var(--secondary); border: 0; }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid article { overflow: hidden; }
.team-grid img { width: 100%; height: 280px; object-fit: cover; }
.team-grid h3, .team-grid p { padding: 0 22px; }
.team-grid p { padding-bottom: 22px; }
.team-hierarchy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.team-hierarchy article { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(41,22,11,.08); }
.team-hierarchy .team-lead { grid-column: 1 / -1; grid-template-columns: 260px 1fr; background: linear-gradient(120deg, #fff, #fff8f1); }
.team-hierarchy img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; }
.team-hierarchy .team-lead img { height: 230px; }
.team-hierarchy span { color: var(--brand); font-weight: 900; text-transform: uppercase; font-size: .82rem; }
.team-hierarchy h3 { margin: 6px 0; font-size: 1.5rem; }
.shop-tools { display: flex; gap: 14px; padding-bottom: 0; }
.shop-tools input, .shop-tools select { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; }
.shop-tools input { flex: 1; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 28px; gap: 16px; }
.product-card { overflow: hidden; }
.product-card img { width: 100%; height: 185px; object-fit: cover; }
.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.product-image-button:focus-visible {
  outline: 3px solid rgba(255, 171, 3, .9);
  outline-offset: -3px;
}
.product-image-button .product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 185px;
  color: var(--brand);
  background: #fff3d8;
  font-size: 2.1rem;
}
.product-card div { padding: 14px; }
.product-card h2 { font-size: 1rem; line-height: 1.2; min-height: 38px; }
.product-card p { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.product-card strong { display: block; color: var(--brand); font-size: 1.05rem; margin: 10px 0; }
.product-card strong span { display: block; margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.product-card .button { width: 100%; min-height: 38px; font-size: .88rem; }
.product-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.whatsapp-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.whatsapp-choice .button { width: 100%; }
dialog { border: 0; border-radius: 8px; padding: 0; max-width: 520px; width: calc(100% - 28px); box-shadow: var(--shadow); }
dialog.is-open { display: block; position: fixed; inset: 50% auto auto 50%; z-index: 60; background: #fff; transform: translate(-50%, -50%); }
dialog form { padding: 26px; display: grid; gap: 14px; }
.product-dialog { max-width: 760px; }
.product-dialog form { padding: 0; overflow: hidden; }
.product-preview-frame { position: relative; background: #181411; }
.product-dialog #productPreviewImage {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 280px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f6f2ed;
}
.product-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.product-nav.prev { left: 14px; }
.product-nav.next { right: 14px; }
.product-nav[hidden] { display: none; }
.product-dialog h2, .product-dialog p, .product-dialog strong, .product-dialog .button { margin-left: 24px; margin-right: 24px; }
.product-dialog h2 { margin-bottom: 0; font-size: 1.8rem; }
.product-dialog strong { color: var(--brand); font-size: 1.35rem; }
.product-dialog p { color: var(--muted); }
.product-dialog .button { margin-bottom: 0; }
.product-dialog-actions { display: grid; padding: 0 0 24px; }
.product-dialog-actions .button { margin-bottom: 0; }
.product-dialog .dialog-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.product-thumbs { display: flex; gap: 8px; padding: 12px 24px 0; overflow-x: auto; }
.product-thumbs button { width: 72px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; }
.product-thumbs button.active { border-color: var(--secondary); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dialog-close { justify-self: end; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 50%; }
label { display: grid; gap: 8px; font-weight: 760; color: #2f251e; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; color: var(--ink); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-page { display: grid; gap: 24px; }
.contact-command { display: grid; grid-template-columns: .75fr 1.4fr; gap: 24px; padding: 28px; background: linear-gradient(135deg, #211610, #3a2112); color: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.contact-command h2 { margin: 0 0 10px; font-size: clamp(1.8rem,3vw,2.6rem); }
.contact-command p { color: rgba(255,255,255,.72); }
.contact-methods { display: grid; gap: 12px; }
.contact-methods article { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.contact-methods p { margin: 4px 0 0; }
.contact-info-strip { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.2fr; gap: 18px; align-items: center; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 34px rgba(41, 22, 11, .08); }
.contact-info-strip h2 { margin: 0; color: var(--brand); }
.contact-info-strip p { margin: 0; color: var(--muted); }
.contact-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; color: #fff; background: var(--brand); border-radius: 50%; }
.contact-socials { grid-column: 1 / -1; }
.contact-socials a { display: inline-flex; align-items: center; gap: 8px; color: #fff; border-color: rgba(255,255,255,.18); }
.contact-socials span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); font-weight: 900; }
.contact-forms-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.map-actions { display: flex; justify-content: flex-end; margin-bottom: -12px; }
.contact-wide-map { min-height: clamp(520px, 62vw, 760px); margin-top: 0; }
.contact-panel, .form-card { padding: 26px; }
.map { width: 100%; min-height: 330px; border: 0; border-radius: var(--radius); margin-top: 20px; }
.forms-stack { display: grid; gap: 22px; }
.form-card { display: grid; gap: 16px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); font-weight: 800; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(120deg, #1d120b, #9b4103); }
.login-card { width: min(440px, 100%); padding: 32px; display: grid; gap: 16px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); animation: loginCardIn .38s ease both; }
.login-brand { justify-content: center; text-align: center; }
.login-logo-img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; }
.login-card h1 { margin: 8px 0 0; line-height: 1.1; text-align: center; }
.login-card > p { margin: 0 0 8px; text-align: center; color: #4f3c30; }
.login-card label { text-align: left; }
.password-field { display: grid; grid-template-columns: 1fr 44px; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.password-field input { border: 0 !important; border-radius: 0 !important; }
.password-field button { height: 100%; border: 0; border-left: 1px solid var(--line); background: #fff8ec; cursor: pointer; }
.login-submit { position: relative; overflow: hidden; }
.login-card.is-loading .login-submit::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
.alert, .notice { padding: 13px 15px; border-radius: 8px; background: #fff1e8; color: var(--brand); border: 1px solid #efc8ad; }
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  min-width: min(420px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff8ec;
  color: var(--brand);
  border: 1px solid #efc8ad;
  box-shadow: 0 24px 60px rgba(47, 22, 6, .22);
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: toastPop .32s ease both, toastFloat 2.6s ease-in-out .32s infinite;
}
.toast.error {
  background: #fff4f2;
  color: #b42318;
  border-color: #ffd0c8;
}
.toast.warning {
  background: #fff8df;
  color: #8a5700;
  border-color: #ffe39a;
}
@keyframes toastPop {
  from { opacity: 0; transform: translate(-50%, -44%) scale(.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes toastFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -5px; }
}
.upload-status {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9998;
  width: min(420px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0d49a;
  box-shadow: 0 20px 48px rgba(47, 22, 6, .2);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.upload-status.active {
  transform: translate(-50%, 0);
  opacity: 1;
}
.upload-status strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
}
.upload-status span {
  display: block;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff0cf;
}
.upload-status span::before {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--secondary));
  animation: uploadBar 1s ease-in-out infinite;
}
@keyframes uploadBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(235%); }
}
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 310px minmax(0, 1fr); background: var(--admin-bg); font-size: calc(14px * var(--admin-scale)); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 26px; background: linear-gradient(180deg, var(--brand) 0%, #2b1608 100%); color: #fff; overflow: auto; }
.admin-brand { align-items: center; font-size: 1.05rem; }
.admin-brand span, .admin-brand .brand-logo-img { width: 58px; height: 58px; background: rgba(255,255,255,.95); color: var(--brand); border-radius: 14px; }
.admin-sidebar nav { display: grid; gap: 10px; margin-top: 30px; }
.admin-sidebar .nav-section {
  margin: 0;
  padding: 6px 0 10px;
  border-radius: 8px;
  cursor: grab;
}
.admin-sidebar .nav-section.dragging {
  opacity: .62;
  background: rgba(255,255,255,.08);
  cursor: grabbing;
}
.admin-sidebar .nav-section:active { cursor: grabbing; }
.nav-section-toggle {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
  min-height: 44px !important;
  margin-top: 12px;
  padding: 0 6px !important;
  color: rgba(255,255,255,.82) !important;
  text-transform: uppercase;
  font-size: .86rem !important;
  letter-spacing: 0;
  background: transparent !important;
  border: 0 !important;
}
.nav-section-toggle span { transition: transform .2s ease; }
.nav-section-toggle.collapsed span { transform: rotate(-90deg); }
.nav-group { display: grid; gap: 7px; overflow: hidden; transition: max-height .25s ease, opacity .2s ease; max-height: 620px; opacity: 1; }
.nav-group.collapsed { max-height: 0; opacity: 0; }
.nav-section { color: rgba(255,255,255,.63); font-size: .82rem; font-weight: 900; text-transform: uppercase; }
.admin-sidebar button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 48px;
  padding: 0 14px;
  color: rgba(255,255,255,.92);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: .98rem;
  font-weight: 850;
}
.nav-group button.active {
  color: #241507;
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.nav-group button:hover { color: #241507; background: var(--secondary); border-color: var(--secondary); }
.nav-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.62); border-radius: 7px; font-size: .82rem; font-weight: 900; color: inherit; }
.nav-group button.active .nav-icon,
.nav-group button:hover .nav-icon { border-color: rgba(36,21,7,.35); background: rgba(255,255,255,.28); }
.admin-main { height: 100vh; min-width: 0; overflow-y: auto; padding: 22px clamp(22px, 4vw, 54px) 36px; }
.admin-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin: -22px calc(clamp(22px, 4vw, 54px) * -1) 22px;
  padding: 28px clamp(22px, 4vw, 54px) 22px;
  background: #edf2f7;
  border-bottom: 1px solid rgba(155, 65, 3, .08);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .08);
  isolation: isolate;
}
.admin-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -80px;
  height: 80px;
  background: #edf2f7;
}
.admin-header h1 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
.admin-header p { margin: 4px 0 0; color: var(--muted); }
.admin-actions { display: flex; gap: 10px; }
.kpi-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; }
.kpi-grid article { padding: 22px; }
.kpi-grid span { color: var(--muted); }
.kpi-grid strong { display: block; font-size: 1.6rem; margin-top: 8px; color: var(--brand); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.admin-card { padding: 22px; margin-bottom: 22px; overflow: hidden; background: var(--surface); }
.admin-card h2 { margin-top: 0; }
.card-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-toolbar h2 { margin: 0; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.admin-form .wide-field, .admin-form .check { grid-column: 1 / -1; }
.module-checks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.module-checks legend { padding: 0 6px; font-weight: 800; }
.module-checks label { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.module-checks input { width: auto; }
.choice-field {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 14px;
  background: #fff8ec;
}
.choice-field legend {
  padding: 0 7px;
  color: var(--brand);
  font-weight: 950;
}
.choice-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}
.choice-field input {
  width: auto;
  accent-color: var(--secondary);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .85rem; text-transform: uppercase; }
.row-actions { white-space: nowrap; }
.row-actions button, .quote-card button, .filters button, .project-column button {
  margin: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.accounting-filter-row .filters button {
  margin: 1px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: .82rem;
}
.accounting-state .accounting-table {
  table-layout: fixed;
  min-width: 980px;
}
.accounting-state .accounting-table th,
.accounting-state .accounting-table td {
  padding-inline: 10px;
}
.accounting-state .accounting-table th:nth-child(1),
.accounting-state .accounting-table td:nth-child(1) { width: 42px; }
.accounting-state .accounting-table th:nth-child(2),
.accounting-state .accounting-table td:nth-child(2) { width: 110px; }
.accounting-state .accounting-table th:nth-child(3),
.accounting-state .accounting-table td:nth-child(3) { width: 150px; }
.accounting-state .accounting-table th:nth-child(4),
.accounting-state .accounting-table td:nth-child(4) {
  width: 260px;
  overflow-wrap: anywhere;
}
.accounting-state .accounting-table th:nth-child(5),
.accounting-state .accounting-table td:nth-child(5) { width: 150px; }
.accounting-state .accounting-table th:nth-child(6),
.accounting-state .accounting-table td:nth-child(6) {
  width: 155px;
  white-space: nowrap;
}
.accounting-state .accounting-table th:nth-child(7),
.accounting-state .accounting-table td:nth-child(7) { width: 150px; }
.segmented { display: inline-flex; padding: 4px; background: #fff3d2; border-radius: 9px; }
.segmented button.active { color: #fff; background: var(--brand); }
.accounting-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.accounting-filter-row .filters {
  margin-top: 0;
}
.accounting-filter-row .segmented::before {
  content: "Période";
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
}
.accounting-filter-row .category-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px;
  background: #fff8ec;
  border: 1px solid #f0d49a;
  border-radius: 9px;
}
.accounting-filter-row .category-filters::before {
  content: "Catégorie";
  padding: 0 6px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
}
.accounting-filter-row .sort-filter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid #f0d49a;
  border-radius: 10px;
  background: #fff8ec;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
}
.accounting-filter-row .sort-filter select {
  width: 34px;
  min-width: 34px;
  height: 30px;
  padding: 0 2px;
  border: 1px solid rgba(155, 65, 3, .22);
  border-radius: 8px;
  background: #fff;
  color: transparent;
  cursor: pointer;
}
.accounting-filter-row .sort-filter select option {
  color: #181411;
}
.accounting-filter-row .category-filters button.active {
  color: #241507;
  background: var(--secondary);
  border-color: var(--secondary);
}
.accounting-periods {
  flex-wrap: wrap;
}
.custom-period {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border: 1px solid #f0d49a;
  border-radius: 10px;
  background: #fff8ec;
}
.custom-period.active {
  display: inline-flex;
}
.custom-period label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
}
.custom-period input {
  min-width: 128px;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid rgba(155, 65, 3, .2);
  border-radius: 8px;
  background: #fff;
}
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi-grid.compact { grid-template-columns: repeat(4, 1fr); margin: 16px 0; }
.stock-low { color: #b42318; }
.stock-grid { grid-template-columns: 1fr 1.15fr; }
.stock-grid.stacked { grid-template-columns: 1fr; }
.stock-panel {
  padding: 0;
}
.stock-panel > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.stock-panel > summary::-webkit-details-marker {
  display: none;
}
.stock-panel > summary h2 {
  margin: 0 0 4px;
}
.stock-panel > summary p {
  margin: 0;
  color: var(--muted);
}
.stock-panel[open] > summary {
  border-bottom-color: var(--line);
}
.stock-panel-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff3d2;
  color: var(--brand);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}
.stock-panel:not([open]) .stock-panel-arrow {
  transform: rotate(-90deg);
}
.stock-panel-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px 0;
}
.stock-panel .table-wrap,
.stock-panel .stock-summary {
  margin: 12px 18px 18px;
}
.stock-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}
.stock-summary span,
.payment-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 171, 3, .18);
  color: var(--brand);
  font-weight: 800;
  padding: 7px 11px;
}
.payment-pill + small {
  display: block;
  color: #6f6258;
  margin-top: 5px;
  line-height: 1.35;
}
.bulk-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.button.danger,
button.danger {
  border-color: rgba(180, 35, 24, .22);
  background: #fff4f2;
  color: #b42318;
}
.button.danger:hover,
button.danger:hover {
  background: #ffe4df;
  color: #8f1d14;
}
.select-cell {
  width: 42px;
  text-align: center;
}
.select-cell input {
  width: 17px;
  height: 17px;
  accent-color: var(--secondary);
  cursor: pointer;
}
.project-select,
.quote-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 171, 3, .16);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 800;
}
.project-select input,
.quote-select input {
  accent-color: var(--secondary);
}
.icon-actions {
  align-items: center;
  gap: 10px;
}
.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fff8ec);
  color: var(--brand);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(44, 21, 8, .10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.icon-button i {
  transition: transform .2s ease;
}
.icon-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.icon-button.primary {
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
  border-color: var(--secondary);
  color: #241507;
  box-shadow: 0 16px 34px rgba(255, 171, 3, .26);
}
.icon-button.info {
  color: #0f5f7a;
  background: linear-gradient(180deg, #ffffff, #eefbff);
  border-color: rgba(15, 95, 122, .18);
}
.icon-button.edit {
  color: #7a3d00;
  background: linear-gradient(180deg, #ffffff, #fff5df);
  border-color: rgba(255, 171, 3, .28);
}
.icon-button.print {
  color: #4a3a8a;
  background: linear-gradient(180deg, #ffffff, #f3f1ff);
  border-color: rgba(74, 58, 138, .18);
}
.icon-button.danger {
  background: linear-gradient(180deg, #ffffff, #fff0ee);
  border-color: rgba(180, 35, 24, .22);
  color: #b42318;
}
.icon-button:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(155, 65, 3, .34);
  box-shadow: 0 22px 46px rgba(44, 21, 8, .16);
}
.icon-button:hover i {
  transform: scale(1.12);
}
.icon-button.primary:hover {
  background: linear-gradient(135deg, #ffc13d, var(--secondary));
}
.icon-button.info:hover {
  color: #fff;
  background: #0f5f7a;
}
.icon-button.edit:hover {
  color: #241507;
  background: var(--secondary);
}
.icon-button.print:hover {
  color: #fff;
  background: #4a3a8a;
}
.icon-button.danger:hover {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}
.icon-button.sms {
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
  border-color: rgba(34, 197, 94, .24);
  color: #166534;
}
.icon-button.sms:hover {
  color: #fff;
  background: #16a34a;
  border-color: #16a34a;
}
.icon-button.whatsapp {
  background: linear-gradient(180deg, #ffffff, #edfff4);
  border-color: rgba(18, 140, 59, .25);
  color: #128c3b;
}
.icon-button.whatsapp:hover {
  color: #fff;
  background: #128c3b;
  border-color: #128c3b;
}
.client-toolbar {
  align-items: center;
  gap: 10px;
}
.clients-panel td strong {
  display: block;
  color: var(--text);
}
.clients-panel td small {
  display: block;
  color: #6b5d53;
  margin-top: 4px;
}
.sms-dialog {
  width: min(680px, calc(100% - 28px));
}
.sms-dialog > p,
.sms-dialog > label,
.sms-client-list {
  margin: 0 24px 18px;
}
.sms-dialog > p {
  color: #5f5148;
  line-height: 1.6;
}
.sms-dialog textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}
.sms-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 24px 18px;
}
.sms-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.sms-bulk-actions .button,
.sms-row-actions .button {
  width: auto;
  min-height: 40px;
}
.sms-client-list {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
}
.sms-client-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f2d7ae;
  border-radius: 14px;
  background: #fffaf1;
}
.sms-client-list strong,
.sms-client-list small {
  display: block;
}
.sms-client-list small {
  color: #6b5d53;
  margin-top: 3px;
}
.detail-dialog {
  max-width: min(680px, calc(100vw - 28px));
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.detail-grid div {
  padding: 8px 10px;
  border: 1px solid rgba(155, 65, 3, .13);
  border-radius: 9px;
  background: #fffaf1;
}
.detail-grid dt {
  color: #745947;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.detail-grid dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.detail-grid pre {
  white-space: pre-wrap;
  margin: 0;
}
.detail-image {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(155, 65, 3, .16);
}
.color-field {
  gap: 9px;
}
.color-control {
  display: grid;
  grid-template-columns: 36px 54px minmax(76px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid rgba(155, 65, 3, .18);
  border-radius: 14px;
  background: #fffaf1;
}
.color-control input[type="color"] {
  width: 100%;
  min-width: 54px;
  height: 32px;
  padding: 2px;
  border: 1px solid rgba(155, 65, 3, .25);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.color-control input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-control input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(155, 65, 3, .22), 0 10px 20px rgba(42, 21, 9, .12);
}
.color-meta {
  display: grid;
  gap: 2px;
}
.color-meta b {
  color: var(--brand);
  font-size: .78rem;
  text-transform: uppercase;
}
.color-meta small {
  color: #786252;
  font-size: .68rem;
  font-weight: 800;
}
.dialog-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.round { border-radius: 50%; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.profile-head img { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; }
.profile-head h3 { margin: 0; font-size: 1.6rem; }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.profile-grid span { padding: 12px; background: #fff8ec; border: 1px solid #f0d49a; border-radius: 8px; }
.project-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.project-column { min-height: 260px; padding: 14px; background: #fff8ec; border: 1px solid #f0d49a; border-radius: 10px; }
.project-column h3 { margin-top: 0; color: var(--brand); }
.project-column article { display: grid; gap: 7px; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.project-column span, .project-column small { color: var(--muted); }
.agenda-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); border: 1px solid #f0d49a; border-radius: 12px; overflow: auto; }
.agenda-day { min-height: 130px; padding: 10px; border-right: 1px solid #f0d49a; border-bottom: 1px solid #f0d49a; background: #fff; }
.agenda-day strong { color: var(--brand); }
.agenda-event { display: grid; width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--brand); border-left-width: 4px; border-radius: 8px; background: #fff8f2; text-align: left; font-size: .84rem; }
.agenda-event small { color: var(--muted); }
.thumb { width: 74px; height: 48px; object-fit: cover; border-radius: 6px; }
.image-preview { width: 110px; height: 80px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.multi-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.multi-preview img { width: 78px; height: 58px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; }
.multi-preview video { width: 78px; height: 58px; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; background: #181411; }
.admin-dialog { width: min(760px, calc(100% - 28px)); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 30px 80px rgba(19, 8, 24, .32); }
.admin-dialog::backdrop { background: rgba(12, 8, 18, .45); backdrop-filter: blur(4px); }
.admin-dialog .admin-form { padding: 24px; }
.admin-dialog.is-open {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0 !important;
  padding: clamp(16px, 4vh, 34px) 18px;
  overflow-y: auto;
  border-radius: 0;
  background: rgba(18, 10, 5, .38);
  box-shadow: none;
  transform: none !important;
}
.admin-dialog.is-open .admin-form,
.admin-dialog.is-open .detail-card {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - clamp(32px, 8vh, 68px));
  margin: 0 auto;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(19, 8, 24, .32);
}
.admin-dialog.is-open,
.order-dialog.is-open,
.product-dialog.is-open,
.gallery-lightbox.is-open {
  z-index: 10000 !important;
}
#adminAlerts {
  z-index: 11000 !important;
}
.admin-dialog.is-open.pretty-detail .detail-card {
  width: min(860px, calc(100vw - 28px));
}
.dialog-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; color: var(--brand); }
.dialog-x { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.3rem; }
.filters { margin-top: 16px; }
.quote-list,
.quote-mini-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.quote-card { padding: 18px; }
.quote-card ul { padding-left: 18px; }
.quote-mini-card { padding: 0; overflow: hidden; }
.quote-mini-card summary {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.quote-download {
  justify-self: end;
}
.quote-mini-date {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.quote-mini-date .quote-download {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 14px;
}
.quote-mini-date .quote-download span {
  display: none;
}
.quote-mini-card summary::-webkit-details-marker { display: none; }
.quote-mini-card summary strong { color: var(--brand); }
.quote-mini-card summary span,
.quote-mini-card > p { color: var(--muted); }
.quote-mini-card > p { margin: 0; padding: 0 16px 14px; }
.quote-select { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.quote-mini-actions { display: flex; gap: 8px; justify-content: flex-end; }
.quote-mini-actions button {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #f0c987;
  border-radius: 8px;
  background: #fff8ec;
  color: var(--brand);
  font-weight: 850;
}
.quote-full-preview { padding: 0 16px 18px; overflow-x: auto; background: #f8f3ec; }
.quote-template {
  position: relative;
  width: min(100%, 794px);
  min-height: 1123px;
  margin-inline: auto;
  overflow: hidden;
  border-color: #f0d49a;
  color: #171717;
  background: #fff url('../uploads/papier-entete-fdecor.png?v=20260526-entete-new') center top / 100% 100% no-repeat;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.quote-letterhead {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
.quote-content-on-paper {
  position: relative;
  z-index: 1;
  padding: calc(165px + var(--quote-shift, 0mm)) 54px 118px;
  transform: scale(var(--quote-scale, 1));
  transform-origin: top center;
}
.quote-proforma-head {
  display: grid;
  grid-template-columns: minmax(210px, .95fr) minmax(240px, .72fr);
  gap: 3px 28px;
  min-height: 92px;
  margin-bottom: 8px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}
.quote-company-block {
  display: grid;
  align-content: start;
  gap: 2px;
  font-size: .88rem;
}
.quote-company-block strong {
  font-size: 1.06rem;
  text-transform: uppercase;
}
.quote-company-block span:first-of-type { font-weight: 700; }
.quote-issued {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  padding-top: 0;
  font-size: .96rem;
}
.quote-client-box {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  display: grid;
  width: min(252px, 100%);
  margin-top: 32px;
  border: 1.5px solid #252525;
  background: rgba(255,255,255,.42);
  line-height: 1.08;
  font-size: .86rem;
  transform: translateY(var(--quote-client-shift, 0mm));
}
.quote-client-box strong,
.quote-client-box span { padding-inline: 6px; }
.quote-client-box strong {
  padding-top: 3px;
  font-size: .98rem;
}
.quote-client-box span:last-child { padding-bottom: 3px; }
.quote-template h3 {
  width: fit-content;
  margin: 2px auto 24px;
  padding: 0 0 1px;
  border-bottom: 2px solid #111;
  color: #111;
  background: transparent;
  text-align: center;
  font: 900 1.36rem/1.05 Georgia, "Times New Roman", serif;
  text-transform: uppercase;
}
.quote-details-box {
  margin-inline: 10px;
  border: 1.5px solid #252525;
  border-bottom: 0;
  background: rgba(255,255,255,.28);
  font: 400 .94rem/1.18 Georgia, "Times New Roman", serif;
  text-align: center;
}
.quote-details-box p { margin: 0; padding: 2px 6px; }
.quote-details-box strong {
  color: #8c3300;
  text-decoration: underline;
  text-transform: uppercase;
}
.quote-table {
  min-width: 0;
  border: 1.5px solid #222;
  background: rgba(255,255,255,.25);
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
}
.quote-table th,
.quote-table td {
  border: 1px solid #333;
  padding: 5px 6px;
  vertical-align: middle;
}
.quote-table th {
  color: #111;
  background: rgba(255,255,255,.38);
  font-size: .9rem;
  line-height: 1.05;
  text-align: center;
}
.quote-proforma-table {
  width: calc(100% - 20px);
  margin-inline: 10px;
  table-layout: fixed;
}
.quote-proforma-table th:first-child { width: 31%; }
.quote-proforma-table th:nth-child(2) { width: 20%; }
.quote-proforma-table th:nth-child(3) { width: 23%; }
.quote-proforma-table td { font-size: .9rem; text-align: center; }
.quote-proforma-table td:first-child { text-align: center; }
.quote-proforma-table tbody tr { height: 38px; }
.quote-proforma-table tfoot th {
  padding-block: 6px;
  font-size: 1.1rem;
  font-weight: 900;
}
.quote-proforma-table tfoot th:first-child { text-align: center; }
.quote-form .form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: .84rem;
}
.quote-dialog { width: min(880px, calc(100% - 28px)); }
.quote-form textarea[name="details"] { min-height: 118px; }
.quote-form textarea[name="items"] { min-height: 108px; }
.quote-footer { text-align: center; color: #555; border-top: 4px solid var(--brand); padding-top: 10px; }
.quote-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.gallery-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  background: linear-gradient(135deg, #fff, #fff8ec);
  border-color: rgba(255, 171, 3, .28);
}
.gallery-admin-hero span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gallery-admin-hero h2 {
  margin: 0 0 8px;
}
.gallery-admin-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}
.gallery-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
  min-width: min(360px, 100%);
}
.gallery-admin-stats strong {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 16px;
  color: var(--brand);
  background: #fff;
  box-shadow: 0 16px 36px rgba(44, 21, 8, .08);
  font-size: 1.7rem;
}
.gallery-admin-stats small {
  color: #725746;
  font-size: .72rem;
  text-transform: uppercase;
}
.gallery-admin-workspace {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}
.gallery-admin-workspace > .admin-card {
  margin-bottom: 0;
}
.gallery-admin-workspace > .admin-card .card-toolbar {
  align-items: flex-start;
}
.gallery-admin-workspace > .admin-card .table-wrap {
  border: 1px solid rgba(155, 65, 3, .10);
  border-radius: 14px;
  background: #fffdf8;
}
.gallery-admin-workspace .thumb {
  width: 84px;
  height: 56px;
  border-radius: 10px;
}
.toast { position: fixed; right: 22px; top: 22px; z-index: 50; background: #ecfff2; color: #166534; border-color: #a7f3d0; box-shadow: var(--shadow); }
.toast.warning { background: #fff8e5; color: #8a4b00; border-color: #f2cd74; }
.toast.error { background: #fff0f0; color: #9b1c1c; border-color: #f2b1b1; }
.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 210px;
  margin-bottom: 24px;
  padding: clamp(26px, 4vw, 46px);
  color: #fff;
  background: linear-gradient(115deg, var(--brand), #5d2501);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(105, 28, 96, .18);
}
.settings-hero strong { color: var(--secondary); text-transform: uppercase; letter-spacing: .04em; }
.settings-hero h2 { margin: 10px 0 12px; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: .9; }
.settings-hero p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.05rem; }
.settings-hero aside { display: flex; align-items: center; gap: 16px; min-width: 280px; padding: 18px 20px; background: rgba(255,255,255,.92); color: var(--brand); border-radius: 12px; }
.settings-hero aside p { color: #61657a; }
.brand-mark { display: grid; place-items: center; width: 56px; height: 56px; color: var(--brand); background: #fff; border-radius: 10px; font-weight: 950; border: 1px solid #f0e5f2; }
.settings-logo-preview { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; }
.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 10px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #f0d49a;
  border-radius: 12px;
}
.settings-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b6376;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}
.settings-tabs button.active {
  color: #241507 !important;
  background: #ffab03 !important;
  border-color: #ffab03 !important;
  box-shadow: 0 10px 24px rgba(155,65,3,.16) !important;
}
.settings-tabs button.active span {
  color: #241507 !important;
  background: rgba(255,255,255,.42) !important;
  border-color: rgba(36,21,7,.35) !important;
}
.settings-tabs span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-size: .82rem; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 24px; align-items: start; }
.settings-layout.single { grid-template-columns: 1fr; }
.settings-users-layout { grid-template-columns: 1fr; }
.settings-users-layout > div { min-width: 0; }
.settings-card h2 { color: var(--brand); }
.appearance-studio { display: block; }
.appearance-form { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.appearance-panel { padding: 18px; background: #fff; border: 1px solid #f0d49a; border-radius: 12px; box-shadow: 0 14px 32px rgba(80, 35, 5, .07); }
.appearance-panel h2 { margin: 0 0 10px; color: var(--brand); }
.appearance-panel label { margin-bottom: 8px; }
.brand-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
}
.brand-panel h2 {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.brand-panel label:nth-of-type(n + 3) {
  grid-column: 1 / -1;
}
.palette-panel { background: linear-gradient(180deg, #fff, #f7f9fc); }
.panel-note { margin: -2px 0 10px; color: #7b5b32; font-size: .9rem; }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.preset-row button { min-height: 42px; border: 1px solid #f0d49a; border-radius: 9px; background: #fffaf0; color: #3a2112; font-weight: 850; cursor: pointer; }
.preset-row button:hover { border-color: var(--brand); color: var(--brand); }
.palette-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compact-palette .color-control {
  grid-template-columns: 30px 48px;
  width: fit-content;
  min-height: 40px;
}
.compact-palette .color-control input[type="color"] {
  min-width: 48px;
  width: 48px;
  height: 30px;
}
.compact-palette .color-swatch {
  width: 28px;
  height: 28px;
}
.preview-panel { background: #2b1608; color: #fff; }
.preview-panel label { color: #fff; }
.mini-preview { display: grid; gap: 10px; padding: 20px; margin-bottom: 18px; color: #1f1f1f; background: #fff; border-radius: 12px; }
.mini-preview span { width: 58px; height: 10px; background: linear-gradient(90deg, var(--p), var(--a)); border-radius: 999px; }
.mini-preview p { color: #666; margin: 0; }
.mini-preview button { width: fit-content; padding: 10px 14px; color: #fff; background: var(--p); border: 0; border-radius: 8px; font-weight: 800; }
.full-panel { grid-column: auto; }
.settings-user-list { display: grid; gap: 12px; }
.settings-user-list.compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.settings-user-card { padding: 0; border: 1px solid #f0d49a; border-radius: 10px; background: #fff8ec; overflow: hidden; }
.settings-user-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.settings-user-card summary::-webkit-details-marker { display: none; }
.settings-user-card .module-pills { padding: 0 12px 12px 82px; }
.settings-user-card h3 { margin: 0; color: var(--brand); }
.settings-user-card p { margin: 4px 0 0; color: #5b6376; }
.settings-user-card summary > span { color: var(--brand); font-weight: 850; white-space: nowrap; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  color: #241507 !important;
  background: #ffab03 !important;
  border: 1px solid rgba(155,65,3,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
  font-weight: 950;
}
.module-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.module-pills span { padding: 6px 10px; color: var(--brand); background: #fff1d2; border-radius: 999px; font-size: .82rem; font-weight: 850; }
.connected-user { grid-column: 1 / -1; color: #5b6376; }
.sync-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #f0d49a;
  border-radius: 10px;
  background: #fff8ec;
}
.sync-actions p { margin: 0; color: var(--muted); }
.backup-card {
  display: grid;
  gap: 18px;
}
.backup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.backup-head h2 {
  margin-bottom: 6px;
}
.backup-head p,
.backup-empty {
  margin: 0;
  color: var(--muted);
}
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.backup-actions .button {
  width: auto;
}
.backup-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.backup-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 16px;
  background: #fffaf1;
}
.backup-item strong,
.backup-item span {
  display: block;
}
.backup-item span,
.backup-item small {
  color: var(--muted);
  font-size: .86rem;
}
.backup-item .button {
  width: auto;
  background: #fff3ed;
  color: #9b2d03;
  border: 1px solid #ffd1bc;
}
.store-panel {
  display: grid;
  gap: 18px;
}
.store-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.store-location-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 0;
}
.store-location-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid rgba(155, 65, 3, .18);
  border-radius: 14px;
  background: #fff8ec;
  color: var(--brand);
  font-weight: 950;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.store-location-tabs button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(70, 31, 7, .12);
}
.store-location-tabs button.active {
  color: #241507;
  border-color: var(--secondary);
  background: var(--secondary);
}
.store-location-tabs strong {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}
.store-location-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.store-location-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 171, 3, .32);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffaf0, #ffffff);
  box-shadow: 0 18px 42px rgba(70, 31, 7, .08);
}
.store-location-card > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
}
.store-location-card h3 {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 1rem;
}
.store-location-card small {
  color: var(--muted);
  font-weight: 800;
}
.store-location-card strong {
  color: var(--brand);
  font-size: 1.08rem;
  text-align: right;
}
.store-summary article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf1, #fff);
  box-shadow: 0 14px 34px rgba(68,35,10,.07);
}
.store-summary i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ffab03;
  color: #291406;
}
.store-summary span {
  color: var(--muted);
  font-weight: 800;
}
.store-summary strong {
  color: var(--brand);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.store-grid-premium {
  gap: 18px;
}
.store-card {
  position: relative;
  display: grid;
  grid-template-rows: 176px minmax(168px, auto) auto;
  overflow: hidden;
  border: 1px solid rgba(155,65,3,.13);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(46,24,8,.09);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.store-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,171,3,.72);
  box-shadow: 0 26px 62px rgba(46,24,8,.16);
}
.store-card.is-online::after {
  content: "En ligne";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffab03, #ffd36d);
  color: #2a1605;
  font-size: .7rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(54,26,4,.18);
}
.store-select {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(155,65,3,.14);
  box-shadow: 0 10px 22px rgba(32,17,7,.12);
}
.store-image {
  min-height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff4dc, #f7e3c2);
}
.store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease, filter .35s ease;
}
.store-card:hover .store-image img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.03);
}
.store-image.image-missing::after {
  content: "\f1b2";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--brand);
  font-size: 1.7rem;
}
.store-image span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--brand);
  font-size: 1.65rem;
}
.store-body {
  display: grid;
  gap: 9px;
  padding: 14px 14px 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,240,.96)),
    #fff;
}
.store-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.store-title h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-title span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff4d8;
  color: #8d3a00;
  font-size: .68rem;
  font-weight: 900;
}
.store-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--brand);
  background: #fff4dd;
  font-size: .72rem;
  font-weight: 850;
}
.store-body p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.store-meta strong {
  color: #15100c;
  font-size: 1.04rem;
  letter-spacing: .01em;
}
.store-meta small {
  color: var(--muted);
  font-weight: 800;
}
.store-actions {
  display: flex;
  gap: 6px;
  padding: 0 14px 14px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.store-actions .icon-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 12px;
  padding: 0;
  font-size: .86rem;
  box-shadow: 0 10px 20px rgba(55,28,8,.08);
}
.store-actions .icon-button.sale {
  color: var(--brand);
  background: #fff;
  border-color: rgba(155, 65, 3, .22);
}
.store-actions .icon-button.sale:hover {
  color: #241507;
  background: #fff7df;
  border-color: var(--secondary);
}

.gallery-whatsapp {
  width: 100%;
  margin: 8px 0 4px;
  color: #fff;
  background: #168a46;
  border-color: #168a46;
}
.gallery-whatsapp:hover {
  color: #fff;
  background: #11723a;
  border-color: #11723a;
}

.accounting-type-filters [data-accounting-type="entree"].active {
  color: #fff;
  background: #168a46;
  border-color: #168a46;
}
.accounting-type-filters [data-accounting-type="sortie"].active {
  color: #fff;
  background: #c62828;
  border-color: #c62828;
}
.accounting-table tbody tr.money-row.in {
  background: rgba(22, 138, 70, .035);
}
.accounting-table tbody tr.money-row.out {
  background: rgba(198, 40, 40, .035);
}

.money-flow-badge,
.money-flow-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 950;
  line-height: 1;
}
.money-flow-badge.in,
.money-flow-amount.in {
  color: #116b34;
  background: #e8f8ee;
  border-color: rgba(22, 163, 74, .28);
}
.money-flow-badge.out,
.money-flow-amount.out {
  color: #a21b1b;
  background: #fff0f0;
  border-color: rgba(220, 38, 38, .28);
}
.money-flow-badge.neutral,
.money-flow-amount.neutral {
  color: var(--brand);
  background: #fff5dc;
  border-color: rgba(255, 171, 3, .35);
}
.money-flow-card.in {
  border-color: rgba(22, 163, 74, .24);
  background: linear-gradient(135deg, #f1fff5, #fff);
}
.money-flow-card.in i {
  background: #16a34a;
  color: #fff;
}
.money-flow-card.in strong {
  color: #116b34;
}
.money-flow-card.out {
  border-color: rgba(220, 38, 38, .24);
  background: linear-gradient(135deg, #fff4f4, #fff);
}
.money-flow-card.out i {
  background: #dc2626;
  color: #fff;
}
.money-flow-card.out strong {
  color: #a21b1b;
}

.store-sales-ledger {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(155,65,3,.16);
}
.store-sales-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.store-sale-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(155,65,3,.18);
  border-radius: 10px;
  background: #fffaf1;
}
.store-sale-card h4,
.store-sale-card p {
  margin: 0;
}
.store-sale-card small {
  color: var(--brand);
  font-weight: 900;
}
.store-sale-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.store-sale-card dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}
.store-sale-card dd {
  margin: 0;
  color: var(--brand);
  font-weight: 900;
}

.receipt-a4 {
  width: 210mm;
  min-height: 297mm;
  box-sizing: border-box;
  padding: 18mm 16mm;
  margin: 20px auto;
  background: #fff;
  color: #17110d;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 16px 50px rgba(0,0,0,.12);
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--secondary);
}
.receipt-head div {
  display: grid;
  gap: 3px;
}
.receipt-head strong {
  color: var(--brand);
  font-size: 1.6rem;
}
.receipt-head h2 {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
}
.receipt-info {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.receipt-info div {
  padding: 10px;
  border: 1px solid #d9b477;
}
.receipt-info span {
  display: block;
  color: #7a4a21;
  font-size: .8rem;
  font-weight: 800;
}
.receipt-info strong,
.receipt-info small {
  display: block;
}
.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.receipt-table th {
  background: var(--brand);
  color: #fff;
  text-transform: uppercase;
}
.receipt-table th,
.receipt-table td {
  padding: 11px;
  border: 1px solid #3c2416;
  text-align: center;
}
.receipt-table td:first-child,
.receipt-table th:first-child {
  text-align: left;
}
.receipt-table tfoot td {
  background: #fff1cc;
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 950;
}
.receipt-note {
  margin: 24px 0 42px;
  text-align: center;
  font-weight: 700;
}
.receipt-sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 32px;
}
.receipt-sign div {
  min-height: 70px;
  border-top: 2px solid #1c120b;
  text-align: center;
  padding-top: 8px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .store-sales-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .store-summary,
  .store-grid,
  .store-sales-grid {
    grid-template-columns: 1fr;
  }
}
.admin-shell button:hover,
.admin-shell a:hover,
.admin-shell .button:hover,
.admin-shell .row-actions button:hover,
.admin-shell .quote-card button:hover,
.admin-shell .filters button:hover,
.admin-shell .project-column button:hover,
.admin-shell .preset-row button:hover {
  color: #241507 !important;
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.admin-shell input:hover,
.admin-shell textarea:hover,
.admin-shell select:hover,
.admin-shell input:focus,
.admin-shell textarea:focus,
.admin-shell select:focus {
  border-color: var(--secondary) !important;
  outline: 3px solid rgba(255, 171, 3, .22) !important;
  box-shadow: none !important;
}
.admin-shell table tbody tr:hover {
  background: #fff7df !important;
}
.admin-shell .nav-section-toggle:hover {
  color: var(--secondary) !important;
  background: transparent !important;
  border-color: transparent !important;
}
.admin-shell .nav-group button.active,
.admin-shell .nav-group button:hover {
  color: #241507 !important;
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  font-weight: 900;
}
.sidebar-logout:hover {
  color: #241507 !important;
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.admin-sidebar .nav-group button.active,
.admin-sidebar .nav-group button:hover,
.admin-shell .admin-sidebar .nav-group button.active,
.admin-shell .admin-sidebar .nav-group button:hover {
  color: #241507 !important;
  background: #ffab03 !important;
  border-color: #ffab03 !important;
}
.admin-sidebar .nav-icon,
.admin-sidebar .nav-group button .nav-icon {
  color: currentColor !important;
  background: transparent !important;
  border-color: rgba(255,255,255,.55) !important;
  font-family: Arial, sans-serif !important;
  line-height: 1 !important;
}
.admin-sidebar .nav-group button.active .nav-icon,
.admin-sidebar .nav-group button:hover .nav-icon {
  color: #241507 !important;
  background: rgba(255,255,255,.32) !important;
  border-color: rgba(36,21,7,.38) !important;
}
.admin-shell button:hover,
.admin-shell button:focus,
.admin-shell button:focus-visible,
.admin-shell button:active,
.admin-shell a:hover,
.admin-shell a:focus,
.admin-shell a:focus-visible,
.admin-shell a:active,
.admin-shell [role="button"]:hover,
.admin-shell [role="button"]:focus,
.admin-shell [role="button"]:active {
  color: #241507 !important;
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
  outline-color: rgba(255, 171, 3, .35) !important;
  box-shadow: 0 0 0 3px rgba(255, 171, 3, .22) !important;
}
.admin-shell button.active,
.admin-shell [aria-selected="true"],
.admin-shell [aria-current="page"] {
  color: #241507 !important;
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.admin-shell button:hover *,
.admin-shell button:focus *,
.admin-shell button:active *,
.admin-shell a:hover *,
.admin-shell a:focus *,
.admin-shell a:active * {
  color: inherit !important;
}
.admin-shell .nav-section-toggle:hover,
.admin-shell .nav-section-toggle:focus,
.admin-shell .nav-section-toggle:active {
  color: var(--secondary) !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.admin-shell ::selection {
  color: #241507;
  background: var(--secondary);
}
.admin-sidebar {
  padding: 22px 18px;
  background: linear-gradient(180deg, #7b3304 0%, #351706 100%);
}
.admin-sidebar nav { gap: 14px; }
.admin-sidebar .nav-section {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}
.admin-sidebar .nav-section-toggle {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff7ef;
}
.admin-sidebar .nav-group { padding-top: 10px; }
.admin-sidebar .nav-group button {
  border-radius: 12px;
  color: rgba(255,255,255,.94);
}
.admin-main {
  background: #edf2f7;
}
.management-toolbar {
  align-items: center;
  padding: 6px 4px;
}
.management-toolbar > div:first-child {
  display: grid;
  gap: 8px;
}
.management-toolbar p {
  max-width: 620px;
  margin: 0;
  color: #667085;
}
.module-search {
  display: grid;
  gap: 5px;
  max-width: 430px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
}
.module-search input {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #fff;
  color: #241507;
  font-size: .95rem;
  font-weight: 650;
}
.management-panel,
.data-list-card {
  border-color: #d8e0ea;
  box-shadow: 0 24px 60px rgba(30, 41, 59, .08);
}
.management-panel table,
.data-list-card table {
  border-collapse: separate;
  border-spacing: 0;
}
.management-panel th,
.data-list-card th {
  color: #53627a;
  font-weight: 900;
}
.management-panel td,
.data-list-card td {
  color: #3f1641;
  font-weight: 760;
}
.external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.quote-filter-row {
  margin-top: 12px;
}
.compact-segmented {
  width: fit-content;
  margin-top: 0;
}
.quote-mini-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quote-mini-card {
  border-color: #d8e0ea;
  box-shadow: 0 18px 42px rgba(30, 41, 59, .08);
}
.quote-mini-card summary {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 118px;
  background: #fff;
}
.quote-mini-card summary b {
  grid-column: 2 / -1;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff2c6;
  color: var(--brand);
}
.quote-select {
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  background: transparent;
}
.quote-select input {
  width: 18px;
  height: 18px;
}
.quote-stop {
  margin: 12px 10px 0;
  padding: 8px 10px;
  border: 1.5px solid #555;
  color: #9b0000;
  text-align: center;
  font: 900 .9rem/1.18 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}
.quote-signature {
  display: flex;
  justify-content: flex-end;
  margin: 4px 16px 0 auto;
  padding: 0;
  transform: translateY(var(--quote-signature-shift, 0mm));
}
.quote-signature img {
  width: min(210px, 34%);
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.quote-layout-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,171,3,.35);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9ee, #fff);
}
.quote-layout-controls legend {
  padding-inline: 8px;
  color: var(--brand);
  font-weight: 900;
}
.range-field {
  display: grid;
  gap: 8px;
  color: var(--brand);
  font-weight: 850;
}
.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.range-field output {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff2c6;
  color: var(--brand);
  font-size: .82rem;
}
.quote-designer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.quote-properties {
  position: sticky;
  top: 110px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  align-items: end;
  width: min(794px, 100%);
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 44px rgba(70,31,7,.08);
}
.quote-properties strong,
.quote-properties p {
  margin: 0;
}
.quote-properties strong {
  grid-column: span 2;
  color: var(--brand);
}
.quote-properties p {
  grid-column: span 3;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.quote-properties label {
  gap: 4px;
  font-size: .72rem;
  font-weight: 900;
}
.quote-properties input,
.quote-properties select {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: .82rem;
}
.quote-designer {
  width: 794px;
  height: 1123px;
  min-height: 1123px;
  padding: 0;
}
.quote-export-stage {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2147483647;
  width: 794px !important;
  height: 1123px !important;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #fff;
  pointer-events: none;
}
.quote-pdf-clone {
  box-sizing: border-box !important;
  transform: none !important;
  transform-origin: top left !important;
}
body.exporting-quote .quote-designer-tools,
body.exporting-quote .quote-properties,
body.exporting-quote .layer-name,
body.exporting-quote .layer-resize {
  display: none !important;
}
body.exporting-quote .quote-export-stage .quote-template {
  display: block !important;
  position: relative !important;
  width: 794px !important;
  height: 1123px !important;
  min-height: 1123px !important;
  max-height: 1123px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  page-break-before: avoid !important;
  page-break-after: avoid !important;
  page-break-inside: avoid !important;
}
body.exporting-quote .quote-export-stage .quote-letterhead {
  position: absolute !important;
  inset: 0 !important;
  width: 794px !important;
  height: 1123px !important;
  object-fit: fill !important;
}
body.exporting-quote .quote-export-stage .quote-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 794px !important;
  height: 1123px !important;
}
body.exporting-quote .quote-export-stage .quote-layer {
  outline: 0 !important;
  box-shadow: none !important;
}
.quote-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.quote-layer {
  position: absolute;
  display: grid;
  align-content: start;
  padding: 4px 6px;
  outline: 1px dashed transparent;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  cursor: default;
}
.quote-layer.active {
  outline-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255,171,3,.18);
}
.quote-layer .layer-name {
  position: absolute;
  left: 0;
  top: -22px;
  z-index: 2;
  display: none;
  padding: 3px 7px;
  border-radius: 999px;
  color: #241507;
  background: var(--secondary);
  font: 900 10px/1 Inter, sans-serif;
  cursor: move;
  user-select: none;
}
.quote-layer.active .layer-name,
.quote-layer:hover .layer-name {
  display: inline-flex;
}
.layer-editable {
  min-height: 100%;
  outline: 0;
}
.company-layer .layer-editable,
.client-layer .layer-editable {
  display: grid;
  gap: 2px;
}
.title-layer .layer-editable {
  width: fit-content;
  margin-inline: auto;
  border-bottom: 2px solid currentColor;
  text-transform: uppercase;
}
.details-layer p {
  margin: 0;
}
.details-layer strong,
.stop-layer strong {
  color: #9b0000;
}
.table-layer {
  padding: 0;
  overflow: hidden;
}
.table-layer .layer-editable {
  overflow: hidden;
}
.table-layer table {
  width: 100%;
  min-width: 0;
  height: 100%;
  border-collapse: collapse;
  font-size: inherit;
}
.table-layer th,
.table-layer td {
  padding: 5px 6px;
  border: 1px solid #252525;
  text-align: inherit;
}
.table-layer thead th {
  color: #fff;
  background: #8a0000;
}
.total-layer .layer-editable {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  font-weight: 950;
}
.signature-layer img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.layer-resize {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 4px 14px rgba(0,0,0,.20);
  cursor: nwse-resize;
}
.quote-layer.active .layer-resize {
  display: block;
}
.quote-proforma-table thead th {
  background: #8a0000;
  color: #fff;
}
.quote-proforma-table tfoot th {
  background: #8a0000;
  color: #fff;
}
.quote-mini-card[open] {
  grid-column: 1 / -1;
}
.quote-mini-card[open] .quote-full-preview {
  display: grid;
  justify-items: center;
  padding: 24px;
  overflow: visible;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent),
    #f7efe7;
}
.quote-mini-card[open] .quote-full-preview::-webkit-scrollbar {
  display: none;
}
.quote-mini-card[open] .quote-template {
  width: min(794px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(30, 41, 59, .16);
}
.quote-mini-card[open] .quote-content-on-paper {
  padding-left: clamp(30px, 6vw, 54px);
  padding-right: clamp(30px, 6vw, 54px);
}
.quote-mini-card[open] .quote-client-box {
  max-width: 260px;
  overflow-wrap: anywhere;
}
.quote-mini-card[open] .quote-table th,
.quote-mini-card[open] .quote-table td {
  overflow-wrap: anywhere;
}
.stock-panel summary .module-search {
  margin-top: 8px;
}
.toolbar-actions .icon-button,
.toolbar-actions .button {
  min-height: 44px;
}
.admin-shell .settings-tabs button,
.admin-shell .settings-tabs button:hover,
.admin-shell .settings-tabs button:focus,
.admin-shell .settings-tabs button:focus-visible,
.admin-shell .settings-tabs button:active {
  color: #586174 !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.admin-shell .settings-tabs button.active,
.admin-shell .settings-tabs button.active:hover,
.admin-shell .settings-tabs button.active:focus,
.admin-shell .settings-tabs button.active:focus-visible,
.admin-shell .settings-tabs button.active:active {
  color: #241507 !important;
  background: #ffab03 !important;
  background-color: #ffab03 !important;
  border-color: #ffab03 !important;
  box-shadow: 0 10px 24px rgba(155,65,3,.16) !important;
}
.admin-shell .settings-tabs button span {
  color: inherit !important;
  background: #ffffff !important;
}
.admin-shell .settings-tabs button.active span {
  color: #241507 !important;
  background: rgba(255,255,255,.46) !important;
  border-color: rgba(36,21,7,.35) !important;
}
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  body:has(.receipt-a4) {
    margin: 0 !important;
    background: #fff !important;
  }
  .receipt-a4 {
    width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    break-after: avoid;
    page-break-after: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  html,
  body {
    width: 210mm;
    min-height: 297mm;
    margin: 0 !important;
    background: #fff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .admin-sidebar, .admin-header, .topbar, .partner-strip, .footer, .row-actions, button { display: none !important; }
  .admin-shell { display: block; background: #fff; }
  .admin-main { padding: 0; }
  .admin-card, .quote-card { box-shadow: none; border-color: #bbb; }
  body.printing-accounting .admin-sidebar,
  body.printing-accounting .admin-header,
  body.printing-accounting .admin-card:not(.accounting-state),
  body.printing-accounting .row-actions,
  body.printing-profile .admin-sidebar,
  body.printing-profile .admin-header,
  body.printing-profile .admin-card:not(.print-profile),
  body.printing-profile .row-actions { display: none !important; }
  body.printing-accounting,
  body.printing-accounting .admin-shell,
  body.printing-accounting .admin-main,
  body.printing-accounting #adminContent {
    width: auto !important;
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.printing-accounting .admin-main,
  body.printing-accounting #adminContent {
    padding: 8mm !important;
    margin: 0 !important;
  }
  body.printing-accounting .accounting-state {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    page-break-after: auto;
  }
  body.printing-accounting .accounting-filter-row,
  body.printing-accounting .toolbar-actions,
  body.printing-accounting [data-module-search],
  body.printing-accounting .select-cell,
  body.printing-accounting .icon-actions {
    display: none !important;
  }
  body.printing-accounting .kpi-grid.compact {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6mm !important;
    break-inside: avoid;
  }
  body.printing-accounting .kpi-grid article {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  body.printing-accounting .table-wrap {
    overflow: visible !important;
  }
  body.printing-accounting table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
    page-break-inside: auto;
  }
  body.printing-accounting tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  body.printing-accounting th,
  body.printing-accounting td {
    padding: 7px 6px !important;
    font-size: 10.5pt !important;
    word-break: break-word;
  }
  body.printing-quote .list-card,
  body.printing-quote .admin-header,
  body.printing-quote .quote-mini-card summary,
  body.printing-quote .quote-mini-card > p,
  body.printing-quote .quote-designer-tools,
  body.printing-quote .quote-properties,
  body.printing-quote .quote-actions,
  body.printing-quote .toast { display: none !important; }
  body.printing-quote .quote-template { display: none; }
  body.printing-quote .quote-template.print-selected { display: block !important; }
  body.printing-quote .quote-full-preview { display: block !important; padding: 0; background: #fff; overflow: visible; }
  body.printing-quote .quote-full-preview::-webkit-scrollbar,
  body.printing-quote .admin-main::-webkit-scrollbar {
    display: none !important;
  }
  body.printing-quote .quote-mini-list,
  body.printing-quote .quote-mini-card,
  body.printing-quote .quote-mini-card[open] {
    display: block !important;
    width: 210mm !important;
    margin: 0 auto !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body.printing-quote .admin-main,
  body.printing-quote #adminContent,
  body.printing-quote .quote-full-preview {
    width: 210mm;
    height: auto !important;
    overflow: visible !important;
    margin: 0 auto !important;
  }
  body.printing-quote,
  body.printing-quote .admin-shell {
    overflow: visible !important;
  }
  body.printing-quote {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.printing-quote * {
    visibility: hidden !important;
  }
  body.printing-quote .quote-template.print-selected,
  body.printing-quote .quote-template.print-selected * {
    visibility: visible !important;
  }
  body.printing-quote .quote-template.print-selected {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 0 !important;
    max-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transform-origin: top left !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    background: #fff url('../uploads/papier-entete-fdecor.png?v=20260526-entete-new') center top / 100% 100% no-repeat !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.printing-quote .quote-template.print-selected .quote-letterhead {
    position: absolute !important;
    inset: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    object-fit: fill !important;
  }
  body.printing-quote .quote-template.print-selected .quote-canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 794px !important;
    height: 1123px !important;
  }
  body.printing-quote .quote-template.print-selected + *,
  body.printing-quote .quote-template.print-selected ~ * {
    display: none !important;
  }
  body.printing-detail .admin-sidebar,
  body.printing-detail .admin-header,
  body.printing-detail .admin-card,
  body.printing-detail .toast,
  body.printing-detail .dialog-actions { display: none !important; }
  body.printing-detail .detail-dialog {
    display: block !important;
    position: static;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
  }
  body.printing-detail .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-template { max-width: none; width: 210mm; height: 297mm; min-height: 0; margin: 0 !important; border: 0; box-shadow: none; overflow: hidden; background-image: url('../uploads/papier-entete-fdecor.png?v=20260526-entete-new') !important; background-size: 100% 100% !important; background-repeat: no-repeat !important; background-position: center top !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .quote-layer {
    outline: 0 !important;
    box-shadow: none !important;
  }
  .quote-layer .layer-name,
  .quote-layer .layer-resize {
    display: none !important;
  }
  .quote-content-on-paper {
    padding: calc(39mm + var(--quote-shift, 0mm)) 14mm 18mm;
    transform: scale(var(--quote-scale, 1));
    transform-origin: top center;
  }
  .quote-proforma-head {
    grid-template-columns: minmax(55mm, .95fr) minmax(64mm, .72fr);
    gap: 1mm 8mm;
    min-height: 24mm;
    margin-bottom: 2mm;
    font-size: .84rem;
  }
  .quote-company-block { gap: 1mm; font-size: .82rem; }
  .quote-company-block strong { font-size: .98rem; }
  .quote-issued { font-size: .88rem; }
  .quote-client-box {
    width: 66mm;
    margin-top: 9mm;
    font-size: .78rem;
    line-height: 1.05;
    transform: translateY(var(--quote-client-shift, 0mm));
  }
  .quote-client-box strong { font-size: .88rem; }
  .quote-template h3 { margin: 1mm auto 5mm; font-size: 1.12rem; }
  .quote-details-box { font-size: .82rem; line-height: 1.12; }
  .quote-table th { font-size: .78rem; }
  .quote-table th,
  .quote-table td { padding: 1.05mm 1.5mm; }
  .quote-proforma-table td { font-size: .76rem; overflow-wrap: anywhere; }
  .quote-proforma-table tbody tr { height: 7.6mm; }
  .quote-proforma-table tfoot th { font-size: .9rem; padding-block: 1.3mm; }
  .quote-stop { margin-top: 2.2mm; padding: 1.8mm 2.5mm; font-size: .72rem; line-height: 1.1; }
  .quote-signature {
    margin-top: .5mm;
    transform: translateY(var(--quote-signature-shift, 0mm));
  }
  .quote-signature img { width: 47mm; max-width: 30%; }
}
@media (max-width: 980px) {
  .service-grid, .product-grid, .gallery-grid, .team-grid, .kpi-grid, .expertise-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .intro, .social-proof, .contact-layout, .admin-grid, .contact-info-strip, .contact-command, .contact-forms-row, .appearance-form, .team-hierarchy, .about-columns, .mission-vision, .why-fdecor { grid-template-columns: 1fr; }
  .gallery-admin-workspace { grid-template-columns: 1fr; }
  .gallery-admin-hero { flex-direction: column; align-items: stretch; }
  .team-hierarchy .team-lead, .team-hierarchy article { grid-template-columns: 1fr; }
  .gallery-large figure:nth-child(3n + 1), .portfolio-grid figure:nth-child(3n + 1) { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rich-footer, .project-board { grid-template-columns: 1fr 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 18px 16px; }
  .admin-sidebar nav,
  #adminNavSections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 18px; }
  .admin-sidebar .nav-section { padding: 0; }
  .admin-sidebar .nav-section[data-menu-section="admin"] { grid-column: 1 / -1; }
  .nav-section-toggle { min-height: 34px !important; padding: 6px 8px !important; }
  .nav-group { gap: 6px; }
  .admin-sidebar button { min-height: 42px; padding: 8px 10px; gap: 8px; font-size: .9rem; }
  .nav-icon { width: 28px; height: 28px; }
}
@media (max-width: 720px) {
  .topbar { min-height: 66px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hero-slider { min-height: 520px; }
  .page-hero { min-height: 220px; }
  .slider-button { top: auto; bottom: 24px; }
  .service-grid, .product-grid, .gallery-grid, .team-grid, .timeline, .kpi-grid, .quote-list, .quote-mini-list, .expertise-grid, .values-grid { grid-template-columns: 1fr; }
  .quote-mini-card summary { grid-template-columns: 1fr; align-items: start; }
  .quote-content-on-paper { padding: 130px 24px 130px; }
  .quote-proforma-head { gap-inline: 12px; min-height: 100px; margin-bottom: 12px; }
  .quote-client-box { width: min(236px, 100%); }
  .quote-template h3 { margin-bottom: 22px; font-size: 1.22rem; }
  .quote-details-box,
  .quote-proforma-table { width: 100%; margin-inline: 0; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .backup-head,
  .backup-item {
    grid-template-columns: 1fr;
  }
  .backup-head {
    display: grid;
  }
  .backup-actions {
    justify-content: stretch;
  }
  .backup-actions .button,
  .backup-item .button {
    width: 100%;
  }
  .rich-footer, .project-board, .profile-grid { grid-template-columns: 1fr; }
  .footer, .admin-header, .shop-tools { flex-direction: column; align-items: stretch; }
  .settings-hero, .settings-hero aside { align-items: flex-start; flex-direction: column; }
  .settings-hero aside { min-width: 0; width: 100%; }
  .settings-tabs { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .module-checks { grid-template-columns: 1fr; }
  .admin-sidebar nav,
  #adminNavSections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sidebar .nav-section[data-menu-section="admin"] { grid-column: 1 / -1; }
}

/* Premium public website refresh */
body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255,171,3,.12), transparent 28rem),
    linear-gradient(180deg, #fffaf3 0%, #ffffff 36%, #fff8ee 100%);
}
.topbar {
  min-height: 78px;
  border-bottom: 1px solid rgba(155,65,3,.08);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(55,24,5,.06);
  transition: min-height .25s ease, box-shadow .25s ease, background .25s ease;
}
.topbar.scrolled {
  min-height: 66px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 42px rgba(55,24,5,.12);
}
.brand { gap: 12px; color: var(--brand); letter-spacing: 0; }
.brand span,
.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 14px 26px rgba(155,65,3,.14);
}
.nav-links a {
  position: relative;
  font-weight: 800;
  transition: color .22s ease, transform .22s ease;
}
.nav-links a:not(.nav-cta):not(.admin-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--brand); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta,
.admin-link,
.button {
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 14px 26px rgba(155,65,3,.16);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.button:hover,
.nav-cta:hover,
.admin-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(155,65,3,.22);
}
.button.primary,
.nav-cta {
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd66b);
  border: 1px solid rgba(155,65,3,.16);
}
.button.ghost,
.admin-link {
  color: var(--brand);
  background: #fff8ec;
  border: 1px solid rgba(155,65,3,.16);
}
.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(155,65,3,.16);
  border-radius: 14px;
  background: #fff8ec;
  color: var(--brand);
  font-size: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.hero-slider {
  min-height: min(740px, calc(100vh - 78px));
  isolation: isolate;
}
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide { height: 100%; }
.hero-slider.swiper-ready .slide {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: none;
}
.hero-slider [data-reveal] {
  opacity: 1;
  transform: none;
}
.slide {
  display: flex;
  align-items: center;
  padding: clamp(88px, 12vw, 142px) clamp(20px, 7vw, 112px);
  background-position: center;
  background-size: cover;
}
.slide::before {
  background:
    linear-gradient(90deg, rgba(25,13,7,.84), rgba(45,22,9,.50) 48%, rgba(45,22,9,.12)),
    radial-gradient(circle at 30% 60%, rgba(255,171,3,.22), transparent 26rem);
}
.hero-copy {
  transform: translateY(18px);
  animation: heroIn .9s ease forwards;
}
.hero-copy h1 {
  max-width: 840px;
  font-weight: 950;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.hero-copy p { max-width: 680px; line-height: 1.65; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: rgba(255,255,255,.72); opacity: 1; }
.swiper-pagination-bullet-active { width: 28px; border-radius: 999px; background: var(--secondary); }
.slider-button {
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}
.section {
  position: relative;
  padding: clamp(46px, 6vw, 78px) clamp(20px, 6vw, 96px);
}
.section-heading { max-width: 860px; margin-bottom: 26px; }
.section h2,
.section-heading h2 {
  color: #23160e;
  font-weight: 950;
  text-wrap: balance;
}
.section p,
.section-heading p { line-height: 1.75; }
.about-rich.section,
.expertise-section.section,
.values-section.section,
.team.section {
  padding-top: clamp(34px, 5vw, 58px);
  padding-bottom: clamp(34px, 5vw, 58px);
}
.mission-vision.section,
.why-fdecor.section {
  margin: clamp(24px, 4vw, 48px) clamp(20px, 6vw, 96px);
  padding: clamp(24px, 4vw, 38px);
}
.about-rich .section-heading,
.expertise-section .section-heading,
.values-section .section-heading,
.team .section-heading {
  margin-bottom: 22px;
}
.about-rich .section-heading h2,
.expertise-section .section-heading h2,
.values-section .section-heading h2,
.team .section-heading h2,
.mission-vision h2,
.why-fdecor h2 {
  margin-bottom: 8px;
}
.about-rich .section-heading p,
.expertise-section .section-heading p,
.values-section .section-heading p,
.team .section-heading p,
.mission-vision p,
.why-fdecor p {
  margin-top: 0;
  line-height: 1.58;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.intro {
  background:
    linear-gradient(135deg, rgba(255,171,3,.12), transparent 42%),
    #fff8ec;
}
.intro-card,
.review-card,
.product-card,
.form-card,
.contact-panel,
.team-grid article,
.team-hierarchy article,
.admin-card,
.quote-card,
.kpi-grid article,
.contact-methods article {
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(70,31,7,.09);
}
.intro-card {
  background: linear-gradient(180deg, #fff, #fff8ee);
  transform: rotate(-1deg);
}
.key-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #241507;
  color: #fff;
}
.key-figures article {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.key-figures strong { display: block; color: var(--secondary); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: .9; }
.key-figures span { color: rgba(255,255,255,.76); font-weight: 800; }
.service-grid { gap: 20px; }
.service-grid article {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background: linear-gradient(180deg, #fff, #fff8ee);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-grid article::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 42%;
  height: 150px;
  background: radial-gradient(circle, rgba(255,171,3,.22), transparent 70%);
}
.service-grid article:hover,
.product-card:hover,
.team-hierarchy article:hover,
.gallery-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(70,31,7,.14);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd66b);
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin: 0 clamp(20px, 6vw, 96px);
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(155,65,3,.96), rgba(36,21,7,.96)),
    radial-gradient(circle at right, rgba(255,171,3,.30), transparent 28rem);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(80,35,5,.22);
}
.cta-band + .social-proof { margin-top: clamp(38px, 5vw, 72px); }
.cta-band h2,
.cta-band p { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.78); margin-top: 8px; }
.social-proof {
  background:
    radial-gradient(circle at 12% 10%, rgba(255,171,3,.20), transparent 24rem),
    linear-gradient(135deg, #1d1109, #3a1c0a);
}
.social-proof h2 { color: #fff; }
.facebook-box {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.facebook-box iframe { min-height: 460px; border-radius: 18px; overflow: hidden; }
.page-hero {
  min-height: clamp(260px, 34vw, 390px);
  background-position: center;
  border-bottom: 1px solid rgba(155,65,3,.08);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 16% 70%, rgba(255,171,3,.22), transparent 26rem);
}
.page-hero > div { position: relative; z-index: 1; }
.gallery-grid figure,
.product-card { border-radius: 18px; transition: transform .28s ease, box-shadow .28s ease; }
.gallery-grid img,
.gallery-grid video,
.product-card img,
.product-image-button .product-placeholder,
.team-hierarchy img {
  transition: transform .45s ease, filter .35s ease;
}
.gallery-grid figure:hover img,
.gallery-grid figure:hover video,
.product-card:hover img,
.product-card:hover .product-image-button .product-placeholder,
.team-hierarchy article:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}
.gallery-grid figcaption {
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(36,21,7,.72);
  backdrop-filter: blur(12px);
}
.portfolio-filters button {
  border-radius: 999px;
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.portfolio-filters button:hover,
.portfolio-filters button.active {
  color: #241507;
  background: var(--secondary);
  transform: translateY(-2px);
}
.shop-tools {
  position: sticky;
  top: 84px;
  z-index: 8;
  width: min(980px, calc(100% - 40px));
  margin-inline: auto;
  padding: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(70,31,7,.10);
  backdrop-filter: blur(14px);
}
.shop-tools input,
.shop-tools select,
input,
textarea,
select {
  border-radius: 14px;
  border-color: rgba(155,65,3,.14);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: 0;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(255,171,3,.18);
}
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  align-items: stretch;
}
.product-card { background: #fff; overflow: hidden; }
.product-card img { height: 190px; }
.product-actions { gap: 10px; }
.product-dialog,
.order-dialog {
  border-radius: 22px;
  overflow: hidden;
}
.contact-command {
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 24%, rgba(255,171,3,.22), transparent 20rem),
    linear-gradient(135deg, #241507, #6d2f04);
}
.contact-methods article { background: rgba(255,255,255,.10); }
.contact-icon,
.footer-social span,
.footer-ico {
  color: #241507;
  background: var(--secondary);
}
.map {
  border-radius: 22px;
  box-shadow: 0 22px 60px rgba(70,31,7,.10);
}
.rich-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,171,3,.16), transparent 24rem),
    linear-gradient(135deg, #1f1209, #321604);
}
.rich-footer::before {
  content: "FDECOR";
  position: absolute;
  right: -24px;
  bottom: -22px;
  color: rgba(255,255,255,.035);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 950;
  letter-spacing: 0;
}
.rich-footer .footer-social { gap: 6px; margin-top: 12px; }
.rich-footer .footer-social a { gap: 5px; padding: 6px 9px; margin: 0; font-size: .78rem; font-weight: 850; }
.rich-footer .footer-social span { width: 20px; height: 20px; margin-right: 0; font-size: .72rem; }
.partner-strip { background: #fff8ec; border-top: 1px solid rgba(155,65,3,.10); }
.partner-strip img { width: 150px; height: 86px; object-fit: contain; }
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #241507;
  background: var(--secondary);
  box-shadow: 0 18px 40px rgba(155,65,3,.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .key-figures { grid-template-columns: 1fr; }
  .gallery-viewer { grid-template-columns: 1fr; }
  .gallery-viewer-media { min-height: min(560px, 60vh); }
  .gallery-viewer-panel { align-content: start; }
  .gallery-stage img,
  .gallery-stage video { max-height: 60vh; }
}
@media (max-width: 720px) {
  .gallery-page {
    padding-inline: 14px;
  }
  .gallery-page .gallery-search-bar {
    margin-bottom: 22px;
    padding: 10px;
  }
  .gallery-page .gallery-grid,
  .gallery-page.gallery-ready .gallery-grid,
  .gallery-page .portfolio-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .gallery-page .gallery-grid figure,
  .gallery-page.gallery-ready figure[data-gallery-category],
  .gallery-page .portfolio-grid figure,
  .gallery-page .gallery-large figure:nth-child(3n + 1),
  .gallery-page .portfolio-grid figure:nth-child(3n + 1) {
    display: block;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .gallery-page figure[data-gallery-category][hidden] {
    display: none !important;
  }
  .gallery-page .gallery-open,
  .gallery-page.gallery-ready .gallery-open {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #181411;
  }
  .gallery-page .gallery-open img,
  .gallery-page .gallery-open video,
  .gallery-page .gallery-grid img,
  .gallery-page .gallery-grid video,
  .gallery-page .portfolio-grid img,
  .gallery-page .portfolio-grid video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .gallery-page .gallery-grid figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .shop-page-tools,
  .shop-product-grid,
  .shop-product-grid .product-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  .shop-product-grid,
  .product-grid.shop-product-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    padding-inline: 16px !important;
    overflow: visible !important;
  }
  .shop-product-grid .product-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 18px;
    background: #fff;
    overflow: hidden !important;
  }
  .shop-product-grid .product-image-button {
    display: block !important;
    width: 100% !important;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    background: #fff3d8;
  }
  .shop-product-grid .product-card img,
  .shop-product-grid .product-placeholder {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .shop-product-grid .product-placeholder {
    display: grid !important;
    place-items: center;
  }
  .shop-product-grid .product-card > div {
    display: grid !important;
    gap: 8px;
  }
  .nav-links {
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(70,31,7,.18);
  }
  .nav-links a { padding: 12px 8px; }
  .hero-slider { min-height: 560px; }
  .slide { padding: 92px 20px 82px; }
  .slider-button { display: none; }
  .shop-tools { position: static; width: calc(100% - 32px); }
  .cta-band { margin: 0 16px; }
  .gallery-lightbox { width: calc(100% - 16px); }
  .gallery-viewer { min-height: calc(100vh - 16px); border-radius: 18px; }
  .gallery-viewer-media { min-height: 48vh; padding: 10px; }
  .gallery-viewer-panel { padding: 18px; }
  .gallery-nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .gallery-nav.prev { left: 18px; }
  .gallery-nav.next { right: 18px; }
  .gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-thumbs button { height: 58px; }
}

/* FDECOR refinements: social footer, contact block and admin icons */
.rich-footer .footer-social {
  align-items: center;
  gap: 10px;
}
.rich-footer .footer-social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  color: #241507;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.rich-footer .footer-social a:hover {
  transform: translateY(-3px);
  background: var(--secondary);
  border-color: var(--secondary);
}
.rich-footer .footer-social span {
  width: 26px;
  height: 26px;
  margin: 0;
  color: #241507;
  background: var(--secondary);
  border-radius: 50%;
  font-size: .95rem;
}
.rich-footer .footer-social a:hover span {
  background: #fff;
}
.contact-command {
  grid-template-columns: minmax(240px, .82fr) minmax(0, 1.55fr);
  align-items: stretch;
}
.contact-command h2,
.contact-command strong {
  color: #fff;
}
.contact-command-intro {
  display: grid;
  align-content: start;
  gap: 12px;
}
.contact-command-intro img {
  width: min(170px, 70%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 18px;
  margin-top: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  box-shadow: 0 20px 46px rgba(0,0,0,.18);
}
.contact-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.contact-methods article {
  min-height: 134px;
  align-content: start;
  background: rgba(255,255,255,.11);
}
.contact-methods article p,
.contact-methods article a {
  color: rgba(255,255,255,.84);
}
.contact-socials {
  gap: 7px;
  margin-top: 8px;
}
.contact-socials a {
  padding: 7px 9px;
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .82rem;
}
.contact-socials span {
  width: 20px;
  height: 20px;
  color: #241507;
  background: var(--secondary);
}
.admin-sidebar .nav-icon,
.admin-sidebar .nav-group button .nav-icon,
.sidebar-logout .nav-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  font-size: 1rem;
}
.admin-sidebar .nav-icon i,
.sidebar-logout .nav-icon i {
  line-height: 1;
}
.admin-sidebar .nav-group button {
  gap: 14px;
}
.admin-sidebar .nav-group button.active .nav-icon,
.admin-sidebar .nav-group button:hover .nav-icon,
.sidebar-logout:hover .nav-icon {
  color: #241507;
  background: rgba(255,255,255,.62);
  border-color: rgba(255,255,255,.72);
}
@media (max-width: 980px) {
  .contact-command,
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .contact-command-intro img {
    width: 128px;
  }
}

/* Admin polish: profile, centered notifications, agenda and detail sheets */
#adminAlerts {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.toast {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  min-width: min(460px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  padding: 22px 54px 22px 24px;
  border-radius: 22px;
  text-align: center;
  font-size: 1.05rem;
  pointer-events: auto;
  box-shadow: 0 28px 80px rgba(36,21,7,.24);
}
.toast button {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: rgba(0,0,0,.06);
  cursor: pointer;
}
.profile-menu {
  position: relative;
}
.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-clock {
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(70,31,7,.08);
  backdrop-filter: blur(12px);
}
.admin-clock strong {
  color: var(--brand);
  font-size: 1.05rem;
  line-height: 1;
}
.admin-clock span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  text-transform: capitalize;
}
.profile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 14px 34px rgba(70,31,7,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.profile-menu summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(70,31,7,.13);
}
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-avatar,
.table-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  color: #241507;
  background: var(--secondary);
  font-weight: 950;
}
.profile-avatar img,
.table-avatar.image-avatar,
.user-avatar.image-avatar,
.detail-avatar.image-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-menu > div {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 14px;
  min-width: min(360px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(70,31,7,.16);
}
.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(155,65,3,.16);
  border-radius: 50%;
  background: #fff8ec;
  color: var(--brand);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 950;
}
.profile-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,171,3,.26);
  border-radius: 12px;
  background: #fff8ec;
  color: #6b4a24;
  font-size: .84rem;
  font-weight: 800;
}
.profile-menu small { color: var(--muted); }
.profile-card-head {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8ec, #ffffff);
  border: 1px solid rgba(255,171,3,.22);
}
.profile-avatar.large {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}
.profile-card-head strong,
.profile-card-head small,
.profile-card-head em {
  display: block;
}
.profile-card-head em {
  width: fit-content;
  margin-top: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #241507;
  background: var(--secondary);
  font-size: .75rem;
  font-style: normal;
  font-weight: 950;
}
.profile-form {
  display: grid;
  gap: 10px;
}
.profile-form label {
  font-size: .82rem;
}
.profile-form input {
  min-height: 42px;
}
.fingerprint-login {
  width: 100%;
  gap: 10px;
}
.fingerprint-login i {
  color: var(--brand);
  font-size: 1.1rem;
}
.agenda-controls,
.agenda-weekdays {
  display: grid;
  grid-template-columns: 48px minmax(160px, 1fr) 190px 48px;
  gap: 10px;
  align-items: center;
  margin: 18px 0 10px;
}
.agenda-controls strong {
  color: var(--brand);
  font-size: 1.25rem;
  text-transform: capitalize;
}
.agenda-controls input {
  min-height: 42px;
}
.agenda-weekdays {
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
.agenda-grid {
  gap: 8px;
}
.agenda-day {
  min-height: 116px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fff9ef);
}
.agenda-day.outside {
  opacity: .45;
  background: #f4eee8;
}
.agenda-event {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(70,31,7,.08);
}
.quote-mini-list {
  gap: 10px !important;
}
.quote-mini-card {
  margin: 0;
}
.quote-mini-card summary {
  padding-top: 12px;
  padding-bottom: 12px;
}
.settings-users-scroll .settings-user-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.settings-card .data-list-card,
.settings-users-layout > div .data-list-card {
  max-height: 620px;
  overflow: auto;
}
.pretty-detail {
  max-width: min(860px, calc(100vw - 32px));
  border-radius: 24px;
  overflow: hidden;
}
.detail-profile-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #3b1a08);
}
.detail-profile-head h3 {
  margin: 4px 0;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1;
}
.detail-profile-head p,
.detail-profile-head span {
  color: rgba(255,255,255,.78);
  font-weight: 800;
}
.detail-visual {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 50px rgba(0,0,0,.18);
}
.detail-visual .detail-image,
.detail-visual img,
.detail-visual video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.detail-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--brand);
  background: #fff8ec;
  font-size: 3rem;
  font-weight: 950;
}
.pretty-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 22px;
  gap: 12px;
}
.pretty-grid div {
  border-radius: 16px;
  background: #fffaf2;
}
.service-admin-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 8px;
  border-radius: 14px;
  color: #241507;
  background: var(--secondary);
  font-size: 1.05rem;
  font-weight: 950;
}
.contact-command-intro {
  gap: 6px;
}
.contact-command-intro p {
  margin-top: 0;
}
.contact-command-intro img {
  width: min(210px, 86%);
}

/* Dernières finitions admin et contact */
.contact-command-intro {
  align-content: center;
  gap: 4px;
}
.contact-command-intro h2 {
  margin-bottom: 0;
}
.contact-command-intro p {
  margin: 0 0 4px;
  line-height: 1.45;
}
.contact-command-intro img {
  justify-self: center;
  width: min(150px, 62%);
  padding: 14px;
  margin-top: 8px;
  border-radius: 18px;
}
.profile-menu summary {
  min-height: 54px;
  padding: 5px 14px 5px 7px;
}
.profile-avatar {
  width: 44px;
  height: 44px;
}
.header-logout {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  font-size: 1.05rem;
}
.icon-logout-link {
  justify-content: center;
}
.toast {
  animation: toastAppear .22s ease both, toastFade 4.5s ease both;
}
@keyframes toastAppear {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastFade {
  0%, 82% { opacity: 1; }
  100% { opacity: 0; }
}
.toast.reminder {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  top: auto !important;
  min-width: min(360px, calc(100vw - 28px));
  max-width: min(440px, calc(100vw - 28px));
  padding: 16px 48px 16px 18px;
  text-align: left;
  border-radius: 18px;
}
.kpi-grid article {
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.kpi-grid article:hover,
.admin-card:hover,
.project-column article:hover,
.agenda-day:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(70,31,7,.14);
}
.kpi-grid article > i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #241507;
  background: var(--secondary);
  box-shadow: 0 12px 28px rgba(155,65,3,.16);
  transition: transform .22s ease;
}
.kpi-grid article:hover > i {
  transform: rotate(-4deg) scale(1.06);
}
.kpi-grid span {
  display: block;
  font-weight: 950;
  color: #3a2d25;
}
img.table-avatar.image-avatar,
img.user-avatar.image-avatar {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  border-radius: 50%;
  object-fit: cover;
}
img.table-avatar.image-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
}
.settings-user-create {
  padding: 0;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(70,31,7,.09);
}
.settings-user-create > summary,
.fold-card > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 20px;
  color: var(--brand);
  font-weight: 950;
  cursor: pointer;
  list-style: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.settings-user-create > summary {
  margin: 10px;
  border: 1px solid rgba(255,171,3,.34);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf0, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}
.settings-user-create > summary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #fff2cc, #ffffff);
  box-shadow: 0 16px 34px rgba(70,31,7,.10);
}
.settings-user-create > summary::-webkit-details-marker,
.fold-card > summary::-webkit-details-marker {
  display: none;
}
.fold-card > summary i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
  box-shadow: 0 12px 28px rgba(255,171,3,.22);
  transition: transform .2s ease;
}
.fold-card > summary:hover i {
  transform: rotate(-4deg) scale(1.06);
}
.settings-user-create > summary span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(70,31,7,.06);
}
.settings-user-create > .admin-card {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.settings-user-create .table-wrap {
  max-height: 380px;
}
.settings-user-create .module-checks {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.settings-users-scroll {
  padding: 0;
}
.settings-users-scroll > p,
.settings-users-scroll .settings-user-list {
  margin-left: 20px;
  margin-right: 20px;
}
.settings-users-scroll > p {
  margin-top: 0;
}
.settings-user-list.compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 0 20px;
}
.settings-user-card.compact-user-card {
  min-height: auto;
  overflow: hidden;
  border: 1px solid rgba(155,65,3,.13);
  border-radius: 18px;
  background:
    radial-gradient(circle at 6% 20%, rgba(255,171,3,.18), transparent 8rem),
    linear-gradient(135deg, #ffffff, #fff9ef);
  box-shadow: 0 16px 40px rgba(70,31,7,.08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.settings-user-card.compact-user-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,171,3,.46);
  box-shadow: 0 26px 58px rgba(70,31,7,.14);
}
.settings-user-card.compact-user-card summary {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 14px 16px;
  gap: 14px;
}
.settings-user-card.compact-user-card h3 {
  font-size: 1.05rem;
  line-height: 1.15;
}
.settings-user-card.compact-user-card p {
  font-size: .86rem;
}
.settings-user-card.compact-user-card summary > span:last-child {
  padding: 7px 10px;
  border-radius: 999px;
  color: #241507;
  background: rgba(255,171,3,.22);
  font-size: .8rem;
  font-weight: 950;
}
.settings-user-card.compact-user-card .module-pills {
  max-height: 105px;
  overflow: auto;
  padding: 0 16px 14px 88px;
}
.fold-card .data-list-card {
  margin: 0 0 16px;
}
.fold-card > .card-toolbar,
.fold-card > .project-board,
.fold-card > .agenda-controls,
.fold-card > .agenda-weekdays,
.fold-card > .agenda-grid,
.fold-card > .notice,
.fold-card > .table-wrap,
.fold-card > p {
  margin-left: 20px;
  margin-right: 20px;
}
.project-column article,
.agenda-day,
.admin-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
@media (max-width: 720px) {
  #adminAlerts {
    padding: 14px;
  }
  .toast:not(.reminder) {
    min-width: min(360px, calc(100vw - 28px));
    max-width: min(360px, calc(100vw - 28px));
    padding: 18px 46px 18px 18px;
    font-size: .98rem;
  }
  .toast.reminder {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: auto;
  }
  .settings-user-list.compact {
    grid-template-columns: 1fr;
  }
  .settings-user-create .module-checks {
    grid-template-columns: 1fr;
  }
  .agenda-controls {
    grid-template-columns: 42px 1fr 42px;
  }
  .agenda-controls input {
    grid-column: 1 / -1;
  }
  .detail-profile-head,
  .pretty-grid {
    grid-template-columns: 1fr;
  }
}

/* Retouches boutique, accueil et notifications */
.slider-button {
  z-index: 6;
  display: grid;
  place-items: center;
  border-color: rgba(255,255,255,.72);
  color: var(--brand);
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 44px rgba(36,21,7,.22);
  transition: transform .22s ease, background .22s ease, color .22s ease;
}
.slider-button:hover {
  color: #241507;
  background: var(--secondary);
  transform: translateY(-50%) scale(1.08);
}
.order-dialog {
  max-width: min(560px, calc(100% - 24px));
  border-radius: 22px;
  overflow: hidden;
}
.order-dialog form {
  max-height: min(86vh, 720px);
  overflow-y: auto;
  padding: 22px 22px 0;
}
.order-dialog .dialog-close {
  position: sticky;
  top: 0;
  z-index: 3;
  justify-self: end;
}
.order-help {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.order-dialog .whatsapp-choice {
  position: sticky;
  bottom: 0;
  z-index: 2;
  grid-template-columns: 1fr;
  margin: 4px -22px 0;
  padding: 14px 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), #fff 34%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 28px rgba(70,31,7,.06);
}
.order-dialog .whatsapp-choice .button {
  min-height: 46px;
}
.order-dialog .whatsapp-choice .button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.social-proof {
  align-items: stretch;
}
.google-review-rotator {
  position: relative;
  min-height: 206px;
}
.google-review-rotator .review-card {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  margin: 0;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.google-review-rotator .review-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.facebook-box {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,171,3,.18), transparent 20rem),
    rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 24px 70px rgba(0,0,0,.14);
}
.facebook-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.facebook-card-head > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: #241507;
  background: var(--secondary);
  border-radius: 14px;
  font-size: 1.2rem;
}
.facebook-card-head h2,
.facebook-card-head p {
  margin: 0;
}
.facebook-card-head p {
  color: rgba(255,255,255,.74);
}
.facebook-box iframe {
  width: 100%;
  min-height: 430px;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.facebook-link {
  width: fit-content;
  color: #fff !important;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.08) !important;
}
.toast {
  animation: toastBoomSoft .38s cubic-bezier(.2, 1.22, .35, 1) both, toastFade 4.8s ease both;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid;
}
.toast-message {
  min-width: 0;
}
.toast-message strong {
  display: block;
  line-height: 1.35;
}
.toast-avatar-wrap {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.toast-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 18px;
  color: #241507;
  background: var(--secondary);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(36,21,7,.16);
}
.toast-avatar.image-avatar {
  object-fit: cover;
}
.toast.toast-corner {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  top: auto !important;
  min-width: min(360px, calc(100vw - 28px));
  max-width: min(440px, calc(100vw - 28px));
  padding: 16px 48px 16px 18px;
  text-align: left;
  border-radius: 18px;
}
.toast.toast-center {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%);
  text-align: center;
}
@keyframes toastBoomSoft {
  0% { opacity: 0; transform: translateY(12px) scale(.88); }
  62% { opacity: 1; transform: translateY(0) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastBoomCenter {
  0% { opacity: 0; transform: translate(-50%, -45%) scale(.9); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1.035); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.toast.toast-center {
  animation: toastBoomCenter .38s cubic-bezier(.2, 1.22, .35, 1) both, toastFade 4.8s ease both;
}
@media (max-width: 1100px) {
  .gallery-page,
  .gallery-page .gallery-media-section,
  .gallery-page .gallery-grid,
  .gallery-page figure[data-gallery-category] {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .gallery-page figure[data-gallery-category] {
    display: block;
    min-width: 0;
  }
  .gallery-page figure[data-gallery-category][hidden] {
    display: none !important;
  }
  .gallery-page .gallery-open,
  .gallery-page .gallery-open img,
  .gallery-page .gallery-open video {
    width: 100%;
    height: auto;
    min-height: 230px;
  }
  .gallery-page .gallery-open {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .gallery-page .gallery-open img,
  .gallery-page .gallery-open video {
    height: 100%;
    object-fit: cover;
  }
  .gallery-page .portfolio-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .gallery-page .portfolio-filters button {
    flex: 0 0 auto;
  }
}
@media (max-width: 720px) {
  .slider-button {
    display: grid !important;
    top: auto;
    bottom: 22px;
    width: 42px;
    height: 42px;
    transform: none;
  }
  .slider-button:hover {
    transform: scale(1.05);
  }
  .slider-button.prev { left: 18px; }
  .slider-button.next { right: 18px; }
  .order-dialog form {
    max-height: 88vh;
    padding: 18px 18px 0;
  }
  .order-dialog .whatsapp-choice {
    margin: 2px -18px 0;
    padding: 12px 18px 16px;
  }
  .google-review-rotator {
    min-height: 230px;
  }
  .toast.toast-corner {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: auto;
  }
  .toast.toast-center {
    min-width: min(360px, calc(100vw - 28px));
    max-width: min(360px, calc(100vw - 28px));
  }
}

.order-dialog.is-open,
.product-dialog.is-open,
.gallery-lightbox.is-open {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 18px;
  overflow: auto;
  border-radius: 0;
  background: rgba(18, 9, 4, .62);
  box-shadow: none;
  transform: none;
}
.order-dialog.is-open form,
.product-dialog.is-open form {
  width: min(560px, calc(100vw - 28px));
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.product-dialog.is-open form {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.gallery-lightbox.is-open .gallery-viewer {
  width: min(1180px, calc(100vw - 28px));
}

/* Finitions FDECOR : panneaux utilisateurs plus visibles et sons d'interface */
.action-fold-card {
  overflow: hidden;
}
.action-fold-card > summary {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 16px 18px !important;
  border: 1px solid rgba(255, 171, 3, .34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 171, 3, .18), transparent 18rem),
    linear-gradient(135deg, #fffaf0, #ffffff);
  box-shadow: 0 16px 38px rgba(70, 31, 7, .08);
  cursor: pointer;
}
.action-fold-card > summary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 171, 3, .72);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 171, 3, .24), transparent 18rem),
    linear-gradient(135deg, #fff3d2, #ffffff);
  box-shadow: 0 24px 54px rgba(70, 31, 7, .13);
}
.action-fold-card .fold-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
  box-shadow: 0 14px 30px rgba(255, 171, 3, .24);
  transition: transform .22s ease;
}
.action-fold-card > summary:hover .fold-icon {
  transform: rotate(-5deg) scale(1.06);
}
.action-fold-card .fold-icon i {
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font-size: 1.12rem;
}
.action-fold-card .fold-copy {
  display: grid !important;
  gap: 3px;
  min-width: 0;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.action-fold-card .fold-copy strong {
  color: var(--brand);
  font-size: 1.05rem;
  line-height: 1.15;
}
.action-fold-card .fold-copy small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}
.action-fold-card .fold-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(155, 65, 3, .16);
  border-radius: 999px;
  color: #241507;
  background: rgba(255, 171, 3, .18);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}
.action-fold-card .fold-state::before {
  content: "Ouvrir";
}
.action-fold-card[open] .fold-state::before {
  content: "Replier";
}
.settings-user-create.action-fold-card > summary {
  margin: 12px;
}
.settings-users-scroll.action-fold-card > summary {
  margin: 12px 12px 8px;
}
.settings-users-scroll.action-fold-card .settings-user-list {
  margin-top: 12px;
}
.store-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.store-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 171, 3, .42);
  box-shadow: 0 24px 58px rgba(70, 31, 7, .14);
}

/* Transactions : suivi clair des caisses par personne/emplacement */
.transaction-panel {
  display: grid;
  gap: 18px;
}
.transaction-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.transaction-periods {
  align-items: center;
}
.transaction-periods > span,
.transaction-holder-filter span {
  color: var(--brand);
  font-weight: 950;
}
.cash-ledger {
  display: grid;
  gap: 12px;
}
.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}
.compact-heading h3 {
  margin: 0;
  color: var(--brand);
}
.compact-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.cash-ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.cash-ledger-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 171, 3, .32);
  border-radius: 18px;
  background: linear-gradient(145deg, #fffaf0, #ffffff);
  box-shadow: 0 18px 42px rgba(70, 31, 7, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cash-ledger-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 171, 3, .7);
  box-shadow: 0 28px 64px rgba(70, 31, 7, .13);
}
.cash-ledger-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cash-ledger-head > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
  box-shadow: 0 14px 30px rgba(255, 171, 3, .22);
}
.cash-ledger-head h4 {
  margin: 0;
  color: var(--brand);
  font-size: 1rem;
}
.cash-ledger-head small {
  color: var(--muted);
  font-weight: 800;
}
.cash-ledger-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}
.cash-ledger-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(155, 65, 3, .08);
}
.cash-ledger-card dt,
.cash-ledger-card dd {
  margin: 0;
}
.cash-ledger-card dt {
  color: var(--muted);
  font-weight: 850;
}
.cash-ledger-card dd {
  color: var(--brand);
  font-weight: 950;
  text-align: right;
}
.cash-balance {
  margin-top: 3px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 14px;
  background: rgba(255, 171, 3, .14);
}
.cash-balance.positive dd {
  color: #197044;
}
.cash-balance.negative dd {
  color: #a83225;
}
.transaction-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 950;
}
.transaction-type-pill.recu {
  color: #17643f;
  background: #e8f8ef;
}
.transaction-type-pill.depense {
  color: #9f2d20;
  background: #fff0ed;
}
.transaction-type-pill.transfert {
  color: #784501;
  background: #fff2cf;
}
.money-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.money-panel-toolbar h2 {
  margin: 0;
  color: var(--brand);
}
.money-panel-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
}
.icon-button.money-toggle {
  min-width: 112px;
  gap: 8px;
  color: var(--brand);
  background: linear-gradient(180deg, #fff, #fff8ec);
  border-color: rgba(255, 171, 3, .4);
}
.icon-button.money-toggle.is-hidden {
  color: #231407;
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
}
.icon-button.money-toggle span {
  font-size: .82rem;
  font-weight: 950;
}
.icon-button.move {
  color: #8a4b00;
  background: linear-gradient(180deg, #fff, #fff7df);
  border-color: rgba(255, 171, 3, .35);
}
.icon-button.move:hover {
  color: #241507;
  background: var(--secondary);
}
.admin-sidebar .nav-group [data-view] {
  cursor: grab;
}
.admin-sidebar .nav-group [data-view].module-dragging {
  opacity: .58;
  transform: scale(.98);
  cursor: grabbing;
}
@media (max-width: 720px) {
  .action-fold-card > summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .action-fold-card .fold-state {
    grid-column: 1 / -1;
    width: fit-content;
    min-width: 0;
  }
  .compact-heading {
    align-items: start;
    flex-direction: column;
  }
  .transaction-filter-row {
    align-items: stretch;
  }
  .store-location-summary,
  .store-summary {
    grid-template-columns: 1fr;
  }
  .store-location-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .store-location-card strong {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Presentation F.DECOR : page vitrine modernisee */
.presentation-page .page-hero {
  min-height: min(560px, calc(100vh - 76px));
  align-items: center;
}
.presentation-page .page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
}
.presentation-page .page-hero p {
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 800;
}
.presentation-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
}
.presentation-intro-copy,
.presentation-signature-card,
.services-showcase-grid article,
.process-timeline article,
.vision-card,
.values-card {
  border: 1px solid rgba(155, 65, 3, .12);
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 70px rgba(70, 31, 7, .10);
}
.presentation-intro-copy {
  padding: clamp(26px, 4vw, 48px);
}
.presentation-intro-copy h2,
.services-showcase .section-heading h2,
.reasons-band h2,
.process-section .section-heading h2,
.vision-values h2,
.presentation-closing h2 {
  color: var(--brand);
}
.presentation-intro-copy p {
  color: #4f4037;
  font-size: 1.04rem;
  line-height: 1.85;
}
.presentation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.presentation-actions .button,
.presentation-closing .button {
  gap: 9px;
}
.presentation-signature-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 420px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  color: #fff;
  background:
    linear-gradient(155deg, rgba(36, 21, 7, .22), rgba(36, 21, 7, .86)),
    url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1200&q=85") center/cover;
}
.presentation-signature-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 22px;
  pointer-events: none;
}
.presentation-signature-card span {
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #241507;
  background: var(--secondary);
  font-weight: 950;
}
.presentation-signature-card strong {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}
.presentation-signature-card p {
  position: relative;
  max-width: 420px;
  color: rgba(255, 255, 255, .82);
  font-weight: 750;
}
.services-showcase {
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 171, 3, .18), transparent 24rem),
    linear-gradient(180deg, #fffaf0, #ffffff);
}
.services-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.services-showcase-grid article {
  display: grid;
  gap: 16px;
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.services-showcase-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 171, 3, .58);
  box-shadow: 0 30px 80px rgba(70, 31, 7, .14);
}
.services-showcase-grid i {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #241507;
  background: linear-gradient(135deg, var(--secondary), #ffd36a);
  box-shadow: 0 16px 34px rgba(255, 171, 3, .24);
  font-size: 1.3rem;
}
.services-showcase-grid h3 {
  margin: 0;
  color: #2e1c10;
  font-size: 1.03rem;
}
.reasons-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 171, 3, .22), transparent 24rem),
    linear-gradient(135deg, #241507, #713304);
}
.reasons-band .eyebrow,
.presentation-closing span {
  color: #241507;
  background: var(--secondary);
}
.reasons-band h2 {
  color: #fff;
}
.reasons-band p {
  color: rgba(255, 255, 255, .78);
  font-weight: 750;
}
.reasons-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reasons-band li {
  position: relative;
  padding: 14px 14px 14px 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  font-weight: 850;
}
.reasons-band li::before {
  content: "\f00c";
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #241507;
  background: var(--secondary);
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free";
  font-size: .72rem;
  font-weight: 900;
}
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.process-timeline article {
  position: relative;
  overflow: hidden;
  padding: 26px;
}
.process-timeline article::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 171, 3, .14);
}
.process-timeline span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #241507;
  background: var(--secondary);
  font-weight: 950;
}
.process-timeline h3 {
  margin: 18px 0 8px;
  color: var(--brand);
}
.process-timeline p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}
.vision-values {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 22px;
}
.vision-card,
.values-card {
  padding: clamp(26px, 4vw, 42px);
}
.vision-card {
  background:
    radial-gradient(circle at 96% 0%, rgba(255, 171, 3, .2), transparent 20rem),
    #fff;
}
.vision-card p {
  color: #4f4037;
  font-size: 1.03rem;
  line-height: 1.8;
}
.presentation-values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.presentation-values span {
  padding: 12px 15px;
  border: 1px solid rgba(155, 65, 3, .12);
  border-radius: 999px;
  color: #2d1a0e;
  background: #fff8ec;
  font-weight: 950;
}
.presentation-closing {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 171, 3, .26), transparent 22rem),
    linear-gradient(135deg, #241507, #8b3b04);
}
.presentation-closing span {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 950;
}
.presentation-closing h2 {
  max-width: 920px;
  margin: 0;
  color: #fff;
}
@media (max-width: 980px) {
  .presentation-intro,
  .reasons-band,
  .vision-values {
    grid-template-columns: 1fr;
  }
  .services-showcase-grid,
  .process-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .presentation-page .page-hero {
    min-height: 420px;
  }
  .presentation-actions,
  .presentation-actions .button,
  .presentation-closing .button {
    width: 100%;
  }
  .services-showcase-grid,
  .process-timeline,
  .reasons-band ul {
    grid-template-columns: 1fr;
  }
  .presentation-signature-card {
    min-height: 330px;
  }
}
/* Boutique F.DECOR : design inspire de la nouvelle maquette */
.shop-page {
  background:
    radial-gradient(circle at 8% 14%, rgba(255,171,3,.12), transparent 24rem),
    linear-gradient(180deg, #fffaf2 0, #fff 28rem);
}
.shop-hero-modern {
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 56px clamp(18px, 6vw, 86px);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.shop-hero-content { width: min(980px, 100%); }
.shop-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}
.shop-breadcrumb a { color: #fff; }
.shop-breadcrumb i { color: var(--secondary); font-size: .7rem; }
.shop-hero-modern h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: .95;
  letter-spacing: -.06em;
}
.shop-hero-modern p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.shop-hero-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin-top: 36px;
}
.shop-hero-services span,
.shop-service-strip article {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-hero-services i,
.shop-service-strip i {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  color: var(--secondary);
  border: 1px solid rgba(255,171,3,.5);
  border-radius: 14px;
}
.shop-hero-services b,
.shop-hero-services small,
.shop-service-strip b,
.shop-service-strip span { display: block; }
.shop-hero-services small { color: rgba(255,255,255,.68); }
.shop-catalog-shell { padding-bottom: 10px; }
.shop-category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}
.shop-category-tabs button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  color: #271408;
  background: #fff;
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(70,31,7,.06);
  font-weight: 850;
  cursor: pointer;
}
.shop-category-tabs button.active,
.shop-category-tabs button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #b95607 55%, var(--secondary));
  border-color: transparent;
}
.shop-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}
.shop-section-head h2 {
  margin: 6px 0 0;
  color: #160d08;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}
.shop-page .shop-tools {
  position: static;
  width: auto;
  min-width: min(430px, 100%);
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}
.shop-page .shop-tools input,
.shop-page .shop-tools select {
  min-height: 46px;
  background: #fff;
  border-color: rgba(155,65,3,.16);
  box-shadow: 0 12px 28px rgba(70,31,7,.05);
}
.shop-product-grid,
.product-grid.shop-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
  padding-top: 10px;
  gap: 20px;
}
.shop-product-card {
  position: relative;
  border-radius: 14px;
  border-color: rgba(155,65,3,.10);
  box-shadow: 0 16px 38px rgba(70,31,7,.09);
}
.shop-product-card .product-image-button {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #fff2d3;
}
.shop-product-card img,
.shop-product-card .product-placeholder {
  height: 220px;
  transition: transform .35s ease;
}
.shop-product-card:hover img { transform: scale(1.045); }
.product-badge,
.product-favorite {
  position: absolute;
  z-index: 2;
  top: 12px;
}
.product-badge {
  left: 12px;
  padding: 7px 10px;
  color: #fff;
  background: #160d08;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
}
.product-favorite {
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--brand);
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(70,31,7,.14);
}
.shop-product-card .product-card-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
}
.product-category {
  color: var(--brand);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.shop-product-card h2 {
  min-height: 0;
  margin: 0;
  color: #21140d;
  font-size: 1.02rem;
}
.shop-product-card p {
  min-height: 42px;
  margin: 0;
}
.shop-product-card strong {
  margin: 2px 0 0;
  color: #120b07;
  font-size: 1.18rem;
}
.shop-product-card small { color: var(--muted); }
.shop-product-card .button.primary {
  color: #fff;
  background: #120b07;
}
.shop-product-card .button.primary:hover { background: var(--brand); }
.shop-service-strip {
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px auto 0;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(155,65,3,.10);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(70,31,7,.07);
}
.shop-service-strip article {
  padding: 4px 18px;
  border-right: 1px solid rgba(155,65,3,.12);
}
.shop-service-strip article:last-child { border-right: 0; }
.shop-service-strip i {
  color: var(--brand);
  border-color: rgba(155,65,3,.18);
  background: #fff7e8;
}
.shop-service-strip b { color: #21140d; }
.shop-service-strip span { color: var(--muted); font-size: .88rem; }
.shop-whatsapp-cta {
  width: min(1120px, calc(100% - 40px));
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 18px auto 56px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18,11,7,.96), rgba(43,22,9,.78)),
    url('https://images.unsplash.com/photo-1618220179428-22790b461013?auto=format&fit=crop&w=1600&q=80') center/cover;
  border-radius: 14px;
}
.shop-whatsapp-cta h2 {
  max-width: 460px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}
.shop-whatsapp-cta p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.82);
}
.shop-whatsapp-cta .button {
  flex: 0 0 auto;
  color: #17100a;
  background: #fff;
}
.site-footer-shop {
  grid-template-columns: 1.25fr .7fr .9fr 1fr 1fr;
  gap: clamp(18px, 3vw, 34px);
  padding-top: 54px;
  padding-bottom: 42px;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,171,3,.18), transparent 22rem),
    linear-gradient(135deg, #120b07, #261104 62%, #0c0806);
}
.site-footer-shop::before { content: none; }
.site-footer-shop strong {
  display: block;
  color: #fff;
  font-size: 1.65rem;
  letter-spacing: -.04em;
}
.site-footer-shop h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: .88rem;
  letter-spacing: .04em;
}
.site-footer-shop a,
.site-footer-shop p {
  color: rgba(255,255,255,.72);
}
.site-footer-shop a:hover { color: var(--secondary); }
.site-footer-shop .footer-brand > span {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-weight: 850;
}
.site-footer-shop .footer-quote-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 13px;
  color: #1d1108;
  background: var(--secondary);
  border-radius: 10px;
  font-weight: 900;
}
.footer-newsletter form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.footer-newsletter input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: rgba(255,255,255,.95);
}
.footer-newsletter button {
  min-height: 44px;
  padding: 0 14px;
  color: #1d1108;
  background: var(--secondary);
  border: 0;
  border-radius: 9px;
  font-weight: 900;
}
@media (max-width: 1080px) {
  .shop-hero-services,
  .shop-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-product-grid,
  .product-grid.shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shop-hero-modern { min-height: 500px; padding: 44px 18px; }
  .shop-hero-services,
  .shop-service-strip,
  .shop-product-grid,
  .product-grid.shop-product-grid,
  .site-footer-shop { grid-template-columns: 1fr !important; }
  .shop-section-head,
  .shop-whatsapp-cta {
    align-items: stretch;
    flex-direction: column;
  }
  .shop-page .shop-tools {
    min-width: 0;
    width: 100%;
    flex-direction: column;
  }
  .shop-product-grid,
  .product-grid.shop-product-grid {
    width: 100% !important;
    padding-inline: 16px !important;
  }
  .shop-service-strip,
  .shop-whatsapp-cta { width: calc(100% - 32px); }
  .shop-service-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(155,65,3,.12);
    padding: 12px 4px;
  }
  .shop-service-strip article:last-child { border-bottom: 0; }
  .footer-newsletter form { flex-direction: column; }
}

/* Securite boutique : les produits restent visibles meme si l'animation JS ne demarre pas. */
.shop-page [data-reveal],
.shop-page .shop-hero-modern,
.shop-page .shop-catalog-shell,
.shop-page .shop-product-grid,
.shop-page .shop-product-card,
.shop-page .shop-service-strip,
.shop-page .shop-whatsapp-cta {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.shop-page .shop-product-card[hidden] {
  display: none !important;
}
.shop-page .shop-product-grid {
  display: grid !important;
}

/* Module QR Code */
.qr-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,171,3,.34), transparent 22rem),
    linear-gradient(135deg, #2a1306, #9b4103);
  overflow: hidden;
}
.qr-hero-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ffd68a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.qr-hero-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.qr-hero-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.qr-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(70,31,7,.08);
}
.qr-preview {
  display: grid;
  place-items: center;
  min-height: 118px;
  background: #fff8ec;
  border: 1px solid rgba(155,65,3,.14);
  border-radius: 16px;
}
.qr-preview img {
  width: 102px;
  height: 102px;
  object-fit: contain;
}
.qr-preview i {
  color: var(--brand);
  font-size: 3rem;
}
.qr-card-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.qr-card-body span {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.qr-card-body h3 {
  margin: 0;
  color: #20130b;
}
.qr-card-body p {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}
.qr-stat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: #3a2110;
  background: #fff8ec;
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 12px;
}
.qr-stat-line strong {
  color: var(--brand);
  font-size: 1.2rem;
}
.qr-stat-line span {
  color: #3a2110;
  font-size: .84rem;
}
.qr-stat-line small {
  width: 100%;
  color: var(--muted);
}
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.qr-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fff8ec;
  border: 1px solid rgba(155,65,3,.12);
  border-radius: 16px;
}
.qr-current img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}
@media (max-width: 760px) {
  .qr-hero-card,
  .qr-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .qr-hero-card {
    flex-direction: column;
  }
}

/* Module Banque */
.bank-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,171,3,.34), transparent 21rem),
    linear-gradient(135deg, #130b07, #67300a 58%, #9b4103);
}
.bank-hero-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ffd68a;
  font-weight: 900;
  text-transform: uppercase;
}
.bank-hero-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.bank-hero-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.82);
}
.bank-balance {
  min-width: 240px;
  padding: 18px 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  text-align: right;
}
.bank-balance small {
  display: block;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}
.bank-balance strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.45rem;
}
.bank-kpis {
  margin: 18px 0;
}
@media (max-width: 760px) {
  .bank-hero-card {
    flex-direction: column;
    align-items: stretch;
  }
  .bank-balance {
    min-width: 0;
    text-align: left;
  }
}
.transaction-rule {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(155, 65, 3, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.95));
  color: #4a2a17;
}

.transaction-rule > i {
  margin-top: 0.15rem;
  color: var(--primary, #9b4103);
  font-size: 1.15rem;
}

.transaction-rule div,
.transaction-rule span {
  display: block;
}

.transaction-rule span {
  margin-top: 0.2rem;
  color: #6b5749;
  line-height: 1.45;
}

.transaction-kpis article small {
  display: block;
  margin-top: 0.25rem;
  color: #76685f;
  font-size: 0.72rem;
}

.transaction-type-badge {
  gap: 0.35rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .transaction-rule { padding: 0.85rem; }
}

.task-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #20130c 0%, #5f2807 58%, #9b4103 100%);
  color: #fff;
}

.task-hero > div > span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: #ffd39a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.task-hero h2 { margin: 0.35rem 0 0.2rem; font-size: clamp(1.45rem, 3vw, 2.25rem); }
.task-hero p { margin: 0; max-width: 690px; color: rgba(255,255,255,.78); }
.task-hero .button.primary { background: #fff; color: #7b3306; border-color: #fff; white-space: nowrap; }
.task-user-badge { padding: 0.75rem 1rem; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.1); }

.task-dashboard { margin-top: 1rem; }
.task-toolbar { display: grid; gap: 1rem; }
.task-toolbar .segmented { justify-content: flex-start; }
.task-filter-group { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: end; }
.task-filter-group .search-control { flex: 1 1 260px; }
.task-filter-group label { display: grid; gap: 0.25rem; min-width: 160px; color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.task-filter-group select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 0.65rem; background: #fff; }
.task-kpis { margin-top: 1.2rem; grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.task-kpis article { min-height: 116px; }
.task-kpis article small { display: block; color: var(--muted); font-size: 0.72rem; }
.task-kpis .success > i { color: #16834b; }
.task-kpis .warning > i { color: #d47b00; }
.task-kpis .danger > i { color: #c02e2e; }

.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
  overflow-x: auto;
  align-items: start;
}

.task-column { min-width: 260px; padding: 0.8rem; border: 1px solid var(--line); border-radius: 16px; background: #f7f4f1; }
.task-column > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; padding: 0 0.15rem; }
.task-column > header h3 { margin: 0; font-size: 0.95rem; }
.task-column > header span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 0.4rem; border-radius: 999px; background: #e7ddd6; color: #654536; font-weight: 800; font-size: 0.75rem; }
.task-column.a_valider { background: #fff9e9; border-color: #f0d99b; }
.task-column.terminee { background: #f1f8f4; border-color: #c8e4d3; }
.task-column > div { display: grid; gap: 0.75rem; }

.task-card { padding: 1rem; border: 1px solid #e3dad4; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(63,33,16,.055); }
.task-card.overdue { border-color: #e1a5a5; box-shadow: inset 4px 0 #c53b3b, 0 8px 20px rgba(91,28,28,.07); }
.task-card-head { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.task-card-head > div { display: flex; gap: 0.35rem; align-items: center; }
.task-priority, .task-status, .task-carry { display: inline-flex; gap: 0.3rem; align-items: center; padding: 0.28rem 0.48rem; border-radius: 999px; font-size: 0.67rem; font-weight: 800; }
.task-priority { background: #eee8e4; color: #6c574b; }
.task-priority.haute { background: #fff0d9; color: #a65b00; }
.task-priority.urgente { background: #ffe4e4; color: #b42323; }
.task-priority.basse { background: #e9f4ef; color: #31735a; }
.task-status { background: #eee8e4; color: #5f5149; }
.task-status.en_cours { background: #e5efff; color: #235fa9; }
.task-status.a_valider { background: #fff1c9; color: #8b5c00; }
.task-status.terminee { background: #dff4e7; color: #197147; }
.task-status.bloquee, .task-card.overdue .task-status { background: #ffe2e2; color: #a82828; }
.task-carry { background: #f1e7ff; color: #7044a0; }
.task-card h4 { margin: 0.75rem 0 0.35rem; font-size: 1rem; line-height: 1.3; }
.task-card > p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.task-meta { display: grid; gap: 0.42rem; margin: 0.9rem 0; }
.task-meta > div { display: flex; justify-content: space-between; gap: 0.7rem; font-size: 0.74rem; }
.task-meta dt { color: var(--muted); }
.task-meta dd { margin: 0; text-align: right; font-weight: 750; }
.task-progress > div { display: flex; justify-content: space-between; margin-bottom: 0.3rem; font-size: 0.72rem; }
.task-progress progress, .task-report progress { width: 100%; height: 8px; accent-color: var(--brand); }
.task-note { display: flex; gap: 0.45rem; margin-top: 0.75rem; padding: 0.6rem; border-radius: 9px; background: #f8f3ef; color: #5e514a; font-size: 0.74rem; line-height: 1.4; }
.task-card-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem; }
.task-card-actions .button.small { min-height: 34px; padding: 0.38rem 0.58rem; font-size: 0.7rem; }
.task-empty { margin: 0; padding: 1rem; border: 1px dashed #d8ccc4; border-radius: 11px; color: var(--muted); text-align: center; font-size: 0.8rem; }

.task-report { margin-top: 1rem; }
.task-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 0.85rem; }
.task-report-grid > article { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,#fff,#faf7f5); }
.task-report-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.65rem; }
.task-report-head > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #8b3a08; color: #fff; font-weight: 800; }
.task-report-head h3 { margin: 0; font-size: 0.92rem; }
.task-report-head small { color: var(--muted); }
.task-report-head > strong { color: #8b3a08; font-size: 1.1rem; }
.task-report-grid progress { margin: 0.8rem 0; }
.task-report-grid dl { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.55rem; margin: 0; }
.task-report-grid dl > div { padding: 0.55rem; border-radius: 9px; background: #f4efec; }
.task-report-grid dt { color: var(--muted); font-size: 0.67rem; }
.task-report-grid dd { margin: 0.15rem 0 0; font-weight: 800; }
.task-dialog .admin-form { max-width: 820px; }
.task-dialog .dialog-head small { display: block; margin-top: 0.2rem; color: var(--muted); }

@media (max-width: 1200px) {
  .task-kpis { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 760px) {
  .task-hero { align-items: flex-start; flex-direction: column; }
  .task-kpis { grid-template-columns: repeat(2,1fr); }
  .task-board { grid-template-columns: repeat(4, 82vw); }
  .task-filter-group > * { width: 100%; }
}

@media print {
  body.printing-tasks .admin-sidebar,
  body.printing-tasks .admin-header,
  body.printing-tasks #adminAlerts,
  body.printing-tasks .task-hero .button,
  body.printing-tasks .task-card-actions,
  body.printing-tasks .task-filter-group,
  body.printing-tasks dialog { display: none !important; }
  body.printing-tasks .admin-main { margin: 0 !important; padding: 0 !important; }
  body.printing-tasks .task-board { grid-template-columns: repeat(2,1fr); overflow: visible; }
  body.printing-tasks .task-card { break-inside: avoid; box-shadow: none; }
}
