/* Site vitrine de Webaya Family (site/) : page statique, sans script ni
   requête externe. Mêmes couleurs, police et arrondis que l'app : « Maison
   douce » le jour, « Braise » en mode sombre (app/globals.css, lib/theme.ts). */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius: 1rem;
  --background: #f7ede0;
  --foreground: #2f2924;
  --card: #fffaf3;
  --primary: #a8432a;
  --primary-foreground: #ffffff;
  --secondary: #e2eee4;
  --secondary-foreground: #2c4838;
  --muted: #efe3d3;
  --muted-foreground: #67594e;
  --accent: #f9dcc8;
  --accent-foreground: #7e3622;
  --success: #39604c;
  --border: #e8d8c4;
  --shadow: 0 2px 10px rgb(120 70 30 / 0.10);
  --shadow-lg: 0 24px 60px -20px rgb(120 70 30 / 0.35);
  --frame: #2f2924;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #221812;
    --foreground: #f7ebdf;
    --card: #2e2119;
    --primary: #f39042;
    --primary-foreground: #221812;
    --secondary: #2c3a29;
    --secondary-foreground: #d3e8c9;
    --muted: #36271d;
    --muted-foreground: #c0a895;
    --accent: #4d2c19;
    --accent-foreground: #ffcb9e;
    --success: #8fc489;
    --border: #4a3628;
    --shadow: 0 2px 10px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 24px 60px -20px rgb(0 0 0 / 0.7);
    --frame: #0f0a07;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Nunito", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* --- En-tête */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.125rem; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: var(--muted-foreground); padding: 8px 10px; border-radius: 10px; }
.nav a:hover { background: var(--muted); color: var(--foreground); }
@media (min-width: 900px) { .nav { display: flex; } }
.top .btn { margin-left: auto; }
@media (min-width: 900px) { .top .btn { margin-left: 8px; } }

/* --- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 800; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--foreground)); }
.btn-ghost { border-color: var(--border); background: var(--card); color: var(--foreground); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }

/* --- Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-foreground); background: var(--accent); padding: 6px 12px; border-radius: 999px;
}
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.75rem, 4.5vw, 2.625rem); font-weight: 900; margin-top: 16px; }
.section-head p { margin-top: 12px; color: var(--muted-foreground); font-size: 1.125rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* --- Héros */
.hero { padding-top: 48px; overflow: hidden; }
@media (min-width: 900px) { .hero { padding-top: 72px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { font-size: clamp(2.125rem, 6.5vw, 3.75rem); font-weight: 900; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin-top: 18px; font-size: 1.1875rem; color: var(--muted-foreground); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 0.875rem; font-weight: 700; }

/* Appareils : téléphone posé devant une tablette */
.devices { position: relative; min-height: 360px; }
.tablet {
  background: var(--frame); border-radius: 26px; padding: 12px;
  box-shadow: var(--shadow-lg);
}
.tablet img { border-radius: 16px; width: 100%; }
.phone {
  background: var(--frame); border-radius: 40px; padding: 10px;
  box-shadow: var(--shadow-lg); width: 100%; max-width: 270px;
}
.phone img { border-radius: 30px; width: 100%; }
.devices .tablet { width: 92%; margin-left: auto; }
.devices .phone { position: absolute; left: 0; bottom: -24px; width: 42%; max-width: 230px; }
/* Appareils sous le texte (< 960 px) : le téléphone, plus haut que la
   tablette, dépassait vers le haut sur les pastilles. Plus petit, et la place
   réservée au-dessus de la tablette. */
@media (max-width: 959px) {
  .devices { min-height: 0; padding-top: 12%; padding-bottom: 24px; }
  .devices .phone { width: 30%; bottom: 0; }
}
.blob {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px);
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
}
.hero .blob { width: 520px; height: 520px; right: -140px; top: -80px; }

/* --- Une journée */
.day { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; gap: 56px; padding: 0; margin: 0; list-style: none; }
.step { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 1fr; gap: 64px; }
  .step:nth-child(even) .step-media { order: -1; }
}
.time {
  display: inline-block; font-weight: 900; font-size: 0.9375rem; color: var(--primary);
  background: var(--background); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
}
.step h3 { font-size: clamp(1.375rem, 3.2vw, 1.875rem); font-weight: 900; margin-top: 14px; }
.step p { margin-top: 10px; color: var(--muted-foreground); }
.step ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.step li { display: flex; gap: 10px; align-items: baseline; }
.step li::before { content: "✓"; color: var(--success); font-weight: 900; flex: none; }
.step-media { display: flex; justify-content: center; }
.step-media .phone { max-width: 260px; }
.step-media .tablet { width: 100%; max-width: 560px; }

