/* ==========================================================================
   Layout : en-tête, hero, sections de contenu, pied de page
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: var(--z-header);
  display: flex;
  justify-content: center;
  min-height: 54px;
  background: var(--bg-black);
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 0 16px;
}
@media (min-width: 992px) {
  .site-header__container {
    width: var(--container-md);
    height: 64px;
    padding: 0 32px;
  }
}
@media (min-width: 1200px) {
  .site-header__container {
    width: var(--container-lg);
    min-width: var(--container-lg);
    height: 72px;
  }
}

.site-header__brand {
  display: flex;
  align-items: center;
  height: 100%;
}
.brand-logo {
  display: block;
  width: 88px;
  height: 24px;
  color: var(--text-base);
}
.brand-logo svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
@media (min-width: 1200px) {
  .brand-logo {
    width: 118px;
    height: 32px;
  }
}

/* --- Navigation desktop --------------------------------------------------- */
.nav-desktop {
  display: none;
  height: 52px;
}
@media (min-width: 992px) {
  .nav-desktop {
    display: flex;
    height: 64px;
  }
}
@media (min-width: 1200px) {
  .nav-desktop {
    height: 72px;
  }
  .nav-desktop a,
  .nav-desktop button {
    padding: 20px;
  }
}

/* Entrées secondaires : accessibles via le méga-menu et le pied de page sous
   1200 px, affichées dans la barre au-delà. */
.nav-desktop li.nav-optional {
  display: none;
}
@media (min-width: 1200px) {
  .nav-desktop li.nav-optional {
    display: flex;
  }
}

.nav-desktop > ul {
  display: flex;
  align-items: center;
}
.nav-desktop li {
  display: flex;
  font-size: var(--fs-body);
}
.nav-desktop a,
.nav-desktop button {
  display: flex;
  align-items: center;
  /* Entre 992 et 1199 px la barre est juste : on resserre l'espacement et on
     réserve le padding complet aux grands écrans. */
  padding: 20px 12px;
  white-space: nowrap;
  background: none;
  border: 0;
  color: var(--text-base);
  font-weight: 700;
  cursor: pointer;
}
.nav-desktop a:hover,
.nav-desktop button:hover {
  color: var(--text-bright-accent);
}

/* Séparateur vertical entre les liens de service et les liens de compte. */
.nav-divider {
  width: 1px;
  height: 26px;
  margin: 0 8px;
  background: var(--text-header-secondary);
}

.nav-desktop .nav-tier-2 {
  color: var(--text-header-secondary);
  font-weight: 700;
}

/* --- Méga-menu "Abonnements Premium" -------------------------------------- */
.nav-premium {
  position: relative;
}
.nav-premium__toggle svg {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  fill: currentColor;
  transition: transform var(--duration-base) var(--ease-productive);
}
.nav-premium[data-open="true"] .nav-premium__toggle svg {
  transform: rotate(180deg);
}

.nav-premium__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-overlay);
  display: none;
  width: 320px;
  padding: 8px;
  border-radius: 4px;
  background: var(--bg-elevated-base);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
}
.nav-premium[data-open="true"] .nav-premium__menu {
  display: block;
}
.nav-premium__menu a {
  display: block;
  padding: 12px;
  border-radius: 4px;
  font-weight: 400;
}
.nav-premium__menu a:hover {
  background: var(--bg-elevated-highlight);
  color: var(--text-base);
}
.nav-premium__menu .plan-title {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-base);
}
.nav-premium__menu .plan-desc {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-subdued);
}

/* --- Menu mobile ---------------------------------------------------------- */
.nav-mobile {
  position: relative;
  display: flex;
}
@media (min-width: 992px) {
  .nav-mobile {
    display: none;
  }
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--text-base);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 1px;
  background-color: currentColor;
  transform-origin: 21px;
  transition: transform var(--duration-base), opacity var(--duration-base);
}
.nav-mobile[data-open="true"] .burger span:nth-child(1) {
  transform: rotate(-45deg);
}
.nav-mobile[data-open="true"] .burger span:nth-child(2) {
  opacity: 0;
}
.nav-mobile[data-open="true"] .burger span:nth-child(3) {
  transform: rotate(45deg);
}

.nav-mobile__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-header);
  display: none;
  background: rgba(0, 0, 0, 0.75);
}
.nav-mobile__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-overlay);
  display: none;
  flex-direction: column;
  width: 447px;
  max-width: 100vw;
  height: 100vh;
  padding: 32px;
  overflow-y: auto;
  background-color: var(--bg-black);
}
.nav-mobile[data-open="true"] .nav-mobile__overlay,
.nav-mobile[data-open="true"] .nav-mobile__panel {
  display: flex;
}

