/* Paralysio, site vitrine. DA de l'app : ciel bleu, cartes blanches, bleu nuit ;
   couleurs du personnage (corail, pêche) pour le côté fun. Police ronde : Fredoka. */
/* Police locale (Fredoka, licence OFL), variable : un seul fichier pour les graisses 400 à 600. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(polices/fredoka-latin.woff2) format('woff2');
}

:root {
  --ciel: #eaf2ff;
  --ciel-fort: #d9e8ff;
  --blanc: #ffffff;
  --texte: #0b1b33;
  --secondaire: #4a5b74;
  --bleu: #0a5bd7;
  --bleu-pale: #cfe0fb;
  --bleu-doux: #9cc3ff;
  --corail: #e5604a;
  --corail-fonce: #c94a35;
  --peche: #f3cdb0;
  --nuit: #14254a;
  --ombre: 0 18px 40px rgba(20, 37, 74, 0.12);
  --rayon: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.traduction body { visibility: hidden; }
body {
  margin: 0;
  font-family: 'Fredoka', ui-rounded, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--texte);
  background: linear-gradient(180deg, var(--ciel-fort) 0, var(--blanc) 900px) var(--blanc);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bleu); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.conteneur { width: min(1120px, 100% - 32px); margin-inline: auto; }
.centre { text-align: center; }
.secondaire { color: var(--secondaire); }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  /* Pas de flou d'arrière-plan : recalculé à chaque image du défilement, il saccade. */
  background: rgba(236, 243, 255, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}
.nav .conteneur { display: flex; align-items: center; gap: 24px; height: 72px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.3rem; color: var(--texte); text-decoration: none; }
.marque img { width: 40px; height: 40px; border-radius: 11px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--texte); text-decoration: none; font-weight: 500; }
.nav ul a:hover { color: var(--bleu); }
@media (max-width: 820px) { .nav ul { display: none; } .nav .langues { margin-left: auto; } }
@media (max-width: 520px) { .nav .bouton { display: none; } }
/* Langues : pastilles dans le menu. */
.langues {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--blanc); box-shadow: 0 6px 16px rgba(20, 37, 74, 0.08);
}
.langues button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 10px;
  font: inherit; font-weight: 600; font-size: 0.85rem; color: var(--secondaire);
  border: 0; background: none; border-radius: 999px; min-width: 40px; min-height: 36px; cursor: pointer;
}
.langues button:hover { color: var(--bleu); }
.langues img, .carte-langue .drapeau { border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 37, 74, 0.12); }
.carte-langue .drapeau { margin-bottom: 8px; }
@media (max-width: 420px) { .langues button { padding: 0 8px; } .langues .code { display: none; } }
.langues button[aria-pressed="true"] { background: var(--bleu); color: var(--blanc); }
.langues button:focus-visible, .carte-langue:focus-visible { outline: 3px solid var(--corail); outline-offset: 2px; }

