/* Le site de Miaou. Mêmes couleurs que l'app : le bleu de l'icône, l'orange du chat, et le dégradé pêche → rose → lavande. */
:root {
  --bleu: #032DD2;
  --bleu-nuit: #0B1052;
  --orange: #FFA85A;
  --creme: #FCF1E6;
  --rose: #FF5FA2;
  --rose-doux: #FF8BCD;
  --prune: #3B2350;
  --gris: #7A6580;
  --verre: rgba(255, 255, 255, 0.66);
  --ombre: 0 14px 34px rgba(200, 87, 138, 0.18);
  --rond: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--prune);
  background: linear-gradient(180deg, #FFEBDF 0%, #FFE1EC 45%, #EFE4FF 100%) fixed;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 900; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-weight: 900; font-size: 20px; line-height: 1.2; }
.grand { font-size: clamp(17px, 1.6vw, 20px); color: var(--gris); font-weight: 700; }
.centre { text-align: center; display: grid; gap: 12px; justify-items: center; }

/* ── Petits éléments ── */
.mot { font-weight: 900; font-size: 30px; letter-spacing: -0.02em; text-decoration: none; color: var(--creme); }
.mot.sombre { color: var(--bleu); }
.etiquette {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-weight: 800; font-size: 14px; color: #E04A8E;
  background: var(--verre); border: 1.5px solid rgba(255, 255, 255, 0.9);
  padding: 6px 14px; border-radius: 999px;
}
.etiquette.clair { color: var(--creme); background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); }
.point { width: 8px; height: 8px; border-radius: 50%; background: #7CF0A8; box-shadow: 0 0 0 0 rgba(124, 240, 168, 0.7); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(124, 240, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 240, 168, 0); } }

.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 30px; border-radius: 999px;
  font-weight: 900; font-size: 18px; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bouton.creme { background: var(--creme); color: var(--bleu); box-shadow: 0 8px 0 rgba(5, 10, 60, 0.28), 0 18px 34px rgba(5, 10, 60, 0.25); }
.bouton.creme:hover { transform: translateY(-2px); box-shadow: 0 10px 0 rgba(5, 10, 60, 0.28), 0 22px 40px rgba(5, 10, 60, 0.3); }
.bouton.creme:active { transform: translateY(5px); box-shadow: 0 3px 0 rgba(5, 10, 60, 0.28); }
.bouton.petit { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: 0 5px 0 rgba(5, 10, 60, 0.28); }
.bouton:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.lien-clair { color: var(--creme); font-weight: 800; text-decoration: none; opacity: 0.9; padding: 12px 4px; }
.lien-clair:hover { opacity: 1; text-decoration: underline; }

/* ── Le haut de page ── */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 80% 10%, #1A46F0 0%, var(--bleu) 55%, #0222A8 100%);
  color: var(--creme);
  display: flex; flex-direction: column;
  border-radius: 0 0 44px 44px;
}
.nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(20px, 5vw, 64px); }
.nav-liens { display: none; gap: 28px; }
.nav-liens a { color: var(--creme); text-decoration: none; font-weight: 800; font-size: 15px; opacity: 0.85; }
.nav-liens a:hover { opacity: 1; }

.hero-texte { position: relative; z-index: 2; padding: clamp(18px, 5vh, 70px) clamp(20px, 5vw, 64px) 0; max-width: 780px; display: grid; gap: 20px; }
h1 { font-weight: 900; font-size: clamp(40px, 5.3vw, 84px); line-height: 0.98; letter-spacing: -0.025em; }
h1 em { font-style: normal; color: var(--orange); }
.ligne { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ligne > span { display: block; transform: translateY(110%); animation: monte 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
.ligne:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes monte { to { transform: none; } }
.hero-sous { font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; max-width: 520px; opacity: 0; animation: apparait 0.8s 0.45s ease forwards; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; opacity: 0; animation: apparait 0.8s 0.6s ease forwards; }
.hero .etiquette { opacity: 0; animation: apparait 0.8s 0.05s ease forwards; }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Le chat : il surgit du bas, ses oreilles frémissent, il cligne de l'œil. */
.chat {
  position: absolute; z-index: 1; right: -4%; bottom: -3%;
  width: min(92vw, 62vh, 760px);
  transform: translateY(105%); animation: surgit 1.1s 0.35s cubic-bezier(0.2, 1.3, 0.3, 1) forwards;
}
.chat svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes surgit { to { transform: none; } }
.oreille { transform-box: fill-box; }
.oreille.od { transform-origin: 40% 90%; animation: fremit 5.5s 2.4s infinite; }
.oreille.og { transform-origin: 50% 100%; }
@keyframes fremit { 0%, 6%, 100% { transform: none; } 2% { transform: rotate(8deg); } 4% { transform: rotate(-2deg); } }
.oeil { transform-box: fill-box; transform-origin: 50% 50%; animation: cligne 4.6s 2s infinite; }
@keyframes cligne { 0%, 4%, 100% { transform: none; } 2% { transform: scaleY(0.08); } }

.etoile { position: absolute; z-index: 1; fill: var(--creme); animation: scintille 3.2s ease-in-out infinite; }
.etoile.e1 { width: 34px; top: 22%; right: 12%; }
.etoile.e2 { width: 20px; top: 34%; right: 30%; fill: var(--rose-doux); animation-delay: 0.8s; }
.etoile.e3 { width: 26px; top: 14%; right: 38%; fill: var(--orange); animation-delay: 1.6s; }
@keyframes scintille { 0%, 100% { transform: scale(0.6) rotate(-20deg); opacity: 0.4; } 50% { transform: scale(1) rotate(0); opacity: 1; } }

/* ── Les questions qui défilent ── */
.questions { padding: 34px 0 6px; }
.defile { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.defile-piste { display: flex; gap: 12px; width: max-content; animation: defile 42s linear infinite; }
.defile-piste span { background: var(--verre); border: 1.5px solid rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 10px 20px; font-weight: 800; font-size: 16px; white-space: nowrap; box-shadow: 0 6px 16px rgba(200, 87, 138, 0.1); }
.defile:hover .defile-piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(calc(-50% - 6px)); } }

/* ── Les grands blocs ── */
.bloc { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 48px); display: grid; gap: 44px; align-items: center; }
.bloc-texte { display: grid; gap: 18px; }

