/* =========================================================
   PIYA — CGU (DA alignée index/features)
   Fond clair + halo animé + typo Poppins + cards glass
   ========================================================= */

/* ---------- Root ---------- */
:root{
  --bg-base: #F8FAFC;
  --text: #0f172a;
  --muted: rgba(15,23,42,.78);
  --border: rgba(15,23,42,.10);
  --card: rgba(255,255,255,.62);
  --shadow: 0 10px 34px rgba(2,6,23,.10);
  --radius: 22px;
}

/* ---------- Reset ---------- */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; width:100%; }
img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; }

/* ---------- Background aurora ---------- */
body{
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  overflow-x: hidden;
  isolation: isolate;
}

body::before{
  content:"";
  position: fixed;
  inset: -12% -6% -12% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(124, 58, 237, 0.14), transparent 78%),
    radial-gradient(50% 50% at 80% 20%, rgba(59, 130, 246, 0.12), transparent 80%),
    radial-gradient(58% 58% at 60% 85%, rgba(99, 102, 241, 0.10), transparent 80%);
  filter: blur(3px) saturate(110%);
  animation: auroraMove 18s ease-in-out infinite alternate;
}

@keyframes auroraMove{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2.0%, -1.8%, 0) scale(1.03); }
  100% { transform: translate3d(-2.0%, 1.6%, 0) scale(1.035); }
}

@media (prefers-reduced-motion: reduce){
  body::before{ animation: none; }
}

/* =========================================================
   NAVBAR — pilule blur (identité PIYA)
   ========================================================= */
.piya-header-wrap{
  position:relative;
  z-index:50;
  padding:0; margin:0;
  height:0;
  text-align:center;
}

.piya-header{
  position:fixed;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  z-index:60;

  display:inline-block;
  height:64px;
  padding:0 32px;

  border:1px solid rgba(0,0,0,.08);
  border-radius:32px;
  background:rgba(255,255,255,.55);
  -webkit-backdrop-filter:saturate(160%) blur(10px);
  backdrop-filter:saturate(160%) blur(10px);
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  isolation:isolate;
}

/* léger backdrop derrière la navbar */
.piya-header-wrap::before{
  content:"";
  position: fixed;
  top:0; left:0; right:0;
  height:98px;
  z-index:55;
  pointer-events:none;
  transform: translateZ(0);
}

.piya-header .row{
  display:flex;
  align-items:center;
  justify-content:center;
  height:64px;
  gap:40px;
}

.piya-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:700;
  font-size:18px;
  color: var(--text);
}

.piya-brand img{
  height:28px;
  width:auto;
  transition: transform .6s ease-in-out;
}
.piya-brand img:hover{ transform: rotate(360deg); }

.piya-menu{
  display:flex;
  gap:28px;
  align-items:center;
}

.piya-menu a{
  text-decoration:none;
  font-weight:500;
  font-size:16px;
  color: var(--text);
  position:relative;
  padding:6px 2px;
}

.piya-menu a:after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  height:2px;
  width:0;
  background: currentColor;
  transition: width .2s ease;
}
.piya-menu a:hover:after{ width:100%; }

.piya-burger{
  display:none;
  background:none;
  border:1px solid rgba(0,0,0,.10);
  border-radius:10px;
  height:40px;
  width:44px;
  padding:0;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.piya-burger span{
  display:block;
  width:20px;
  height:2px;
  background: var(--text);
  position:relative;
}
.piya-burger span:before,
.piya-burger span:after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background: var(--text);
  transition:.2s;
}
.piya-burger span:before{ top:-6px; }
.piya-burger span:after{ bottom:-6px; }
.piya-burger[aria-expanded="true"] span{ background:transparent; }
.piya-burger[aria-expanded="true"] span:before{ top:0; transform:rotate(45deg); }
.piya-burger[aria-expanded="true"] span:after{ bottom:0; transform:rotate(-45deg); }

