/* ==========================================================
   Hitako – feuille de style
   Couleurs officielles : vert #2a9d8f, orange #ff7d54.
   Les teintes "-dark" sont des variantes plus sombres du vert,
   utilisées pour le texte et les boutons afin de garantir un
   contraste suffisant (WCAG AA) : #2a9d8f sur blanc = 3,3:1 seulement.
   ========================================================== */

:root {
  --green: #2a9d8f;
  --green-dark: #1f7a6f;
  --green-deep: #1a6e63;
  --green-tint: #eaf6f4;
  --orange: #ff7d54;
  --orange-tint: #fff1ec;
  --white: #ffffff;
  --ink: #1b2b2a;
  --muted: #5b6b6a;
  --line: #e3eae9;
  --bg-soft: #f6f9f9;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 20px rgba(27, 43, 42, 0.08);
  --shadow-hover: 0 10px 28px rgba(27, 43, 42, 0.14);
  --container: 1120px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--green-tint); }
.section__head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 0.7rem;
}

/* ---------- Icônes ---------- */
.icon { width: 1.4em; height: 1.4em; flex: none; }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-dark); margin-bottom: 1rem;
}
.icon-wrap .icon { width: 26px; height: 26px; }
.icon-wrap--orange { background: var(--orange-tint); color: #b8431c; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0.85rem; border-radius: 999px; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:not(.btn):hover { background: var(--green-tint); color: var(--green-deep); }
.nav a[aria-current="page"] { color: var(--green-deep); background: var(--green-tint); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--primary { background: var(--green-dark); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); color: var(--white); }
.btn--accent { background: var(--orange); color: var(--ink); }
.btn--accent:hover { background: #ff6c3d; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost:hover { background: var(--green-tint); color: var(--green-deep); }
.btn .icon { width: 1.2em; height: 1.2em; }

/* ---------- Badges de téléchargement ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.7rem; min-width: 176px;
  background: var(--ink); color: var(--white); text-decoration: none;
  padding: 0.6rem 1.1rem; border-radius: 12px; border: 1px solid var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--white); }
.store-badge .icon { width: 30px; height: 30px; }
.store-badge small { display: block; font-size: 0.68rem; letter-spacing: 0.03em; opacity: 0.85; line-height: 1.2; }
.store-badge strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.store-badge.is-disabled { cursor: not-allowed; opacity: 0.75; }
.store-badge.is-disabled:hover { transform: none; box-shadow: none; }
.stores--light .store-badge { background: var(--white); color: var(--ink); border-color: var(--white); }
.stores--light .store-badge:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); background: linear-gradient(180deg, var(--green-tint), var(--white)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero h1 .accent { color: var(--green-dark); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; margin-bottom: 1.6rem; }
.hero__visual { display: flex; justify-content: center; }
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0; background: var(--green-tint); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.page-hero h1 { margin-bottom: 0.4em; }

/* ---------- Cadre de smartphone (ratio 9:19,5) ---------- */
.phone {
  width: min(100%, 250px); margin: 0 auto; background: var(--ink);
  padding: 9px; border-radius: 36px; box-shadow: 0 18px 40px rgba(27, 43, 42, 0.22);
}
.phone__screen { aspect-ratio: 9 / 19.5; border-radius: 28px; overflow: hidden; background: var(--line); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone--float { animation: float 6s ease-in-out infinite; }
.phone--float.delay { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phones { display: flex; gap: 1.2rem; justify-content: center; align-items: center; }
.phones .phone { width: min(46%, 220px); margin: 0; }
.phones .phone:nth-child(2) { margin-top: 2.5rem; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card p { color: var(--muted); margin: 0; }

/* ---------- Bloc texte + visuel ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text p { color: var(--muted); }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.6rem; }
.checklist .icon { color: var(--green-dark); margin-top: 0.15em; width: 1.2em; height: 1.2em; }
.feature-block { padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.feature-block:last-child { border-bottom: 0; }
.feature-block .split__media { display: flex; justify-content: center; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta { background: var(--green-dark); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #e3f3f0; max-width: 560px; margin: 0 auto 1.6rem; }
.cta .stores { justify-content: center; }

/* ---------- Pages de texte (légal, contact) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.notice {
  background: var(--orange-tint); border-left: 4px solid var(--orange); border-radius: 8px;
  padding: 1rem 1.2rem; margin-bottom: 1.8rem; color: var(--ink);
}
.todo { color: var(--muted); font-style: italic; }
.contact-list { display: grid; gap: 1rem; max-width: 560px; }
.contact-list li { display: flex; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.contact-list .icon-wrap { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); }
.contact-list a { font-weight: 700; word-break: break-word; }
[hidden] { display: none !important; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #d5e0df; padding: 3rem 0 1.5rem; }
.site-footer a { color: #d5e0df; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 0.8rem; background: var(--white); border-radius: 10px; padding: 4px 8px; }
.footer__brand p { max-width: 320px; font-size: 0.95rem; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 0.8rem; }
.site-footer li { margin-bottom: 0.4rem; }
.footer__bottom { border-top: 1px solid #34504d; padding-top: 1.2rem; font-size: 0.88rem; color: #a9bcba; }

/* ---------- Apparition au défilement ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal-delay="2"] { transition-delay: 0.16s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse .split__media { order: 0; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: stretch; padding: 0.8rem 1rem 1.2rem; gap: 0.2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.8rem 1rem; }
  .nav .btn { margin-top: 0.5rem; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stores { flex-direction: column; }
  .store-badge { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .phone--float { animation-duration: 8s; }
}

/* ---------- Préférence de mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
