/* Mêmes couleurs que le launcher : plage de jour, et de nuit en thème sombre */
:root {
  --sea-deep: #0b5f86;
  --sea: #1a9bc7;
  --lagoon: #5cc8e0;
  --foam: #e8f6fb;
  --sand: #f6ead2;
  --text: #0d3a4f;
  --text-soft: #4b7487;
  --bg: #f3fafc;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(26, 155, 199, 0.25);
  --veil: rgba(232, 246, 251, 0.35);
  --shadow: 0 18px 50px rgba(11, 95, 134, 0.18);
  --scene: url('img/beach-day.svg');
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sea-deep: #8fdcf0;
    --text: #e3f2f8;
    --text-soft: #93b6c6;
    --bg: #06131f;
    --card: rgba(12, 32, 50, 0.78);
    --line: rgba(92, 200, 224, 0.22);
    --veil: rgba(4, 12, 22, 0.35);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --scene: url('img/beach-night.svg');
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--sea); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: var(--line); }
h1, h2, h3 { font-family: 'Quicksand', sans-serif; color: var(--sea-deep); line-height: 1.2; }

/* ------------------------------------------------------------ barre du haut */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(16px, calc((100% - 1100px) / 2));
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: 'Quicksand', sans-serif; font-size: 22px; color: var(--sea-deep); }
.nav__logo:hover { text-decoration: none; }
.nav__links { display: flex; gap: 22px; }
.nav__links a { color: var(--text); font-weight: 700; font-size: 15px; }
/* Lien vers l'autre langue (reste visible sur téléphone, contrairement aux autres liens) */
.nav__lang {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sea-deep);
  font-weight: 700;
  font-size: 14px;
}
.nav__lang:hover { text-decoration: none; background: color-mix(in srgb, var(--sea) 12%, transparent); }

/* ------------------------------------------------------------ accueil */

.hero {
  position: relative;
  /* Plein écran, sans s'étirer à l'infini sur les très grands écrans */
  min-height: min(100vh, 860px);
  min-height: min(100svh, 860px);
  display: grid;
  place-items: center;
  padding: 110px 16px 80px;
  text-align: center;
  isolation: isolate;
}
.hero__scene { position: absolute; inset: 0; z-index: -1; background: var(--scene) center / cover no-repeat; }
.hero__scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--veil), transparent 40%, transparent 70%, var(--bg)); }
.hero__content {
  max-width: 560px;
  padding: 40px 36px;
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__icon { filter: drop-shadow(0 8px 18px rgba(11, 95, 134, 0.3)); }
.hero h1 { font-size: clamp(44px, 8vw, 64px); margin-top: 6px; }
.hero__tagline { font-size: 19px; color: var(--text-soft); margin-bottom: 26px; }
.hero__meta { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--text-soft); }
.hero__note { margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.hero__others { margin-top: 4px; font-size: 13px; color: var(--text-soft); }

.download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  color: white;
  background: linear-gradient(135deg, var(--sea), var(--lagoon));
  box-shadow: 0 12px 30px rgba(26, 155, 199, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.download:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(26, 155, 199, 0.55); }
.download:active { transform: translateY(0); }

/* ------------------------------------------------------------ captures */

.showcase { padding: 0 16px; margin-top: -40px; position: relative; }
.window {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--card);
}
.window img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------ sections */

.section { max-width: 1100px; margin: 0 auto; padding: 90px 16px 0; }
.section h2 { font-size: clamp(30px, 5vw, 40px); text-align: center; }
.section__lead { text-align: center; color: var(--text-soft); font-size: 18px; margin: 8px auto 36px; max-width: 620px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--lagoon); }
.feature__icon { font-size: 30px; }
.feature h3 { font-size: 20px; margin: 8px 0 6px; }
.feature p { color: var(--text-soft); }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.split h2, .split .section__lead { text-align: left; margin-left: 0; }
.checks { list-style: none; display: grid; gap: 10px; font-weight: 600; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: white;
  background: var(--sea);
}

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.steps li { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps__num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: 'Quicksand', sans-serif;
  font-size: 19px;
  color: white;
  background: linear-gradient(135deg, var(--sea), var(--lagoon));
}
.steps h3 { font-size: 19px; margin: 12px 0 6px; }
.steps p { color: var(--text-soft); }

.faq { max-width: 760px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--sea); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-soft); }
.faq details ul { padding: 0 20px 14px 40px; color: var(--text-soft); }
.faq details li { margin-bottom: 8px; }

/* ------------------------------------------------------------ pages légales (confidentialité, signature) */

.legal { max-width: 820px; }
main.legal { padding-top: 110px; }
.legal h1 { font-size: clamp(32px, 6vw, 44px); }
.legal h2 { text-align: left; font-size: 24px; margin: 28px 0 8px; }
.legal .section__lead { text-align: left; margin: 6px 0 18px; }
.legal p { margin-bottom: 12px; }
.legal__list { margin: 8px 0 14px 20px; display: grid; gap: 8px; }
#signature h2 { text-align: center; }
#signature .section__lead { text-align: center; margin-bottom: 20px; }

/* ------------------------------------------------------------ pied de page */

.footer { margin-top: 100px; padding: 30px 16px 40px; text-align: center; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 14px; }
.footer__legal { margin-top: 6px; font-size: 12px; }

/* ------------------------------------------------------------ petits écrans */

@media (max-width: 760px) {
  .nav__links { display: none; }
  .hero__content { padding: 32px 22px; }
  .download { font-size: 18px; padding: 14px 26px; }
  .split { grid-template-columns: 1fr; }
  .split h2, .split .section__lead { text-align: center; }
  .section { padding-top: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
