:root{
  --green:#54b94d;
  --green-dark:#2f8c35;
  --bg:#f4f7f2;
  --text:#172119;
  --muted:#68736c;
  --card:rgba(255,255,255,.88);
  --border:rgba(23,33,25,.10);
  --shadow:0 14px 35px rgba(23,33,25,.10);
  --nav-h:86px;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}

html,body{
  margin:0;
  min-height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left,rgba(84,185,77,.25),transparent 34%),
    radial-gradient(circle at top right,rgba(255,204,112,.20),transparent 30%),
    linear-gradient(180deg,#fbfff8,#edf4ea);
  color:var(--text);
  overflow-x:hidden;
}

a{text-decoration:none;color:inherit}

.app-shell{
  width:100%;
  max-width:640px;
  margin:0 auto;
  min-height:100vh;
  padding-bottom:calc(var(--nav-h) + env(safe-area-inset-bottom));
}

.home{
  padding:calc(14px + env(safe-area-inset-top)) 16px 24px;
}

/* HEADER / HERO */

.hero-app{
  display:grid;
  gap:18px;
}

.hero-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding-top:4px;
}

.eyebrow{
  margin:0 0 8px;
  color:var(--green-dark);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

h1{
  margin:0;
  font-size:clamp(2.5rem,12vw,3.8rem);
  line-height:.9;
  letter-spacing:-.07em;
  font-weight:950;
}

.subtitle{
  margin:10px 0 0;
  color:var(--muted);
  font-size:1rem;
  font-weight:700;
}

.hero-icon{
  flex:0 0 auto;
  width:58px;
  height:58px;
  border-radius:22px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.9);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  font-size:1.8rem;
}

/* READY CARD */

.ready-card{
  border-radius:30px;
  padding:22px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,249,237,.88));
  border:1px solid rgba(255,255,255,.85);
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  overflow:hidden;
}

.ready-card p{
  margin:0 0 6px;
  color:var(--green-dark);
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.ready-card h2{
  margin:0;
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.05em;
}

.ready-card strong{
  color:var(--green-dark);
  font-size:1.45rem;
  font-weight:950;
}

.progress-bar{
  grid-column:1/-1;
  height:12px;
  border-radius:999px;
  background:rgba(23,33,25,.09);
  overflow:hidden;
}

.progress-bar span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--green),var(--green-dark));
  border-radius:999px;
}

.primary-action{
  grid-column:1/-1;
  min-height:56px;
  border-radius:20px;
  padding:0 18px;
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  color:#fff;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow:0 14px 28px rgba(84,185,77,.28);
}

.primary-action:active{
  transform:scale(.98);
}

/* SECTIONS */

.home-section{
  margin-top:24px;
}

.section-heading{
  padding:0 4px 12px;
}

.section-heading h2{
  margin:0 0 5px;
  font-size:1.35rem;
  letter-spacing:-.04em;
}

.section-heading p{
  margin:0;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.35;
}

/* MODULES */

.module-list{
  display:grid;
  gap:12px;
}

.module-card{
  min-height:86px;
  border-radius:24px;
  padding:14px;
  background:var(--card);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 10px 26px rgba(23,33,25,.075);
  display:grid;
  grid-template-columns:46px 1fr auto;
  gap:12px;
  align-items:center;
}

.module-card.active{
  border-color:rgba(84,185,77,.38);
  background:linear-gradient(135deg,#fff,#eef9ed);
}

.module-card.soon{
  opacity:.72;
}

.module-icon{
  width:46px;
  height:46px;
  border-radius:17px;
  display:grid;
  place-items:center;
  background:rgba(84,185,77,.13);
  font-size:1.35rem;
}

.module-card h3{
  margin:0 0 4px;
  font-size:1rem;
  letter-spacing:-.02em;
}

.module-card p{
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.28;
}

.module-go{
  color:var(--green-dark);
  font-size:1.35rem;
  font-weight:950;
}

.module-card em{
  font-style:normal;
  color:var(--green-dark);
  background:rgba(84,185,77,.12);
  padding:6px 8px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:900;
}

/* BOTTOM NAV */

.bottom-nav{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  z-index:50;
  width:100%;
  max-width:640px;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.88);
  border-top:1px solid var(--border);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}

.nav-item{
  min-height:56px;
  border-radius:18px;
  color:var(--muted);
  display:grid;
  place-items:center;
  gap:3px;
  font-size:.70rem;
  font-weight:850;
}

.nav-item span{
  font-size:1.18rem;
}

.nav-item.active{
  color:var(--green-dark);
  background:rgba(84,185,77,.13);
}

/* IPHONE PETITS ÉCRANS */

@media(max-width:380px){
  .home{
    padding-left:12px;
    padding-right:12px;
  }

  .ready-card{
    padding:18px;
    border-radius:26px;
  }

  .ready-card h2{
    font-size:1.55rem;
  }

  .module-card{
    grid-template-columns:42px 1fr auto;
    padding:12px;
    border-radius:22px;
  }

  .module-icon{
    width:42px;
    height:42px;
  }

  .module-card p{
    font-size:.80rem;
  }
}

/* TABLETTE / DESKTOP */

@media(min-width:760px){
  .home{
    padding-left:22px;
    padding-right:22px;
  }

  .module-list{
    grid-template-columns:1fr 1fr;
  }

  .module-card{
    min-height:118px;
    align-items:flex-start;
    grid-template-columns:50px 1fr;
  }

  .module-go,
  .module-card em{
    grid-column:2;
    justify-self:start;
  }
}