﻿:root {
  --rose-pale: #ffe8f0;
  --rose: #ff8fb3;
  --rose-fonce: #c1577d;
  --marron: #5a302d;
  --beige: #fff7ee;
  --fond: #fffafc;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius-card: 24px;
  --transition: 0.25s ease;
  --font-script: "Dancing Script", "Segoe Script", cursive;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffeef7 0, #fffafc 40%, #fef6ff 100%);
  color: var(--marron);
  line-height: 1.6;
  overflow-x: hidden;
}


img {
  max-width: 100%;
  display: block;
  border-radius: 18px;
}


a {
  color: var(--rose-fonce);
  text-decoration: none;
}


.lang-en { display: none; }
body.lang-en .lang-fr { display: none; }
body.lang-en .lang-en { display: inline; }


/* Rideau magique */
#curtain {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.9) 0, transparent 40%),
    linear-gradient(120deg, rgba(255,143,179,0.85), rgba(255,243,218,0.9), rgba(186,133,255,0.7));
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transform: translateY(100%);
}


#curtain.show {
  animation: curtain-swipe 0.6s ease forwards;
}


@keyframes curtain-swipe {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}


.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 80px;
}


header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, #ffeef6 0, rgba(255, 238, 246, 0.96) 40%, rgba(255, 238, 246, 0.9) 100%);
  backdrop-filter: blur(10px);
}


.logo {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9),
              0 0 14px rgba(193, 87, 125, 0.4);
}


.logo img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: block;
}


.brand {
  flex: 1;
}


.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}


.brand-sub {
  font-size: 0.85rem;
  opacity: 0.8;
}


.brand-tagline {
  font-size: 0.78rem;
  margin-top: 4px;
  font-style: italic;
  color: #7b4a55;
}


nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


nav button {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  background: white;
  color: var(--marron);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}


nav button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.8) 0, transparent 60%);
  opacity: 0;
  transform: translateX(-40%);
  transition: 0.4s;
}


nav button:hover::after {
  opacity: 1;
  transform: translateX(40%);
}


nav button.active {
  background: var(--rose);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 143, 179, 0.55);
}


nav button:hover {
  transform: translateY(-1px);
}


.lang-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.78rem;
}


.lang-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid #f1c3d3;
  overflow: hidden;
}


.lang-toggle button {
  border: none;
  background: transparent;
  padding: 3px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #7b4a55;
}


.lang-toggle button.active {
  background: var(--rose);
  color: white;
}


main {
  margin-top: 18px;
}


section {
  display: none;
  animation: fadeIn 0.5s ease;
}


section.active {
  display: block;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


.section-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}


.section-intro {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: #7b4a55;
}


.card {
  background: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  margin-bottom: 18px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}


.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}


.card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.5) 0, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(255,226,249,0.5) 0, transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}


.card:hover::after {
  opacity: 1;
}


.card-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


@media (min-width: 650px) {
  .card-header {
    flex-direction: row;
  }
}


.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 6px;
}


.card-text {
  font-size: 0.93rem;
  color: #73414d;
}


.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.9rem;
}


.price {
  font-weight: 700;
  color: #c15a1d;
}


.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #f4e6ff;
  color: #5b3270;
}


.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}


.btn {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}


.btn-primary {
  background: var(--rose);
  color: white;
  box-shadow: 0 4px 12px rgba(255,143,179,0.55);
}


.btn-outline {
  background: white;
  color: var(--marron);
  border: 1px solid #f1c3d3;
}


.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.8) 0, transparent 50%);
  opacity: 0;
  transform: translateX(-40%);
  transition: 0.4s;
}


.btn:hover::after {
  opacity: 1;
  transform: translateX(40%);
}


.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


/* Accueil */
.hero {
  display: grid;
  gap: 16px;
}


@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}


.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}


.hero-image-wrapper img {
  border-radius: var(--radius-card);
  transform: scale(1.02);
  transition: transform 6s ease-out;
}


.hero-image-wrapper:hover img {
  transform: scale(1.06);
}


.hero-sparkles::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.7) 0, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.7) 0, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.6) 0, transparent 50%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.7;
  animation: sparkle-move 8s linear infinite;
}


@keyframes sparkle-move {
  0% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(-8px,6px,0); }
  100% { transform: translate3d(6px,-4px,0); }
}


.diamond-orbit {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 90px;
  height: 90px;
  pointer-events: none;
  animation: orbit-spin 12s linear infinite;
}


@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #ffffff, #ffe9ff, #ffd6f0, #fff9da);
  box-shadow:
    0 0 10px rgba(255,255,255,0.8),
    0 0 20px rgba(255,143,179,0.4);
}


.diamond::before,
.diamond::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.9);
}


.hero-text h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}


.hero-text p {
  font-size: 0.96rem;
  color: #6f404d;
  margin-bottom: 14px;
}


.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