.profils { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.profils li { color: #fff; font-weight: 900; font-size: 14.5px; padding: 8px 15px; border-radius: 999px; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 1.5px solid rgba(255, 255, 255, 0.75); box-shadow: 0 6px 14px rgba(120, 60, 120, 0.18); transition: transform 0.2s ease; }
.profils li:hover { transform: translateY(-3px) rotate(-2deg); }

.soucis { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.soucis li { display: flex; align-items: center; gap: 14px; background: var(--verre); border: 1.5px solid rgba(255, 255, 255, 0.9); border-radius: 24px; padding: 8px 18px 8px 10px; font-weight: 900; font-size: 17px; box-shadow: var(--ombre); transition: transform 0.2s ease; }
.soucis li:hover { transform: translateX(6px); }
.soucis img { width: 56px; height: 56px; }

/* Les téléphones */
.bloc-image { position: relative; display: grid; justify-items: center; }
.telephone { width: min(72vw, 300px); border-radius: 46px; padding: 10px; background: var(--bleu-nuit); box-shadow: 0 30px 60px rgba(59, 35, 80, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.12); }
.telephone img { border-radius: 36px; width: 100%; height: auto; }
.duo { min-height: 520px; }
.duo .telephone { width: min(56vw, 250px); }
.duo .derriere { transform: translateX(-26%) rotate(-7deg); }
.duo .devant { position: absolute; top: 34px; transform: translateX(28%) rotate(5deg); }
.seul { transform: rotate(3deg); }

.frise { width: min(86vw, 360px); margin-top: 26px; background: var(--verre); border: 1.5px solid rgba(255, 255, 255, 0.9); border-radius: 24px; padding: 18px 20px 14px; box-shadow: var(--ombre); }
.frise-barre { height: 12px; border-radius: 6px; background: #fff; overflow: hidden; }
.frise-barre i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #FF5FA2, #FFB36B, #4CC77A); transition: width 1.6s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.vu .frise-barre i { width: 100%; }
.frise-jours { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: 13px; color: var(--gris); }
.frise-jours span:last-child { color: #2D7A47; }

/* ── La grille « tout ce qu'il y a dedans » ── */
.tout { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 48px); }
.grille { display: grid; gap: 14px; margin-top: 36px; }
.carte { background: var(--fond); border: 1.5px solid rgba(255, 255, 255, 0.95); border-radius: var(--rond); padding: 22px; display: grid; gap: 8px; align-content: start; box-shadow: var(--ombre); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.carte:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 22px 44px rgba(200, 87, 138, 0.24); }
.carte img { width: 68px; height: 68px; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.4, 1); }
.carte:hover img { transform: scale(1.12) rotate(-6deg); }
.carte p { color: #6B5670; font-weight: 700; font-size: 15.5px; }
.carte.large { gap: 16px; }
.carte.large img { width: 88px; height: 88px; }
.carte.large h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 6px; }
.carte.large p { font-size: 17px; }

/* ── Les étapes ── */
.etapes { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 48px); }
.pas { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.pas li { background: var(--verre); border: 1.5px solid rgba(255, 255, 255, 0.9); border-radius: var(--rond); padding: 24px; display: grid; gap: 8px; box-shadow: var(--ombre); }
.pas b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 20px; background: linear-gradient(180deg, #FF9FC9, #FF5FA2); border: 2px solid #fff; box-shadow: 0 6px 14px rgba(255, 95, 162, 0.35); }
.pas li:nth-child(2) b { background: linear-gradient(180deg, #FFCF9B, #FF9C4A); box-shadow: 0 6px 14px rgba(255, 156, 74, 0.35); }
.pas li:nth-child(3) b { background: linear-gradient(180deg, #8FE3AE, #3FBB6E); box-shadow: 0 6px 14px rgba(63, 187, 110, 0.35); }
.pas p { color: var(--gris); font-weight: 700; }

/* ── La fin ── */
.fin {
  margin: clamp(30px, 6vw, 80px) clamp(12px, 3vw, 40px) 0; padding: clamp(56px, 9vw, 110px) 24px;
  border-radius: 44px; text-align: center; color: var(--creme);
  background: radial-gradient(120% 120% at 50% 0%, #1A46F0 0%, var(--bleu) 55%, #0222A8 100%);
  display: grid; gap: 18px; justify-items: center;
}
.fin-icone { width: 132px; height: 132px; border-radius: 32px; box-shadow: 0 18px 40px rgba(5, 10, 60, 0.45); border: 4px solid var(--creme); transform: rotate(-5deg); }
.fin p { font-size: 19px; font-weight: 700; opacity: 0.92; max-width: 480px; }
.fin .bouton { margin-top: 10px; }

.pied { max-width: 1180px; margin: 0 auto; padding: 40px 24px 56px; display: grid; gap: 14px; justify-items: center; text-align: center; color: var(--gris); font-size: 14.5px; font-weight: 700; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.pied a { text-decoration: none; }
.pied nav a:hover { text-decoration: underline; color: var(--prune); }

/* ── L'apparition au défilement ── */
.r { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.r.vu { opacity: 1; transform: none; }
.duo.r .devant { transition: transform 0.9s 0.15s cubic-bezier(0.2, 1.2, 0.3, 1); }
.duo.r:not(.vu) .devant { transform: translateX(10%) rotate(0deg); }
.grille .r:nth-child(2), .pas .r:nth-child(2) { transition-delay: 0.06s; }
.grille .r:nth-child(3), .pas .r:nth-child(3) { transition-delay: 0.12s; }
.grille .r:nth-child(4) { transition-delay: 0.18s; }
.fin-icone.r.vu { transform: rotate(-5deg); }
.seul.r.vu, .bloc-image.r.vu .seul { transform: rotate(3deg); }

/* ── Tablette et ordinateur ── */
@media (min-width: 720px) {
  .grille { grid-template-columns: repeat(2, 1fr); }
  .carte.large { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; padding: 30px; }
  .pas { grid-template-columns: repeat(3, 1fr); }
  .soucis { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .nav-liens { display: flex; }
  .mot { font-size: 34px; }
  .hero-texte { padding-top: clamp(30px, 9vh, 110px); max-width: 56%; }
  .chat { right: -3%; width: min(46vw, 84vh, 780px); }
  .bloc { grid-template-columns: 1fr 1fr; gap: 64px; }
  .bloc.inverse .bloc-texte { order: 2; }
  .grille { grid-template-columns: repeat(4, 1fr); }
  .carte.large { grid-column: span 2; grid-template-columns: 1fr; align-content: center; }
  .grille .carte:nth-child(2), .grille .carte:nth-child(3) { grid-column: span 1; }
  .duo { min-height: 600px; }
  .duo .telephone { width: 270px; }
  .telephone { width: 310px; }
}

/* ── Petit écran : le chat reste en bas, le texte au-dessus ── */
@media (max-width: 979px) {
  .hero { min-height: max(100svh, 720px); }
  h1 { font-size: clamp(30px, 9.3vw, 56px); }
  .hero-texte { padding-bottom: min(74vw, 44vh); }
  .chat { right: -12%; width: min(100vw, 46vh); }
  .etoile.e1 { top: 12%; right: 8%; }
  .etoile.e2 { display: none; }
  .etoile.e3 { top: 9%; right: 44%; }
  .nav .bouton.petit { display: none; }
}

/* ── Pour celles et ceux qui préfèrent sans mouvement ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ligne > span, .chat { transform: none; }
  .hero-sous, .hero-actions, .hero .etiquette, .r { opacity: 1; transform: none; }
  .frise-barre i { width: 100%; }
}

/* ── Les pages de texte (confidentialité, conditions) ── */
.bandeau { background: radial-gradient(120% 140% at 80% 0%, #1A46F0 0%, var(--bleu) 60%, #0222A8 100%); border-radius: 0 0 36px 36px; padding: 22px clamp(20px, 5vw, 64px) 46px; color: var(--creme); }
.bandeau .haut { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bandeau h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; max-width: 820px; margin: 40px auto 0; }
.bandeau .maj { max-width: 820px; margin: 10px auto 0; font-weight: 700; opacity: 0.85; font-size: 15px; }
.texte { max-width: 820px; margin: 0 auto; padding: 34px 20px 30px; }
.texte .feuille { background: var(--verre); border: 1.5px solid rgba(255, 255, 255, 0.9); border-radius: var(--rond); box-shadow: var(--ombre); padding: clamp(22px, 4vw, 44px); }
.texte h2 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.25; margin: 30px 0 8px; }
.texte h2:first-child { margin-top: 0; }
.texte p, .texte li { font-size: 16.5px; line-height: 1.65; font-weight: 600; color: #4C3A58; margin: 0 0 12px; }
.texte ul { padding-left: 22px; margin: 0 0 12px; }
.texte a { color: var(--bleu); font-weight: 800; }
.a-remplir { background: #FFE7CC; padding: 0 5px; border-radius: 5px; }
.bandeau .a-remplir { color: var(--prune); }