@media (max-width: 768px){
  .piya-header{
    width: calc(100% - 28px);
    max-width: 620px;
    padding: 0 18px;
    height: 62px;
    border-radius: 32px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    z-index:999;
  }

  .piya-header .row{
    width:100%;
    justify-content:space-between;
    gap:12px;
  }

  .piya-burger{ display:inline-flex; border:none; background:transparent; }

  .piya-menu{
    position:absolute;
    left:14px;
    right:14px;
    top: calc(62px + 12px);

    background: rgba(255,255,255,0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    border-radius: 32px;
    box-shadow: 0 14px 34px rgba(0,0,0,.16);

    display:none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
  }

  .piya-menu.open{ display:flex; }
  .piya-menu a{ font-size: 15px; padding: 6px 0; }
  .piya-header-wrap::before{ height: 80px; }
}

/* offset ancres sous navbar */
:target{ scroll-margin-top: 120px; }

/* =========================================================
   LEGAL PAGE LAYOUT
   ========================================================= */
.piya-legal{
  width:100%;
  padding: 120px 20px 40px; /* top = place navbar */
}

.legal-hero{
  max-width: 1100px;
  margin: 0 auto 22px;
  padding: 0 0 10px;
}

.legal-hero-inner{
  padding: 18px 0 0;
}

.legal-eyebrow{
  margin:0 0 8px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(15,23,42,.68);
}

.legal-title{
  margin: 0 0 8px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
}

.legal-meta{
  margin: 0 0 14px;
  font-weight: 300;
  color: rgba(15,23,42,.75);
}

.legal-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.legal-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: rgba(15,23,42,.85);
}

.legal-layout{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 30px;
}

@media (min-width: 1024px){
  .legal-layout{
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items:start;
  }
  .legal-toc{
    position: sticky;
    top: 110px;
    align-self: start;
  }
}

.legal-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.legal-toc .legal-card{
  padding: 16px 16px;
}

.legal-toc-title{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(15,23,42,.68);
  font-weight: 600;
}

.legal-toc-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 8px;
}

.legal-toc-list a{
  display:block;
  text-decoration:none;
  font-weight: 500;
  font-size: 14px;
  color: rgba(15,23,42,.88);
  padding: 6px 8px;
  border-radius: 12px;
}
.legal-toc-list a:hover{
  background: rgba(255,255,255,.55);
}

.legal-article{
  padding: 18px 18px;
}

/* typography inside article */
.legal-article p,
.legal-article li{
  font-weight: 300;
  color: rgba(15,23,42,.82);
  line-height: 1.75;
  font-size: 15.5px;
}

.legal-article ul{
  margin: 10px 0 14px 1.1em;
}
.legal-article ol{
  margin: 10px 0 14px 1.25em;
}

.legal-article a{
  font-weight: 600;
  text-decoration: none;
}
.legal-article a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section{
  padding: 16px 6px;
  border-top: 1px solid rgba(15,23,42,.08);
}
.legal-section:first-child{
  border-top: none;
  padding-top: 6px;
}

.legal-h2{
  margin: 0 0 10px;
  font-weight: 500;
  font-size: clamp(18px, 1.4vw + 14px, 22px);
  line-height: 1.25;
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(15,23,42,.96);
}

.legal-h3{
  margin: 14px 0 8px;
  font-weight: 600;
  font-size: 15px;
  color: rgba(15,23,42,.92);
}

.legal-ico{
  display:inline-flex;
  width: 28px;
  height: 28px;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.08);
}

/* ===== SECTION CTA FINALE ===== */
.piya-cta-final{
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  position: relative;

  /* ⚠️ overflow: clip coupe le texte (Pacifico) sur iOS */
  overflow: visible;

  padding: 72px 20px 88px;
  color: #0f172a;
}

.cta-container{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding-inline: 16px; /* ✅ sécurité mobile */
}

.cta-title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 300;
  line-height: 1.12;
  color: #0f172a;
  letter-spacing: -0.02em;
  text-align: center;

  /* ✅ anti “texte rongé” */
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  max-width: 22ch;          /* look premium + évite les lignes trop longues */
  margin-left: auto;
  margin-right: auto;
}

.cta-title::selection{ background: rgba(67,166,217,.18); }

/* Mot(s) “signature” en Pacifico via <span class="cta-script">…</span> */
.cta-title .cta-script{
  font-family: "Pacifico", cursive;
  font-weight: 400;
  color: #0f172a;

  /* ⚠️ ne PAS bloquer sur une seule ligne */
  white-space: normal;
}

/* Accent couleur via <span class="cta-accent">…</span> */
.cta-title .cta-accent{
  color: #0f172a;
  font-weight: 500;
}

/* Sous-titre */
.cta-sub{
  margin: 0 auto 22px;
  max-width: 820px;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(15,23,42,.78);
  padding-inline: 4px;
}

.cta-sub strong{
  font-weight: 600;
  color: rgba(15,23,42,.92);
}

.cta-sub .cta-accent{
  color: #43a6d9;
  font-weight: 500;
}

.cta-stores{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.store-link img{
  display: block;
  height: 50px;
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.20));
  border-radius: 10px;
}

