/* ==========================================================================
   RIFF — Landing adhésion 2027
   Maquette Figma : 1440px (node 6:1154). Valeurs desktop = valeurs Figma.
   ========================================================================== */

:root {
  /* Couleurs */
  --navy: #052940;
  --yellow: #dad01a;
  --yellow-hover: #c7bd0f;
  --grey: #f3f4f6;
  --white: #fff;
  --text-80: rgba(5, 41, 64, 0.8);
  --text-50: rgba(5, 41, 64, 0.5);
  --text-20: rgba(5, 41, 64, 0.2);
  --line: rgba(5, 41, 64, 0.1);

  /* Traits "inside" Figma : n'affectent pas la mise en page */
  --stroke: inset 0 0 0 1px var(--line);

  /* Typo */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(34px, calc(28.96px + 1.878vw), 56px);
  --fs-h2: clamp(28px, calc(23.77px + 1.127vw), 40px);
  --fs-h3: clamp(24px, calc(22.59px + 0.3756vw), 28px);
  --fs-price: clamp(40px, calc(37.18px + 0.751vw), 48px);

  /* Layout */
  --nav-h: 72px;
  --container: 1200px;
  --container-wide: 1312px;
  --gutter-min: clamp(16px, 4.444vw, 64px);
  --gutter: max(var(--gutter-min), calc((100% - var(--container)) / 2));
  --gutter-wide: max(var(--gutter-min), calc((100% - var(--container-wide)) / 2));
  --radius: 24px;
  --pill: 9999px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* Typographie ------------------------------------------------------------ */
.h1 {
  font-size: var(--fs-h1);
  line-height: 1.142857; /* 64 / 56 */
  letter-spacing: -1px;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.2; /* 48 / 40 */
  letter-spacing: -0.5px;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.285714; /* 36 / 28 */
}

.lead {
  font-size: 18px;
  line-height: 28px;
}
.lead--light { color: var(--grey); opacity: 0.9; }
.lead--body { color: var(--text-80); }
.lead--muted { color: var(--text-80); opacity: 0.72; }
.lead--strong { font-weight: 700; color: var(--navy); }

.price {
  font-size: var(--fs-price);
  font-weight: 700;
  line-height: 1.083333; /* 52 / 48 */
  letter-spacing: -0.5px;
}

s {
  text-decoration: line-through;
  text-decoration-skip-ink: none;
}

/* Eyebrows / pills ------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--yellow);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}
.eyebrow--outline {
  background: var(--navy);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}
.eyebrow--sm { padding: 4px 10px; }

.code-pill {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
}

/* Boutons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: var(--pill);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--bold { font-weight: 700; }
.btn--sm { font-size: 14px; line-height: 20px; }
.btn--card { padding: 12px 20px; }
.btn--block { display: flex; width: 100%; }

.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: var(--yellow-hover); }

.btn--ghost-light {
  background: var(--navy);
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--white);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #0a3a58; }

.btn--outline-navy {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.btn--outline-navy:hover { background: var(--grey); }

.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--grey); }

.btn--disabled {
  background: var(--grey);
  color: var(--text-50);
  box-shadow: var(--stroke);
  cursor: not-allowed;
  user-select: none;
}
.btn--disabled:hover { transform: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.actions--center { justify-content: center; }

/* Navigation ------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 16px 24px;
  background: var(--white);
  box-shadow: inset 0 -1px 0 var(--line);
}

.nav__col {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  min-width: 0;
}
.nav__col--actions { justify-content: flex-end; gap: 12px; }

.logo { display: inline-flex; height: 36px; }
.logo__mark {
  position: relative;
  display: block;
  height: 100%;
  aspect-ratio: 1472.58 / 322.79;
  overflow: hidden;
}
/* chaque vecteur remplit la zone définie par son inset Figma */
.logo__mark > span { position: absolute; }
.logo__mark img {
  width: 100%;
  height: 100%;
  max-width: none;
}

.nav__links {
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}
.nav__links a { transition: opacity 0.2s ease; }
.nav__links a:hover { opacity: 0.65; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 12px;
}
.nav__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav[data-open] .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav[data-open] .nav__burger span:nth-child(2) { opacity: 0; }
.nav[data-open] .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: calc(var(--nav-h) + 78px) var(--gutter) 72px;
  background: var(--navy);
  color: var(--white);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 560px);
  justify-content: start;
  align-items: center;
  gap: 48px;
  max-width: var(--container);
  margin-inline: auto;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__image {
  position: relative;
  aspect-ratio: 560 / 420;
  border-radius: var(--radius);
}
.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.hero__note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 700;
}
.hero__note-label {
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}
.hero__note-text {
  font-size: 16px;
  line-height: 24px;
}

/* Contenu ---------------------------------------------------------------- */
.content {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, calc(51.32px + 3.38vw), 100px);
  padding-top: 72px;
  background: var(--white);
}

.wrap { padding-inline: var(--gutter); }
.wrap > * { max-width: var(--container); margin-inline: auto; }

.panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--stroke);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cartes "Important" */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 346px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--stroke);
}

.info-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-80);
}
.info-card__body .is-strong { font-weight: 700; color: var(--navy); }

/* Offres ----------------------------------------------------------------- */
.offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 50px var(--gutter-wide);
  background: var(--navy);
  color: var(--white);
}
.offers > * { width: 100%; max-width: var(--container-wide); margin-inline: auto; }

.offers__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offers__cards {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 16px;
}

