/* ---- nos-formules.css ---- */
/* ---------- Page nos-formules ---------- */

/* Comment ça marche : accroche géante alignée à gauche + 4 étapes. */
.nf-ccm { padding-top: 24px; }
.nf-ccm-tete { max-width: 1240px; margin: 0 auto 40px; }
.nf-ccm-tete h1 {
  font-family: var(--police-corps); font-size: 22px; font-weight: 700;
  margin: 0 0 4px;
}
.nf-accroche {
  font-family: var(--police-titre); font-weight: 400;
  font-size: clamp(44px, 5.7vw, 80px); line-height: 1.1;
  max-width: 700px; margin: 0;
}
.nf-mot-simple img { bottom: -0.22em; }
.nf-etapes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; max-width: 1240px; margin: 0 auto 48px; text-align: center;
}
.nf-etape img { width: 75%; height: auto; }
.nf-etape h3 {
  font-family: var(--police-corps); font-size: 18px; font-weight: 700;
  margin: 4px 0 8px;
}
.nf-etape p { margin: 0; font-size: 14px; line-height: 1.4; }
.nf-ccm-cta { text-align: center; }

/* Bloc formules : onglets de période + 3 cartes inclinées. */
/* Les cartes inclinées ne doivent pas créer de défilement horizontal (vers 1100 px). */
.nf-formules { text-align: center; overflow-x: clip; }
.nf-formules .titre-section { font-size: 36px; margin-bottom: 8px; }
.nf-onglets {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin: 28px 0 56px;
}
.nf-onglet {
  font-family: var(--police-corps); font-size: 16px; font-weight: 700;
  letter-spacing: 1px; line-height: 1.3; color: var(--craie);
  background: var(--jasmin); border: 1px solid transparent;
  border-radius: 20px; padding: 7px 25px 4px; cursor: pointer;
}
.nf-onglet.actif { background: transparent; border-color: var(--craie); }
.nf-cartes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; max-width: 1105px; margin: 0 auto;
}
.nf-carte {
  border-radius: 16px; padding: 24px 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.nf-carte-1 { background: var(--lila); transform: rotate(-8deg); }
.nf-carte-2 { background: var(--carotte); }
.nf-carte-3 { background: var(--ciel); transform: rotate(8deg); }
.nf-carte-1 .nf-carte-illu { width: 101px; height: 50px; transform: rotate(10deg); }
.nf-carte-2 .nf-carte-illu { width: 114px; height: 34px; }
.nf-carte-3 .nf-carte-illu { width: 85px; height: 44px; transform: rotate(-10deg); }
.nf-carte-nom {
  font-family: var(--police-titre); font-size: 28px; font-weight: 500; margin: 0;
}
.nf-carte-accroche {
  font-family: var(--police-corps); font-size: 22px; font-weight: 700;
  line-height: 1.2; max-width: 300px; margin: 0;
}
.nf-carte-inclus p { margin: 0; font-size: 14px; line-height: 1.4; }
.nf-carte-prix {
  font-family: var(--police-titre); font-size: 28px; font-weight: 500; margin: 0;
}
.nf-bon-plan { max-width: 560px; margin: 40px auto 32px; }

/* Tableau comparatif location vs achat (fond jasmin). */
.nf-comparatif { padding-top: 0; padding-bottom: 64px; margin-top: 100px; }
.nf-comp-sticker {
  display: block; width: 320px; margin: -100px auto 0;
}
.nf-comp-titre {
  font-family: var(--police-titre); font-weight: 400; font-size: 36px;
  line-height: 1.2; text-align: center; padding: 30px 0 50px; margin: 0;
}
.nf-comp-titre p { margin: 0; }
.nf-comp-table {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 420px) 100px 100px 100px;
  column-gap: 0; justify-content: center; align-items: start;
}
.nf-comp-fond {
  grid-column: 2; grid-row: 1 / span 8; align-self: stretch;
  background: var(--framboise); border-radius: 20px; z-index: 0;
}
.nf-comp-entete {
  grid-row: 1; position: relative; z-index: 1; text-align: center;
  font-size: 14px; white-space: pre-line; line-height: 1.4;
  margin: 0; padding: 15px 10px 10px; min-height: 68px;
}
.nf-comp-texte {
  grid-column: 1; font-size: 14px; line-height: 1.4;
  margin: 0; padding: 20px 24px 0 0; min-height: 50px;
}
.nf-comp-coche {
  grid-column: 2; position: relative; z-index: 1; justify-self: center;
  align-self: start; padding-top: 22px;
}
.nf-comp-libetlou { grid-column: 2; }

