/* =========================================================
   StudioTomysCreation — Sites démo par métier
   Styles partagés : vitrine homepage + sites démo complets.
   Réutilise les tokens de css/style.css (chargé avant ce fichier).
   ========================================================= */

/* ---------------------------------------------------------
   1. Vitrine homepage — section "Sites démo par métier"
   --------------------------------------------------------- */
.demo-showcase {
  margin-top: clamp(3rem, 8vw, 5rem);
}

.demo-showcase-intro {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.demo-showcase-intro h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  margin-block: 0.75rem 1.1rem;
}

.demo-showcase-intro p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.demo-showcase-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--stc-ink-faint);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--stc-line-strong);
  border-radius: 999px;
}

.demo-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.25rem);
}

.demo-showcase-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stc-line);
  border-radius: var(--radius-lg);
  background: var(--stc-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

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

.demo-showcase-preview-link {
  display: block;
  position: relative;
}

.demo-showcase-badge {
  position: absolute;
  top: clamp(1.1rem, 3vw, 1.6rem);
  left: clamp(1.1rem, 3vw, 1.6rem);
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fdfaf5;
  background: rgba(24, 18, 12, 0.72);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.demo-showcase-mock {
  margin: clamp(1rem, 3vw, 1.5rem);
  pointer-events: none;
}

.demo-showcase-screen {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--stc-bg-alt);
}

.demo-showcase-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.demo-showcase-body {
  padding: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--stc-line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-showcase-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stc-accent);
}

.demo-showcase-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.1rem;
}

.demo-showcase-tags {
  font-size: 0.92rem;
  color: var(--stc-ink-faint);
  margin-bottom: 0.75rem;
}

.demo-showcase-body .btn {
  align-self: flex-start;
}

@media (max-width: 760px) {
  .demo-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   2. Thèmes des sites démo — overrides de tokens par métier
   --------------------------------------------------------- */
body.demo-site {
  background: var(--stc-bg);
}

body.theme-boulangerie {
  --stc-bg: #f8f1e4;
  --stc-bg-alt: #f0e3cb;
  --stc-surface: #fffbf3;
  --stc-ink: #3a2a1d;
  --stc-ink-soft: #6b5842;
  --stc-ink-faint: #9c8a73;
  --stc-line: rgba(58, 42, 29, 0.12);
  --stc-line-strong: rgba(58, 42, 29, 0.22);
  --stc-accent: #b2672f;
  --stc-accent-ink: #fffbf3;
  --stc-accent-soft: rgba(178, 103, 47, 0.12);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif", serif;
}

body.theme-esthetique {
  --stc-bg: #faf6f1;
  --stc-bg-alt: #f1e9dd;
  --stc-surface: #ffffff;
  --stc-ink: #3d3530;
  --stc-ink-soft: #6e6259;
  --stc-ink-faint: #a79a8d;
  --stc-line: rgba(61, 53, 48, 0.1);
  --stc-line-strong: rgba(61, 53, 48, 0.18);
  --stc-accent: #b08c5c;
  --stc-accent-ink: #2c241d;
  --stc-accent-soft: rgba(176, 140, 92, 0.16);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

body.theme-producteur {
  --stc-bg: #f5f2ea;
  --stc-bg-alt: #ece6d6;
  --stc-surface: #ffffff;
  --stc-ink: #22321c;
  --stc-ink-soft: #4b5a3f;
  --stc-ink-faint: #8b9280;
  --stc-line: rgba(34, 50, 28, 0.12);
  --stc-line-strong: rgba(34, 50, 28, 0.22);
  --stc-accent: #2c4a27;
  --stc-accent-ink: #f5f2ea;
  --stc-accent-soft: rgba(44, 74, 39, 0.12);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

body.theme-primeur {
  --stc-bg: #f8f7f2;
  --stc-bg-alt: #edf0e3;
  --stc-surface: #ffffff;
  --stc-ink: #16271a;
  --stc-ink-soft: #3d4f36;
  --stc-ink-faint: #8a9480;
  --stc-line: rgba(22, 39, 23, 0.12);
  --stc-line-strong: rgba(22, 39, 23, 0.22);
  --stc-accent: #e8611a;
  --stc-accent-ink: #fff8f0;
  --stc-accent-soft: rgba(232, 97, 26, 0.14);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

/* ---------------------------------------------------------
   3. Bandeau de démonstration (toutes pages démo)
   --------------------------------------------------------- */
.demo-banner {
  background: var(--stc-ink);
  color: var(--stc-bg);
}

.demo-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  padding-block: 0.55rem;
  font-size: 0.82rem;
  text-align: center;
}

.demo-banner-inner strong {
  font-weight: 700;
}

.demo-banner-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   4. Header / navigation du site démo
   --------------------------------------------------------- */
.demo-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--stc-bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.demo-header.is-scrolled {
  border-bottom-color: var(--stc-line);
  box-shadow: var(--shadow-soft);
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.demo-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.demo-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--stc-ink);
}

.demo-brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stc-ink-faint);
}

