/* ==========================================================================
   La Manne du Ciel — landing.css
   Estilos EXCLUSIVOS de la landing (index.html).
   Depende de base.css (variables, botones, layout, cabecera, pie).

   Índice:
     1. Hero (#accueil)
     2. Banda de confianza
     3. Nos formules (#formules)
     4. Événements (#evenements)
     5. Comment ça marche (pasos)
     6. Galerie — carrusel (#galerie)
     7. Pourquoi nous choisir
     8. À propos (#apropos)
     9. FAQ
   ========================================================================== */

/* 1. HERO =============================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero.webp");
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 28, 56, 0.88) 0%,
    rgba(14, 28, 56, 0.55) 60%,
    rgba(14, 28, 56, 0.35) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 120px 90px;
}
.hero__content {
  max-width: 720px;
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(250, 248, 243, 0.85);
  line-height: 1.65;
  margin-bottom: 8px;
  max-width: 580px;
}
.hero__meta {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.hero__note {
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.45);
}
.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201, 162, 86, 0.8), transparent);
}

/* 2. NOS FORMULES ====================================================== */
.formule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 32px;
}
.formule-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-warm);
}
.formule-item__icon {
  width: var(--formule-icon-size);
  height: var(--formule-icon-size);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.formule-item__name {
  font-size: var(--fs-body-sm);
  font-weight: 600;
  color: var(--navy);
}
.formule-item__desc {
  font-size: var(--fs-body-xs);
  color: var(--text-body-on-light);
  margin-top: 2px;
}
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.collage img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sand);
}
.collage img:nth-child(2) {
  margin-top: 32px;
}
.collage img:nth-child(3) {
  margin-top: -32px;
}

/* 4. ÉVÉNEMENTS ======================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.event-card__media {
  height: 200px;
  overflow: hidden;
  background: var(--sand);
}
.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card:hover .event-card__media img {
  transform: scale(1.05);
}
.event-card__body {
  padding: 24px 24px 28px;
}
.event-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}
.event-card__text {
  font-size: var(--fs-body-sm);
  color: var(--text-body-on-light);
  line-height: 1.65;
}

/* 5. COMMENT ÇA MARCHE ================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.step__connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 1px;
  background: rgba(201, 162, 86, 0.2);
  display: none;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  flex-shrink: 0;
}
.step__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.step__text {
  font-size: var(--fs-body-sm);
  color: var(--text-body-on-dark);
  line-height: 1.7;
}
.steps__cta {
  text-align: center;
  margin-top: 48px;
}

/* 6. GALERIE — CARRUSEL =============================================== */
.carousel {
  position: relative;
  --per-view: 3;
  --slide-gap: 16px;
}
.carousel__track {
  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.carousel__track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.carousel__slide {
  scroll-snap-align: start;
  flex: 0 0
    calc(
      (100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view)
    );
}
.carousel__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.carousel__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  background: linear-gradient(
    to top,
    rgba(14, 28, 56, 0.75) 0%,
    transparent 100%
  );
}
.carousel__cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.carousel__label {
  font-size: 0.875rem;
  color: var(--cream);
  margin-top: 2px;
}
.carousel__arrow {
  position: absolute;
  top: calc(50% - 26px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14, 28, 56, 0.18);
  transition: background var(--t-fast), color var(--t-fast);
  z-index: 3;
}
.carousel__arrow:hover {
  background: var(--gold);
  color: var(--cream);
}
.carousel__arrow--prev {
  left: -10px;
}
.carousel__arrow--next {
  right: -10px;
}
.carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--sand);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__dot:hover {
  background: var(--gold-light);
}
.carousel__dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* 7. POURQUOI NOUS CHOISIR ============================================ */
.why__media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.why__title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 36px;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-item__num {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.why-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.why-item__text {
  font-size: var(--fs-body-sm);
  color: var(--text-body-on-light);
  line-height: 1.7;
}

/* 8. À PROPOS ========================================================= */
.apropos__intro {
  margin-bottom: clamp(40px, 5vw, 60px);
}
.apropos__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--sand);
}
.apropos__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.apropos__text {
  font-size: var(--fs-body);
  color: var(--text-body-on-light);
  line-height: 1.85;
  margin-bottom: 16px;
}
.identity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.identity-item {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: #fff;
  border-left: 3px solid var(--gold);
}
.identity-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.identity-item__text {
  font-size: var(--fs-body-sm);
  color: var(--text-body-on-light);
  line-height: 1.65;
}
.apropos__cta {
  text-align: center;
}

/* 9. FAQ ============================================================== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--sand);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--t-fast);
}
.faq__item[open] {
  border-color: var(--gold);
}
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__icon {
  color: var(--gold);
  flex-shrink: 0;
  line-height: 0;
  transition: transform var(--t-fast);
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 20px 18px;
  font-size: var(--fs-body-sm);
  color: var(--text-body-on-light);
  line-height: 1.75;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .carousel {
    --per-view: 2;
  }
}

@media (max-width: 768px) {
  .why__media {
    order: -1;
  }
  .why__media img {
    height: 320px;
  }
  .collage img:nth-child(2),
  .collage img:nth-child(3) {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .carousel {
    --per-view: 1;
  }
  .carousel__arrow--prev {
    left: 6px;
  }
  .carousel__arrow--next {
    right: 6px;
  }
}