.offer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--navy);
}

.offer--promo {
  min-height: 720px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--navy), 0 16px 20px rgba(17, 24, 39, 0.12);
}

.offer--standard {
  background: var(--grey);
  box-shadow: var(--stroke), 0 12px 16px rgba(17, 24, 39, 0.05);
  color: var(--text-50);
}

.offer__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.offer__content .eyebrow { color: var(--navy); }

.offer__title,
.offer__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer__subtitle {
  font-size: 14px;
  line-height: 20px;
}
.offer--promo .offer__subtitle { color: var(--text-80); }

.offer__old-price {
  font-size: 24px;
  line-height: 32px;
  color: var(--text-50);
}

.offer__monthly {
  font-style: italic;
  font-size: 16px;
  line-height: 24px;
}
.offer--promo .offer__monthly { color: var(--text-80); }

.features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.features__list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
}
.offer--promo .features__list li { color: var(--text-80); }

.features__list li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: var(--pill);
  background: url("../img/check.png") center / 100% 100% no-repeat;
}
.offer--standard .features__list li::before { background-image: url("../img/check-muted.png"); }

.offer__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer__note {
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--text-80);
}

/* Vous accompagner ------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 442px);
  align-items: center;
  gap: 100px;
}

.about__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.about__portrait {
  position: relative;
  aspect-ratio: 442 / 560;
  border-radius: var(--radius);
  overflow: hidden;
}
.about__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ambassadeurs ----------------------------------------------------------- */
.ambassadors {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 50px var(--gutter);
  border-radius: var(--radius);
  background: var(--grey);
  box-shadow: var(--stroke);
}
.ambassadors > * { width: 100%; max-width: var(--container); margin-inline: auto; }

.ambassadors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.ambassador {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 260px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--stroke);
}

.ambassador__photo {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
}

.ambassador__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ambassador__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.ambassador__role {
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-80);
}
.ambassador__role--upright { font-style: normal; }

/* Footer CTA ------------------------------------------------------------- */
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 72px var(--gutter);
  background: var(--navy);
  color: var(--white);
}

.footer-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
}

/* Footer légal ----------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px var(--gutter);
  background: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: rgba(243, 244, 246, 0.7);
  font-size: 14px;
  line-height: 20px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__links a { transition: color 0.2s ease; }
.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] { color: var(--white); }

/* Pages légales ---------------------------------------------------------- */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding-inline: 24px;
  background: var(--white);
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.legal-nav a:hover { opacity: 0.65; }

.legal {
  max-width: calc(760px + 2 * var(--gutter-min));
  margin-inline: auto;
  padding: 56px var(--gutter-min) 80px;
}
.legal > * + * { margin-top: 16px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 {
  margin-top: 40px;
  font-size: 20px;
  line-height: 28px;
}
.legal p,
.legal li { color: var(--text-80); }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .legal__updated { font-size: 14px; color: var(--text-50); }
.legal mark {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(218, 208, 26, 0.35);
  color: var(--navy);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Desktop 1400+ : la carte "Accès réseau" est figée à 394px dans Figma,
   le texte déborde sur le padding bas (18px effectifs). */
@media (min-width: 1400px) {
  .info-card { padding-bottom: 18px; }
}

@media (max-width: 1200px) {
  .about { gap: 48px; }
  .info-card { padding: 32px; }
}

@media (max-width: 1024px) {
  .ambassadors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ambassador { min-height: 0; }
}

@media (max-width: 900px) {
  /* Nav mobile */
  .nav__col--logo { flex: 1 1 auto; }
  .nav__col--actions { flex: 0 0 auto; }
  .nav__burger { display: flex; }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--white);
    box-shadow: inset 0 -1px 0 var(--line), 0 16px 20px rgba(17, 24, 39, 0.08);
    font-size: 16px;
    line-height: 24px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav[data-open] .nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 56px; }
  .hero__content { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__image { max-height: 420px; }

  /* Cartes */
  .info-cards,
  .offers__cards { grid-template-columns: minmax(0, 1fr); }
  .info-cards { gap: 20px; }
  .offer--promo { min-height: 0; }

  /* Vous accompagner */
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about__portrait {
    order: -1;
    width: 100%;
    max-width: 442px;
    aspect-ratio: 1;
  }

  .offers { padding-block: 48px; }
  .ambassadors { padding-block: 48px; }
  .footer-cta { padding-block: 56px; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }

  .nav { padding: 12px 16px; }
  .nav__links { padding-inline: 16px; }
  .logo { height: 30px; }
  .btn--sm { padding: 10px 18px; }

  .lead { font-size: 16px; line-height: 26px; }

  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 48px; }
  .hero__copy { gap: 20px; }

  .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .actions .btn { white-space: normal; }

  .content { padding-top: 48px; }
  .panel { padding: 20px; gap: 24px; }
  .info-card { padding: 24px; gap: 16px; min-height: 0; }

  .offers { padding-block: 40px; }
  .offer { padding: 16px; }

  .about { padding: 20px; }

  .ambassadors { padding-block: 40px; gap: 24px; }
  .ambassadors__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ambassador {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }
  .ambassador__photo { width: 88px; height: 88px; }
  .ambassador__name { font-size: 18px; line-height: 26px; }

  .footer-cta { padding-block: 48px; gap: 28px; }

  .site-footer { flex-direction: column; align-items: flex-start; }
  .legal-nav { padding-inline: 16px; }
  .legal { padding-block: 40px 56px; }
}
