:root{
  /* ---------- Couleurs · primitifs ---------- */
  --rose-pale:#FDE8EC;
  --rose-bebe:#F9C6D0;
  --rose-deep:#F0A8B8;
  --rose-accent: #FE4F9E;
  --blanc:#FFFFFF;
  --noir:#1A1A18;

  /* ---------- Typographie ---------- */
  --font-heading:'Mulish', sans-serif;
  --font-body:'Roboto', sans-serif;
  --font-script: 'Reenie Beanie', cursive;

  /* ---------- Layout ---------- */
  --maxw:1440px;
  --pad:clamp(20px, 5vw, 80px);
}

*{margin:0;
  padding:0;
  box-sizing:border-box;
}

html{scroll-behavior:smooth;
}

/* NOTE : le token surface/bg = rose-pale. La maquette montrant des sections
   majoritairement claires, on garde ici le blanc comme fond dominant et le
   rose-pâle est réservé à la section « c'est quoi ? ». Pour un canvas rose,
   remplacer var(--surface-card) par var(--surface-bg) ci-dessous. */
body{
  font-family:var(--font-body);
  font-weight:400;
  background:var(--blanc);
  color:var(--noir);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
   margin: 0;
  width:100%;
}
img{
  display:block;
  max-width:100%;}

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

ul{
  list-style:none;}

/* Typo utilitaires d'après les tokens */
.script{
  font-family:var(--font-script);
  font-weight:400;
  line-height:1;
}
h1,h2,h3,h4{
  font-family:var(--font-heading);
  letter-spacing:-.02em;}

/* Images produit : ratio naturel, coins légèrement arrondis */
.slot-img{display:block;width:100%;height:auto;}

/* La fleur Maison Lua (asset SVG réel) */
.flower{pointer-events:none;user-select:none;z-index:1;}

/* ====================================================================
   NAV
   ==================================================================== */
.nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px var(--pad);
  color:var(--noir);
  transition:background .4s ease, color .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled{
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(12px);
  color:var(--text-primary);
  padding:14px var(--pad);
  box-shadow:0 1px 0 rgba(26,26,24,.07);
}
.nav__logo{
  font-family:var(--font-heading);
  font-weight:600;
  font-size:1.4rem;
  line-height:.85;
  display:flex;
  flex-direction:column;
}
.nav__logo b{
  font-weight:800;
}
.nav__logo small{
  font-size:.62em;
  letter-spacing:.18em;
  font-weight:500;
}
.nav__links{
  display:flex;
  gap:38px;
}
.nav__links a{
  position:relative;
  padding:4px 0;
  font-family:var(--font-heading);
  font-size:14px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.nav__links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0;
  height:1.5px;
  background:currentColor;
  transition:width .3s ease;
}
.nav__links a:hover::after{
  width:100%;
}
/* CTA Soutenir à droite */
.nav__cta{
  grid-column:3;
  justify-self:end;
  border:1.5px solid currentColor;
  padding:11px 24px;
  font-family:var(--font-heading);
  font-size:14px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:inherit;
  transition:background .3s ease, color .3s ease, border-color .3s ease;
}
.nav__cta:hover{
  background:var(--rose-deep);
  border-color:var(--rose-deep);
  color:var(--blanc);
}
.nav.scrolled .nav__cta:hover{
  background:var(--rose-deep);
  border-color:var(--rose-deep);
  color:var(--blanc);
}

/* ----- Burger : caché en desktop ----- */
.nav__burger{
  display:none;
}

/* "Soutenir" du menu : caché en desktop (le bouton de la barre suffit) */
.nav__links-cta{
  display:none;
}