.demo-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.demo-nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--stc-ink-soft);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.demo-nav-link:hover {
  color: var(--stc-ink);
  border-color: var(--stc-accent);
}

.demo-nav-cta {
  white-space: nowrap;
}

.demo-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stc-line-strong);
  border-radius: 999px;
}

.demo-nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 12px;
  display: block;
}

.demo-nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--stc-ink);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.demo-nav-toggle-bars span:nth-child(1) { top: 0; }
.demo-nav-toggle-bars span:nth-child(2) { top: 5px; }
.demo-nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-open .demo-nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .demo-nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .demo-nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .demo-nav-links {
    position: fixed;
    inset: 108px var(--space-md) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--stc-surface);
    border: 1px solid var(--stc-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease),
      visibility var(--dur-fast);
  }

  .nav-open .demo-nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .demo-nav-link {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: none;
  }

  .demo-nav-toggle {
    display: inline-flex;
  }

  .demo-nav-cta {
    display: none;
  }
}

/* ---------------------------------------------------------
   5. Hero du site démo
   --------------------------------------------------------- */
.demo-hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 7rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 0%, var(--stc-accent-soft), transparent 55%),
    linear-gradient(180deg, var(--stc-bg-alt) 0%, var(--stc-bg) 70%);
}

.demo-hero-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.demo-hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stc-accent);
  margin-bottom: 1.1rem;
}

.demo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  color: var(--stc-ink);
  margin-bottom: 1.3rem;
}

.demo-hero-lede {
  font-size: 1.1rem;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  color: var(--stc-ink-soft);
}

.demo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.demo-hero-motif {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Boutons recolorés au theme du site demo */
.demo-site .btn-primary {
  background: var(--stc-ink);
  color: var(--stc-bg);
}

.demo-site .btn-ghost {
  color: var(--stc-ink);
  border-color: var(--stc-line-strong);
}

.demo-site .btn-accent {
  background: var(--stc-accent);
  color: var(--stc-accent-ink);
}

/* ---------------------------------------------------------
   6. Sections génériques du site démo
   --------------------------------------------------------- */
.demo-section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

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

.demo-section-head {
  max-width: 620px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.demo-section-head.center {
  margin-inline: auto;
  text-align: center;
}

.demo-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  color: var(--stc-ink);
  margin-bottom: 0.75rem;
}

.demo-section-head p {
  font-size: 1.05rem;
}

.demo-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stc-accent);
  margin-bottom: 0.6rem;
}

/* Grilles de cartes */
.demo-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.demo-grid-4 { grid-template-columns: repeat(4, 1fr); }
.demo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.demo-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .demo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .demo-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .demo-grid-4,
  .demo-grid-3,
  .demo-grid-2 {
    grid-template-columns: 1fr;
  }
}

.demo-card {
  background: var(--stc-surface);
  border: 1px solid var(--stc-line);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 1.85rem);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.demo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.demo-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--stc-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.demo-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--stc-accent);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-card h3 {
  font-size: 1.1rem;
  color: var(--stc-ink);
  margin-bottom: 0.4rem;
}

.demo-card p {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.demo-card-price {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--stc-accent);
}

/* Bloc editorial deux colonnes (savoir-faire / experience) */
.demo-editorial {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.demo-editorial-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--stc-bg-alt), var(--stc-accent-soft));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-editorial-visual svg {
  width: 48%;
  height: 48%;
  stroke: var(--stc-accent);
  fill: none;
  stroke-width: 1.2;
  opacity: 0.85;
}

.demo-editorial-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  color: var(--stc-ink);
  margin-bottom: 1rem;
}

.demo-editorial-copy p {
  margin-bottom: 0.9rem;
}

@media (max-width: 760px) {
  .demo-editorial {
    grid-template-columns: 1fr;
  }

  .demo-editorial-visual {
    order: -1;
  }
}

/* ---------------------------------------------------------
   7. Commande (boulangerie)
   --------------------------------------------------------- */
.demo-order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 760px) {
  .demo-order-grid {
    grid-template-columns: 1fr;
  }
}

.demo-order-tab {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  border: 1px solid var(--stc-line);
  border-radius: var(--radius-md);
  background: var(--stc-surface);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.demo-order-tab[aria-selected="true"] {
  border-color: var(--stc-accent);
  box-shadow: var(--shadow-soft);
}

.demo-order-tab h3 {
  font-size: 1.02rem;
  color: var(--stc-ink);
  margin-bottom: 0.35rem;
}

.demo-order-tab p {
  font-size: 0.9rem;
  margin: 0;
}

.demo-order-panel {
  background: var(--stc-surface);
  border: 1px solid var(--stc-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: none;
}

.demo-order-panel.is-active {
  display: block;
}

.demo-order-panel h3 {
  font-family: var(--font-display);
  color: var(--stc-ink);
  margin-bottom: 0.6rem;
}

.demo-order-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ---------------------------------------------------------
   8. Horaires & accès
   --------------------------------------------------------- */
.demo-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (max-width: 760px) {
  .demo-hours-grid {
    grid-template-columns: 1fr;
  }
}

.demo-hours-table {
  width: 100%;
  border-collapse: collapse;
}

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

.demo-hours-table td {
  padding: 0.65rem 0;
  font-size: 0.95rem;
  color: var(--stc-ink-soft);
}

.demo-hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--stc-ink);
}

.demo-address-card {
  background: var(--stc-surface);
  border: 1px solid var(--stc-line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.demo-address-card p {
  margin-bottom: 0.3rem;
}

.demo-fictif-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stc-ink-faint);
  margin-top: 0.5rem;
}

.demo-map-stylised {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stc-line);
  position: relative;
  overflow: hidden;
  background: var(--stc-bg-alt);
}

.demo-map-stylised svg {
  width: 100%;
  height: 100%;
}

.demo-map-caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stc-ink-faint);
  background: color-mix(in srgb, var(--stc-surface) 85%, transparent);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

/* ---------------------------------------------------------
   9. Prise de rendez-vous / module de démonstration (esthétique)
   --------------------------------------------------------- */
.demo-module-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stc-accent);
  background: var(--stc-accent-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.demo-booking {
  max-width: 560px;
  margin-inline: auto;
  background: var(--stc-surface);
  border: 1px solid var(--stc-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}

.demo-field {
  margin-bottom: 1.1rem;
}

.demo-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stc-ink);
  margin-bottom: 0.4rem;
}

.demo-field select,
.demo-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--stc-line-strong);
  border-radius: var(--radius-sm);
  background: var(--stc-bg);
  color: var(--stc-ink);
  font: inherit;
}

.demo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.demo-booking .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.demo-toast {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--stc-accent-soft);
  color: var(--stc-ink);
  font-size: 0.9rem;
  display: none;
}

.demo-toast.is-visible {
  display: block;
}

/* ---------------------------------------------------------
   10. Tarifs
   --------------------------------------------------------- */
.demo-pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.demo-pricing-card .demo-card-price {
  font-size: 1.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ---------------------------------------------------------
   11. Footer du site démo
   --------------------------------------------------------- */
.demo-footer {
  background: var(--stc-ink);
  color: var(--stc-bg);
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}

.demo-footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.demo-footer p {
  color: color-mix(in srgb, var(--stc-bg) 70%, transparent);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.demo-footer-back {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--stc-bg);
}

/* ---------------------------------------------------------
   12. Accessibilité mouvement
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .demo-showcase-card,
  .demo-card {
    transition: none;
  }
}
