/* Galets — site vitrine.
   Mêmes règles que l'app : chrome neutre, la couleur vient du contenu,
   trois accents (vermillon, menthe, iris), titres lourds et serrés. */

:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --line: #e6e6ea;
  --text: #0a0a0b;
  --text-2: #48484a;
  --text-3: #8e8e93;
  --vermillon: #ff4a2b;
  --menthe: #00dfa2;
  --iris: #5a4bff;
  --on-accent: #ffffff;
  --frame: #1c1c1e;
  --shadow: 0 30px 60px -20px rgb(0 0 0 / 0.25);
  --radius-l: 36px;
  --radius-m: 24px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b;
    --surface: #1c1c1e;
    --line: #2c2c2e;
    --text: #ffffff;
    --text-2: #c7c7cc;
    --text-3: #8e8e93;
    --vermillon: #ff5c40;
    --menthe: #12e8ad;
    --iris: #7a6dff;
    --frame: #3a3a3c;
    --shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }

p { margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(19px, 1.8vw, 22px);
  color: var(--text-2);
  max-width: 34em;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ---------- Badge App Store ---------- */

/* Badges officiels d'Apple, utilisés tels quels : pas de recoloration ni de
   déformation, 40 px de haut au minimum à l'écran. */
.badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.2s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; }
.badge img { width: auto; height: 56px; }
.badge--small img { height: 40px; }

/* En attendant la sortie : une pastille à la place du badge, même gabarit. */
.soon {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.soon--small { height: 40px; padding: 0 16px; font-size: 14px; }
.cta .soon { background: var(--bg); color: var(--text); }

/* ---------- En-tête ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
}
.lang a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--text-3);
  text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }
.lang a:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; }

.app-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
  background: linear-gradient(180deg, #e7e9e4, #e0c0b5);
  box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.1);
  overflow: hidden;
}
.app-icon img { width: 74%; transform: translate(-2%, 2%); }
.app-icon--large { width: 112px; height: 112px; box-shadow: var(--shadow); }

/* ---------- Héros ---------- */

.hero {
  padding: clamp(32px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--vermillon); }
.hero .lead { margin-bottom: 36px; }
.platforms { margin-top: 16px; font-size: 15px; color: var(--text-3); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .pebbles {
  position: absolute;
  width: 58%;
  left: -18%;
  bottom: -6%;
  z-index: 2;
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.18));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .pebbles { animation: none; }
  .badge { transition: none; }
}

/* ---------- Cadres d'appareils ---------- */

.phone {
  position: relative;
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 54px;
  background: var(--frame);
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  border-radius: 44px;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  background: var(--surface);
}

.tablet {
  padding: 14px;
  border-radius: 40px;
  background: var(--frame);
  box-shadow: var(--shadow);
}
.tablet img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 2064 / 2752;
  object-fit: cover;
}

/* ---------- Pour qui ---------- */

.intro {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--surface);
}
.intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.intro p + p { margin-top: 20px; }
.intro .lead { color: var(--text); }
.intro .body { color: var(--text-2); }

/* ---------- Fonctionnalités ---------- */

.features { padding: clamp(64px, 9vw, 128px) 0 clamp(32px, 4vw, 64px); }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.feature + .feature { margin-top: clamp(80px, 11vw, 160px); }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-visual { display: flex; justify-content: center; position: relative; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text .lead { margin-bottom: 24px; }

/* Fond coloré derrière la capture : la couleur vient du contenu. */
.feature-visual::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.35;
  z-index: -1;
}
.tint-vermillon::before { background: var(--vermillon); }
.tint-menthe::before { background: var(--menthe); }
.tint-iris::before { background: var(--iris); }
.tint-mix::before { background: linear-gradient(135deg, var(--menthe), var(--iris)); }

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent, var(--vermillon));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E");
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.3em + 5px);
  width: 5px;
  height: 9px;
  border: solid var(--on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Jardin ---------- */

.garden { padding: clamp(48px, 7vw, 96px) 0; }
.garden-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.garden-head h2 { margin-bottom: 20px; }
.garden-head .lead { margin: 0 auto; }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tile {
  position: relative;
  min-height: 440px;
  padding: clamp(28px, 3.5vw, 44px);
  border-radius: var(--radius-l);
  color: var(--on-accent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; margin-bottom: 10px; max-width: 12em; }
.tile p { max-width: 22em; opacity: 0.92; }
.tile img {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42%;
  max-width: 210px;
  filter: drop-shadow(0 20px 24px rgb(0 0 0 / 0.2));
}
.tile--sun { background: linear-gradient(150deg, #ff7a3d, #ff4a2b 55%, #e8264f); }
.tile--rain { background: linear-gradient(150deg, #6a5cff, #3b2fd6 60%, #241b9e); }

/* ---------- Grille de détails ---------- */

.more { padding: clamp(64px, 8vw, 112px) 0; }
.more h2 { margin-bottom: clamp(32px, 4vw, 56px); max-width: 14em; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius-m);
  padding: 28px;
}
.card img {
  width: 88px;
  height: 88px;
  margin: -8px 0 16px -8px;
  filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.14));
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 16px; }

/* ---------- iPad ---------- */

.ipad {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--surface);
  overflow: hidden;
}
.ipad .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.ipad h2 { margin-bottom: 20px; }
.ipad .tablet { max-width: 620px; justify-self: end; width: 100%; }

/* ---------- Confidentialité ---------- */

.privacy { padding: clamp(64px, 9vw, 128px) 0; }
.privacy .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.privacy img { width: min(100%, 420px); margin: 0 auto; }
.privacy h2 { margin-bottom: 20px; }
.privacy .lead + .lead { margin-top: 16px; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.pills li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Appel final ---------- */

.cta {
  padding: clamp(72px, 10vw, 144px) 0;
  text-align: center;
  background: var(--text);
  color: var(--bg);
}
.cta .app-icon--large { margin: 0 auto 32px; }
.cta h2 { margin-bottom: 20px; }
.cta .lead { color: inherit; opacity: 0.75; margin: 0 auto 36px; }

/* ---------- Pied de page ---------- */

.foot {
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--text-3);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- Page texte (confidentialité) ---------- */

.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 16px; }
.doc .updated { color: var(--text-3); font-size: 15px; margin-bottom: 48px; }
.doc h2 { font-size: 26px; letter-spacing: -0.025em; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }

/* ---------- Petits écrans ---------- */

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

@media (max-width: 780px) {
  body { font-size: 17px; }
  .hero .wrap,
  .intro .wrap,
  .feature,
  .ipad .wrap,
  .privacy .wrap,
  .duo { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 16px; }
  .hero-visual .phone { width: min(78%, 300px); }
  .hero-visual .pebbles { width: 44%; left: 0; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-visual .phone { width: min(78%, 300px); }
  .ipad .tablet { justify-self: center; }
  .privacy img { width: 60%; }
  .tile { min-height: 0; padding-top: 180px; }
  .tile img { width: 160px; }
}

@media (max-width: 440px) {
  /* Le bouton du héros prend le relais : l'en-tête garde la marque et la langue. */
  .top .badge--small,
  .top .soon--small { display: none; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .phone { padding: 7px; border-radius: 42px; }
  .phone img { border-radius: 35px; }
  .tablet { padding: 9px; border-radius: 28px; }
  .tablet img { border-radius: 20px; }
}

.feature-visual .tablet { width: min(100%, 480px); }