/* --- Fonctionnalités */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 22px; box-shadow: var(--shadow);
}
.card .ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent); font-size: 1.5rem;
}
.card h3 { font-size: 1.1875rem; font-weight: 800; margin-top: 14px; }
.card p { margin-top: 6px; color: var(--muted-foreground); font-size: 0.96875rem; }
.card.alt .ico { background: var(--secondary); }
.note { margin-top: 24px; color: var(--muted-foreground); font-size: 0.96875rem; }

/* --- Écrans de la maison */
.screens { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .screens { grid-template-columns: 1fr 1.2fr; } }
.list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; }
.list .ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary); }
.list strong { display: block; }
.list span.t { color: var(--muted-foreground); font-size: 0.96875rem; }

/* --- Vie privée */
.privacy { background: var(--secondary); color: var(--secondary-foreground); }
.privacy .section-head p, .privacy .card p { color: color-mix(in srgb, var(--secondary-foreground) 85%, var(--background)); }
.privacy .card { background: color-mix(in srgb, var(--card) 70%, var(--secondary)); color: var(--foreground); }
.privacy .card p { color: var(--muted-foreground); }
.privacy .eyebrow { background: var(--card); color: var(--secondary-foreground); }

/* --- Ambiances */
.swatches { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.swatch { border-radius: 18px; padding: 14px; border: 1px solid var(--border); min-height: 132px; display: grid; align-content: space-between; gap: 12px; }
.swatch .dots { display: flex; gap: 6px; }
.swatch .dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.6); }
.swatch strong { display: block; font-size: 1rem; }
.swatch span { font-size: 0.8125rem; }

/* Couleurs des ambiances (lib/theme.ts) : pas de style en ligne (CSP) */
.sw-maison { background: #f7ede0; color: #2f2924; }
.sw-cocon { background: #f4e3e6; color: #2d2228; }
.sw-vitalite { background: #eaf3fc; color: #0f1a2e; }
.sw-organique { background: #e9dfca; color: #29291f; }
.sw-braise { background: #221812; color: #f7ebdf; }
.sw-nuit { background: #0f1230; color: #e8e8fa; }
.d-a8432a { background: #a8432a; }
.d-f9dcc8 { background: #f9dcc8; }
.d-fffaf3 { background: #fffaf3; }
.d-7a2c52 { background: #7a2c52; }
.d-efcfdc { background: #efcfdc; }
.d-fff6f6 { background: #fff6f6; }
.d-0062b8 { background: #0062b8; }
.d-ffbe55 { background: #ffbe55; }
.d-ffffff { background: #ffffff; }
.d-4d6a24 { background: #4d6a24; }
.d-e6c9ad { background: #e6c9ad; }
.d-f4eddd { background: #f4eddd; }
.d-f39042 { background: #f39042; }
.d-4d2c19 { background: #4d2c19; }
.d-2e2119 { background: #2e2119; }
.d-aaa6ff { background: #aaa6ff; }
.d-2d2c6e { background: #2d2c6e; }
.d-1a1d45 { background: #1a1d45; }
.section-head.flush { margin-bottom: 0; }

/* --- Questions */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; }
summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 900; color: var(--primary); flex: none; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 16px; color: var(--muted-foreground); }

/* --- Fin de page */
.cta { text-align: center; }
.cta .box {
  background: var(--primary); color: var(--primary-foreground); border-radius: 28px;
  padding: 48px 20px; box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 900; }
.cta p { margin: 12px auto 0; max-width: 36rem; }
.cta .btn { margin-top: 24px; background: var(--primary-foreground); color: var(--primary); }
footer { padding: 40px 0 56px; color: var(--muted-foreground); font-size: 0.9375rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer a { text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
