/* ==========================================================================
   Page offre "Yas & Moi"  –  styles scopés sous .ym-page
   Bootstrap 4 + Bootstrap Icons requis. Préfixe ym- pour éviter les conflits.
   ========================================================================== */

.ym-page {
  font-family: "Figtree", sans-serif;
  color: var(--ym-blue);
  background: #fff;
  overflow-x: hidden;
}
.ym-page *, .ym-page *::before, .ym-page *::after { box-sizing: border-box; }
.ym-page a { text-decoration: none; }
.ym-page h1, .ym-page h2, .ym-page h3, .ym-page h4, .ym-page p, .ym-page ul { margin: 0; }
.ym-page input[type=number]::-webkit-outer-spin-button,
.ym-page input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ym-page input[type=number] { -moz-appearance: textfield; }

.ym-sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- HERO -- */
.ym-hero { background: var(--ym-yellow-hero); position: relative; overflow: hidden; }
.ym-hero__text { padding: 1.5rem 0 0; position: relative; z-index: 2; }
.ym-hero__logo { display: block; width: clamp(56px, 16vw, 72px); height: auto; margin-bottom: 1.25rem; }

.ym-hero__title {
  font-weight: 900; font-style: italic; line-height: 1.05;
  font-size: clamp(3rem, 2rem + 4vw, 5.4rem);
  color: var(--ym-blue); margin-bottom: .25rem;
}
.ym-hero__tagline {
  font-weight: 900; font-style: italic; line-height: 1.25;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem);
  margin-top: .25rem; color: var(--ym-blue);
}
.ym-hero__tagline .ym-accent { color: var(--ym-blue-soft); }
.ym-hero__sub {
  font-weight: 500; font-style: italic;
  font-size: clamp(1.05rem, .9rem + .5vw, 1.4rem);
  margin-top: 1.25rem !important; max-width: 30rem; color: var(--ym-blue);
}

/* CTA: full-width button on phones, natural width from 576px */
.ym-hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 1.5rem; }
.ym-hero__free { font-style: italic; font-weight: 300; text-align: center; }
.ym-hero__free strong { font-weight: 700; }

.ym-hero__media { margin-top: 1.5rem; text-align: center; }
.ym-hero__media img { display: block; width: 100%; height: auto; margin: 0 auto; }

.ym-btn-blue {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  background: var(--ym-blue); color: #fff !important; border-radius: 999px;
  padding: .85rem 1.5rem; font-weight: 600; font-style: italic;
  transition: background .2s, transform .2s;
}
.ym-btn-blue:hover { background: #002a69; transform: translateY(-1px); }

@media (min-width: 576px) {
  .ym-hero__cta { align-items: flex-start; }
  .ym-hero__free { text-align: left; }
  .ym-btn-blue { padding: .95rem 2.25rem; gap: 1rem; }
  .ym-hero__media img { max-width: 26rem; }
}

@media (min-width: 768px) {
  .ym-hero__text { padding-top: 2.5rem; }
  .ym-hero__media img { max-width: 100%; }
}

@media (min-width: 992px) {
  .ym-hero { min-height: 36rem; }
  .ym-hero__text { padding: 5.5rem 0 4.5rem; }
  .ym-hero__cta { flex-direction: row; align-items: center; gap: 1.5rem; }
  .ym-hero__media {
    position: absolute; top: 0; bottom: 0; margin: 0;
    right: 0;
    width: 50%; 
    display: flex; align-items: flex-end; justify-content: flex-end;
  }
  .ym-hero__media img { height: 100%; width: auto; max-width: 150%; object-fit: cover; object-position: right top; margin: 0; }
}
/* ---------------------------------------------------------------- MAIN -- */
.ym-main { padding: 2rem 0 1rem; }
@media (min-width: 992px) { .ym-main { padding: 4rem 0 2rem; } }

.ym-offer-card {
  background: #fff; border: 1px solid var(--ym-border);
  border-radius: 20px; padding: 1.5rem 1.25rem;
}
@media (min-width: 768px) { .ym-offer-card { border-radius: var(--ym-radius-lg); padding: 2.75rem 3.25rem; } }

.ym-offer-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .25rem 1rem; padding-bottom: 1.25rem; border-bottom: 2px dashed var(--ym-border);
}
.ym-offer-card__name { font-weight: 800; font-style: italic; font-size: 1.05rem; }
.ym-offer-card__price { font-size: .95rem; display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.ym-offer-card__price .ym-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ym-blue-soft); }
.ym-offer-card__price .ym-validity { color: var(--ym-blue-soft); }
.ym-offer-card__price sup { font-size: .6em; }
@media (min-width: 768px) {
  .ym-offer-card__name { font-size: 1.7rem; }
  .ym-offer-card__price { font-size: 1.7rem; }
}

