/* ============================================================
   Carnet Bébé — page d'accueil
   ============================================================ */

:root{
  --rose:        #E4386E;
  --rose-dark:   #C22757;
  --rose-soft:   #FDEAF1;
  --rose-pale:   #FFF5F8;
  --plum:        #7B2E63;
  --ink:         #241C22;
  --muted:       #6E6069;
  --white:       #fff;

  --radius:      22px;
  --radius-sm:   14px;
  --shadow:      0 18px 45px rgba(150, 40, 85, .13);
  --shadow-lg:   0 28px 70px rgba(150, 40, 85, .20);
  --maxw:        1180px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.65;
  font-size:17px;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
h1,h2,h3{ margin:0; line-height:1.15; letter-spacing:-.02em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 24px;
}

.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--rose); color:#fff; padding:12px 18px;
  border-radius:0 0 12px 0; z-index:100; font-weight:700;
}
.skip-link:focus{ left:0; }

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

/* ============================================================
   EN-TÊTE / HERO
   ============================================================ */

.hero{
  position:relative;
  isolation:isolate;
  min-height:100svh;
  display:flex;
  align-items:center;
  padding:72px 0 96px;
  background:var(--rose-soft);
  overflow:hidden;
}

/* image de fond : la bannière de l'app, cadrée sur le téléphone */
.hero-bg{
  position:absolute; inset:0; z-index:-2;
  background-image:url('images/hero-app.jpg');
  background-size:cover;
  background-position:78% center;
  background-repeat:no-repeat;
  transform:scale(1.04);
}

/* voile dégradé : opaque à gauche (pour le texte), transparent à droite */
.hero-veil{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(100deg,
      rgba(255,246,250,1)    0%,
      rgba(255,246,250,1)    28%,
      rgba(255,244,248,.975) 42%,
      rgba(253,234,241,.74)  56%,
      rgba(253,234,241,.22)  70%,
      rgba(253,234,241,0)    84%);
}

.hero-inner{ position:relative; max-width:690px; margin-left:max(24px, calc(50vw - var(--maxw)/2)); }

.hero-brand{ display:flex; align-items:center; gap:14px; margin-bottom:26px; }

.hero-icon{
  width:72px; height:72px;
  border-radius:20px;
  background:#fff;
  padding:6px;
  box-shadow:0 10px 26px rgba(150,40,85,.22);
}

.hero-name{
  font-weight:900; font-size:1.5rem; line-height:1.1;
  letter-spacing:-.02em;
}
.hero-name small{
  display:block;
  font-size:.75rem; font-weight:700; letter-spacing:.11em;
  text-transform:uppercase; color:var(--rose);
  margin-top:5px;
}

.hero h1{
  font-size:clamp(2.2rem, 5vw, 3.55rem);
  font-weight:900;
  margin-bottom:20px;
}
.hero h1 span{ color:var(--rose); }

.hero-lead{
  font-size:clamp(1.02rem, 1.55vw, 1.17rem);
  color:#4A3D45;
  max-width:33em;
  margin-bottom:26px;
}

.hero-points{ display:grid; gap:11px; margin-bottom:34px; }
.hero-points li{
  display:flex; align-items:center; gap:12px;
  font-weight:700; color:#3A2E35;
}
.hero-points li span{
  flex:0 0 40px; height:40px;
  display:grid; place-items:center;
  background:#fff; border-radius:50%;
  font-size:1.15rem;
  box-shadow:0 6px 16px rgba(150,40,85,.12);
}

/* ---------- boutons ---------- */

.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; }
.hero-actions.center{ justify-content:center; }