/* Bandeau des 5 avantages (réassurance, fond beige). */
.nf-avantages { padding: 72px 20px; }
.nf-avantages-liste {
  display: flex; gap: 40px; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; max-width: 1240px; margin: 0 auto;
}
.nf-avantage { width: 200px; text-align: center; }
.nf-avantage img { width: 110px; height: 110px; object-fit: contain; }
.nf-avantage-titre {
  display: block; font-size: 18px; font-weight: 700; line-height: 1.2;
  border: 1px solid var(--craie); border-radius: 200px;
  padding: 10px; max-width: 191px; margin: 24px auto 20px;
}
.nf-avantage-texte { font-weight: 400; font-size: 14px; line-height: 1.4; margin: 0; }

/* L'histoire derrière Lib et Lou (fond ciel). */
.nf-histoire { background: var(--ciel); padding: 72px 20px 88px; }
.nf-histoire-int {
  display: grid; grid-template-columns: minmax(0, 480px) 300px;
  gap: 100px; justify-content: center; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.nf-histoire-texte h2 {
  font-family: var(--police-titre); font-weight: 400; font-size: 36px;
  line-height: 1.2; margin: 0 0 10px;
}
.nf-histoire-texte h2 p { margin: 0; }
.nf-histoire-sous-titre { font-size: 22px; font-weight: 700; margin: 0 0 30px; }
.nf-histoire-paras p { font-size: 14px; line-height: 1.4; margin: 0 0 14px; }
.nf-histoire-paras p:last-child { margin-bottom: 0; }
.nf-histoire-photo { position: relative; }
.nf-histoire-portrait {
  display: block; width: 300px; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 20px;
}
.nf-histoire-badge {
  position: absolute; width: 150px; top: -75px; right: -75px;
}

/* Appel FAQ en accordéon. */
.nf-questions { max-width: 1200px; margin: 24px auto 40px; text-align: left; }
.nf-question { border-top: 1px solid var(--craie); }
.nf-question:last-child { border-bottom: 1px solid var(--craie); }
.nf-question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-size: 18px; font-weight: 700;
  list-style: none; cursor: pointer;
}
.nf-question summary::-webkit-details-marker { display: none; }
/* Le « + » devient « − » quand la question est dépliée. */
.nf-question-plus { position: relative; flex: none; width: 18px; height: 18px; }
.nf-question-plus::before, .nf-question-plus::after {
  content: ""; position: absolute; background: var(--craie); transition: transform 0.2s;
}
.nf-question-plus::before { left: 0; top: 8px; width: 18px; height: 2px; }
.nf-question-plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.nf-question[open] .nf-question-plus::after { transform: scaleY(0); }
.nf-question-reponse { padding: 0 4px 20px; font-size: 14px; }
.nf-question-reponse p { margin: 0 0 8px; }

@media (max-width: 1000px) {
  .nf-histoire-int { grid-template-columns: 1fr; gap: 48px; }
  .nf-histoire-badge { right: -20px; }
}
@media (max-width: 900px) {
  .nf-cartes { grid-template-columns: 1fr; max-width: 420px; }
  .nf-carte-1, .nf-carte-3 { transform: none; }
  .nf-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-comp-table { grid-template-columns: minmax(0, 1fr) 70px 70px 70px; }
}
@media (max-width: 560px) {
  .nf-etapes { grid-template-columns: 1fr; }
}

/* ---- vitrine-commune.css ---- */
/* ---------- Blocs partagés de l'accueil et des landings (préfixe vit-) ----------
   Rendu par `src/site/blocs-vitrine.ts`. Ce fichier est concaténé après les
   feuilles des pages (ordre alphabétique) : ses règles communes passent après. */

/* Bandeau de logos qui défile en continu (médias, marques). La piste contient
   deux moitiés identiques et glisse d'une moitié : la boucle ne saute pas. */
