/* Relais Asso — site vitrine */

:root {
  --ra-blue: #1b445e;
  --ra-blue-soft: rgba(27, 68, 94, 0.08);
  --ra-blue-muted: rgba(27, 68, 94, 0.62);
  --ra-yellow: #f7b229;
  --ra-yellow-soft: #fbf3df;
  --ra-teal: #5b9593;
  --ra-teal-soft: rgba(91, 149, 147, 0.16);
  --ra-bg: #faf8f5;
  --ra-surface: #ffffff;
  --ra-border: rgba(27, 68, 94, 0.1);
  --shadow-sm: 0 4px 20px rgba(27, 68, 94, 0.06);
  --shadow-md: 0 16px 48px rgba(27, 68, 94, 0.12);
  --shadow-lg: 0 28px 80px rgba(27, 68, 94, 0.16);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ra-blue);
  background: var(--ra-bg);
  -webkit-font-smoothing: antialiased;
}

.page-top {
  position: relative;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ra-teal);
}

.text-accent {
  color: var(--ra-yellow);
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ra-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.nav__brand img {
  border-radius: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
}

.nav__links a:not(.nav__cta):not(.nav__social-link):hover {
  color: var(--ra-teal);
}

.nav__social {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--ra-border);
}

.nav__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--ra-blue);
  background: var(--ra-blue-soft);
  transition: color 0.15s, background 0.15s, transform 0.15s;
}

.nav__social-link:hover {
  color: #fff;
  background: var(--ra-blue);
  transform: translateY(-1px);
}

.nav__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav__cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--ra-blue);
  color: #fff !important;
}

.nav__cta:hover {
  background: #163a50;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--ra-blue-soft);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ra-blue);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle[aria-expanded='true'] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ra-yellow);
  color: var(--ra-blue);
}

.btn--primary:hover {
  background: #e5a422;
}

.btn--outline {
  border-color: var(--ra-blue);
  color: var(--ra-blue);
  background: transparent;
}

.btn--outline:hover {
  background: var(--ra-blue-soft);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */

.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  background: var(--ra-bg);
}

.hero--fullscreen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1rem) 0 5rem;
}

.hero--fullscreen .container.hero__grid {
  flex: 1;
  align-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ra-blue-muted);
  transition: color 0.15s;
}

.hero__scroll:hover {
  color: var(--ra-teal);
}

.hero__scroll-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 1;
  }

  50% {
    transform: rotate(45deg) translateY(5px);
    opacity: 0.55;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__lead {
  max-width: 34rem;
  color: var(--ra-blue-muted);
  font-size: 1.08rem;
}

.hero__offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 26rem;
  margin-top: 1.5rem;
}

.hero-offer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--ra-border);
  background: var(--ra-surface);
}

.hero-offer--asso {
  border-color: rgba(247, 178, 41, 0.45);
  background: var(--ra-yellow-soft);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.hero-offer--asso:hover {
  border-color: var(--ra-yellow);
  transform: translateY(-1px);
}

.hero-offer__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ra-teal);
}

.hero-offer__value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ra-blue);
}

.hero-offer__value small {
  font-size: 0.62em;
  font-weight: 700;
  color: var(--ra-blue-muted);
}

.hero-offer__detail {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ra-blue-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 1.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ra-blue-muted);
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.badge-dot--blue {
  background: var(--ra-blue);
}

.badge-dot--yellow {
  background: var(--ra-yellow);
}

.badge-dot--teal {
  background: var(--ra-teal);
}

.hero__visual {
  position: relative;
  min-height: 520px;
}

.hero__phone {
  position: relative;
  z-index: 2;
  width: min(100%, 270px);
  margin-left: auto;
  margin-right: 2rem;
}

.hero__laptop {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: min(100%, 480px);
  z-index: 1;
  opacity: 0.96;
}

/* Sections */

.section {
  padding: 3rem 0;
  background: var(--ra-surface);
}