.btn{
  display:inline-flex; align-items:center; gap:13px;
  padding:15px 26px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800;
  font-size:1.05rem;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn svg{ width:26px; height:26px; flex:0 0 26px; }
.btn span{ display:flex; flex-direction:column; line-height:1.15; text-align:left; }
.btn small{
  font-size:.68rem; font-weight:700; letter-spacing:.09em;
  text-transform:uppercase; opacity:.72;
}

.btn-play{
  background:var(--ink); color:#fff;
  box-shadow:0 14px 32px rgba(36,28,34,.28);
}
.btn-play:hover{ transform:translateY(-3px); box-shadow:0 20px 40px rgba(36,28,34,.34); }

.btn-apk{
  background:var(--rose); color:#fff;
  box-shadow:0 14px 32px rgba(228,56,110,.34);
}
.btn-apk:hover{ background:var(--rose-dark); transform:translateY(-3px); }

.btn-apk.on-light{ background:#fff; color:var(--rose); box-shadow:0 14px 32px rgba(150,40,85,.16); }
.btn-apk.on-light:hover{ background:#fff; color:var(--rose-dark); }

/* App Store — bouton présent mais inactif (app en validation) */
.btn-appstore{
  position:relative;
  background:rgba(255,255,255,.82);
  color:#5A4A53;
  border:2px dashed #E9BFD0;
  padding:13px 24px;
  cursor:default;
}
.btn-appstore svg{ opacity:.55; }
.btn-appstore span{ opacity:.75; }

.soon-tag{
  position:absolute; top:-11px; right:14px;
  background:var(--rose); color:#fff;
  font-style:normal; font-weight:800;
  font-size:.62rem; letter-spacing:.09em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px;
  box-shadow:0 6px 14px rgba(228,56,110,.34);
}

.btn-appstore.on-dark{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.42);
  color:#fff;
}
.btn-appstore.on-dark .soon-tag{ background:#fff; color:var(--rose); }

.hero-note{
  margin-top:18px;
  font-size:.86rem; color:var(--muted);
  max-width:34em;
}

/* ============================================================
   FONCTIONS
   ============================================================ */

.section-head{ text-align:center; max-width:640px; margin:0 auto 48px; }
.section-head h2{
  font-size:clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight:900;
  margin-bottom:14px;
}
.section-head p{ color:var(--muted); font-size:1.05rem; }

/* section volontairement compacte : on enchaîne vite sur l'aperçu de l'app */
.features{ padding:46px 0 40px; background:var(--white); }

.features-title{
  text-align:center;
  font-size:clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight:900;
  margin-bottom:22px;
}

.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));
  gap:12px;
}

.feature{
  background:var(--rose-pale);
  border:1px solid #F7DCE7;
  border-radius:var(--radius-sm);
  padding:16px 18px;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.feature:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.feature h3{ font-size:1rem; font-weight:800; color:var(--plum); }

/* ============================================================
   CAPTURES
   ============================================================ */

.shots{
  padding:58px 0 84px;
  background:linear-gradient(180deg, var(--rose-pale), var(--rose-soft));
}
.shots .section-head{ margin-bottom:34px; }

.shots-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:34px;
  max-width:880px;
  margin:0 auto;
}

.shots figure{ margin:0; text-align:center; }
.shots img{
  width:100%;
  border-radius:26px;
  border:6px solid #fff;
  box-shadow:var(--shadow-lg);
  transition:transform .25s ease;
}
.shots img:hover{ transform:translateY(-8px); }
.shots figcaption{
  margin-top:16px;
  font-weight:800; font-size:.9rem;
  letter-spacing:.06em; text-transform:uppercase;
  color:var(--plum);
}

/* ============================================================
   TÉLÉCHARGEMENT
   ============================================================ */

.download{
  padding:96px 0;
  background:linear-gradient(120deg, var(--rose), #B92B72 60%, var(--plum));
  color:#fff;
  text-align:center;
}
.download h2{
  font-size:clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight:900;
  margin-bottom:14px;
}
.download > .container > p{ opacity:.9; margin-bottom:34px; }
.download .btn-play{ box-shadow:0 16px 34px rgba(0,0,0,.28); }

/* ============================================================
   PIED DE PAGE
   ============================================================ */

.footer{ background:var(--ink); color:#fff; padding:44px 0; }

.footer-inner{
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:22px;
}
.footer-brand{ display:flex; align-items:center; gap:13px; }
.footer-brand img{ width:40px; height:40px; border-radius:11px; }
.footer-brand strong{ display:block; font-weight:800; }
.footer-brand small{ display:block; font-size:.85rem; opacity:.62; }

.footer-copy{ font-size:.85rem; opacity:.6; max-width:34em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px){
  .hero{ min-height:auto; padding:56px 0 72px; }
  /* sur petit écran le texte passe par-dessus l'image : on la floute
     et on la voile fortement pour garder une lecture confortable */
  .hero-bg{
    background-position:72% top;
    filter:blur(7px) saturate(1.05);
    transform:scale(1.12);
  }
  .hero-veil{
    background:linear-gradient(180deg,
      rgba(255,246,250,.965) 0%,
      rgba(255,244,248,.94)  50%,
      rgba(253,232,240,.90)  100%);
  }
  .hero-inner{ margin-left:auto; margin-right:auto; max-width:100%; text-align:center; }
  .hero-brand{ justify-content:center; }
  .hero-lead{ margin-left:auto; margin-right:auto; }
  .hero-points{ display:inline-grid; text-align:left; }
  .hero-actions{ justify-content:center; }
  .hero-note{ margin-left:auto; margin-right:auto; }
}

@media (max-width: 560px){
  body{ font-size:16px; }
  .features{ padding:38px 0 32px; }
  .shots{ padding:46px 0 62px; }
  .download{ padding:62px 0; }
  .btn{ width:100%; justify-content:center; }
  .btn span{ text-align:left; }
  .hero-icon{ width:62px; height:62px; }
  .shots-grid{ gap:26px; }
  .footer-inner{ flex-direction:column; text-align:center; }
  .footer-brand{ flex-direction:column; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}