/* ✅ Mobile : un poil plus d’air et titre moins “serré” */
@media (max-width: 640px){
  .piya-cta-final{
    padding: 64px 14px 76px;
  }
  .cta-title{
    line-height: 1.18;
    max-width: 18ch;
  }
}


/* ================= FOOTER PIYA (FIX: no white frame + more breathing + CTA) ================= */
.piya-footer{
  background: transparent;          /* ✅ supprime le grand carré blanc autour */
  padding: 36px 10px 42px;          /* ✅ plus d’air autour */
  font-family:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.footer-inner{
  max-width:1160px;
  margin:0 auto;

  display:grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  gap:44px;                         /* ✅ plus espacé */

  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:36px;
  padding:42px;                     /* ✅ plus d’air dans la carte */
  box-shadow:0 16px 44px rgba(0,0,0,.08);
}

.footer-col{ display:flex; flex-direction:column; gap:12px; }

/* ===== FOOTER LOGO — SIZE & ALIGN FIX ===== */

.footer-brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligne logo + texte à gauche */
  gap: 10px;
}

/* Logo plus présent, ancré visuellement */
.footer-logo{
  height: 96px;          /* 🔥 taille cible (ajuste 88–104 si besoin) */
  width: auto;
  max-width: 220px;     /* empêche qu’il déborde */
  object-fit: contain;
  display: block;
}

/* Texte bien aligné sous le logo */
.footer-desc{
  margin-top: 0;
  max-width: 420px;
}

/* Mobile : logo un peu réduit mais toujours lisible */
@media (max-width: 640px){
  .footer-logo{
    height: 80px;
    max-width: 200px;
  }
}

.footer-desc{
  font-size:14.5px;
  line-height:1.65;
  color:#374151;
  max-width:380px;
  margin: 2px 0 6px;
}

.footer-copy{
  font-size:13px;
  opacity:.75;
  margin: 10px 0 0;
}

/* CTA store */
.footer-cta{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 10px;
}
.footer-cta a{ display:inline-flex; line-height:0; }
.footer-cta img{
  height:46px;
  width:auto;
  display:block;
  border-radius:12px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.18));
}

/* Titles */
.footer-heading{
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#111827;
  margin: 2px 0 8px;
}

/* Lists */
.footer-nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;                         /* ✅ plus respirant */
}

.footer-nav a{
  font-size:14px;
  color:#374151;
  text-decoration:none;
}
.footer-nav a:hover{
  color:#43a6d9;
  text-decoration:underline;
}

/* Social */
.footer-social-links{ display:flex; gap:14px; }
.footer-social-links a{
  width:42px; height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(67,166,217,.12);
  transition:transform .2s ease, background .2s ease;
}
.footer-social-links a:hover{
  background:#43a6d9;
  transform:translateY(-2px);
}
.footer-social-links svg{ width:20px; height:20px; fill:#43a6d9; }
.footer-social-links a:hover svg{ fill:#fff; }

/* Responsive */
@media (max-width: 1024px){
  .footer-inner{
    grid-template-columns: 1.4fr 1fr;
    gap:28px;
    padding:32px;
  }
}
@media (max-width: 640px){
  .piya-footer{ padding: 56px 16px 68px; }
  .footer-inner{
    grid-template-columns: 1fr;
    padding:24px;
    border-radius:28px;
    gap:22px;
  }
  @media (max-width: 640px){
  .footer-logo{
    height: 56px;
    max-width: 160px;
  }
}
}

/* ================================
   FIX RESPONSIVE — CGU
   ================================ */

/* 1) anti “collé à droite” + anti débordement */
html, body{
  overflow-x: hidden;
}

.piya-legal,
.legal-hero,
.legal-layout{
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

/* 2) évite qu’un mot / lien / email casse le layout */
.legal-article,
.legal-article *{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 3) sur mobile, on réduit le padding interne des cards (sinon ça “mange” l’espace) */
@media (max-width: 768px){
  .legal-toc .legal-card{ padding: 14px; }
  .legal-article{ padding: 14px; }
}


/* ================================
   FIX RESPONSIVE — CTA
   ================================ */

.piya-cta-final{
  padding-left: clamp(16px, 4vw, 24px);
  padding-right: clamp(16px, 4vw, 24px);
  box-sizing: border-box;
}

.cta-container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 0;   /* on garde tout dans la section */
  padding-right: 0;
  box-sizing: border-box;
}

/* Empêche le titre de dépasser/casser visuellement */
.cta-title,
.cta-sub{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Sur mobile : petite marge de respiration + interlignage */
@media (max-width: 768px){
  .cta-title{ line-height: 1.2; }
  .cta-sub{ line-height: 1.6; }
}