.ym-specs { display: flex; flex-wrap: wrap; row-gap: 1rem; margin-top: 1.5rem; margin-bottom: 1.5rem}
.ym-spec { padding-right: 1.5rem; margin-right: 1.5rem; border-right: 1px solid var(--ym-border); }
.ym-spec:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ym-spec__label { display: block; font-style: italic; font-size: .72rem; color: var(--ym-blue-soft); }
.ym-spec__value { display: block; margin-top: .6rem; font-style: italic; font-weight: 700; font-size: .8rem; }
@media (min-width: 768px) {
  .ym-spec__label { font-size: .95rem; }
  .ym-spec__value { font-size: 1.3rem; margin-top: 1.1rem; }
}

.ym-legal { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.ym-legal li {
  display: flex; gap: .75rem; align-items: flex-start;
  font-style: italic; font-weight: 300; font-size: .72rem; line-height: 1.6; margin-bottom: .4rem;
}
.ym-legal i { color: var(--ym-blue-soft); font-size: 1rem; line-height: 1.4; flex: 0 0 auto; }
@media (min-width: 768px) { .ym-legal li { font-size: 1rem; } }

.ym-toggle {
  display: flex; width: 100%; max-width: 26rem; margin-top: 1.25rem;
  background: var(--ym-yellow-pale); border-radius: 999px; padding: 4px;
}
.ym-toggle__opt { position: relative; flex: 1 1 50%; margin: 0; cursor: pointer; }
.ym-toggle__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ym-toggle__opt span {
  display: block; text-align: center; padding: .55rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 400; transition: background .2s;
}
.ym-toggle__opt input:checked + span { background: var(--ym-yellow); font-weight: 600; }
.ym-toggle__opt input:focus-visible + span { outline: 2px solid var(--ym-blue); outline-offset: 2px; }
@media (min-width: 768px) { .ym-toggle__opt span { font-size: 1rem; padding: .7rem 1rem; } }

.ym-fields { display: grid; grid-template-columns: 1fr; gap: .9rem; margin-top: 1.1rem; }
@media (min-width: 768px) { .ym-fields { grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; } }

.ym-field {
  display: flex; align-items: center; background: #fff; min-width: 0;
  border: 1px solid var(--ym-blue-soft); border-radius: 999px;
  padding: .3rem .75rem .3rem .3rem; transition: opacity .2s, border-color .2s;
}
.ym-field:focus-within { border-color: var(--ym-blue); box-shadow: 0 0 0 3px rgba(0, 58, 143, .12); }
.ym-field__icon {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ym-yellow); display: flex; align-items: center; justify-content: center;
}
.ym-field__icon img { width: 1.1rem; height: 1.1rem; object-fit: contain; }
.ym-field__sep { flex: 0 0 1px; height: 1rem; background: var(--ym-blue-soft); margin: 0 .9rem; opacity: .6; }
.ym-field input {
  flex: 1 1 auto; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent;
  padding: .4rem 0; font: italic 600 .85rem "Poppins", sans-serif; color: var(--ym-blue);
}
.ym-field input::placeholder { color: var(--ym-blue); opacity: 1; font-weight: 600; }
@media (min-width: 768px) { .ym-field input { font-size: 1rem; } }
.ym-field.is-disabled { opacity: .45; border-color: var(--ym-border); pointer-events: none; }
.ym-field.is-disabled .ym-field__icon { background: var(--ym-yellow-pale); }