/* Langues : cartes colorées du bas de page, comme l'écran de choix de l'app. */
.cartes-langues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .cartes-langues { grid-template-columns: repeat(2, 1fr); } }
.carte-langue {
  font: inherit; text-align: left; border: 0; cursor: pointer; position: relative;
  border-radius: 28px; padding: 26px 22px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  box-shadow: var(--ombre); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.carte-langue strong { font-size: 1.6rem; font-weight: 600; }
.carte-langue span { font-weight: 600; }
.carte-langue:nth-child(1) { background: #0a5bd7; color: #fff; rotate: -2deg; }
.carte-langue:nth-child(2) { background: #c94a35; color: #fff; rotate: 2deg; }
.carte-langue:nth-child(3) { background: var(--peche); color: var(--nuit); rotate: 1.5deg; }
.carte-langue:nth-child(4) { background: var(--bleu-pale); color: var(--nuit); rotate: -1.5deg; }
.carte-langue:hover { transform: translateY(-6px) scale(1.02); }
.carte-langue:active { transform: scale(0.95); }
.carte-langue[aria-pressed="true"]::after {
  content: '✓'; position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--bleu); font-weight: 600;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s;
}
.bouton:hover { transform: translateY(-2px) rotate(-1deg); }
.bouton:active { transform: scale(0.97); }
.bouton:focus-visible, a:focus-visible, summary:focus-visible, .perso:focus-visible {
  outline: 3px solid var(--corail); outline-offset: 3px;
}
.bouton-principal { background: var(--bleu); color: var(--blanc); box-shadow: 0 10px 24px rgba(10, 91, 215, 0.3); }
.bouton-corail { background: var(--corail); color: var(--blanc); box-shadow: 0 10px 24px rgba(229, 96, 74, 0.3); }
.bouton-verre { background: rgba(255, 255, 255, 0.85); color: var(--texte); box-shadow: var(--ombre); border: 1px solid var(--blanc); }
.bouton-petit { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.bouton.bientot { background: var(--nuit); color: var(--blanc); opacity: 0.92; cursor: default; box-shadow: none; }
.bouton.bientot:hover { transform: none; }
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Héros ---------- */
.heros { padding: 64px 0 40px; position: relative; }
.heros .conteneur { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .heros .conteneur { grid-template-columns: 1fr; text-align: center; } .heros .boutons { justify-content: center; } }
.etiquette {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  background: var(--corail); color: var(--blanc); font-weight: 600; font-size: 0.95rem;
  transform: rotate(-2deg); margin-bottom: 18px;
}
.heros p.intro { font-size: 1.2rem; color: var(--secondaire); max-width: 34ch; }
@media (max-width: 900px) { .heros p.intro { margin-inline: auto; } }
.atouts { margin-top: 22px; font-size: 0.98rem; color: var(--secondaire); }
.atouts span { white-space: nowrap; }

.scene { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.scene .tache {
  position: absolute; inset: 4%; background: var(--bleu-pale); opacity: 0.8;
  border-radius: 54% 46% 52% 48% / 46% 54% 46% 54%;
  animation: respire 9s ease-in-out infinite;
  will-change: transform;
}
.perso {
  position: absolute; inset: 14%; cursor: pointer; border-radius: 50%;
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  animation: flotte 5s ease-in-out infinite;
  will-change: translate;
}
.perso svg { width: 100%; height: 100%; overflow: visible; }
.perso .oeil { transform-box: fill-box; transform-origin: center; animation: cligne 4.5s infinite; }
.perso .soleil { transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-in-out infinite; }
.perso.saute { animation: saute 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.perso.saute .oeil-droit { animation: clin 0.7s; }
.astuce {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-3deg);
  color: var(--corail); font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.bulle {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--blanc);
  box-shadow: var(--ombre); font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  animation: flotte 6s ease-in-out infinite;
}
.bulle::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--pastille, var(--bleu)); }
.bulle-1 { top: 6%; left: -2%; rotate: -6deg; }
.bulle-2 { top: 12%; right: -4%; rotate: 5deg; --pastille: var(--corail); animation-delay: -2s; }
.bulle-3 { bottom: 14%; left: -4%; rotate: 4deg; --pastille: var(--bleu-doux); animation-delay: -1s; }
.bulle-4 { bottom: 8%; right: -2%; rotate: -4deg; animation-delay: -3s; }
@media (max-width: 560px) { .bulle { font-size: 0.82rem; padding: 7px 12px 7px 8px; } .bulle::before { width: 16px; height: 16px; } }
.etincelle { position: absolute; width: 34px; height: 34px; animation: scintille 3.2s ease-in-out infinite; }
.etincelle path { fill: currentColor; }

@keyframes flotte { 50% { translate: 0 -10px; } }
@keyframes respire { 50% { transform: rotate(8deg) scale(1.04); } }
@keyframes cligne { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes clin { 30%, 60% { transform: scaleY(0.1); } }
@keyframes pulse { 50% { transform: scale(1.08); } }
@keyframes saute { 0% { translate: 0 0; } 40% { translate: 0 -34px; rotate: -6deg; } 100% { translate: 0 0; rotate: 0deg; } }
@keyframes scintille { 50% { transform: scale(0.6) rotate(45deg); opacity: 0.6; } }

/* ---------- Sections ---------- */
section { padding: 80px 0; position: relative; }
.chapeau { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.chapeau p { color: var(--secondaire); font-size: 1.15rem; }
.vague { display: block; width: 120px; height: 18px; margin: 0 auto 18px; color: var(--corail); }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.carte {
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--blanc); border-radius: var(--rayon);
  padding: 28px; box-shadow: var(--ombre);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.carte:hover { transform: translateY(-6px) rotate(-0.8deg); }
.carte:nth-child(even):hover { transform: translateY(-6px) rotate(0.8deg); }
.carte .num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px;
  font-weight: 600; font-size: 1.4rem; color: var(--blanc); background: var(--bleu); margin-bottom: 16px;
  rotate: -6deg;
}
.carte:nth-child(2) .num { background: var(--corail); rotate: 5deg; }
.carte:nth-child(3) .num { background: var(--bleu-doux); color: var(--nuit); }
.carte p { color: var(--secondaire); margin: 0; }

/* Démo du principe : un sourire qui ne monte que d'un côté. */
.principe { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
@media (max-width: 860px) { .principe { grid-template-columns: 1fr; } }
.miroir {
  position: relative; background: var(--blanc); border-radius: 36px; padding: 36px; box-shadow: var(--ombre);
  max-width: 420px; margin-inline: auto; width: 100%;
}
.miroir .legende { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.95rem; margin-top: 14px; }
.miroir .legende span:first-child { color: var(--secondaire); }
.miroir .legende span:last-child { color: var(--bleu); }

/* ---------- Galerie de téléphones : une grille, la dernière rangée centrée ---------- */
.galerie { --gap: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px var(--gap); padding: 20px 0 40px; }
.ecran { width: calc((100% - 4 * var(--gap)) / 5); text-align: center; margin: 0; }
@media (max-width: 1000px) { .ecran { width: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 640px) { .galerie { --gap: 16px; } .ecran { width: calc((100% - var(--gap)) / 2); } .ecran h3 { font-size: 1.05rem; } .tel { border-width: 7px; border-radius: 34px; } .tel img { border-radius: 27px; } }
.ecran:nth-child(odd) .tel { rotate: -2deg; }
.ecran:nth-child(even) .tel { rotate: 2deg; }
.tel {
  border: 10px solid var(--nuit); border-radius: 46px; overflow: hidden; background: var(--nuit);
  box-shadow: 0 26px 50px rgba(20, 37, 74, 0.22); transition: rotate 0.3s, translate 0.3s;
}
.ecran:hover .tel { rotate: 0deg; translate: 0 -8px; }
.tel img { width: 100%; height: auto; border-radius: 36px; }
.ecran h3 { margin: 22px 0 4px; }
.ecran p { color: var(--secondaire); font-size: 1rem; margin: 0; }


/* ---------- Bandeau vie privée ---------- */
.bandeau {
  background: var(--nuit); color: var(--blanc); border-radius: 40px; padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; overflow: hidden; position: relative;
}
@media (max-width: 860px) { .bandeau { grid-template-columns: 1fr; } }
.bandeau h2 { color: var(--blanc); }
.bandeau p { color: #c9d6ee; }
.bandeau ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bandeau li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.bandeau li::before {
  content: '✓'; display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.1); color: var(--bleu-doux); font-weight: 600;
}
.bandeau .rond { position: absolute; border-radius: 50%; background: var(--corail); opacity: 0.9; }

/* ---------- Soutenir ---------- */
.soutien .carte { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.soutien .carte p { flex: 1; }
.emoji { font-size: 2.6rem; line-height: 1; display: inline-block; animation: flotte 4s ease-in-out infinite; }
.soutien .carte:nth-child(2) .emoji { animation-delay: -1.3s; }
.soutien .carte:nth-child(3) .emoji { animation-delay: -2.6s; }

/* ---------- Contact ---------- */
.contact {
  background: var(--blanc); border-radius: 40px; box-shadow: var(--ombre); padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; text-align: center; } .contact .boutons { justify-content: center; } }
.adresse { font-weight: 600; font-size: 1.15rem; word-break: break-all; }
.pros { background: var(--ciel); border-radius: 24px; padding: 22px 24px; }
.pros h3 { font-size: 1.15rem; }
.pros p { margin: 0; color: var(--secondaire); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--blanc); border-radius: 22px; box-shadow: var(--ombre); padding: 4px 24px; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--corail); font-size: 1.6rem; line-height: 1; transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--secondaire); padding-bottom: 8px; }

/* ---------- Pied de page ---------- */
footer { padding: 48px 0 64px; color: var(--secondaire); font-size: 0.95rem; }
footer .conteneur { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--secondaire); }
.avertissement { flex-basis: 100%; font-size: 0.88rem; }

/* ---------- Page texte (confidentialité) ---------- */
.texte-long { max-width: 720px; margin-inline: auto; padding: 56px 0 24px; }
.texte-long h2 { font-size: 1.5rem; margin-top: 1.6em; }
.texte-long p, .texte-long li { color: var(--secondaire); }

/* Petit toast pour « lien copié ». */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 120px; z-index: 20;
  background: var(--nuit); color: var(--blanc); padding: 12px 22px; border-radius: 999px; font-weight: 500;
  transition: translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.visible { translate: -50% 0; }

/* Hors de l'écran, les animations s'arrêtent : le défilement reste fluide. */
.endormi, .endormi * { animation-play-state: paused !important; }

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