.vit-defilant { overflow: hidden; padding: 20px 0; }
.vit-defilant-piste {
  display: flex; align-items: center; gap: 64px; width: max-content;
  margin: 0; padding: 0 32px; list-style: none;
  animation: vit-defile var(--vit-duree, 40s) linear infinite;
}
.vit-defilant:hover .vit-defilant-piste,
.vit-defilant:focus-within .vit-defilant-piste { animation-play-state: paused; }
.vit-defilant-logo { flex: none; }
.vit-defilant-logo a { display: block; border-radius: 8px; }
.vit-defilant-logo a:focus-visible { outline: 2px solid var(--craie); outline-offset: 4px; }
.vit-defilant-logo img {
  display: block; height: 64px; width: auto; max-width: 170px; object-fit: contain;
}
@keyframes vit-defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .vit-defilant-piste {
    animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 24px 40px;
  }
  .vit-defilant-logo[data-copie] { display: none; }
}
@media (max-width: 560px) {
  .vit-defilant-piste { gap: 40px; }
  .vit-defilant-logo img { height: 48px; max-width: 130px; }
}

/* Pastilles de catégories au-dessus des jeux préférés, comme libetlou.com :
   une rangée qui défile au doigt quand elle dépasse la largeur. */
.vit-pastilles {
  display: flex; gap: 10px; list-style: none; margin: 0 auto 28px; padding: 4px 16px;
  max-width: 1240px; overflow-x: auto; scrollbar-width: none;
  justify-content: safe center;
}
.vit-pastilles::-webkit-scrollbar { display: none; }
.vit-pastilles li { flex: none; }
.vit-pastille {
  display: inline-block; white-space: nowrap; text-decoration: none;
  background: var(--jasmin); color: var(--craie); border-radius: 999px;
  padding: 4px 22px; font-size: 14px; line-height: 1.5;
}
.vit-pastille:hover, .vit-pastille:focus-visible { background: var(--blanc); }

/* Logo Google dans la note d'avis. */
.vit-logo-google { display: inline-block; vertical-align: -3px; margin: 0 2px; }

/* Prix et mensualisation sur deux lignes. */
.vit-prix-tarif, .vit-prix-mensuel { display: block; }
.vit-prix-mensuel { font-size: 0.62em; font-weight: 400; margin-top: 2px; }
.vit-prix-reserve { visibility: hidden; }

/* Blocs de réassurance à 5 groupes (« échanges offerts », « sans engagement »,
   « option d'achat », « casse & usure », « propreté garantie ») : landings
   Montessori, jeux de société et box, accueil et nos-formules (recette
   d'Alban, notes 71 et suivantes). Chaque groupe est une colonne centrée :
   l'image au-dessus de l'étiquette, elle-même au-dessus du texte. Les
   groupes, de largeur fixe, se rangent sur des lignes centrées, la dernière
   ligne comprise, quelle que soit la largeur de l'écran. */
.mm-badges, .jds-badges, .bx-badges, .acc-reassurance .pro-badges, .nf-avantages-liste {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
  gap: 40px 24px; max-width: 1300px; margin-left: auto; margin-right: auto;
}
.mm-badge, .jds-badge, .bx-badge, .acc-reassurance .badge-reassurance, .nf-avantage {
  flex: 0 1 220px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mm-badge img, .jds-badge img, .bx-badge img, .acc-reassurance .badge-reassurance img, .nf-avantage img {
  display: block; margin: 0 auto;
}
.mm-badge h3, .jds-badge h3, .bx-badge h3 {
  display: block; width: fit-content; white-space: normal; max-width: 100%; margin-left: auto; margin-right: auto;
}
.mm-badge p, .jds-badge p, .bx-badge p { margin-left: auto; margin-right: auto; }
@media (max-width: 560px) {
  /* Deux groupes par ligne, la cinquième centrée seule. */
  .mm-badges, .jds-badges, .bx-badges, .acc-reassurance .pro-badges, .nf-avantages-liste { gap: 28px 12px; }
  .mm-badge, .jds-badge, .bx-badge, .acc-reassurance .badge-reassurance, .nf-avantage { flex-basis: calc(50% - 6px); }
  .mm-badge img, .jds-badge img, .bx-badge img, .acc-reassurance .badge-reassurance img { height: 64px; }
  .nf-avantage img { width: 80px; height: 80px; }
  .mm-badge h3, .jds-badge h3, .bx-badge h3 { font-size: 14px; padding: 6px 14px; margin: 12px auto 10px; }
  .mm-badge p, .jds-badge p, .bx-badge p { font-size: 12px; margin-top: 0; }
}
