/* Maquette de refonte, posée par-dessus pilulo.css (non livrée). */
.r-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(120% 80% at 85% 10%, var(--accent-clair) 0%, transparent 60%), var(--fond-haut);
}
.r-hero__grille {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1.05fr 1fr;
}
.r-hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.25rem;
}
.r-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.r-pastilles {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.r-pastilles li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--bordure);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal-texte);
}
.r-pastilles li::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-doux);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.r-hero__scene {
  position: relative;
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.r-halo {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 179, 154, 0.28), transparent 65%);
  filter: blur(10px);
}

.r-centre {
  text-align: center;
  margin-inline: auto;
}
.r-etapes {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.r-etape {
  background: var(--surface);
  border-radius: 24px;
  padding: 1.25rem 1.5rem 1.75rem;
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre-carte);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.r-etape:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-carte-active);
}
.r-etape__visuel {
  height: 150px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent-clair), var(--fond-alt));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.r-etape__num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.r-etape h3 {
  margin: 0.75rem 0 0.5rem;
}
.r-etape p {
  color: var(--texte-doux);
  margin: 0;
}
.r-ligne {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 0.875rem;
}
.r-ligne i {
  margin-left: auto;
  font-style: normal;
  color: var(--texte-doux);
}
.r-point {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}
.r-notif {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(253, 252, 250, 0.92);
  border-radius: 18px;
  padding: 0.8rem;
  font-size: 0.875rem;
  box-shadow: 0 8px 20px rgba(34, 48, 44, 0.1);
  animation: r-arrivee 4s ease-in-out infinite;
}
.r-notif__icone {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9px;
  background: url(/img/favicon.svg) center/cover;
}
.r-bouton-demo {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  padding: 0.7rem;
  box-shadow: var(--ombre-accent);
}
.r-durees {
  display: flex;
  gap: 0.4rem;
}
.r-durees span {
  flex: 1;
  text-align: center;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal-texte);
}
@keyframes r-arrivee {
  0%,
  70% {
    transform: none;
    opacity: 1;
  }
  80% {
    transform: translateY(-14px);
    opacity: 0;
  }
  90%,
  100% {
    transform: none;
    opacity: 1;
  }
}

.r-sombre {
  background: #16302a;
  color: #eef3f1;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  margin: clamp(3rem, 6vw, 5rem) 0;
}
.r-sombre h2 {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.r-sombre p {
  color: #c9d6d2;
}
.r-sombre a {
  color: #7fe0cb;
}
.r-kicker-clair {
  color: #7fe0cb;
}
.r-sombre__grille {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.r-tuiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.r-tuiles li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1rem 1rem 2.75rem;
  position: relative;
  font-size: 0.9375rem;
}
.r-tuiles li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1rem;
  height: 0.55rem;
  border: solid #7fe0cb;
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
.r-tuiles li:last-child {
  grid-column: 1 / -1;
}

.r-final {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border-radius: 32px;
  margin-bottom: 4rem;
  background: radial-gradient(90% 120% at 50% 0%, var(--accent-clair), var(--surface));
  border: 1px solid var(--bordure);
}
.r-final h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  letter-spacing: -0.02em;
}
.r-final img {
  display: inline-block;
  margin-top: 1rem;
}

