:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f5f5f5;
  --page-bg: #f2f2f7;

  --text: #000000;
  --muted: #666666;

  --accent: #9d4edd;
  --accent-dark: #5b21b6;

  --border: #e0e0e0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    Roboto, sans-serif;
  line-height: 1.6;
  background: var(--page-bg);
  min-height: 100vh;
  color: var(--text);
}

/* links */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ===== Layout (header/footer) ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.2s;
}

.brand:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.15);
  transition: box-shadow 0.2s;
}

.brand:hover img {
  box-shadow: 0 4px 12px rgba(91, 33, 182, 0.25);
}

.brand span {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  padding: 4px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  background: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: var(--muted);
  background-clip: text;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.nav-link:hover {
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:active {
  transform: translateY(0);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--page-bg);
  padding: 4px;
  border-radius: 12px;
  position: relative;
  border: 1.5px solid rgba(82, 82, 82, 0.15);
  backdrop-filter: blur(10px);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px;
  min-width: 38px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.lang-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.3);
}

.lang-btn.active {
  color: white;
}

.lang-btn.active::before {
  opacity: 1;
}

.lang-btn:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.lang-btn.active:hover {
  color: white;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 18px;
  color: var(--muted);

  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.65);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer a.active {
  color: var(--accent);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Page / Card (ton style) ===== */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.6rem 4rem;
}

.card {
  background: var(--bg);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  margin-bottom: 0.2rem;
}

p {
  margin: 0.3rem 0 0.6rem;
  color: var(--text);
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

ul,
ol {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0.8rem;
}

li {
  margin-bottom: 0.25rem;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.2rem 0.75rem;
  /* border-radius: 999px; */

  background: rgba(157, 78, 221, 0.1);
  /* border: 2px solid rgba(157, 78, 221, 0.3); */
  color: var(--muted);

  font-size: 0.8rem;
  margin-bottom: 1.3rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(157, 78, 221, 0.2);
}

.section-id {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.highlight {
  color: var(--accent-dark);
  font-weight: 600;
}

code {
  font-size: 0.85em;
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
  background: rgba(157, 78, 221, 0.1);
  color: var(--accent-dark);
}

.notice {
  border: 1px dashed rgba(157, 78, 221, 0.5);
  background: rgba(157, 78, 221, 0.07);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--muted);
  margin: 0.8rem 0 1.2rem;
  font-size: 0.92rem;
}

/* ===== Form Styles ===== */
.contact-form {
  min-width: 80%;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

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

.form-group .error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: block;
}

.form-group input.error-input,
.form-group textarea.error-input {
  border-color: #d32f2f;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0.9rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #2e7d32;
}

.alert-error {
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.3);
  color: #c62828;
}

/* ===== Home Page Styles (App Store Style) ===== */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.6rem 3rem;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  padding-bottom: 0.2em;
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  display: inline-block;
}