.section--alt,
.section--mobile {
  background: var(--ra-surface);
}

.section--white {
  background: var(--ra-surface);
}

.section--cream {
  background: var(--ra-bg);
}

.section--mobile.section--white {
  background: var(--ra-surface);
}

.section--alt.section--cream {
  background: var(--ra-bg);
}

/* Mobile app section */

.mobile-perks {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}

.mobile-perks--minimal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}

.mobile-perks--minimal .mobile-perk {
  text-align: center;
}

.mobile-perks--minimal .mobile-perk__title {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ra-blue);
  border-bottom: 3px solid var(--ra-yellow);
}

.mobile-perk__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ra-blue-muted);
}

.mobile-showcase {
  padding: 0;
}

.mobile-showcase__tabs {
  margin-bottom: 2rem;
}

.mobile-showcase__body {
  align-items: start;
}

.mobile-showcase__copy {
  min-height: 280px;
}

.mobile-showcase__copy .feature-panel p {
  color: var(--ra-blue-muted);
}

.mobile-showcase__device {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.device--iphone-lg {
  width: min(100%, 300px);
  margin-inline: auto;
}

.mobile-feature__tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ra-teal);
  background: var(--ra-teal-soft);
}

.mobile-showcase__copy h3 {
  margin-bottom: 0.65rem;
}

.section__head {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__head p:last-child {
  color: var(--ra-blue-muted);
  margin-bottom: 0;
}

/* Feature tabs */

.feature-tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--ra-border);
  border-radius: 999px;
  background: var(--ra-surface);
  color: var(--ra-blue);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.feature-tab:hover {
  border-color: var(--ra-teal);
}

.feature-tab.is-active {
  background: var(--ra-blue);
  border-color: var(--ra-blue);
  color: #fff;
}

.feature-tab__icon {
  font-size: 1rem;
  line-height: 1;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-showcase--reverse {
  direction: rtl;
}

.feature-showcase--reverse > * {
  direction: ltr;
}

.feature-showcase__copy {
  padding: 1rem 0;
}

.feature-panel p {
  color: var(--ra-blue-muted);
}

.check-list {
  margin-top: 1.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ra-yellow);
}

.feature-showcase__device {
  display: flex;
  justify-content: center;
}

.feature-showcase__device--wide .device--macbook {
  width: min(100%, 620px);
}

/* Device mockups */

.device--iphone {
  width: min(100%, 280px);
  flex-shrink: 0;
}

.device--iphone .device__frame {
  position: relative;
  width: 100%;
  padding: 10px;
  border-radius: 42px;
  background: #1a1a1a;
  box-shadow: var(--shadow-lg);
}

.device--iphone .device__island {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 88px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #0d0d0d;
}

.device--iphone .device__screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #000;
  aspect-ratio: 9 / 19.5;
}

.device--iphone .device__screen img,
.mobile-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: top center;
}

.mobile-shot,
.desktop-shot {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-shot.is-active,
.desktop-shot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.desktop-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: top center;
}

.device--macbook .device__lid {
  position: relative;
  padding: 14px 14px 10px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #3a3a3c 0%, #1d1d1f 100%);
  box-shadow: var(--shadow-lg);
}

.device--macbook .device__camera {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2a2a2c;
  box-shadow: inset 0 0 0 1px #444;
}

.device--macbook .device__screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 16 / 10;
}

.device--macbook .device__screen > img:not(.desktop-shot) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: top center;
}

.device--macbook .device__base {
  height: 14px;
  margin: 0 8%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #c8c8ca 0%, #a1a1a3 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.device--macbook .device__base::before {
  content: '';
  display: block;
  width: 18%;
  height: 4px;
  margin: 0 auto;
  border-radius: 0 0 6px 6px;
  background: #8e8e90;
  transform: translateY(-2px);
}

/* Info cards */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  box-shadow: var(--shadow-sm);
}

