/*
 * ============================================================================
 *  PAGE D'ACCUEIL — maquette docs/maquettes/landing_page.jpeg (05/10).
 *  Préfixe .ld-* ; en-tête commun du site (bleu nuit).
 * ============================================================================
 */
.ld { --ld-ink: #0b1437; --ld-blue: #1f4fe0; --ld-green: #16a34a; --ld-orange: #f97316; --ld-violet: #4f17e8; --ld-line: #e6e8ef; color: var(--ld-ink); }
.ld-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- Héros ---- */
.ld-hero { position: relative; overflow: hidden; padding: 56px 0 72px; color: #fff; }
.ld-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.ld-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 20, 55, .78) 0%, rgba(11, 20, 55, .45) 45%, rgba(11, 20, 55, .05) 80%); }
.ld-hero__inner { position: relative; }
.ld-hero__title { max-width: 640px; margin: 0 0 16px; font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; line-height: 1.08; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.ld-hero__title span { color: #ffb020; }
.ld-hero__lead { max-width: 520px; margin: 0 0 30px; font-size: 19px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.ld-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin-left: 90px; }
.ld-entry { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 14px 14px 12px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(11, 20, 55, .2); color: var(--ld-ink); }
.ld-entry__head { display: flex; gap: 12px; align-items: flex-start; }
.ld-entry__head strong { display: block; font-size: 14px; font-weight: 800; text-transform: uppercase; color: #1e2a5a; }
.ld-entry__head small { display: block; font-size: 11.5px; line-height: 15px; color: #4b4f66; }
.ld-entry__ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 8px; }
.ld-entry__ico.is-blue { color: #1f4fe0; } .ld-entry__ico.is-green { color: #16a34a; } .ld-entry__ico.is-violet { color: #4f17e8; }
.ld-entry__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1.5px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ld-btn--blue { background: #1f6fe8; color: #fff; } .ld-btn--blue:hover { background: #1956c4; color: #fff; }
.ld-btn--green-outline { border-color: #16a34a; color: #15803d; } .ld-btn--green-outline:hover { background: #16a34a; color: #fff; }
.ld-btn--soft { background: #eef0fc; color: #3b2ab0; }
.ld-btn--violet { background: #4f17e8; color: #fff; } .ld-btn--violet:hover { color: #fff; filter: brightness(1.1); }

/* ---- Recherche ---- */
.ld-search { position: relative; z-index: 2; margin-top: -34px; padding-top: 16px !important; padding-bottom: 18px !important; background: #fff; border-radius: 10px; box-shadow: 0 12px 34px rgba(11, 20, 55, .14); max-width: 1190px; }
.ld-search__modes { display: flex; flex-wrap: wrap; gap: 26px; margin: 0 0 12px; padding: 0 4px; border: 0; }
.ld-radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ld-radio input { width: 18px; height: 18px; accent-color: #1f4fe0; }
.ld-radio:has(input:checked) { color: #1f4fe0; font-weight: 700; }
.ld-search__fields { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr .75fr auto; gap: 10px; }
.ld-field { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 14px; border: 1px solid #d5d8e3; border-radius: 6px; cursor: text; }
.ld-field > .pl-icon { flex: none; color: #4b4f66; }
.ld-field > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ld-field strong { font-size: 12.5px; font-weight: 600; }
.ld-field input, .ld-field select { width: 100%; padding: 0; background: none; border: 0; color: #6b6f85; font-size: 12.5px; outline: 0; }
.ld-field:focus-within { border-color: #1f4fe0; box-shadow: 0 0 0 2px rgba(31, 79, 224, .15); }
.ld-field.is-disabled { opacity: .45; }
.ld-search__submit { min-width: 140px; padding: 0 24px; background: #f97316; border: 0; border-radius: 6px; color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; }
.ld-search__submit:hover { background: #ea580c; }

/* ---- Sections ---- */
.ld-section { padding: 26px 0 18px; }
.ld-section--green { background: #f3fbf5; }
.ld-section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ld-section__head h2 { margin: 0; font-size: 24px; font-weight: 800; color: #1e2a5a; }
.ld-section__head p { margin: 0; font-size: 15px; color: #1e2a5a; }
.ld-section__ico { display: inline-flex; flex: none; }
.ld-section__ico.is-red { color: #e5324b; } .ld-section__ico.is-green { color: #16a34a; } .ld-section__ico.is-blue { color: #1f6fe8; }
.ld-more { margin-left: auto; color: #1f4fe0; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ld-empty { padding: 26px; background: #fff; border: 1px dashed var(--ld-line); border-radius: 10px; color: #6b6f85; text-align: center; }
.ld-carousel { position: relative; }
.ld-track { display: grid; grid-auto-columns: calc((100% - 48px) / 4); grid-auto-flow: column; gap: 16px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ld-track::-webkit-scrollbar { display: none; }
.ld-track--dest { grid-auto-columns: calc((100% - 64px) / 5); }
.ld-arrow { position: absolute; top: 40%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; background: #fff; border: 1px solid var(--ld-line); border-radius: 50%; box-shadow: 0 2px 8px rgba(11, 20, 55, .15); color: var(--ld-ink); }
.ld-arrow.is-prev { left: -18px; } .ld-arrow.is-next { right: -18px; }
.ld-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--ld-line); border-radius: 8px; box-shadow: 0 2px 10px rgba(11, 20, 55, .06); scroll-snap-align: start; }
.ld-card__media { position: relative; display: block; height: 132px; }
.ld-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ld-card__price { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; background: rgba(11, 20, 55, .78); border-radius: 4px; color: #fff; font-size: 14px; font-weight: 800; }
.ld-card__free { position: absolute; left: 8px; top: 8px; padding: 3px 10px; background: #16a34a; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.ld-card__fav { position: absolute; top: 106px; right: 8px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; background: rgba(0, 0, 0, .25); border: 0; border-radius: 50%; color: #fff; }
.ld-card__fav.is-active { color: #ff4d6d; }
.ld-card__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.ld-card__title { color: var(--ld-ink); font-size: 14.5px; font-weight: 800; text-decoration: none; }
.ld-card__body small { display: inline-flex; align-items: center; gap: 5px; color: #4b4f66; font-size: 12px; }
.ld-card__rating .pl-icon { color: #f5a623; }
.ld-dest { position: relative; display: block; height: 110px; overflow: hidden; border-radius: 6px; color: #fff; text-decoration: none; scroll-snap-align: start; }
.ld-dest img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ld-dest:hover img { transform: scale(1.05); }
.ld-dest > span { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; padding: 18px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.ld-dest strong { font-size: 18px; font-weight: 700; }
.ld-dest small { font-size: 12px; }

/* ---- Pourquoi nous choisir ---- */
.ld-why { padding-bottom: 34px; }
.ld-why__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 22px; font-weight: 800; color: #1e2a5a; }
.ld-why__badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #1f6fe8; border-radius: 6px; color: #fff; }
.ld-why__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ld-why__list li { display: flex; gap: 14px; align-items: flex-start; }
.ld-why__list strong { display: block; font-size: 15px; color: #1e2a5a; }
.ld-why__list small { font-size: 13px; color: #6b6f85; line-height: 18px; }
.ld-why__ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; }
.ld-why__ico.is-orange { background: #f59e0b; } .ld-why__ico.is-pink { background: #ec4899; }
.ld-why__ico.is-green-plain { color: #16a34a; } .ld-why__ico.is-blue-plain { color: #1f6fe8; }

@media (max-width: 1199.98px) {
    .ld-entries { margin-left: 0; }
    .ld-search__fields { grid-template-columns: 1fr 1fr; }
    .ld-search__submit { grid-column: 1 / -1; height: 46px; }
    .ld-track { grid-auto-columns: calc((100% - 32px) / 3); }
    .ld-track--dest { grid-auto-columns: calc((100% - 32px) / 3); }
    .ld-why__list { grid-template-columns: 1fr 1fr; }
    .ld-arrow { display: none; }
}
@media (max-width: 767.98px) {
    .ld-entries, .ld-search__fields, .ld-why__list { grid-template-columns: 1fr; }
    .ld-track, .ld-track--dest { grid-auto-columns: 75%; }
    .ld-section__head { flex-wrap: wrap; }
    .ld-more { margin-left: 0; }
    .ld-search { margin: -24px 12px 0; }
}

/* Bandeau « activités gratuites correspondantes » de /activites (recherche « Toutes »). */
.ex-free-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 16px; background: #f3fbf5; border: 1px solid #bfe6cb; border-radius: 8px; color: #15803d; font-size: 14px; text-decoration: none; }
.ex-free-banner span { flex: 1; }
.ex-free-banner:hover { background: #e7f7ec; color: #166534; }

/* Cadre « Voir les photos » : les deux boutons restent dans la carte, même
   étroite (le second débordait, 05/10). */
.ld-entry { min-width: 0; }
.ld-entry__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-entry__pair .ld-btn { min-width: 0; height: auto; min-height: 32px; padding: 4px 6px; white-space: normal; line-height: 1.15; text-align: center; }
.ld-entry__pair .ld-btn .pl-icon { flex: none; }