.home-hero .tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-screenshots {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.6rem 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.screenshot-placeholder {
  width: 200px;
  height: 433px;
  background: gray;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(91, 33, 182, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-placeholder:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(91, 33, 182, 0.4);
}

.screenshot-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: gray;
  opacity: 0.95;
}

.screenshot-placeholder::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.screenshot-placeholder span {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem;
  opacity: 0.95;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  position: relative;
  z-index: 1;
}

.home-description {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.6rem 3rem;
  text-align: center;
}

.home-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.home-cta {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.6rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: 24px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  min-width: 160px;
  flex: 1;
  max-width: 200px;
}

.store-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.store-btn-apple {
  background: #000000;
  color: #ffffff;
  border: none;
}

.store-btn-apple:hover {
  background: #1a1a1a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.store-btn-google {
  background: #ffffff;
  color: #000000;
  border: 0.7px solid rgba(0, 0, 0, 0.15);
}

.store-btn-google:hover {
  background: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: #ffffff;
  color: var(--text);
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kofi-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  border-color: rgba(0, 0, 0, 0.15);
  background: #fafafa;
}

.kofi-btn:active {
  transform: translateY(0);
}

.heart-icon {
  width: 20px;
  height: 20px;
  fill: #e74c3c;
}

/* Styles pour les éléments de texte supplémentaires */
.contact-email-link {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .contact-email-link {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    padding: 0 0.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
}

/* ===== Responsive Design ===== */

/* Tablettes (768px - 1024px) */
@media (max-width: 1024px) {
  .page {
    padding: 2.5rem 1.4rem 3.5rem;
  }

  .card {
    padding: 2rem 1.8rem;
  }

  .contact-form {
    min-width: 90%;
  }

  .home-screenshots {
    gap: 1.2rem;
  }

  .screenshot-placeholder {
    width: 180px;
    height: 390px;
  }
}

/* Tablettes et petits écrans (max-width: 860px) */
@media (max-width: 860px) {
  .topbar {
    padding: 14px 18px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .brand span {
    font-size: 1.1rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav {
    gap: 2px;
    padding: 3px;
  }

  .nav-link {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }

  .lang-switcher {
    padding: 3px;
    gap: 0;
  }

  .lang-btn {
    padding: 0.45rem 0.85rem;
    min-width: 44px;
    font-size: 0.8rem;
  }

  .home-hero {
    padding: 2.5rem 1.6rem 2rem;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .home-hero .tagline {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .home-screenshots {
    gap: 1rem;
    padding: 1.5rem 1.6rem 3rem;
  }

  .screenshot-placeholder {
    width: 160px;
    height: 346px;
    border-radius: 1.5rem;
  }

  .home-description {
    padding: 0 1.6rem 2.5rem;
  }

  .home-description p {
    font-size: 1rem;
  }

  .contact-form {
    min-width: 95%;
    margin: 1.5rem auto 0;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Mobiles (max-width: 640px) */
@media (max-width: 640px) {
  .topbar {
    padding: 12px 16px;
    gap: 12px;
  }

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

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav {
    display: none;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    padding: 0.4rem 0.7rem;
    min-width: 40px;
    font-size: 0.75rem;
  }

  .page {
    padding: 2rem 1.1rem 3rem;
  }

  .card {
    padding: 1.8rem 1.4rem;
    border-radius: 1.1rem;
  }

  h1 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    margin-bottom: 0.8rem;
  }

  h2 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  h3 {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .home-hero {
    padding: 2rem 1.2rem 1.5rem;
  }

  .home-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .home-hero .tagline {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: 1.5rem;
  }

  .home-hero p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .home-screenshots {
    padding: 1rem 1.2rem 2rem;
    gap: 0.8rem;
  }

  .screenshot-placeholder {
    width: 140px;
    height: 303px;
    font-size: 0.8rem;
    border-radius: 1.2rem;
  }

  .home-description {
    padding: 0 1.2rem 2rem;
  }

  .home-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
  }

  .home-cta {
    padding: 0 1.2rem 3rem;
    gap: 1rem;
  }

  .store-buttons {
    flex-direction: column;
    width: 100%;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    flex: none;
    height: 50px;
    font-size: 0.9rem;
  }

  .kofi-btn {
    width: 100%;
    max-width: 280px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .contact-form {
    min-width: 100%;
    margin: 1.5rem 0 0;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .btn-submit {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .alert {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .footer {
    padding: 14px 12px;
    font-size: 0.85rem;
  }

  .footer-links {
    gap: 12px;
    font-size: 0.85rem;
  }

  .meta {
    font-size: 0.8rem;
  }

  .notice {
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 0.8rem;
  }
}

/* Très petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
  .topbar {
    padding: 10px 12px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .page {
    padding: 1.5rem 1rem 2.5rem;
  }

  .card {
    padding: 1.5rem 1.2rem;
    border-radius: 1rem;
  }

  .home-hero {
    padding: 1.5rem 1rem 1rem;
  }

  .home-hero h1 {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }

  .home-screenshots {
    padding: 0.8rem 1rem 1.5rem;
    gap: 0.6rem;
  }

  .screenshot-placeholder {
    width: 120px;
    height: 260px;
    font-size: 0.7rem;
    border-radius: 1rem;
  }

  .home-description {
    padding: 0 1rem 1.5rem;
  }

  .home-description p {
    font-size: 0.9rem;
  }

  .home-cta {
    padding: 0 1rem 2rem;
  }

  .store-btn,
  .kofi-btn {
    max-width: 100%;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.9rem;
  }

  .btn-submit {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Orientation paysage sur mobile */
@media (max-width: 860px) and (orientation: landscape) {
  .home-hero {
    padding: 2rem 1.6rem 1.5rem;
  }

  .home-screenshots {
    flex-direction: row;
    gap: 1rem;
  }

  .screenshot-placeholder {
    width: 140px;
    height: 303px;
  }
}