.ym-buy {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-top: 1.4rem; padding: 1rem 1.5rem; border-radius: 999px; cursor: pointer;
  background: var(--ym-yellow); color: var(--ym-blue); font-size: clamp(1rem, 5.5vw, 1.2rem); font-weight: 700;
  transition: background .2s, transform .2s; user-select: none;
}
.ym-buy:hover { background: #f2c500; transform: translateY(-1px); }
.ym-buy i { font-size: 1.2rem; font-weight: 700; }

/* Modal MVola : on garde le rendu Bootstrap, on harmonise juste le bouton */
.ym-page .modal .modal-title { color: var(--ym-blue); font-weight: 700; }
.ym-page .modal .ym-modal-ok {
  width: 100%; border: 0; background: var(--ym-yellow); color: var(--ym-blue); font-weight: 600; padding: .9rem;
}

/* ---------------------------------------------- CARTE "TELECHARGER L'APP" */
.ym-download-card {
  background: var(--ym-yellow); border-radius: var(--ym-radius-lg); padding: 2.75rem 2.75rem 2.5rem;
}
.ym-download-card__kicker { font-weight: 500; font-size: .95rem; }
.ym-download-card__title { font-weight: 800; font-size: 1.85rem; margin: .35rem 0 .6rem; }
.ym-download-card__sub { font-style: italic; font-size: .95rem; font-weight: 300; }
.ym-qr { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.ym-qr__img { flex: 0 0 auto; width: 5.5rem; height: 5.5rem; background: #fff; border-radius: 10px; padding: .4rem; }
.ym-qr__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ym-qr__text { font-style: italic; font-weight: 300; font-size: .95rem; line-height: 1.35; }
.ym-qr__text strong { font-weight: 700; }
.ym-sms__label { display: block; margin: 1.5rem 0 .5rem; font-style: italic; font-weight: 600; font-size: .78rem; }
.ym-sms { display: flex; gap: .6rem; }
.ym-sms__input {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .6rem;
  background: #fff; border-radius: 10px; padding: 0 .9rem;
}
.ym-sms__input b { font-size: .8rem; }
.ym-sms__input input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: .85rem 0; font: 400 .8rem "Poppins", sans-serif; color: var(--ym-blue);
}
.ym-sms__input input::placeholder { color: #9db5d8; }
.ym-sms button {
  border: 0; background: var(--ym-blue); color: #fff; font-weight: 700; font-size: .8rem;
  border-radius: 10px; padding: 0 1.3rem; cursor: pointer; transition: background .2s;
}
.ym-sms button:hover { background: #002a69; }
.ym-sms__feedback { display: block; min-height: 1.2rem; margin-top: .4rem; font-size: .75rem; font-style: italic; }
.ym-download-card .ym-stores { margin-top: .75rem; }

/* ------------------------------------------------------ BOUTONS STORES -- */
.ym-stores { display: flex; flex-direction: column; gap: .9rem; }
.ym-store {
  display: flex; align-items: center; gap: 1rem; padding: .55rem 1.3rem; border-radius: 6px;
  line-height: 1.2; transition: transform .2s, background .2s;
}
.ym-store:hover { transform: translateY(-1px); }
.ym-store i { font-size: 1.9rem; }
.ym-store small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 400; }
.ym-store strong { display: block; font-size: 1.15rem; font-weight: 600; }
.ym-store--outline { border: 1px solid var(--ym-blue); background: rgba(255, 255, 255, .22); color: var(--ym-blue) !important; }
.ym-store--outline:hover { background: rgba(255, 255, 255, .45); }
.ym-store--dark { background: #000; border: 1px solid rgba(255, 255, 255, .6); color: #fff !important; }
.ym-store--dark:hover { background: #111; }

/* ----------------------------------------- SUGGESTIONS (cartes offres) -- */
.ym-recs { padding: 2.5rem 0 3.5rem; }
@media (min-width: 992px) { .ym-recs { padding: 3.5rem 0 5rem; } }
.ym-recs .row > [class*="col-"] { margin-bottom: 1.5rem; }

.ym-rec {
  position: relative; height: 100%; overflow: hidden; text-align: center;
  background: var(--ym-ice); border-radius: 20px; padding: 2rem 1.75rem 1.25rem;
}
.ym-rec__link { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; border-radius: inherit; }
.ym-rec__name { font-weight: 800; font-style: italic; font-size: 1.25rem; }
.ym-rec__price { margin-top: .6rem; display: flex; align-items: baseline; justify-content: center; gap: .6rem; }
.ym-rec__price small { font-size: .85rem; font-weight: 600; font-style: italic; color: var(--ym-blue-soft); }
.ym-rec__price span { font-size: 1.8rem; font-style: italic; font-weight: 500; }
.ym-rec__rows { list-style: none; padding: 0 .4rem; margin: 1.4rem 0 0; }
.ym-rec__rows li { padding: .85rem 0; font-style: italic; font-weight: 300; }
.ym-rec__rows li + li { border-top: 1px solid var(--ym-blue); }
.ym-rec__rows b { font-weight: 700; }

/* face "survol" : carte jaune identique à la maquette */
.ym-rec__hover {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; background: var(--ym-yellow); border-radius: inherit;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.ym-rec__hover .ym-rec__name { font-size: 1.45rem; }
.ym-rec__code { margin-top: 1rem; font-style: italic; font-weight: 500; font-size: 1.05rem; }
.ym-rec__actions { width: 100%; max-width: 19rem; margin-top: 2.25rem; display: flex; flex-direction: column; gap: 1rem; align-items: center;}
.ym-rec__btn {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  border-radius: 999px; padding: .85rem 1.25rem; font-style: italic; font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
  width: 100%;
}
.ym-rec__btn--primary { background: var(--ym-blue); color: #fff !important; border: 1px solid var(--ym-blue); }
.ym-rec__btn--primary:hover { background: #002a69; }
.ym-rec__btn--outline { background: transparent; color: var(--ym-blue) !important; border: 1px solid var(--ym-blue); }
/* .ym-rec__btn--outline:hover { background: var(--ym-blue); color: #fff !important; }*/
.ym-rec__btn_details { width: 60% !important; }

/* Le survol n'existe que sur les appareils qui le gèrent (souris) ;
   sur mobile/tactile la carte entière mène à la page détails. */
/* Souris : la face jaune apparaît au survol */
@media (hover: hover) and (pointer: fine) {
  .ym-rec__hover { display: flex; }
  .ym-rec:hover .ym-rec__hover,
  .ym-rec:focus-within .ym-rec__hover { opacity: 1; visibility: visible; }
}

/* Tactile : la face jaune apparaît au 1er clic (classe .is-active posée par le JS) */
@media not all and (hover: hover) and (pointer: fine) {
  .ym-rec__hover { display: flex; }
  .ym-rec.is-active .ym-rec__hover { opacity: 1; visibility: visible; }
}

/* -------------------------------------------------------------- FOOTER -- */
.ym-footer { background: var(--ym-blue); color: #fff; padding: 2.25rem 0 1.5rem; }
.ym-footer__grid { display: grid; grid-template-columns: 1fr; row-gap: 1.75rem; }
.ym-footer__back {
  display: inline-flex; align-items: center; gap: 1rem; color: #fff !important;
  font-style: italic; font-weight: 600; font-size: 1rem;
}
.ym-footer__back i { font-size: 1.3rem; }
.ym-footer__cta-title { font-weight: 600; font-size: 1.35rem; line-height: 1.4; max-width: 28rem; }
.ym-footer__cta .ym-stores { margin-top: 1.4rem; }
.ym-footer__copy { font-size: .8rem; align-self: end; }
@media (min-width: 992px) {
  .ym-footer { padding: 4rem 0 2.5rem; }
  .ym-footer__grid {
    grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 3rem;
    grid-template-areas: "back cta" "copy cta";
  }
  .ym-footer__back { grid-area: back; font-size: 1.65rem; }
  .ym-footer__cta { grid-area: cta; }
  .ym-footer__copy { grid-area: copy; }
  .ym-footer__cta-title { max-width: 32rem; font-size: 1.3rem; }
  .ym-footer__cta .ym-stores { flex-direction: row; }
  .ym-footer__cta .ym-store { padding-right: 1.6rem; }
}

@media (max-width: 992px) {
  .ym-footer__cta-title { font-size: 1.15rem; }
  .ym-footer__cta .ym-stores { gap: .75rem; }
  .ym-footer__cta .ym-store { padding-right: 1.25rem; }
  .ym-store { width: 70%; }
}

/* ------------------------------------- NOM D'OFFRE EN IMAGE (SVG) + FALLBACK */
.ym-offer-card__head {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;      /* keep name and price on one line */
  gap: .5rem;
}
.ym-offer-card__name {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1;
  min-width: 0;           /* lets the name shrink below its content size */
  flex: 0 1 auto;
}
.ym-offer-card__price { flex: 0 0 auto; white-space: nowrap; }

.ym-name-img-main { display: block; height: 1.5rem; width: auto; max-width: 100%; }
.ym-offer-card__name .ym-name-img-main { height: clamp(1rem, 5.5vw, 1.6rem); }
.ym-rec__hover .ym-name-img-main { height: 1.8rem; }
.ym-name-text[hidden], .ym-name-img-main[hidden] { display: none; }
@media (min-width: 768px) {
  .ym-offer-card__name .ym-name-img-main { height: 2.3rem; }
}

/* --------------------------------------------- VALIDATION DES NUMEROS */
.ym-fieldwrap { min-width: 0; }
.ym-field.is-valid { border-color: #1e9e5a; }
.ym-field.is-invalid, .ym-sms__input.is-invalid { border-color: #d93025; box-shadow: 0 0 0 3px rgba(217, 48, 37, .12); }
.ym-field.is-invalid:focus-within { border-color: #d93025; }
.ym-field__error {
  display: block; min-height: 1.1rem; margin: .35rem 0 0 1rem;
  font-size: .75rem; font-style: italic; color: #d93025;
}
.ym-field.is-disabled + .ym-field__error { visibility: hidden; }
.ym-sms__input.is-invalid { border: 1px solid #d93025; }
.ym-download-card .ym-sms__feedback { color: var(--ym-blue); font-weight: 500; }