.r-collant {
  display: none;
}
@media (max-width: 860px) {
  .r-hero__grille,
  .r-sombre__grille {
    grid-template-columns: 1fr;
  }
  .r-hero__scene {
    min-height: 0;
    height: calc(680px * var(--pose-echelle));
  }
  .r-hero {
    --pose-echelle: 0.7;
  }
  .r-collant {
    display: flex;
    position: fixed;
    z-index: 20;
    left: 0;
    bottom: 0;
    /* left + right à 0 suivait la fenêtre de mise en page, élargie à 200 %
       de texte : la barre faisait 339 px sur 320 (mesuré le 2026-10-30). */
    width: 100vw;
    justify-content: center;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--filet);
  }
  body {
    padding-bottom: 76px;
  }
  @supports (animation-timeline: scroll()) {
    .r-collant {
      animation: r-montre linear both;
      animation-timeline: scroll();
      animation-range: 500px 600px;
    }
  }
}
@keyframes r-montre {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 520px) {
  .r-tuiles {
    grid-template-columns: 1fr;
  }
  .r-tuiles li:last-child {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .r-notif {
    animation: none;
  }
  .r-etape {
    transition: none;
  }
}

/*
 * Proportions d'un iPhone 16 réel : boîtier 71,6 x 147,6 mm (1 : 2,06),
 * écran 1179 x 2556 px (1 : 2,17). À 300 px de large, boîtier 618 px,
 * bordure 14 px, écran 272 x 590. Les DEUX téléphones ont la même taille :
 * on rétrécit la pose entière, jamais un téléphone seul.
 */
.r-hero {
  --pose-echelle: 1;
}
.r-pose {
  position: relative;
  width: 460px;
  height: 680px;
  flex: none;
  transform: scale(var(--pose-echelle));
  transform-origin: top center;
}
.r-hero__scene {
  align-items: flex-start;
}
.r-telephone-avant {
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(3deg);
}
@media (max-width: 24rem) {
  .r-hero {
    --pose-echelle: 0.6;
  }
}
.r-hero__grille > * {
  min-width: 0;
}
@media (max-width: 860px) {
  .r-hero__grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cadre iPhone 15 Pro repris du kit de meta-posts (iphone.css), à l'échelle 0,7 :
   écran 275 x 596, proche de l'écran animé d'origine (272 x 590). */
.r-pose .iphone {
  position: relative;
}
.r-capture {
  position: absolute;
  left: 0;
  top: 40px;
  transform: rotate(-6deg);
}
.r-capture .scr img {
  object-fit: cover;
}
.r-hero .iphone .telephone {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
.r-hero .iphone .telephone__ecran {
  border-radius: 0;
  padding-top: 52px;
}
.r-hero .iphone .telephone__ilot {
  display: none;
}
.statut {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 30px 0 38px;
  font:
    600 13px/1 -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    sans-serif;
  color: #111;
}
.statut__pile {
  width: 22px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.4);
  position: relative;
}
.statut__pile::after {
  content: "";
  position: absolute;
  inset: 1.5px 4px 1.5px 1.5px;
  background: #111;
  border-radius: 1.5px;
}

/* Bandeau des chiffres : une bande, pas des cartes. Les filets sont l'espace
   d'un pixel entre les cases, laissé voir sur le fond de la bande ; chaque
   case a une largeur minimale en rem, donc à 200 % de texte elles passent
   d'elles-mêmes de quatre à deux puis à une par ligne, sans case vide
   (320 px de large à 200 % débordait à 371 px, mesuré le 2026-10-30). */
.r-bandeau {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--filet) content-box;
  margin-block: clamp(1rem, 3vw, 2.5rem);
  border-block: 1px solid var(--filet);
}
.r-chiffre {
  flex: 1 1 9rem;
  padding: 1.75rem 1rem;
  text-align: center;
  background: var(--fond-bas);
}
.r-chiffre strong {
  display: block;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.r-chiffre span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--texte-doux);
  max-width: 19ch;
  margin-inline: auto;
}

/* Grilles fluides : à 200 % de texte, une colonne de largeur fixe débordait
   (1482 px de page pour 1280 de fenêtre, mesuré le 2026-10-30). Une colonne
   ne descend jamais sous sa largeur en rem : la grille se replie. */
/* Trois étapes ou une, jamais deux puis une orpheline (vu à 768 px le
   2026-10-30) : trois colonnes de 17rem et leurs gouttières demandent environ
   57em de fenêtre ; en em, le seuil suit la taille de texte du navigateur. */
.r-etapes {
  grid-template-columns: 1fr;
}
@media (min-width: 58em) {
  .r-etapes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.r-tuiles {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.r-durees {
  flex-wrap: wrap;
}
.r-sombre__grille > *,
.r-etape {
  min-width: 0;
}
.r-sombre h2 {
  overflow-wrap: break-word;
  hyphens: auto;
}
.r-ligne {
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .r-sombre__grille {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Un mot plus long que sa ligne se coupe au lieu de sortir de l'écran : à
   320 px et 200 % de texte, « synchronisation » et le surtitre espacé
   « Confidentialité » dépassaient de 20 px (mesuré le 2026-10-30). Sans effet
   tant que le mot tient sur la ligne. */
main {
  overflow-wrap: break-word;
}
