/* ==========================================================================
   Friio — friio.io v2
   Direction : premium sobre (type XXL, whitespace) × ADN Friio
   (crème app, verts brand, cartes d'urgence comme langage graphique)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette — issue de l'app */
  --cream: #fffcf5;
  --paper: #ffffff;
  --ink: #22302b;
  --ink-60: rgba(34, 48, 43, 0.62);
  --ink-30: rgba(34, 48, 43, 0.3);
  --forest: #00624d;
  --leaf: #0d8f5b;
  --leaf-soft: rgba(13, 143, 91, 0.1);
  /* Quatuor d'urgence (cartes de l'app) */
  --c-urgent: #6e1423;
  --c-soon: #f95f13;
  --c-week: #c9e44c;
  --c-ok: #0b5a47;

  --radius-l: 28px;
  --radius-m: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 24px 60px -24px rgba(34, 48, 43, 0.28);
  --shadow-float: 0 16px 40px -12px rgba(34, 48, 43, 0.35);

  --w-max: 1280px;
  --pad-x: clamp(20px, 5vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 450;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.wrap { max-width: var(--w-max); margin: 0 auto; padding-inline: var(--pad-x); }

::selection { background: var(--leaf); color: #fff; }

[id] { scroll-margin-top: 92px; }

:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.display {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

h1.display { font-size: clamp(2.7rem, 7vw, 4.9rem); }
h2.display { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-60);
  line-height: 1.65;
  max-width: 34em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 252, 245, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: rgba(34, 48, 43, 0.08); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav__links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 550; }
.nav__links a:not(.btn) { color: var(--ink-60); transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 98, 77, 0.55); }

.nav__dl { position: relative; }
/* pont invisible : garde le :hover pendant le trajet bouton → menu */
.nav__dl::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.nav__dl-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  background: var(--paper);
  border: 1px solid rgba(34, 48, 43, 0.1);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 44px -16px rgba(34, 48, 43, 0.35);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.97);
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.22s cubic-bezier(0.2, 0.6, 0.2, 1),
    visibility 0s linear 0.22s;
}
.nav__dl.open .nav__dl-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.22s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.22s cubic-bezier(0.2, 0.6, 0.2, 1),
    visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .nav__dl:hover .nav__dl-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      opacity 0.22s cubic-bezier(0.2, 0.6, 0.2, 1),
      transform 0.22s cubic-bezier(0.2, 0.6, 0.2, 1),
      visibility 0s;
  }
}
.nav__dl-menu img { height: 44px; width: auto; max-width: none; border-radius: 8px; transition: transform 0.15s ease; }
.nav__dl-menu a:hover img { transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(120px, 16vh, 170px);
  padding-bottom: clamp(40px, 6vw, 90px);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "copy scene" "actions scene";
  column-gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero__copy { grid-area: copy; align-self: end; }
.hero__actions { grid-area: actions; align-self: start; }
.hero__scene { grid-area: scene; }

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid rgba(34, 48, 43, 0.1);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 14px -8px rgba(34, 48, 43, 0.25);
  margin-bottom: 1.6rem;
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

.hero h1 .accent { color: var(--leaf); }

.hero .lede { margin-top: 1.4rem; }

.hero__stores { display: flex; align-items: center; gap: 14px; margin-top: 2.2rem; flex-wrap: wrap; }
.store-badge img { height: 52px; width: auto; border-radius: 10px; transition: transform 0.15s ease; }
.store-badge:hover img { transform: translateY(-2px); }

.hero__note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-60); }

/* Scène téléphone + cartes flottantes (signature) */
.hero__scene { position: relative; display: flex; justify-content: center; }

.hero__phone {
  width: min(385px, 78vw);
  filter: drop-shadow(0 40px 70px rgba(34, 48, 43, 0.3));
}

