/* ============================================================
   Camélia — maison de thé · feuille de style
   Palette : porcelaine sauge · encre · jade profond · persimmon (accent)
   ============================================================ */

:root {
  --porcelain: #ECEFE9;
  --paper:     #F6F7F3;
  --ink:       #1B211C;
  --jade:      #1F5C4A;
  --jade-soft: #E1EAE3;
  --persimmon: #D6552B;
  --muted:     #6B7A6E;
  --line:      #D3D9CE;
  --radius:    14px;
  --wrap:      1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--porcelain);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--jade); font-weight: 600;
}

/* --- En-tête --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,239,233,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: "Fraunces", serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.brand span { color: var(--jade); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a.actif { color: var(--ink); }
.panier-lien { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.panier-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--persimmon); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; visibility: hidden;
}

/* --- Hero --- */
.hero { padding: 92px 0 64px; }
.hero .wrap { max-width: 860px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 22px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 56ch; }
.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Boutons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--jade); color: #fff; }
.btn-primary:hover { background: #17493a; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--jade-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* --- Grille produits --- */
.section-titre { display: flex; align-items: end; justify-content: space-between; margin: 8px 0 28px; }
.section-titre h2 { font-size: 30px; }
.grille {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 80px;
}
.carte {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.carte:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,33,28,0.08); }
.carte .vignette { aspect-ratio: 4/3; background: var(--jade-soft); }
.carte .vignette svg { width: 100%; height: 100%; }
.carte .corps { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte .origine { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.carte h3 { font-size: 20px; }
.carte .bas { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.carte .prix { font-weight: 700; font-size: 18px; }

/* --- Page produit --- */
.produit { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0 90px; align-items: start; }
.produit .visuel { background: var(--jade-soft); border-radius: var(--radius); aspect-ratio: 1; }
.produit .visuel svg { width: 100%; height: 100%; }
.produit .infos .eyebrow { margin-bottom: 12px; }
.produit .infos h1 { font-size: 40px; margin-bottom: 8px; }
.produit .meta { color: var(--muted); margin-bottom: 20px; }
.produit .prix-produit { font-size: 30px; font-weight: 700; margin: 16px 0; font-family: "Fraunces", serif; }
.produit .desc { color: #37423a; margin-bottom: 28px; max-width: 46ch; }
.qte { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-right: 12px; }
.qte button { width: 40px; height: 44px; background: var(--paper); border: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qte button:hover { background: var(--jade-soft); }
.qte span { width: 44px; text-align: center; font-weight: 600; }
.retour { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 14px; }
.retour:hover { color: var(--jade); }

/* --- Panier --- */
.panier-page { padding: 48px 0 90px; max-width: 800px; }
.panier-page h1 { font-size: 34px; margin-bottom: 28px; }
.ligne { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); }
.ligne .mini { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--jade-soft); }
.ligne .nom { font-weight: 600; }
.ligne .sous { color: var(--muted); font-size: 14px; }
.ligne .ligne-prix { font-weight: 700; min-width: 88px; text-align: right; }
.retirer { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.retirer:hover { color: var(--persimmon); }
.total { display: flex; align-items: center; justify-content: space-between; margin: 30px 0; font-size: 22px; }
.total .montant { font-family: "Fraunces", serif; font-weight: 700; }
.vide { text-align: center; padding: 70px 0; color: var(--muted); }
.vide h1 { color: var(--ink); margin-bottom: 10px; }
.confirmation {
  background: var(--jade-soft); border: 1px solid var(--jade); color: #17493a;
  border-radius: var(--radius); padding: 22px 24px; margin-top: 20px; display: none;
}

/* --- À propos --- */
.prose { max-width: 640px; padding: 56px 0 90px; }
.prose h1 { font-size: 40px; margin-bottom: 20px; }
.prose p { color: #37423a; margin-bottom: 16px; }

/* --- Pied de page --- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer .wrap { padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.demo-note { background: var(--ink); color: #cbd3c8; font-size: 13px; text-align: center; padding: 10px 16px; }
.demo-note strong { color: #fff; }

/* --- Responsive --- */
@media (max-width: 860px) {
  .grille { grid-template-columns: repeat(2, 1fr); }
  .produit { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 560px) {
  .grille { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .nav .lien-apropos { display: none; }
}

/* --- Accessibilité : focus visible + réduction de mouvement --- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