/* ----- Mobile : burger + menu déroulant ----- */
@media (max-width:768px){
  .nav__burger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:30px;
    height:30px;
    padding:0;
    background:none;
    border:none;
    cursor:pointer;
    color:inherit;
    z-index:1001;
  }
  .nav__burger span{
    display:block;
    width:26px;
    height:2px;
    background:currentColor;
    transition:transform .3s ease, opacity .3s ease;
  }
  .nav__links{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:center;
    gap:26px;
    padding:36px 20px;
    background:var(--noir);
    opacity:0;
    transform:translateY(-10px);
    pointer-events:none;
    transition:opacity .3s ease, transform .3s ease;
  }
  .nav__links a{
    color:#fff;
    font-size:1.25rem;
  }
  .nav__cta{
    display:none;
  }

  .nav__links-cta{
    display:block;
    margin-top:8px;
  }
  .nav__links-cta a{
    display:inline-block;
    padding:12px 28px;
    border:1.5px solid #fff;
    font-size:1rem;
  }
  .nav.open .nav__links{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
  .nav.open .nav__burger span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .nav.open .nav__burger span:nth-child(2){
    opacity:0;
  }
  .nav.open .nav__burger span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }
}

/* ===== PAGE ===== */
.page{
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(120px,16vw,180px) var(--pad) clamp(60px,8vw,100px);
}
.legal h1{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:clamp(2rem,5vw,3.2rem);
  margin-bottom:8px;
}
.legal__intro{
  opacity:.6;
  margin-bottom:40px;
}
.legal h2{
  font-family:var(--font-heading);
  font-weight:800;
  font-size:1.25rem;
  margin:34px 0 10px;
}
.legal p{
  margin-bottom:12px;
}
.legal a{
  color:var(--rose-accent);
}

/* ===================== FOOTER ===================== */
.footer{
  padding:40px var(--pad) 28px;
}
.footer__main{
  max-width:var(--maxw);
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;   /* liens · image · liens */
  align-items:center;
  gap:40px;
}
.footer__col{
  display:flex;
  flex-direction:column;
  gap:20px;
  font-family:var(--font-heading);
  font-weight:700;
  font-size:24px;
  width:fit-content;
}

.footer__col.right{
  align-items:flex-end;
  text-align:right;
}
.footer__col a{
  position:relative;
  text-decoration:none;
  color:inherit;
}
.footer__col a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:0;                  /* trait invisible au repos */
  height:1.5px;
  background:currentColor;
  transition:width .3s ease;
}
.footer__col a:hover::after{
  width:100%;               /* le trait se déploie au survol */
}

.footer__hero{
  position:relative;
  width:clamp(360px,52vw,720px);   /* taille de l'image — monte le 720 pour plus grand */
}
.footer__img{
  width:100%;
  height:auto;
  display:block;
}

.script contact__title {
color: var(--blanc);
}

.contact{
  position:absolute;
  left:45%;
  top:45%;                  /* position du formulaire sur l'image — à ajuster */
  transform:translateX(-50%);
  width:42%;
  text-align:center;
  color:var(--blanc);
}
.contact__title{
  font-weight:400;
  font-size:clamp(1.5rem,2.6vw,2.1rem);
  margin-bottom:12px;
}
.contact__form{
  display:flex;
  align-items:stretch;
  background:var(--blanc);
  box-shadow:inset 0 0 0 1px var(--noir);
}
.contact__form input{
  flex:1;
  min-width:0;
  border:none;
  background:transparent;
  padding:12px 14px;
  font-family:var(--font-body);
  font-size:.85rem;
}
.contact__form input:focus{
  outline:none;
}
.contact__form button{
  border:none;
  background:var(--noir);
  color: var(--blanc);
  width:46px;
  font-size:1.1rem;
  cursor:pointer;
  transition:background .25s ease;
}
.contact__arrow{
  display:inline-block;             /* nécessaire pour pouvoir le déplacer */
  transition:transform .25s ease;
}
.contact__form button:hover .contact__arrow{
  transform:translateX(3px);        /* la flèche avance */
}

.footer__bottom{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px 28px;
  max-width:var(--maxw);
  margin:32px auto 0;
  font-size:.8rem;
}
.footer__legal{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
}
.footer__bottom a{
  color:inherit;
  text-decoration:none;
}
.footer__bottom a:hover{
  text-decoration:underline;
}

