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

:root {
  --primary: #a855f7;
  --primary-dark: #7c3aed;
  --bg: #0a0e0f;
  --bg-card: #111618;
  --bg-card-hover: #1a2022;
  --text: #e8f0f2;
  --text-muted: #8899a4;
  --border: #1e2a2e;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

section {
  padding: 80px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: #c084fc;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  opacity: 1;
}

/* ---------- Page nav ---------- */
.page-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  padding-top: 40px;
}

.page-link {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  opacity: 1;
}

.page-link.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* ---------- Mascot ---------- */
.hero-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  position: relative;
}

.mascot {
  position: relative;
  width: 80px;
  height: 96px;
  flex-shrink: 0;
}

.mascot-body {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eye {
  width: 14px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-left { left: 18px; }
.eye-right { right: 18px; }

.pupil {
  width: 8px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
  0%, 95%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}

.mouth {
  width: 20px;
  height: 10px;
  border-bottom: 3px solid rgba(255,255,255,0.7);
  border-radius: 0 0 20px 20px;
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
}

.blush {
  width: 12px;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  position: absolute;
  bottom: 24px;
}

.blush-left { left: 8px; }
.blush-right { right: 8px; }

.arm {
  position: absolute;
  z-index: 2;
}

.arm-left {
  width: 14px;
  height: 18px;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  border-radius: 10px;
  top: 52px;
  left: -12px;
  transform: rotate(25deg);
}

.arm-right {
  width: 14px;
  height: 18px;
  background: linear-gradient(135deg, #c084fc, #a855f7);
  border-radius: 10px;
  top: 52px;
  right: -12px;
  transform: rotate(-20deg);
}

.speech-bubble {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 0.9rem;
  color: var(--text);
  max-width: 260px;
  text-align: left;
  line-height: 1.5;
}

.speech-bubble strong {
  color: var(--primary);
}

.speech-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--bg-card);
}

.speech-bubble::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 9px solid transparent;
  border-left-color: var(--border);
}

@media (max-width: 768px) {
  .hero-mascot {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .speech-bubble::after,
  .speech-bubble::before {
    right: auto;
    top: auto;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--bg-card);
  }
  .speech-bubble::before {
    bottom: -18px;
    border: 9px solid transparent;
    border-top-color: var(--border);
  }
  .speech-bubble {
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 100px 0 80px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

/* ---------- Section title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Avis / Reviews ---------- */
#avis {
  scroll-margin-top: 40px;
}

.avis-card {
  text-align: center;
  padding: 10px;
}

.stars {
  font-size: 0.7rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.stars .filled {
  color: #fbbf24;
}

.stars .empty {
  color: var(--border);
}

.avis-text {
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-bottom: 6px;
  min-height: 0;
}

.avis-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.6rem;
  color: #000;
  flex-shrink: 0;
}

.avis-name {
  font-weight: 600;
  font-size: 0.7rem;
  text-align: left;
}

.avis-role {
  color: var(--text-muted);
  font-size: 0.62rem;
  text-align: left;
}

/* ---------- Avis form ---------- */
.avis-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.avis-form-card h3 {
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-align: center;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 4px;
  font-size: 2rem;
}

.star-rating .star {
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s;
  user-select: none;
}

.star-rating .star:hover,
.star-rating .star.hover,
.star-rating .star:hover ~ .star,
.star-rating .star.hover ~ .star {
  color: #fbbf24;
}

.star-rating .star.active,
.star-rating .star.active ~ .star {
  color: #fbbf24;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- RGPD Page ---------- */
.rgpd {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.rgpd h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.rgpd .last-update {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.rgpd h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.rgpd h3 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

.rgpd p,
.rgpd li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.rgpd ul {
  padding-left: 20px;
}

.rgpd li {
  margin-bottom: 6px;
}

.rgpd .highlight {
  background: rgba(168, 85, 247, 0.08);
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.rgpd .highlight p {
  color: var(--text);
  margin: 0;
}

/* ---------- Order Page ---------- */
.order-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.order-container h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.order-container .subtitle {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.order-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group .help {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 80px 0 60px;
  }

  section {
    padding: 56px 0;
  }

  .nav-links {
    gap: 16px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