@media (min-width: 700px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* Bougies */
.rotate-90 {
  transform: rotate(90deg);
}


/* Bijoux : grille */
.grid {
  display: grid;
  gap: 16px;
}


@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Livre – parchemin */
.parchment {
  background: radial-gradient(circle at top, #fffdf5 0, #f7ebd6 40%, #f1e0c7 100%);
  border-radius: 18px;
  padding: 18px 16px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-top: 16px;
  overflow: hidden;
}


.parchment::before,
.parchment::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.7) 0, transparent 45%),
                    radial-gradient(circle at 80% 90%, rgba(255,255,255,0.55) 0, transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: parchment-glow 10s ease-in-out infinite alternate;
  opacity: 0.7;
}


@keyframes parchment-glow {
  from { opacity: 0.4; }
  to   { opacity: 0.9; }
}


.parchment-title {
  font-family: var(--font-script);
  font-size: 1.4rem;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}


.parchment-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: #5a4030;
  white-space: pre-line;
}


.parchment-pen {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 1.1rem;
  opacity: 0.9;
  animation: pen-bounce 2.8s ease-in-out infinite;
}


@keyframes pen-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}


/* Maux de l’âme */
.consent {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #7b4a55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}


.consent input {
  margin-top: 2px;
}


form {
  margin-top: 12px;
}


input, textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #f1c3d3;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  outline: none;
}


textarea {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}


input:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(255,143,179,0.3);
}


/* Mon univers */
.univers-intro {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 10px;
}


.univers-heart-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}


.heart {
  width: 34px;
  height: 30px;
  position: relative;
  cursor: pointer;
  transform: scale(1);
  animation: heartbeat 1.4s infinite;
}


.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 80%;
  background: linear-gradient(135deg, #ff9bbf, #ff4f7f);
  border-radius: 50px 50px 0 0;
  top: 0;
}


.heart::before {
  left: 50%;
  transform: translateX(-100%) rotate(-45deg);
  transform-origin: 100% 100%;
}


.heart::after {
  left: 50%;
  transform: translateX(0) rotate(45deg);
  transform-origin: 0 100%;
}


@keyframes heartbeat {
  0%, 20%, 40%, 60%, 80%, 100% { transform: scale(1); }
  30%, 70% { transform: scale(1.12); }
}


.univers-heart-text {
  font-size: 0.9rem;
  color: #7b4a55;
}


.bio-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.8s ease;
  margin-top: 4px;
}


.bio-wrapper.open {
  max-height: 900px;
}


.bio-parchment {
  margin-top: 10px;
  padding: 18px 16px 28px;
  background: radial-gradient(circle at top, #fffdf8 0, #fcebe0 45%, #f6ddd2 100%);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative;
}


.bio-parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.35) 0, transparent 40%),
    radial-gradient(circle at 10% 10%, rgba(255,255,255,0.6) 0, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(255,255,255,0.55) 0, transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}


.bio-text {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: #5a4030;
  white-space: pre-line;
}


.bio-signature {
  margin-top: 14px;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: #c1577d;
  position: relative;
  z-index: 1;
}


.bio-pen {
  position: absolute;
  right: 14px;
  bottom: 6px;
  font-size: 1.2rem;
  opacity: 0.9;
  z-index: 0;
  animation: pen-bounce 2.8s ease-in-out infinite;
}


.univers-portrait {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}


.univers-portrait-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


@media (min-width: 600px) {
  .univers-portrait-images {
    flex-direction: row;
  }
}


.univers-portrait img {
  max-width: 130px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}


.univers-portrait-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.9rem;
  color: #74414f;
}


.heart-button {
  border: none;
  background: transparent;
  padding: 0;
}


.atelier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #74414f;
}


footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  color: #7b4a55;
}


.hadith {
  font-family: var(--font-script);
  font-size: 1.6rem;
  margin-bottom: 8px;
}


.hadith-ref {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
}


.visits {
  opacity: 0.8;
  font-size: 0.78rem;
}


/* Panier flottant */
.cart-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  border-radius: 999px;
  background: var(--rose-fonce);
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}


.cart-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}


.cart-panel-backdrop.open {
  display: flex;
}


.cart-panel {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 22px 22px 0 0;
  padding: 16px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}


.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}


.cart-items {
  font-size: 0.9rem;
  margin-bottom: 10px;
}


.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #f1c3d3;
  padding-bottom: 4px;
}


.cart-item-name {
  flex: 1;
}


.cart-item-remove {
  border: none;
  background: none;
  color: #bb3c4e;
  cursor: pointer;
  font-size: 0.8rem;
}


.cart-summary {
  font-size: 0.88rem;
  margin-top: 10px;
}


.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}


.cart-summary-row.total {
  font-weight: 700;
  margin-top: 4px;
}


.cart-promo {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}


.cart-promo input {
  flex: 1;
  margin-bottom: 0;
  padding: 8px 12px;
  font-size: 0.85rem;
}


.cart-promo button {
  padding: 8px 12px;
  font-size: 0.85rem;
}


.cart-info {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #7b4a55;
}


.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }