:root {
  --green-900: #0b2616; /* fond sombre principal */
  --green-800: #123d24; /* cartes, titres verts */
  --green-700: #164529; /* bordure header */
  --green-band: #3e5547; /* bandeau + texte secondaire */
  --green-step3: #627739; /* étape 3 */
  --lime: #eefe01; /* accent / CTA */
  --cream: #f4f1e8; /* fond "Le lot" */
  --muted: #819c81;
  --hl-bg: #dfe5df;
  --hl-text: #2a502b;
  --alert-bg: #ffe5e6;
  --alert-border: #ff8c8e;
  --timer-border: #2f5b40;
  --timer-label: #b2b2b2;
  --grey-light: #c7c7c7;
  --footer-grey: #878787;

  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1320px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--green-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 60px;
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s ease,
    filter 0.2s ease;
}
.btn--lime {
  background: var(--lime);
  color: var(--green-900);
  padding: 11px 35px;
  border-radius: 7px;
  font-size: 14px;
}
.btn--lime:hover {
  filter: brightness(1.05);
}
.btn--lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ===== Header ===== */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-900);
  border-bottom: 1px solid var(--green-700);
}
.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.lp-header__logo {
  width: 119px;
  height: auto;
}
.lp-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lp-header__link {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}
.lp-header__link:hover {
  color: var(--lime);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--green-900);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    'intro visual'
    'offers visual';
  column-gap: 20px;
  row-gap: 40px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 40px;
}
.hero__intro {
  grid-area: intro;
}
.hero__offers {
  grid-area: offers;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hero__visual {
  grid-area: visual;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 41px;
  line-height: 1.1;
  color: var(--lime);
}
.hero__title-big {
  font-size: 60px;
}
.hero__pills {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(238, 254, 1, 0.2);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 16px 6px 6px;
  border-radius: 80px;
}
.pill__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
}
.pill__arrow {
  width: 20px;
  height: 20px;
  color: var(--lime);
  flex-shrink: 0;
}

/* Visuel billet + countdown */
.hero__ticket {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}
/* Billet : version "deux tickets" en desktop, ticket horizontal unique en mobile */
.hero__ticket--mobile {
  display: none;
}
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.countdown__label {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}
.countdown__box {
  display: flex;
  gap: 12px;
  background: var(--green-900);
  border: 1.3px solid var(--timer-border);
  border-radius: 15px;
  padding: 12px;
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  line-height: 1.1;
}
.countdown__unit {
  font-size: 18px;
  color: var(--timer-label);
}
.countdown__partner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--grey-light);
  font-size: 12px;
}
.countdown__partner img {
  height: 19px;
  width: auto;
}

/* Cartes offres */
.offer {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
}
.offer--num {
  display: block;
  transition: box-shadow 0.2s ease;
}
.offer--num:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.offer__head {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.offer__head .offer__name {
  grid-column: 1;
  grid-row: 1;
}
.offer__head .offer__sub {
  grid-column: 1;
  grid-row: 2;
}
.offer__head .offer__price-wrap {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.offer__head::-webkit-details-marker {
  display: none;
}
.offer__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--green-800);
  line-height: 1.1;
}
.offer__sub {
  font-size: 16px;
  color: var(--green-800);
  margin-top: 8px;
}
.offer__price {
  text-align: right;
  flex-shrink: 0;
}
.offer__amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--green-800);
  white-space: nowrap;
}
.offer__old {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}
.offer__period {
  font-size: 14px;
  color: var(--green-band);
  margin-top: 5px;
}
.offer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.offer__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--green-900);
  line-height: 20px;
}
.ck {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-step3);
}
.offer__highlight {
  background: var(--hl-bg);
  color: var(--hl-text);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 20px;
}
.offer__highlight strong {
  font-weight: 700;
}
.offer__cta {
  width: 100%;
}

.offer--int {
  display: block;
  transition: box-shadow 0.2s ease;
}
.offer--int:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.offer__int-head {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.offer__int-head .offer__name {
  grid-column: 1;
  grid-row: 1;
}
.offer__int-head .offer__sub {
  grid-column: 1;
  grid-row: 2;
}
.offer__int-head .offer__price--row {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.offer__int-head::-webkit-details-marker {
  display: none;
}
.offer__price--row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.offer__chevron {
  width: 16px;
  height: 16px;
  color: var(--green-800);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.offer.is-open .offer__chevron {
  transform: rotate(180deg);
}
.offer__price-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.offer__head,
.offer__int-head {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.offer__head:focus-visible,
.offer__int-head:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  border-radius: 6px;
}
.offer__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: height 0.3s ease;
}
/* espace entre l'en-tête et le corps : porté par le 1er enfant pour que le
   repli descende bien jusqu'à 0 (pas de padding résiduel) */
.offer__body > :first-child {
  margin-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .offer__body {
    transition: none;
  }
}

.hero__note {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.hero__note strong {
  font-weight: 600;
}
.hero__note a {
  font-weight: 600;
  text-decoration: underline;
}

/* ===== Bandeau ===== */
.strip {
  background: var(--green-band);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  padding: 18px 20px;
}

/* ===== Comment ça marche ===== */
.steps {
  background: var(--green-900);
  padding: 48px 0 100px;
}
.steps__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 41px;
  color: #fff;
  margin-bottom: 48px;
}
.steps__row {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.step {
  flex: 1;
  background: var(--green-800);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step--hl {
  background: var(--green-step3);
  border: 2px solid var(--lime);
}
.step__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
}
.step__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0;
}
.step__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-light);
}

.step__desc a {
  text-decoration: underline;
  transition: .3s;
}

.step__desc a:hover {
  color: #FFF;
}

.step--hl .step__desc {
  color: #dedede;
}
.step__arrow {
  width: 24px;
  height: 24px;
  color: var(--lime);
  align-self: center;
  flex-shrink: 0;
}
.alert {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 48px;
}
.alert__icon {
  width: 24px;
  height: 24px;
  color: #d4383b;
  flex-shrink: 0;
}
.alert p {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
.alert strong {
  font-weight: 700;
}

/* ===== Le lot ===== */
.lot {
  background: var(--cream);
  padding: 100px 0;
}
.lot__head {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 70px;
}
.lot__eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 10px;
}
.lot__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 41px;
  line-height: 1.2;
  color: var(--green-900);
  flex: 1;
}
.lot__head > div {
  flex: 1;
}
.lot__intro {
  flex: 1;
  max-width: 400px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--green-band);
}
.lot__grid {
  display: flex;
  align-items: stretch;
  gap: 30px;
}
.adv {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}
.adv__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: var(--green-900);
  color: var(--lime);
}
.adv__ic svg {
  width: 24px;
  height: 24px;
}
.adv__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--green-900);
  line-height: 1.35;
  margin-bottom: 4px;
  white-space: nowrap;
}
.adv__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--green-band);
  white-space: nowrap;
}
.adv__sep {
  width: 0;
  align-self: stretch;
  border-left: 2px dotted rgba(11, 38, 22, 0.28);
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq {
  background: #fff;
  padding: 100px 0;
}
.faq__grid {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.faq__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 41px;
  line-height: 1.2;
  color: var(--green-900);
  max-width: 320px;
  flex-shrink: 0;
}
.faq__list {
  flex: 1;
}
.faq__item {
  border-bottom: 1px solid rgba(11, 38, 22, 0.15);
  padding: 24px 0;
}
.faq__item:first-child {
  padding-top: 0;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--green-900);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__icon {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(11, 38, 22, 0.2);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--green-900);
  transition: transform 0.25s ease;
}
.faq__icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}
.faq__answer {
  padding: 12px 64px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--green-band);
}

.faq__answer a {
  text-decoration: underline;
}

/* ===== CTA final ===== */
.final {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
}
.final__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
}
.final__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 38, 22, 0.55);
}
.final__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.final__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
  color: #fff;
}
.final__title span {
  color: var(--lime);
}
.final__sub {
  color: var(--grey-light);
  font-size: 14px;
}
.final .btn {
  margin-top: 21px;
}

/* ===== Footer ===== */
.lp-footer {
  background: #fff;
  border-top: 1px solid rgba(11, 38, 22, 0.1);
  padding: 28px 0;
}
.lp-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lp-footer__left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lp-footer__logo {
  width: 119px;
  height: auto;
}
.lp-footer__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #191919;
}
.lp-footer__secure svg {
  width: 19px;
  height: 25px;
  color: var(--green-800);
}
.lp-footer__links {
  display: flex;
  gap: 28px;
}
.lp-footer__links a {
  color: var(--footer-grey);
  font-weight: 500;
  font-size: 16px;
}
.lp-footer__links a:hover {
  color: var(--green-900);
}

/* ===== Sticky mobile ===== */
.sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--green-900);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}
.sticky-bar .btn {
  width: 100%;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .wrap {
    padding: 20px 32px;
  }
  .hero__grid {
    column-gap: 48px;
  }
  .final__inner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 999px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      'intro'
      'visual'
      'offers';
    row-gap: 36px;
  }
  .hero__visual {
    align-self: stretch;
  }
  .faq__grid {
    flex-direction: column;
    gap: 32px;
  }
  .faq__title {
    max-width: none;
  }
  .lot__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .lot__intro {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .steps__row {
    flex-direction: column;
  }
  .step__arrow {
    transform: rotate(90deg);
  }
  /* Le lot : une colonne, séparateurs pointillés horizontaux (comme sur Figma) */
  .lot__grid {
    flex-direction: column;
    gap: 0;
  }
  .adv {
    flex: auto;
  }
  .adv__sep {
    width: 100%;
    height: 0;
    align-self: stretch;
    border-left: none;
    border-top: 2px dotted rgba(11, 38, 22, 0.28);
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 10px 20px;
  }
  .lp-header__link {
    display: none;
  }
  .hero__ticket--desktop {
    display: none;
  }
  .hero__ticket--mobile {
    display: block;
    max-width: 420px;
  }
  .hero__grid {
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .hero__title {
    font-size: 32px;
  }
  /* Partenaire myCOMM déplacé sous le titre (JS) en mobile */
  .hero__intro .countdown__partner {
    margin-top: 14px;
    justify-content: flex-start;
  }
  .hero__title-big {
    font-size: 46px;
  }
  /* Fil d'Ariane (étapes) sur une seule ligne */
  .hero__pills {
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 20px;
  }
  .pill {
    font-size: 12px;
    padding: 4px 10px 4px 4px;
    gap: 6px;
    white-space: nowrap;
  }
  .pill__num {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  .pill__arrow {
    width: 16px;
    flex-shrink: 0;
  }
  /* Compte à rebours (4 cellules + secondes) adapté au mobile */
  .countdown {
    width: 100%;
  }
  .countdown__box {
    gap: 6px;
    padding: 12px 10px;
    width: 100%;
    justify-content: center;
  }
  .countdown__cell {
    min-width: 0;
    flex: 1;
  }
  .countdown__num {
    font-size: 24px;
  }
  .countdown__unit {
    font-size: 13px;
  }
  .steps,
  .lot,
  .faq {
    padding: 56px 0;
  }
  .steps__title,
  .lot__title,
  .faq__title {
    font-size: 30px;
  }
  .final__inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .final__title {
    font-size: 26px;
  }
  .lot__grid {
    flex-direction: column;
  }
  .adv {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
  }
  .adv__ic {
    flex-shrink: 0;
  }
  .adv__title,
  .adv__desc {
    white-space: normal;
  }
  /* Offres Numérique + Intégrale : prix collé au titre, sous-titre pleine largeur dessous */
  .offer__head .offer__price-wrap,
  .offer__int-head .offer__price--row {
    grid-row: 1;
    align-self: start;
  }
  .offer__head .offer__sub,
  .offer__int-head .offer__sub {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .faq__answer {
    padding-right: 0;
  }
  .lp-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .lp-footer__links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}
