/* ==========================================================================
   Sites de démonstration — feuille de style commune
   --------------------------------------------------------------------------
   Ces trois démos partagent la même structure mais PAS la même identité :
   chaque page redéfinit les variables ci-dessous dans son propre <style>.
   C'est exactement la méthode utilisée sur le site principal — et la preuve
   qu'un même socle bien construit donne des résultats très différents.

   Sommaire :
   1. Variables (redéfinies par chaque démo)
   2. Bandeau « démonstration »
   3. Bases et mise en page
   4. En-tête et navigation
   5. Hero
   6. Sections, cartes, listes
   7. Formulaire et pied de page
   8. Responsive
   ========================================================================== */

/* ---------- 1. VARIABLES : valeurs par défaut, écrasées par chaque démo --- */
:root {
  --d-bg: #ffffff;
  --d-bg-alt: #f7f5f2;
  --d-surface: #ffffff;
  --d-text: #2b2b2b;
  --d-muted: #6b6b6b;
  --d-heading: #1a1a1a;
  --d-accent: #c1553a;
  --d-accent-contrast: #ffffff;
  --d-dark: #241d19;
  --d-border: #e6e1da;
  --d-radius: 10px;
  --d-font-titre: Georgia, 'Times New Roman', serif;
  --d-font-texte: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --d-max: 1080px;
}

/* ---------- 2. BANDEAU « DÉMONSTRATION » ---------------------------------
   Honnêteté d'abord : le visiteur doit comprendre en une seconde que ce site
   est un exemple, pas l'établissement réel.
   ------------------------------------------------------------------------ */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d1b2a;
  color: #fff;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  padding: 9px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  text-align: center;
}
.demo-bar strong { color: #8fb0ff; }
.demo-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.demo-bar a:hover { color: #8fb0ff; }

/* ---------- 3. BASES ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--d-bg);
  color: var(--d-text);
  font-family: var(--d-font-texte);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--d-accent); }

h1, h2, h3 {
  font-family: var(--d-font-titre);
  color: var(--d-heading);
  line-height: 1.15;
  margin: 0 0 14px;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }

:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 3px; }

.d-wrap { max-width: var(--d-max); margin: 0 auto; padding: 0 20px; }
.d-section { padding: 64px 0; }
.d-section--alt { background: var(--d-bg-alt); }
.d-section--dark { background: var(--d-dark); color: #fff; }
.d-section--dark h2, .d-section--dark h3 { color: #fff; }
.d-center { text-align: center; }
.d-lead { font-size: 1.1rem; color: var(--d-muted); max-width: 60ch; }
.d-center .d-lead { margin-left: auto; margin-right: auto; }
.d-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--d-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.d-btn {
  display: inline-block;
  background: var(--d-accent);
  color: var(--d-accent-contrast);
  padding: 14px 28px;
  border-radius: var(--d-radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--d-accent);
  transition: transform 200ms ease, opacity 200ms ease;
}
.d-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.d-btn--ghost { background: transparent; color: var(--d-accent); }
.d-section--dark .d-btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.d-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.d-center .d-btns { justify-content: center; }

/* ---------- 4. EN-TÊTE ---------------------------------------------------- */
.d-header {
  border-bottom: 1px solid var(--d-border);
  background: var(--d-bg);
}
.d-header .d-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.d-logo {
  font-family: var(--d-font-titre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--d-heading);
  text-decoration: none;
  line-height: 1.1;
}
.d-logo span { display: block; font-family: var(--d-font-texte); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--d-muted); font-weight: 600; }
.d-nav { display: none; gap: 22px; }
.d-nav a { color: var(--d-text); text-decoration: none; font-size: 15px; font-weight: 500; }
.d-nav a:hover { color: var(--d-accent); }
.d-header .d-btn { padding: 10px 18px; font-size: 14px; }

/* ---------- 5. HERO ------------------------------------------------------- */
.d-hero {
  background: var(--d-dark);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.d-hero h1 { color: #fff; max-width: 16ch; }
.d-hero .d-lead { color: rgba(255, 255, 255, 0.78); }
.d-hero .d-eyebrow { color: var(--d-accent); }
/* Halo décoratif */
.d-hero::after {
  content: '';
  position: absolute; top: -120px; right: -100px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--d-accent) 0%, transparent 68%);
  opacity: 0.35;
}
.d-hero .d-wrap { position: relative; z-index: 1; }
.d-hero__infos {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px; font-size: 14px; color: rgba(255,255,255,0.8);
}
.d-hero__infos li::before { content: '— '; color: var(--d-accent); }

/* ---------- 6. SECTIONS, CARTES, LISTES ---------------------------------- */
.d-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.d-card {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.d-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09); }
.d-card p { color: var(--d-muted); margin-bottom: 0; font-size: 15px; }
.d-card__prix { display: block; font-family: var(--d-font-titre); font-size: 1.3rem; color: var(--d-accent); margin-top: 10px; }

/* Liste type carte de restaurant / prestations */
.d-liste li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--d-border);
}
.d-liste li:last-child { border-bottom: 0; }
.d-liste b { font-weight: 600; color: var(--d-heading); }
.d-liste small { display: block; color: var(--d-muted); font-weight: 400; font-size: 13px; }
.d-liste span { color: var(--d-accent); font-weight: 700; white-space: nowrap; }

/* Visuel de remplacement (aucune photo réelle) */
.d-photo {
  border-radius: var(--d-radius);
  min-height: 240px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--d-accent) 22%, transparent), transparent 70%),
    repeating-linear-gradient(45deg, var(--d-bg-alt) 0 14px, var(--d-surface) 14px 28px);
  border: 1px solid var(--d-border);
  display: grid; place-items: center;
  color: var(--d-muted);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.d-avis { font-style: italic; color: var(--d-text); font-size: 1.05rem; }
.d-avis + cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--d-muted); }
.d-etoiles { color: #e8a33d; letter-spacing: 3px; }

/* ---------- 7. FORMULAIRE ET PIED DE PAGE -------------------------------- */
.d-form { display: grid; gap: 14px; }
.d-form label { font-size: 14px; font-weight: 600; color: var(--d-heading); display: block; margin-bottom: 5px; }
.d-form input, .d-form textarea, .d-form select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  background: var(--d-surface);
  color: var(--d-text);
}
.d-form textarea { min-height: 120px; resize: vertical; }
.d-form input:focus, .d-form textarea:focus, .d-form select:focus {
  outline: none; border-color: var(--d-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-accent) 25%, transparent);
}
.d-form .d-btn { border: 0; cursor: pointer; width: 100%; }

.d-infos li { padding: 10px 0; border-bottom: 1px solid var(--d-border); font-size: 15px; }
.d-infos li:last-child { border-bottom: 0; }
.d-infos b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--d-muted); }

.d-footer {
  background: var(--d-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 40px 0 24px;
  font-size: 14px;
}
.d-footer a { color: rgba(255, 255, 255, 0.72); }
.d-footer a:hover { color: #fff; }
.d-footer__bas {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ---------- 8. RESPONSIVE ------------------------------------------------- */
@media (min-width: 720px) {
  .d-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .d-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .d-section { padding: 84px 0; }
}
@media (min-width: 900px) {
  .d-nav { display: flex; }
  .d-hero { padding: 110px 0; }
  .d-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
