/* =========================================================
   AppInS — feuille de style
   Palette : Encre #1B1640 · Corail #FF5E5B · Soleil #FFB13B
             Menthe #2EC4B6 · Crème #FFF9F2
   ========================================================= */

:root {
  --ink: #1B1640;
  --ink-soft: #4A4570;
  --coral: #FF5E5B;
  --coral-dark: #E84845;
  --sun: #FFB13B;
  --mint: #2EC4B6;
  --cream: #FFF9F2;
  --sand: #FFEFE0;
  --white: #FFFFFF;
  --line: rgba(27, 22, 64, .1);

  --grad: linear-gradient(135deg, var(--coral), var(--sun));

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 1.25rem;
  --radius-s: .75rem;
  --shadow: 0 1.25rem 3rem -1.25rem rgba(27, 22, 64, .25);
  --container: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--sun); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }
.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 .6rem 1.5rem -.6rem rgba(255, 94, 91, .7);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--small { padding: .6rem 1.15rem; font-size: .92rem; }
.btn--full { width: 100%; }
.link { color: var(--coral); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 242, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 2.5rem; height: 2.5rem; }
.brand__word { font: 800 1.6rem var(--font-head); letter-spacing: -.03em; color: var(--ink); }
.brand__word span { color: var(--coral); }
.brand--light .brand__word { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--coral); }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 1.5rem; height: 2px; background: var(--ink); margin: .35rem 0; transition: transform .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(.2rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-.2rem) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 6rem; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__visual { position: relative; min-height: 26rem; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(2.5rem); opacity: .55; }
.blob--coral { width: 18rem; height: 18rem; background: var(--coral); top: 0; right: 2rem; }
.blob--sun { width: 15rem; height: 15rem; background: var(--sun); bottom: 0; left: 1rem; }

.mock {
  position: relative;
  width: min(100%, 24rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-3deg);
}
.mock__bar { display: flex; gap: .4rem; padding: .9rem 1rem; background: var(--sand); }
.mock__bar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--coral); opacity: .5; }
.mock__bar i:nth-child(2) { background: var(--sun); }
.mock__bar i:nth-child(3) { background: var(--mint); }
.mock__body { padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; }
.mock__tile img { width: 4.5rem; height: 4.5rem; }
.mock__lines { display: grid; gap: .6rem; align-content: center; }
.mock__lines span { height: .6rem; border-radius: 1rem; background: var(--sand); }
.mock__chart {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: .6rem;
  height: 8rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.mock__chart b { flex: 1; border-radius: .5rem .5rem .2rem .2rem; background: var(--sand); }
.mock__chart b:last-child { background: var(--grad); }
.mock__chart b:nth-child(4) { background: var(--mint); opacity: .6; }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip--a { top: 2rem; left: 0; }
.chip--b { bottom: 2.5rem; right: 0; animation-delay: -3s; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; }
.dot--mint { background: var(--mint); }
@keyframes float { 50% { transform: translateY(-.6rem); } }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section--tinted { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--white); }
.section__head { max-width: 44rem; margin-bottom: 3.5rem; }

/* Piliers */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pillar { padding: 2.5rem; border-radius: var(--radius); position: relative; overflow: hidden; }
.pillar--coral { background: var(--grad); color: var(--white); }
.pillar--ink { background: var(--ink); color: var(--white); }
.pillar p { opacity: .9; }
.pillar__icon {
  width: 3.25rem; height: 3.25rem;
  display: grid; place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .18);
  margin-bottom: 1.5rem;
}
.pillar__icon svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.checks li { padding-left: 1.75rem; position: relative; font-weight: 500; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .35rem;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: rgba(255, 255, 255, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.card h4::before {
  content: "";
  display: block;
  width: 2rem; height: .3rem;
  border-radius: 1rem;
  background: var(--grad);
  margin-bottom: 1rem;
}

/* Produits */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product {
  padding: 2.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.product p { color: var(--ink-soft); }
.product--soon { background: transparent; box-shadow: none; border: 2px dashed rgba(27, 22, 64, .2); }
.product__badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.product--soon .product__badge { background: var(--sun); color: var(--ink); }

.product--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
}
.product--soon { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: 1.5rem 2.25rem; }
.product--soon h3, .product--soon p, .product--soon .product__badge { margin: 0; }
.product--soon h3 { font-size: 1.2rem; }
.product--soon p { flex: 1 1 18rem; }
.product--soon .link { margin-left: auto; }

.product__title { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; }
.product__title img { width: 2.75rem; height: 2.75rem; padding: .35rem; border-radius: .8rem; background: var(--ink); }
.product__title h3 { margin: 0; }
.product__kicker { font-size: .9rem; font-weight: 600; color: var(--coral); }
.product__features { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .4rem; }
.product__features li { padding-left: 1.4rem; position: relative; font-size: .97rem; }
.product__features li::before {
  content: "";
  position: absolute; left: 0; top: .6rem;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--grad);
}
.product__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.product__tags span {
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--sand);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.product__shot { margin: 0; }
.product__shot img {
  border-radius: var(--radius-s);
  box-shadow: 0 1.5rem 3rem -1rem rgba(27, 22, 64, .45);
  transform: perspective(60rem) rotateY(-6deg);
}

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding-top: 1.5rem; border-top: 3px solid var(--sand); }
.step:hover { border-top-color: var(--coral); }
.step p { color: var(--ink-soft); font-size: .97rem; }
.step__num { font: 800 2.75rem var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--coral); display: block; margin-bottom: .5rem; }

/* À propos */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: rgba(255, 255, 255, .78); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.value {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.value h4 { margin-bottom: .2rem; }
.value p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.value__emoji { font-size: 1.6rem; line-height: 1; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }

.form {
  position: relative;
  display: grid; gap: 1.1rem;
  padding: 2.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--cream);
  font: 400 1rem var(--font-body);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 94, 91, .15);
}
.form__note { margin: 0; font-size: .9rem; color: var(--ink-soft); min-height: 1.4em; }
.form__note.is-success { color: #13897E; font-weight: 600; }
.form__note.is-error { color: var(--coral-dark); font-weight: 600; }
.form__legal { margin: 0; font-size: .8rem; color: var(--ink-soft); }
.form__legal a { color: inherit; }
.form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }

/* Footer */
.footer { background: var(--ink); color: var(--white); padding: 3.5rem 0 2rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer__tag { margin-top: .75rem; color: rgba(255, 255, 255, .6); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer__nav a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer__nav a:hover { color: var(--sun); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 3rem; }
  .product--featured { grid-template-columns: 1fr; }
  .product__shot img { transform: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 4.5rem; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .pillars, .products, .cards, .steps, .form__row { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .hero__visual { min-height: 22rem; }
}
