/* =========================================================================
   Site vitrine JOSEF (myjosef.com) — identité portée de l'application :
   bordeaux #7d1f37, Lora partout, Cormorant Garamond pour le wordmark,
   bandeau bordeaux identique à l'app (sans l'icône réveil).
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --ink: #2a2420;
  --ink-dim: #8a7d7d;
  --burgundy: #7d1f37;
  --burgundy-deep: #5e1428;
  --line: #e7dada;
  /* Fond des bulles : un crème chaud, un ton sous le blanc de la page. */
  --card-bg: #f9f3ec;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Lora", serif;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "onum" 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Même halo doré très léger que dans l'app. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(154, 123, 46, 0.12), transparent 62%);
}

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 8px 22px 64px; }

/* ---------- Bandeau du haut (identique à l'app, sans le réveil) ---------- */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  background: var(--burgundy);
  border-bottom: 1px solid var(--burgundy-deep);
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.34em;
  color: #fff;
  text-align: center;
  text-decoration: none;
}
.brand-j {
  height: 0.86em;
  width: auto;
  vertical-align: -0.08em;
  margin-right: 0.36em;
  filter: brightness(0) invert(1);
}
/* Choix de langue, discret à droite du bandeau. */
.lang-mini {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
}
.lang-mini button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Lora", serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 4px 5px;
  cursor: pointer;
}
.lang-mini button.on { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Bouton menu (3 barres) : caché sur ordinateur, visible sur tablette/téléphone. */
.menu-btn {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

/* Tiroir latéral (comme dans l'appli) + voile sombre. */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(85%, 330px);
  z-index: 20;
  background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 18px 22px 24px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer .drawer-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 1.5rem;
  cursor: pointer;
}
.drawer-j { display: block; height: 46px; width: auto; margin: 14px auto 6px; }
.drawer a {
  display: block;
  text-decoration: none;
  font-family: "Lora", serif;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  transition: color 0.2s;
}
.drawer a:hover { color: var(--burgundy); }
.drawer a.active { color: var(--burgundy); font-weight: 600; }


/* ---------- Navigation ---------- */
.site-nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  font-family: "Lora", serif;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--burgundy); }
.site-nav a.active { color: var(--burgundy); border-bottom-color: var(--burgundy); font-weight: 600; }

/* ---------- Héros (accueil) ---------- */
.hero { text-align: center; padding: 52px 6px 8px; }
.hero .star, .star-sep { color: var(--burgundy); font-size: 1.3rem; letter-spacing: 0.5em; text-align: center; }
.star-sep { margin-top: 54px; }
.hero .logo { display: block; width: 76px; height: auto; margin: 0 auto 20px; }
.hero h1 {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 7vw, 3rem);
  line-height: 1.14;
  color: var(--burgundy-deep);
  margin: 14px 0 10px;
}
.hero .tagline {
  color: var(--burgundy-deep);
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.4;
  max-width: 430px;
  margin: 0 auto;
}
.hero .lead {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 18px auto 0;
}

/* ---------- Boutons stores ---------- */
.stores { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 30px 0 8px; }
.store-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  border-radius: 13px;
  padding: 10px 20px 11px 16px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(125, 31, 55, 0.22);
}
.store-btn:hover { background: var(--burgundy-deep); transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.store-btn .txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-btn .small { font-size: 0.68rem; opacity: 0.85; letter-spacing: 0.02em; }
.store-btn .big { font-family: "Lora", serif; font-size: 1.08rem; font-weight: 600; }
.stores-note { text-align: center; color: var(--ink-dim); font-style: italic; font-size: 0.88rem; margin-top: 10px; }

/* ---------- Sections de contenu ---------- */
.section { margin-top: 54px; }
.section > h2 {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--burgundy);
  text-align: center;
  margin: 10px 0 18px;
  line-height: 1.25;
}
.section > .lead {
  text-align: center;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 560px;
  margin: -6px auto 20px;
}
.section p.body, .prose p {
  font-size: 1.04rem;
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}
.prose strong { color: var(--burgundy-deep); font-weight: 600; }

/* Cartes (comme les type-card de l'app). */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.cards.single { grid-template-columns: 1fr; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
/* Nombre impair de bulles : la dernière occupe TOUTE la largeur (pas de trou, symétrie). */
.cards > .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--burgundy);
  border-radius: 10px;
  padding: 16px 18px;
}
.card h3 {
  font-family: "Lora", serif;
  color: var(--burgundy);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-align: center;
}
.card p { font-size: 0.97rem; color: var(--ink); line-height: 1.55; text-align: justify; }

.section .foot {
  text-align: center;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 0.9rem;
  margin: 20px auto 0;
  max-width: 560px;
  line-height: 1.5;
}

/* Encadré doux (note réveil iOS, note stores...). */
.note-box {
  background: rgba(125, 31, 55, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.55;
  text-align: center;
  max-width: 560px;
  margin: 26px auto 0;
}

/* ---------- Tarifs ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; margin-top: 16px; }
@media (max-width: 680px) { .offers { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; } }
.offer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 16px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
}
.offer.featured { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy) inset; }
.offer-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
}
.offer-name { font-family: "Lora", serif; font-size: 1.16rem; color: var(--burgundy); font-weight: 600; }
.offer-tag { font-size: 0.8rem; color: var(--ink-dim); margin: 4px 0 12px; line-height: 1.3; min-height: 2.6em; }
.offer-price { font-family: "Lora", serif; margin-bottom: 12px; }
.offer-price b { font-size: 1.9rem; color: var(--burgundy); font-weight: 700; }
.offer-price span { color: var(--ink-dim); font-size: 0.85rem; }
.offer ul { list-style: none; padding: 0; margin: 0 auto 4px; text-align: left; max-width: 230px; }
.offer li { font-size: 0.86rem; color: var(--ink); padding: 4px 0 4px 18px; position: relative; line-height: 1.35; }
.offer li::before { content: "✓"; position: absolute; left: 0; top: 4px; color: #3d7a52; font-weight: 700; font-size: 0.8rem; }

/* ---------- Contact ---------- */
.contact-box { text-align: center; margin-top: 26px; }
.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  font-family: "Lora", serif;
  font-size: 1.15rem;
  border-radius: 14px;
  padding: 14px 28px;
  transition: background 0.2s;
  box-shadow: 0 6px 20px rgba(125, 31, 55, 0.22);
}
.mail-btn:hover { background: var(--burgundy-deep); }
.contact-note { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; margin-top: 18px; }

/* ---------- Pied de page ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 30px 22px 42px;
  text-align: center;
}
.foot-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 16px; }
.foot-links a { color: var(--burgundy); text-decoration: none; font-size: 0.92rem; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-disclaimer {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 14px;
}
.foot-copy { color: var(--ink-dim); font-size: 0.8rem; }

/* Titre de page interne. */
.page-title {
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: 1.9rem;
  color: var(--burgundy-deep);
  text-align: center;
  margin: 40px 0 6px;
  line-height: 1.2;
}
.page-logo { display: block; width: 56px; height: auto; margin: 34px auto 0; }

/* Tablette / téléphone : le menu horizontal disparaît, place au ☰ ; langues à GAUCHE.
   (En fin de fichier pour passer devant les règles de base.) */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: block; }
  .lang-mini { right: auto; left: 12px; }
}
