@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* Palette tirée du logo KYVER : fond clair, noir, cyan, vert, lime */
:root {
  --creme: #f6f6f6;
  --terre: #5ce1e6;
  --sable: #c3fb6e;
  --sauge: #6fdca8;
  --encre: #0a0a0a;
  --encre-douce: #4b5560;
  --trait: #dfe3e6;
  --lime: #c3fb6e;
  --cyan: #5ce1e6;

  --police-titre: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --police-script: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --police-texte: "Montserrat", "Segoe UI", system-ui, sans-serif;

  --marge: clamp(1.2rem, 4vw, 2.6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--creme); color: var(--encre); font-family: var(--police-texte); font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 4px; }
::placeholder { color: #7b858f; }
h1, h2 { font-family: var(--police-titre); font-weight: 700; letter-spacing: -0.02em; }

.lien { display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--encre); padding-bottom: 2px; }
.lien:hover { border-bottom-color: var(--cyan); }
.script { font-family: var(--police-script); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.4; }

.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--encre); text-decoration: none; font-weight: 600; padding: 0.85rem 1.7rem; border: 0; border-radius: 12px; }
.btn:hover { background: #b2f04f; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0.7rem var(--marge); background: #fff; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--trait); }
.topbar > :first-child, .topbar > :last-child { flex: 1; }
.nav { display: flex; gap: 2rem; }
.nav a, .nav-lien, .retour { text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav a:hover, .nav-lien:hover, .retour:hover { color: #0b7d77; }
.brand { display: block; width: 150px; height: 56px; font-size: 0; line-height: 0; color: transparent; text-decoration: none; background: url("../images/logo-kyver.png") center / contain no-repeat; flex: 0 0 auto !important; }
.droite { display: flex; align-items: center; justify-content: flex-end; gap: 1.6rem; }
.retour { text-align: right; }
.cart-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--trait); border-radius: 12px; padding: 0.55rem 1rem; cursor: pointer; font-size: 0.92rem; font-weight: 600; }
.cart-btn::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%204h2l2.5%2011h10L20%207H6%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%204h2l2.5%2011h10L20%207H6%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3C/svg%3E") center / contain no-repeat; }
.cart-btn:hover { border-color: var(--encre); }
.cart-count { display: inline-block; min-width: 1.4rem; padding: 0 0.4rem; background: var(--encre); color: var(--lime); border-radius: 999px; text-align: center; font-size: 0.78rem; }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(80vh, 46rem); }
.hero-texte { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.4rem; padding: 3rem var(--marge); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; max-width: 28rem; }
.hero-texte p { max-width: 26rem; color: var(--encre-douce); }
.hero-texte .lien { background: var(--lime); border: 0; border-radius: 12px; padding: 0.95rem 1.8rem; }
.hero-image {
  margin: 1.5rem var(--marge) 1.5rem 0; border-radius: 28px;
  background:
    url("../images/hero.jpg") center / cover no-repeat,
    radial-gradient(circle at 30% 70%, #5ce1e6 0, rgba(92,225,230,0) 55%),
    radial-gradient(circle at 75% 40%, #c3fb6e 0, rgba(195,251,110,0) 60%),
    #eef7f3;
}

/* ---------- Trois univers ---------- */
.univers { background: var(--terre); padding: clamp(3rem, 7vw, 5.5rem) var(--marge); text-align: center; }
.univers h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 2.4rem; }
.tuiles { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 1rem; max-width: 62rem; margin: 0 auto 3rem; }
.tuile { position: relative; aspect-ratio: 4 / 3; border: 0; border-radius: 20px; cursor: pointer; background-color: #fff; background-size: cover; background-position: center; }
.tuile span { position: absolute; left: 0.9rem; bottom: 0.9rem; background: #fff; padding: 0.3rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; }
.tuile:hover span { background: var(--encre); color: var(--lime); }
.tuile-visage  { background-color: #e0f8f9; background-image: url("../images/visage.jpg"); }
.tuile-corps   { background-color: #eefbd3; background-image: url("../images/corps.jpg"); aspect-ratio: auto; }
.tuile-cheveux { background-color: #e3f6ec; background-image: url("../images/cheveux.jpg"); }
.univers .script { max-width: 40rem; margin: 0 auto 1.6rem; }

/* ---------- Présentation ---------- */
.presentation { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: clamp(3rem, 8vw, 6rem) var(--marge); }
.presentation-titre { position: relative; min-height: 20rem; display: flex; align-items: center; }
.presentation-titre h2 { position: relative; font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.05; }
.fleur { position: absolute; left: 22%; top: -3%; height: 120%; fill: none; stroke: var(--sauge); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.presentation-texte { max-width: 30rem; }
.presentation-texte p { margin-bottom: 1.4rem; }

/* ---------- Catalogue ---------- */
.catalogue { padding: 2rem var(--marge) 5rem; }
.catalogue-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--trait); }
.catalogue h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.filter { background: #fff; border: 1px solid var(--trait); border-radius: 999px; padding: 0.5rem 1.1rem; cursor: pointer; color: var(--encre-douce); font-size: 0.9rem; font-weight: 500; }
.filter:hover { color: var(--encre); border-color: var(--encre); }
.filter[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--encre); font-weight: 600; }
.recherche { width: min(100%, 17rem); font: inherit; font-size: 0.9rem; padding: 0.6rem 1rem 0.6rem 2.6rem; border: 1px solid var(--trait); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2711%27%20r%3D%277%27/%3E%3Cpath%20d%3D%27M20%2020l-3.5-3.5%27/%3E%3C/svg%3E") no-repeat 0.9rem center / 18px; color: var(--encre); }
.recherche:focus { border-color: var(--encre); outline: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trait); border-radius: 20px; padding: 0.9rem; }
.card:hover { border-color: var(--encre); }
.card-visuel { aspect-ratio: 4 / 5; display: flex; align-items: flex-end; padding: 1rem; overflow: hidden; border-radius: 14px; background: #e0f8f9 !important; }
.card-visuel[data-cat="Corps"]    { background: #eefbd3 !important; }
.card-visuel[data-cat="Cheveux"]  { background: #e3f6ec !important; }
.card-visuel[data-cat="Divers"]   { background: #eef1f2 !important; }
.card-visuel img { width: 100%; height: 100%; object-fit: cover; }
.card-visuel span { font-weight: 600; font-size: 1.1rem; line-height: 1.2; }
.card-corps { padding: 0.9rem 0.2rem 0.2rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.card-nom { font-weight: 600; font-size: 1.05rem; }
.card-desc { color: var(--encre-douce); font-size: 0.9rem; }
.card-bas { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; justify-content: space-between; }
.prix { font-weight: 700; }
.add { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--lime); border: 0; border-radius: 10px; padding: 0.5rem 0.9rem; cursor: pointer; font-size: 0.82rem; font-weight: 600; }
.add::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%204h2l2.5%2011h10L20%207H6%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%204h2l2.5%2011h10L20%207H6%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3Ccircle%20cx%3D%2717%27%20cy%3D%2719%27%20r%3D%271.5%27/%3E%3C/svg%3E") center / contain no-repeat; }
.add:hover { background: var(--encre); color: var(--lime); }

/* ---------- Livraison ---------- */
.livraison { background: var(--sable); padding: clamp(2.5rem, 6vw, 4.5rem) var(--marge); }
.carte { max-width: 40rem; margin: 0 auto; background: #fff; border-radius: 24px; padding: 2rem clamp(1.2rem, 4vw, 3rem); }
.carte-texte { padding: 1.2rem 0; text-align: center; }
.citation { font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.5; margin-bottom: 1.2rem; }
.carte .script { margin-bottom: 1rem; color: #0b7d77; }
.petit { color: var(--encre-douce); font-size: 0.92rem; }

.footer { display: flex; justify-content: space-between; align-items: center; padding: 1.8rem var(--marge); }

/* ---------- Message de confirmation ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); background: var(--encre); color: var(--lime); padding: 0.7rem 1.3rem; border-radius: 12px; opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { order: -1; min-height: 16rem; margin: 1rem var(--marge) 0; }
  .hero-texte { padding-top: 2rem; }
  .presentation { grid-template-columns: 1fr; }
  .presentation-titre { min-height: 14rem; }
  .tuiles { grid-template-columns: 1fr; }
  .tuile, .tuile-corps { aspect-ratio: 16 / 9; }
  .nav, .nav-lien { display: none; }
  .topbar > :first-child { flex: 0; }
  .brand { margin-right: auto; width: 120px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast { transition: none; } }