.nav-mobile__panel a {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  padding: 0 0 16px;
}
.nav-mobile__panel .nav-tier-2 {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-header-secondary);
}
.nav-mobile__group-title {
  padding: 24px 0 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.nav-mobile__sublist a {
  font-size: 20px;
  font-weight: 400;
  padding-bottom: 12px;
}
.nav-mobile__close {
  align-self: flex-end;
  margin-bottom: 16px;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--text-base);
  cursor: pointer;
}
.nav-mobile__close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
@media (min-width: 480px) {
  .nav-mobile__panel a {
    font-size: 36px;
  }
  .nav-mobile__panel .nav-tier-2 {
    font-size: 28px;
  }
}

/* --------------------------------------------------------------------------
   2. Hero
   Dégradé rose en haut + visuel mosaïque calé en haut à droite.
   -------------------------------------------------------------------------- */
.hero {
  --gradient-color: var(--plan-personal);
  overflow: auto;
  background-color: var(--bg-base);
}

.hero__content {
  padding: 60% 0 0; /* réserve la place du visuel en mobile */
  background-image: image-set(
        url("../assets/img/mobile-hero-ltr.webp") type("image/webp"),
        url("../assets/img/mobile-hero-ltr.png") type("image/png")
      ),
    linear-gradient(0deg, rgba(255, 210, 215, 0) 45%, var(--gradient-color) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right top, center -25%;
  background-size: contain, 100% 40%;
}

@media (min-width: 768px) {
  .hero__content {
    padding-top: 0;
    background-image: image-set(
        url("../assets/img/tablet-hero-ltr.webp") type("image/webp"),
        url("../assets/img/tablet-hero-ltr.png") type("image/png")
      ),
      linear-gradient(0deg, rgba(255, 210, 215, 0) 0%, var(--gradient-color) 100%);
    background-size: min(60%, 800px), 100% 40%;
    background-position: right top, center -25%;
  }
}
@media (min-width: 1200px) {
  .hero__content {
    background-image: image-set(
        url("../assets/img/desktop-hero-ltr.webp") type("image/webp"),
        url("../assets/img/desktop-hero-ltr.png") type("image/png")
      ),
      linear-gradient(0deg, rgba(255, 210, 215, 0) 0%, var(--gradient-color) 100%);
  }
}

.hero__inner {
  z-index: 1;
  width: 100%;
  max-width: var(--container-lg);
  margin: auto;
}
@media (min-width: 768px) {
  .hero__inner {
    display: flex;
    align-items: center;
  }
}
@media (min-width: 1200px) {
  .hero__inner {
    min-height: 480px;
  }
}

.hero__body {
  position: relative;
  padding: 0 16px 32px;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .hero__body {
    padding: 110px 20px 20px;
    margin-right: auto;
  }
}
@media (min-width: 1200px) {
  .hero__body {
    padding: 56px 32px;
  }
}

.hero__header {
  margin-bottom: 16px;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .hero__header {
    max-width: 400px;
  }
}
@media (min-width: 1200px) {
  /* 540px : largeur qui reproduit exactement les césures du titre source. */
  .hero__header {
    max-width: 540px;
  }
}

.hero__title {
  margin: 0;
  font-family: var(--font-title-variable);
  font-size: clamp(32px, calc(32px + 16 * ((100vw - 320px) / 1120)), 48px);
  line-height: clamp(32px, calc(32px + 16 * ((100vw - 320px) / 1120)), 48px);
  letter-spacing: -0.015em;
  font-weight: 900;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.hero__subtitle {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 22px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}
@media (min-width: 768px) {
  .hero__subtitle {
    margin-top: 15px;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin: 35px 0 28px;
}
.hero__actions .sp-btn {
  width: 100%;
}
@media (min-width: 535px) {
  .hero__actions {
    flex-direction: row;
    justify-content: flex-start;
  }
  .hero__actions .sp-btn {
    width: auto;
  }
}

/* Le CTA principal du hero reprend le rose de la promo Premium Personnel. */
.hero__actions .sp-btn--accent {
  --plan-accent: var(--plan-personal);
}

.hero__legal {
  max-width: 420px;
  color: var(--text-marginal);
  font-size: var(--fs-marginal);
  line-height: 16px;
}
.hero__legal a {
  color: inherit;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   3. Section "Vivez la différence"
   -------------------------------------------------------------------------- */
.compare__header {
  max-width: 686px;
  margin: 0 auto 24px;
  text-align: center;
}
.section-title {
  margin: 0;
  font-family: var(--font-title-variable);
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.015em;
  font-weight: 700;
}
@media (min-width: 768px) {
  .section-title {
    font-size: var(--fs-title-l);
    line-height: 46px;
  }
}
.section-subtitle {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 24px;
}
@media (min-width: 768px) {
  .section-subtitle {
    font-size: var(--fs-title-s);
    line-height: 30px;
  }
}

/* --------------------------------------------------------------------------
   4. Section abonnements
   -------------------------------------------------------------------------- */
.plans__title {
  margin: 0;
  font-family: var(--font-title-variable);
  color: var(--text-base);
  font-size: var(--fs-title-m);
  font-weight: 700;
  letter-spacing: -1.28px;
  line-height: 1;
  text-align: center;
}
@media (min-width: 1200px) {
  .plans__title {
    font-size: var(--fs-title-l);
    letter-spacing: -1.6px;
  }
}

.plans__subtitle {
  max-width: 671px;
  margin: 16px auto 32px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  text-align: center;
}

/* Bandeau "Avantages inclus dans tous les abonnements Premium". */
.plans__benefits {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
  margin: 48px auto;
  padding: 0 32px;
}
@media (min-width: 431px) {
  .plans__benefits {
    flex-direction: row;
  }
}
.plans__benefits h3 {
  max-width: 480px;
  font-size: var(--fs-title-s);
  font-weight: 700;
  text-align: center;
}
@media (min-width: 1200px) {
  .plans__benefits h3 {
    font-size: var(--fs-title-m);
  }
}
.plans__benefits ul {
  font-size: var(--fs-body);
}
.plans__benefits li {
  position: relative;
  margin-left: 20px;
}
.plans__benefits li::before {
  content: "✓";
  position: absolute;
  left: -24px;
}

/* Grille des cartes : 3 colonnes puis la carte Famille centrée en dessous. */
.plans__grid {
  display: block;
  max-width: 450px;
  margin: 0 auto;
}
.plans__grid > * + * {
  margin-top: 32px;
}

@media (min-width: 1200px) {
  .plans__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
    max-width: 1430px;
    margin: 0 auto;
  }
  .plans__grid > * + * {
    margin-top: 0;
  }
  .plans__grid > *:nth-child(1) {
    grid-area: 1 / 1 / 2 / 3;
  }
  .plans__grid > *:nth-child(2) {
    grid-area: 1 / 3 / 2 / 5;
  }
  .plans__grid > *:nth-child(3) {
    grid-area: 1 / 5 / 2 / 7;
  }
  .plans__grid > *:nth-child(4) {
    grid-area: 2 / 3 / 3 / 5;
  }
}

/* --------------------------------------------------------------------------
   5. Section FAQ
   -------------------------------------------------------------------------- */
.faq__header {
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .faq__header {
    margin-bottom: 72px;
  }
}
.faq__header h2 {
  margin: 0;
  font-family: var(--font-title-variable);
  font-size: var(--fs-title-m);
  font-weight: 700;
}
.faq__header p {
  font-size: var(--fs-body);
}
.faq__header a {
  text-decoration: underline;
}
.faq__header a:hover {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   6. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: center;
  padding: 32px 0 20px;
  background: var(--bg-black);
  font-size: var(--fs-body);
}
@media (min-width: 992px) {
  .site-footer {
    padding: 80px 0 50px;
  }
}

.site-footer__nav {
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 12px;
  }
}
@media (min-width: 1200px) {
  .site-footer__nav {
    width: var(--container-lg);
  }
}

.site-footer__top {
  display: block;
}
@media (min-width: 769px) {
  .site-footer__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 95%;
  }
}
@media (min-width: 1200px) {
  .site-footer__top {
    width: 75%;
  }
}

.site-footer__brand {
  display: block;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .site-footer__brand {
    width: 16.6667%;
  }
}
@media (min-width: 1200px) {
  .site-footer__brand {
    padding: 0 15px 0 32px;
  }
}

.site-footer__links {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .site-footer__links {
    flex-direction: row;
    width: 100%;
  }
}
.site-footer__links > ul {
  padding: 0 20px;
}
@media (min-width: 768px) {
  .site-footer__links > ul {
    flex: 1 0;
  }
}
.site-footer__links h2 {
  margin: 40px 0 16px;
  color: var(--text-footer-heading);
  font-size: var(--fs-marginal);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .site-footer__links h2 {
    margin: 0 0 20px;
  }
}
.site-footer__links a {
  display: inline-block;
  padding-bottom: 16px;
  font-size: var(--fs-body);
  line-height: 1.5;
}
.site-footer__links a:hover {
  color: var(--text-bright-accent);
}

.site-footer__social {
  margin: 32px 20px 15px;
}
@media (min-width: 992px) {
  .site-footer__social {
    margin: 0;
    padding: 0 15px 0 20px;
  }
}
@media (min-width: 1200px) {
  .site-footer__social {
    padding: 0 15px 0 32px;
  }
}

.site-footer__country {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 15px;
}
.site-footer__country a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-footer-secondary);
  font-size: var(--fs-marginal);
}
.site-footer__country svg {
  width: 12px;
  height: 13px;
  fill: currentColor;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 100%;
  margin-top: 16px;
  padding: 0 15px;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer__legal a {
  color: var(--text-footer-secondary);
  font-size: var(--fs-marginal);
}
.site-footer__legal a:hover {
  color: var(--text-base);
}
.site-footer__copyright {
  color: var(--text-footer-secondary);
  font-size: var(--fs-marginal);
}