.field{
  margin-top:14px;
}

.rgpd-label{
  display:flex;
  align-items:flex-start;      
  gap:6px;
  text-align:left;
  font-family:var(--font-body);
  font-size:10px;
  color:var(--blanc);      
}
.rgpd-label input{
  flex:none;                  
  margin-top:2px;         
  accent-color:var(--rose-pale);    
  cursor:pointer;
}
.rgpd-label a{
  color:inherit;
  text-decoration:underline;
}
.rgpd-label .req{
  color:var(--rose-deep);       
}

@media (max-width:768px){
  .footer__main{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }
  .footer__col,
  .footer__col.right{
    align-items:center;
    text-align:center;
  }
  .footer__bottom{
    justify-content:center;
    text-align:center;
  }

  /* Newsletter au-dessus de l'image rose */
  .footer__hero{
    display:flex;
    flex-direction:column-reverse;
    width:100%;
    max-width:480px;
    margin:0 auto;
  }
  .contact{
    position:static;
    transform:none;
    width:100%;
    left:auto;
    top:auto;
    margin:0 0 18px;
    color:var(--noir);
  }
  .contact__title{
    color:var(--noir);
  }
  .rgpd-label{
    color:var(--noir);
  }
}

/* ====================================================================
   ANIMATIONS
   ==================================================================== */
/* Apparition pilotée par le scroll (scrubbing) */
.reveal{
  opacity:1;            /* visible par défaut (sécurité) */
  transform:none;
}
@supports (animation-timeline: view()){
  .reveal{
    animation:revealScrub linear both;
    animation-timeline:view();
    animation-range:entry 0% entry 75%;   /* s'anime pendant que la section entre */
  }
  @keyframes revealScrub{
    from{ opacity:0; transform:translateY(40px); }
    to{   opacity:1; transform:none; }
  }
}


.hero h1,.hero__sub{opacity:0;transform:translateY(24px);animation:rise .9s cubic-bezier(.2,.7,.2,1) forwards;}
.hero h1{animation-delay:.15s;}
.hero__sub{animation-delay:.4s;}
@keyframes rise{to{opacity:1;transform:none;}}

@media (prefers-reduced-motion:reduce){
  .js .reveal,.hero h1,.hero__sub{animation:none;transition:none;opacity:1;transform:none;}
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width:900px){
  .about__grid{grid-template-columns:1fr;}
  .editorial{display:flex;flex-direction:column;}
  .editorial > *{grid-column:auto !important;grid-row:auto !important;margin-top:0 !important;}
  .ed-label{font-size:1.6rem;}
  .line__items{flex-wrap:wrap;justify-content:center;}
}

/* ----- Logo "maison Lua" : lettres une par une ----- */
.js .pourquoi__logo path{
  opacity:0;
}
.js .pourquoi__logo.is-anim path{
  animation:letterIn .5s ease forwards;
}
.js .pourquoi__logo.is-anim path:nth-of-type(1){ animation-delay:.05s; }
.js .pourquoi__logo.is-anim path:nth-of-type(2){ animation-delay:.12s; }
.js .pourquoi__logo.is-anim path:nth-of-type(3){ animation-delay:.19s; }
.js .pourquoi__logo.is-anim path:nth-of-type(4){ animation-delay:.26s; }
.js .pourquoi__logo.is-anim path:nth-of-type(5){ animation-delay:.33s; }
.js .pourquoi__logo.is-anim path:nth-of-type(6){ animation-delay:.40s; }
.js .pourquoi__logo.is-anim path:nth-of-type(7){ animation-delay:.47s; }
.js .pourquoi__logo.is-anim path:nth-of-type(8){ animation-delay:.54s; }
.js .pourquoi__logo.is-anim path:nth-of-type(9){ animation-delay:.61s; }

@keyframes letterIn{
  from{ opacity:0; }
  to{ opacity:1; }
}
@media (prefers-reduced-motion:reduce){
  .js .pourquoi__logo path{ opacity:1; animation:none; }
}