.info-card--surface {
  background: var(--ra-surface);
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card p {
  margin: 0;
  color: var(--ra-blue-muted);
  font-size: 0.96rem;
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  font-size: 1.35rem;
}

.info-card__icon--yellow {
  background: var(--ra-yellow-soft);
}

.info-card__icon--teal {
  background: var(--ra-teal-soft);
}

.info-card__icon--blue {
  background: var(--ra-blue-soft);
}

/* Cotisation */

.cotisation-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.cotisation-price {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--ra-yellow-soft);
  border: 1px solid rgba(247, 178, 41, 0.35);
}

.cotisation-price--split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.cotisation-price__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
}

.cotisation-price__divider {
  width: 1px;
  background: rgba(27, 68, 94, 0.12);
}

.cotisation-price__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ra-teal);
}

.cotisation-price__headline {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0;
  line-height: 1;
}

.cotisation-price__amount {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ra-blue);
}

.cotisation-price__unit {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ra-blue-muted);
}

.cotisation-price__yearly {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ra-blue-muted);
}

.cotisation-price__yearly strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ra-blue);
}

.cotisation-lead {
  color: var(--ra-blue-muted);
  margin-bottom: 1.25rem;
}

.cotisation-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cotisation-step;
}

.cotisation-steps li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1.1rem;
}

.cotisation-steps li::before {
  counter-increment: cotisation-step;
  content: counter(cotisation-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ra-blue);
  background: var(--ra-yellow);
}

.cotisation-steps strong {
  display: block;
  margin-bottom: 0.15rem;
}

.cotisation-steps span {
  display: block;
  font-size: 0.95rem;
  color: var(--ra-blue-muted);
}

.cotisation-screens {
  display: grid;
  gap: 1.5rem;
}

.cotisation-screen {
  margin: 0;
}

.cotisation-screen figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ra-blue-muted);
}

.device--macbook-sm {
  width: 100%;
}

.cards-grid--cotisation {
  margin-top: 3rem;
}

/* CTA */

.cta {
  padding-bottom: 3rem;
}

.cta__inner {
  max-width: 640px;
  margin-inline: auto;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  box-shadow: var(--shadow-sm);
}

.cta__eyebrow {
  margin-bottom: 0.5rem;
}

.cta__inner h2 {
  margin-bottom: 0.75rem;
}

.cta__inner p {
  color: var(--ra-blue-muted);
  margin-bottom: 0;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* Footer */

.site-footer {
  padding: 3rem 0 1.5rem;
  background: var(--ra-blue);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.site-footer__brand img {
  border-radius: 10px;
}

.site-footer__brand:hover {
  color: var(--ra-yellow);
}

.site-footer__tagline {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.site-footer__desc {
  margin: 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__social.nav__social {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  margin-top: 1.25rem;
}

.site-footer__social .nav__social-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-footer__social .nav__social-link:hover {
  color: var(--ra-blue);
  background: var(--ra-yellow);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-footer__nav-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__nav a {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__nav a:hover {
  color: var(--ra-yellow);
}

.site-footer__bottom {
  padding-top: 1.25rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--ra-blue);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ra-teal);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Responsive */

@media (max-width: 960px) {
  .container {
    width: 100%;
    max-width: var(--container);
    padding-inline: 1.5rem;
  }

  .hero__grid,
  .feature-showcase,
  .cards-grid,
  .cotisation-layout {
    grid-template-columns: 1fr;
  }

  .mobile-showcase__copy {
    min-height: 0;
  }

  .mobile-showcase__device {
    position: static;
    order: -1;
    margin-bottom: 1.25rem;
  }

  .mobile-showcase__body {
    display: flex;
    flex-direction: column;
  }

  .cotisation-screens {
    order: -1;
  }

  .cotisation-layout {
    gap: 2rem;
  }

  .hero--fullscreen {
    min-height: auto;
    padding: calc(var(--header-h) + 1rem) 0 4rem;
  }

  .hero--fullscreen .container.hero__grid {
    align-content: start;
    padding-top: 0;
  }

  .hero__grid {
    gap: 2.5rem;
  }

  .hero__visual {
    min-height: auto;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero__phone {
    width: min(100%, 240px);
    margin: 0 auto;
  }

  .hero__laptop {
    display: none;
  }

  .feature-showcase--reverse {
    direction: ltr;
  }

  .feature-showcase__device {
    order: -1;
    margin-bottom: 1.75rem;
  }

  .feature-showcase__device--wide .device--macbook {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .mobile-perks--minimal {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }

  .cards-grid {
    margin-top: 2.5rem;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 2rem;
  }

  body {
    overflow-x: hidden;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--ra-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    padding: 0.85rem 0.25rem;
  }

  .nav__social {
    justify-content: center;
    margin-left: 0;
    padding: 0.85rem 0 0.25rem;
    border-left: 0;
    border-top: 1px solid var(--ra-border);
  }

  /* Hero */
  .hero__content {
    text-align: center;
    padding-inline: 0.5rem;
  }

  .hero--fullscreen {
    padding: calc(var(--header-h) + 1rem) 0 3.5rem;
  }

  .hero__lead {
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero__offers {
    max-width: 22rem;
    margin-inline: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.75rem;
    gap: 1rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__badges {
    justify-content: center;
    gap: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .hero__phone {
    width: min(72vw, 220px);
  }

  .hero__scroll {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  .section__head {
    margin-bottom: 2.25rem;
    padding-inline: 0.5rem;
  }

  .section__head h2 {
    font-size: 1.65rem;
  }

  .mobile-perks--minimal {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
    padding-inline: 0.5rem;
    margin-bottom: 3rem;
  }

  .mobile-perks--minimal .mobile-perk__title {
    font-size: 0.95rem;
  }

  .device--iphone-lg {
    width: min(72vw, 260px);
  }

  .mobile-showcase__tabs {
    margin-bottom: 1.75rem;
    padding-inline: 0.25rem;
    text-align: center;
  }

  .mobile-showcase__copy {
    padding-inline: 0.5rem;
  }

  .mobile-showcase__device {
    margin-bottom: 1.75rem;
  }

  .feature-tabs__list {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    margin-bottom: 1.75rem;
    padding: 0.25rem 0.25rem 0.5rem;
  }

  .feature-tabs__list::-webkit-scrollbar {
    display: none;
  }

  .feature-tab {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  .feature-showcase {
    gap: 2rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
    padding-inline: 0.25rem;
  }

  .info-card {
    padding: 1.75rem 1.5rem;
  }

  /* Cotisation */
  .cotisation-intro {
    padding-inline: 0.5rem;
  }

  .cotisation-screens {
    gap: 1.5rem;
    padding-inline: 0.25rem;
  }

  .cotisation-screen figcaption {
    font-size: 0.85rem;
  }

  .cotisation-price--split {
    grid-template-columns: 1fr;
  }

  .cotisation-price__divider {
    width: auto;
    height: 1px;
  }

  .cotisation-price__side {
    padding: 1.1rem 1.25rem;
  }

  .cotisation-price__amount {
    font-size: 2.25rem;
  }

  .cotisation-price__yearly strong {
    font-size: 1.75rem;
  }

  /* Footer */
  .site-footer {
    padding: 3.25rem 0 1.75rem;
  }

  .site-footer__brand-block,
  .site-footer__nav {
    padding-inline: 0.5rem;
  }

  .site-footer__bottom {
    padding-inline: 0.5rem;
  }

  .site-footer__tagline {
    font-size: 1.1rem;
  }

  .site-footer__nav {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 380px) {
  .hero__badges {
    flex-direction: column;
    align-items: center;
  }

  .feature-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}