.float-card {
  position: absolute;
  width: clamp(84px, 9vw, 124px);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  will-change: transform;
}
.float-card--1 { top: 6%; left: -2%; rotate: -8deg; }
.float-card--2 { top: -4%; right: 4%; rotate: 7deg; }
.float-card--3 { bottom: 18%; left: -6%; rotate: 6deg; }
.float-card--4 { bottom: -3%; right: -2%; rotate: -7deg; }
.float-card--5 { top: 40%; right: -9%; rotate: 12deg; width: clamp(70px, 7vw, 100px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "scene" "actions"; }
  .hero__scene { margin-top: 2rem; }
  .hero__actions { margin-top: 2.2rem; }
  .float-card--3, .float-card--5 { display: none; }
  .float-card--1 { left: 2%; }
  .float-card--4 { right: 2%; }
}

/* --------------------------------------------------------------------------
   Bande de confiance
   -------------------------------------------------------------------------- */

.trust {
  border-block: 1px solid rgba(34, 48, 43, 0.08);
  padding-block: 20px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.trust__track { display: flex; width: max-content; animation: trust-scroll 28s linear infinite; }
.trust:hover .trust__track { animation-play-state: paused; }
.trust__group {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  padding-right: clamp(44px, 6vw, 84px);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-60);
  white-space: nowrap;
}
.trust .stars { color: #e8a13a; letter-spacing: 2px; }
@keyframes trust-scroll { to { transform: translateX(-25%); } }

/* --------------------------------------------------------------------------
   Sections communes
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(72px, 11vw, 140px); }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head .lede { margin-top: 1.1rem; }

/* --------------------------------------------------------------------------
   Comment ça marche — téléphone sticky
   -------------------------------------------------------------------------- */

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.how__steps { display: flex; flex-direction: column; }

.step {
  padding-block: clamp(28px, 6vh, 64px);
  border-top: 1px solid rgba(34, 48, 43, 0.1);
  opacity: 0.5;
  transition: opacity 0.35s ease;
}
.step:first-child { border-top: none; }
.step.is-active { opacity: 1; }

.step__num {
  display: block;
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--leaf);
  margin-bottom: 0.9rem;
}

.step h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 0.6rem; }
.step p { color: var(--ink-60); max-width: 26em; }

.step__img { display: none; }

.how__device { position: sticky; top: 90px; display: flex; justify-content: center; }
.how__device img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 30px 60px rgba(34, 48, 43, 0.25));
  transition: opacity 0.3s ease;
}
.how__device img.is-switching { opacity: 0; }

@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__device { display: none; }
  .step { opacity: 1; }
  .step__img { display: block; width: min(240px, 64vw); margin: 1.6rem auto 0; filter: drop-shadow(0 20px 40px rgba(34,48,43,0.22)); }
}

/* --------------------------------------------------------------------------
   Frigo partagé — section forest
   -------------------------------------------------------------------------- */

.shared {
  background: var(--forest);
  color: var(--cream);
  border-radius: clamp(24px, 4vw, 44px);
  margin-inline: clamp(8px, 1.5vw, 20px);
  overflow: clip;
}
.shared .eyebrow { color: var(--c-week); }
.shared .lede { color: rgba(255, 252, 245, 0.75); }

.shared__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.shared__points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.shared__points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 252, 245, 0.9); }
.shared__points .tick {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--c-week);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 2px;
}

.shared__scene { display: flex; justify-content: center; }
.shared__scene img { width: min(420px, 82vw); filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.4)); }

@media (max-width: 860px) {
  .shared__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Le chiffre — 240 €
   -------------------------------------------------------------------------- */

.waste { text-align: center; }

.waste__num {
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--c-urgent);
}

.waste__sub {
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-top: 0.4rem;
}

.waste .lede { margin: 1.4rem auto 0; }
.waste__src { margin-top: 1.2rem; font-size: 0.8rem; color: var(--ink-30); }

/* --------------------------------------------------------------------------
   Vidéo
   -------------------------------------------------------------------------- */

.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.demo__player {
  position: relative;
  width: min(320px, 74vw);
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 6px solid var(--ink);
  background: var(--ink);
}
.demo__player video { width: 100%; border-radius: 30px; }

