@font-face {
  font-family: 'Kalam';
  src: url('assets/Kalam.ttf') format('truetype');
}

@font-face {
  font-family: 'OleoScript';
  src: url('assets/OleoScript.ttf') format('truetype');
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kalam', sans-serif;
}

html, body {
  height: 100%;
  background: #21005E;
}

body {
  display: flex;
  flex-direction: column;
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #21005E;
  color: #FFF;
}

.brand {
  font-size: 2rem;
  font-weight: bold;
  color: #FFF;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #BB86FC;
  transition: width 0.2s ease;
}

.brand:hover::after { width: 100%; }

/* Bouton hamburger (caché sur desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #EDE7FF;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding-bottom: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #BB86FC;
  transition: width 0.2s ease;
}

.nav-links a:hover::after { width: 100%; }

/* ── Bandeau de statut ── */
.status-banner {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  white-space: nowrap;
}

.status-banner.success { background: #E8F5E9; color: #2E7D32; }
.status-banner.error   { background: #FFEBEE; color: #C62828; }

/* ── Page wrapper ── */
.page-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 88px 16px 24px 16px;
  box-sizing: border-box;
}

.page {
  width: 100%;
  max-width: 1100px;
  background: #F9F5FF;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  overflow: visible;
}

main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Boîtes blanches ── */
#support,
#qui-sommes-nous {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 32px;
}

h2 {
  font-size: 1.4rem;
  color: #21005E;
  margin-bottom: 12px;
}

/* ── Section Présentation ── */
#presentation {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  background: transparent;
}

.presentation-left {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 32px;
  text-align: center;
}

.app-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
  display: inline-block;
  border-radius: 32px;
}

/* ── Titre et sous-titre de marque ── */
.brand-title {
  font-family: 'OleoScript', cursive;
  font-size: 2.8rem;
  color: #000000;
  text-align: center;
  margin-bottom: 8px;
}

.brand-subtitle {
  font-family: 'Kalam', sans-serif;
  font-size: 1.1rem;
  color: #000000;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 24px;
}

.presentation-left p:not(.brand-title):not(.brand-subtitle) {
  font-size: 1rem;
  color: #31225F;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: left;
}

/* ── Badges stores ── */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.store-badge {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border-radius: 10px;
  line-height: 0;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  height: 52px;
  width: auto;
  display: block;
  filter: none;
}

/* ── Carousel ── */
.carousel-col {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: transparent;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 320px;
  background: transparent;
}

.carousel-slide         { display: none; background: transparent; }
.carousel-slide.active  { display: block; }

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(33, 0, 94, 0.65);
  color: #FFF;
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover { background: rgba(33, 0, 94, 0.9); }
.carousel-btn.prev  { left: -18px; }
.carousel-btn.next  { right: -18px; }

.carousel-dots { display: flex; gap: 8px; }

.dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #C4B5FD;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active { background: #21005E; transform: scale(1.3); }

/* ── Formulaire ── */
.support-form label {
  display: block;
  font-size: 1.1rem;
  color: #31225F;
  margin-bottom: 6px;
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #21005E;
  padding: 8px 4px;
  margin-bottom: 20px;
  background: transparent;
  font-size: 0.95rem;
}

.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-bottom: 2px solid #7E57FF;
}

.submit {
  border: 1px solid #21005E;
  padding: 0.5rem 1.4rem;
  background-color: #21005E;
  color: #FFF;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.submit:hover { opacity: 0.75; }

.copy-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.copy-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 0;
  accent-color: #21005E;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-checkbox label {
  font-size: 0.95rem;
  color: #31225F;
  margin-bottom: 0;
  cursor: pointer;
}

/* ── Qui sommes-nous ── */
#qui-sommes-nous > p {
  font-size: 0.95rem;
  color: #31225F;
  line-height: 1.6;
  margin-bottom: 4px;
}

.mentions-inline {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #EDE7FF;
}

.mentions-inline h3 { font-size: 1.1rem; color: #21005E; margin-bottom: 10px; }

.mentions-inline p {
  font-size: 0.9rem;
  color: #31225F;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mentions-inline a {
  color: #7E57FF;
  text-decoration: none;
  border-bottom: 1px dotted #7E57FF;
}

/* ── Politique de confidentialité ── */
.privacy-section {
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 32px;
}

.privacy-section > h2 {
  font-size: 1.6rem;
  color: #21005E;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #EDE7FF;
}

.privacy-block { margin-bottom: 24px; }

.privacy-block h3 {
  font-size: 1.1rem;
  color: #21005E;
  font-weight: bold;
  margin-bottom: 8px;
  margin-top: 16px;
}

.privacy-block p,
.privacy-block ul {
  font-size: 0.95rem;
  color: #31225F;
  line-height: 1.6;
  margin-bottom: 8px;
}

.privacy-block ul { padding-inline-start: 20px; }

.privacy-block a {
  color: #7E57FF;
  text-decoration: none;
  border-bottom: 1px dotted #7E57FF;
  word-break: break-all;
}

.privacy-block a:hover { opacity: 0.8; }

.privacy-updated {
  text-align: right;
  font-size: 0.85rem;
  color: #9E8FBF;
  margin-top: 16px;
  font-style: italic;
}

/* ── Responsive tablette ── */
@media (max-width: 900px) {
  #presentation {
    grid-template-columns: 1fr;
  }
  /* Plus de order:-1 → présentation-left reste en premier */
  .carousel-slide img {
    max-height: 50vh;
  }
}

/* ── Responsive mobile ── */
@media (max-width: 640px) {

  /* Topbar : hamburger menu */
  .topbar {
    height: auto;
    min-height: 56px;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 0 8px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    white-space: normal;
  }

  /* Décale le contenu sous la topbar */
  .page-wrapper {
    padding: 80px 8px 16px 8px;
  }

  main {
    padding: 16px;
    gap: 16px;
  }

  .presentation-left,
  #support,
  #qui-sommes-nous {
    padding: 20px;
  }

  .app-logo {
    width: 100px;
    height: 100px;
  }

  .brand-title {
    font-size: 2.2rem;
  }

  .brand-subtitle {
    font-size: 1rem;
  }

  .store-badge img {
    height: 44px;
    filter: none;
  }

  .carousel { max-width: 220px; }

  .privacy-section { padding: 20px; }

  .status-banner {
    white-space: normal;
    text-align: center;
    width: calc(100% - 32px);
    border-radius: 16px;
  }
}