.demo__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 48, 43, 0.25);
  transition: background 0.2s, opacity 0.25s;
}
.demo__play:hover { background: rgba(34, 48, 43, 0.4); }
.demo__play.is-hidden { opacity: 0; pointer-events: none; }
.demo__play span {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  padding-left: 5px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 860px) {
  .demo__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Prix
   -------------------------------------------------------------------------- */

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.plan {
  background: var(--paper);
  border: 1px solid rgba(34, 48, 43, 0.09);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 40px);
  position: relative;
}
.plan--pro { border: 2px solid var(--forest); box-shadow: var(--shadow-card); }

.plan__tag {
  position: absolute;
  top: -13px; left: 28px;
  background: var(--forest);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.plan h3 { font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.plan__price { margin-top: 0.9rem; display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.plan__price span { color: var(--ink-60); font-size: 0.95rem; }

.plan__alt { margin-top: 2px; font-size: 0.85rem; color: var(--ink-60); }

.plan ul { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.95rem; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul .tick { color: var(--leaf); font-weight: 800; }

.plan__alt strong { color: var(--ink); }
.plan__save {
  display: inline-block;
  background: var(--c-week);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq__list { max-width: 760px; }

.faq__item { border-bottom: 1px solid rgba(34, 48, 43, 0.1); }
.faq__item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 22px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--leaf);
  transition: rotate 0.2s ease;
  flex: none;
}
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { padding-bottom: 22px; color: var(--ink-60); max-width: 42em; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta {
  background: var(--forest);
  color: var(--cream);
  border-radius: clamp(24px, 4vw, 44px);
  margin-inline: clamp(8px, 1.5vw, 20px);
  text-align: center;
  padding-block: clamp(64px, 9vw, 110px);
  position: relative;
  overflow: clip;
}
.cta .lede { color: rgba(255, 252, 245, 0.75); margin: 1.2rem auto 0; }
.cta__stores { display: flex; justify-content: center; gap: 14px; margin-top: 2.4rem; flex-wrap: wrap; }
.cta__deco { position: absolute; width: 110px; border-radius: 14px; box-shadow: var(--shadow-float); opacity: 0.9; }
.cta__deco--a { left: 6%; top: 18%; rotate: -10deg; }
.cta__deco--b { right: 5%; bottom: 14%; rotate: 9deg; }
@media (max-width: 760px) { .cta__deco { display: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: #16211d;
  color: rgba(255, 252, 245, 0.65);
  margin-top: clamp(56px, 8vw, 96px);
  padding-block: 64px 40px;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}

.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer__brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer__tagline { margin-top: 12px; max-width: 24em; }

.footer h4 {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { display: flex; flex-direction: column; gap: 9px; }
.footer a:hover { color: #fff; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 252, 245, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.lang-switch { display: flex; gap: 12px; flex-wrap: wrap; }
.lang-switch a.is-current { color: #fff; font-weight: 700; }

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Mobile : hiérarchie renforcée
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  /* Étapes en cartes rythmées par la couleur d'urgence */
  .how__steps .step {
    background: var(--paper);
    border: 1px solid rgba(34, 48, 43, 0.08);
    border-radius: var(--radius-m);
    padding: 26px 22px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px -18px rgba(34, 48, 43, 0.2);
  }
}

@media (max-width: 720px) {
  h1.display { font-size: clamp(3.05rem, 12.5vw, 3.7rem); letter-spacing: -0.05em; }
  h2.display { font-size: clamp(2.25rem, 9.5vw, 2.8rem); letter-spacing: -0.045em; }
  .lede { font-size: 1.1rem; }

  .hero { padding-top: 100px; }
  .hero__stores { margin-top: 1.8rem; }

  .hero__pill { display: none; }
  .trust__group { font-size: 0.84rem; }

  .section { padding-block: 64px; }
  .section__head { margin-bottom: 36px; }

  .step h3 { font-size: 1.5rem; }
  .step p { font-size: 0.98rem; }

  .waste__num { font-size: clamp(5.2rem, 25vw, 7rem); }
  .waste__sub { font-size: 1.55rem; }

  .plan__price strong { font-size: 2.3rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trust__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .nav__dl-menu { transition: none; }
  .trust__group { white-space: normal; flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { transform: none !important; }
  * { animation: none !important; }
}
