/* ============================================================
   ACCUEIL — sections de la page d'accueil (index.html)
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 102px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 40px; }
.hero__title { font-size: 64px; line-height: 1.2; color: var(--ink); letter-spacing: -2px; margin-bottom: 24px; }
.hero__title span { display: block; }
.hero__title .txt-primary { color: var(--primary); }
.hero__text { font-size: 16px; line-height: 24px; text-align: justify; max-width: 648px; margin-bottom: 24px; }
.hero__cta { margin-bottom: 48px; }
.rating { display: flex; align-items: center; gap: 5px; margin-left: 4px; }
.rating__star { width: 22px; height: 25px; border-radius: var(--radius-xs); background: var(--green); display: grid; place-items: center; }
.rating__star svg { width: 12px; height: 12px; fill: var(--white); }
.rating__star--half { background: linear-gradient(to right, var(--green) 50%, var(--grey-500) 50%); }
.rating__text { padding-left: 12px; font-weight: 300; }
.rating__text strong { font-weight: 700; }
.hero__visual { position: relative; display: flex; justify-content: center; margin-top: -70px; }
.hero__visual img { width: 360px; height: 501px; object-fit: contain; }
@media (max-width: 991px) {
  .hero { padding-top: 60px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__title { font-size: 46px; letter-spacing: -1.5px; }
  .hero__text { text-align: left; }
}
@media (max-width: 480px) { .hero__title { font-size: 38px; } .services__tabs { display: grid; grid-template-columns: repeat(2, 96px); justify-content: center; gap: 20px 40px; } }

/* ---------- Services (carrousel à onglets) ---------- */
.services { position: relative; margin-top: 130px; text-align: center; }
.services__title { font-size: 36px; line-height: 1.2; letter-spacing: -2px; }
.services__sub { font-size: 21px; line-height: 1.2; color: var(--primary); text-transform: uppercase; margin-top: 8px; }
.services__tabs { display: flex; justify-content: center; gap: 32px; margin-top: 48px; }
.services__tab { width: 96px; cursor: pointer; opacity: .7; transition: opacity var(--dur) var(--ease); }
.services__tab.is-active { opacity: 1; }
.services__icon { display: grid; place-items: center; width: 96px; height: 96px; padding: 16px; border-radius: var(--radius-md); background: var(--grey-400); transition: background var(--dur) var(--ease); }
.services__tab.is-active .services__icon { background: var(--primary); }
.services__icon img { width: 64px; height: 64px; }
.services__label { display: block; font-size: 14px; line-height: 16px; font-weight: 700; margin-top: 12px; color: var(--ink); }
.services__tab.is-active .services__label { color: var(--primary); }
.service-card {
  --accent: var(--primary);
  position: relative;
  display: grid; grid-template-columns: 1fr 368px; width: 778px; max-width: 100%; height: 300px; margin: 92px auto 0;
  border: 2px solid var(--grey-100); border-radius: var(--radius-md); box-shadow: -10px 0 0 var(--accent);
  text-align: left; overflow: hidden; background: var(--white);
  transition: box-shadow var(--dur) var(--ease);
}
.service-card__body { padding: 48px 32px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.service-card__title { font-size: 24px; line-height: 1.2; font-weight: 700; }
.service-card__text { padding: 24px 0; font-size: 16px; line-height: 24px; }
.service-card__btn { align-self: flex-start; background: var(--accent); }
.service-card__btn:hover { filter: brightness(.92); }
.service-card__pic { background-size: cover; background-position: center; }
@media (max-width: 991px) {
  .services { margin-top: 90px; }
  .services__title { font-size: 30px; letter-spacing: -1px; }
  .services__sub { font-size: 18px; }
  .services__tabs { flex-wrap: wrap; gap: 16px; }
  .accent-card__text br, .offer__claim-text br { display: none; }
  .service-card { grid-template-columns: 1fr; height: auto; width: 100%; margin-top: 40px; }
  .service-card__pic { height: 220px; order: -1; }
  .service-card__body { padding: 28px 24px; }
}

/* ---------- Photo pleine largeur + carte réservation ---------- */
.booking { position: relative; margin-top: 144px; }
.booking__photo { height: 600px; background: url("../images/brand/student-home.webp") center / cover no-repeat; }
.booking__card {
  position: relative; z-index: 2; width: 720px; max-width: calc(100% - 24px); margin: -220px auto 0;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 25px 40px 40px;
}
.booking__title { font-size: 18px; padding: 16px 16px 0; }
.booking__text { padding: 4px 16px 16px; font-size: 16px; line-height: 24px; }
.booking__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 12px; }
.presta { padding: 12px 0 12px 30px; }
.presta + .presta { border-left: 1px solid var(--grey-100); }
.presta__icon { width: 64px; height: 64px; color: var(--primary); }
.presta__title { font-size: 18px; font-weight: 500; margin-top: 12px; }
.presta__text { font-size: 16px; line-height: 24px; margin-top: 8px; max-width: 240px; }
.presta .btn { margin-top: 16px; }
@media (max-width: 767px) {
  .booking { margin-top: 90px; }
  .booking__photo { height: 320px; }
  .booking__card { margin-top: -80px; padding: 20px 20px 28px; }
  .booking__cols { grid-template-columns: 1fr; gap: 8px; }
  .presta { padding-left: 0; }
  .presta + .presta { border-left: 0; border-top: 1px solid var(--grey-100); padding-top: 24px; }
}

/* ---------- Offres / 98 % ---------- */
.offer { position: relative; margin-top: 144px; }
.offer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.offer__stat { padding-left: 266px; }
.offer__stat-number { display: block; font-size: 36px; font-weight: 700; line-height: 54px; }
.offer__stat-text { font-size: 16px; line-height: 24px; max-width: 330px; }
.accent-card {
  --accent: var(--primary);
  background: var(--white); border-radius: var(--radius-md); box-shadow: -10px 0 0 var(--accent), var(--shadow-card);
  padding: 50px 20px; width: 352px; max-width: 100%;
}
.accent-card--red { --accent: var(--red); }
.accent-card__title { font-size: 21px; font-weight: 700; line-height: 1.2; }
.accent-card__text { font-size: 16px; line-height: 24px; margin: 8px 0 48px; }
.offer__card-1 { margin-left: 58px; }
.offer__row--2 { margin-top: -20px; }
.offer__card-2 { width: 334px; margin-left: 261px; padding-right: 50px; }
.offer__claim { padding-left: 56px; }
.offer__claim-title { font-size: 36px; font-weight: 700; line-height: 1.2; max-width: 312px; margin-top: 48px; }
.offer__claim-text { font-size: 16px; line-height: 24px; max-width: 312px; margin-top: 8px; }
@media (max-width: 991px) {
  .offer { margin-top: 90px; }
  .offer__row { grid-template-columns: 1fr; gap: 32px; }
  .offer__stat, .offer__claim { padding-left: 12px; }
  .offer__card-1, .offer__card-2 { margin-left: 12px; }
  .offer__row--2 { margin-top: 32px; }
  .offer__claim-title { margin-top: 0; font-size: 30px; }
}

/* ---------- Venir étudier en France (bloc jaune) ---------- */
.simple { position: relative; margin-top: 144px; }
.simple__grid { display: grid; grid-template-columns: 778px 1fr; align-items: start; }
.simple__box { background: var(--yellow-soft); border-radius: 80px 20px; padding: 100px; position: relative; }
.simple__title { font-size: 28px; font-weight: 500; line-height: 1.2; max-width: 420px; }
.simple__item { display: grid; grid-template-columns: 48px 1fr; gap: 24px; margin-top: 48px; }
.simple__item svg { width: 48px; height: 48px; color: var(--red); }
.simple__item strong { font-family: var(--font-heading); font-weight: 700; display: block; margin-bottom: 4px; }
.simple__item p { font-size: 16px; line-height: 24px; max-width: 530px; }
.simple__item--first p { max-width: 360px; }
.simple .btn--sunset { margin-top: 48px; }
.simple__visual { position: relative; height: 560px; }
.simple__photo { position: absolute; left: 24px; top: 72px; width: 400px; height: 430px; border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: url("../images/brand/guidance.webp") center / cover no-repeat; }
@media (max-width: 1200px) { .simple__grid { grid-template-columns: 1fr; } .simple__visual { height: 420px; } .simple__photo { left: 24px; top: 40px; } }
@media (max-width: 767px) {
  .simple { margin-top: 90px; }
  .simple__box { padding: 48px 24px; border-radius: 40px 16px; }
  .simple__title { font-size: 24px; }
  .simple__item { grid-template-columns: 40px 1fr; gap: 14px; margin-top: 32px; }
  .simple__item svg { width: 40px; height: 40px; }
  .simple__visual { height: 340px; }
  .simple__photo { width: 280px; height: 262px; left: 0; top: 40px; }
}

/* ---------- Témoignages ---------- */
.reviews { position: relative; margin-top: 144px; text-align: center; }
.reviews__title { font-size: 36px; line-height: 1.2; }
.slider__track { display: flex; justify-content: center; gap: 65px; margin-top: 56px; }
.review {
  width: 246px; flex: 0 0 auto; text-align: left; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); border-left: 6px solid var(--primary); padding: 30px 30px 30px 34px;
}
.review--wide { width: 258px; }
.review img { width: 90px; height: 90px; }
.review .stars { margin-top: 16px; }
.review__name { display: block; font-weight: 700; margin-top: 12px; }
.review__text { font-size: 16px; line-height: 16px; margin-top: 4px; }
.slider__dots { display: none; justify-content: center; gap: 10px; margin-top: 24px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-400); }
.slider__dot.is-active { background: var(--primary); }
@media (max-width: 991px) {
  .reviews { margin-top: 90px; }
  .reviews__title { font-size: 30px; }
  .slider__track { justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 16px 24px; scrollbar-width: none; }
  .slider__track::-webkit-scrollbar { display: none; }
  .review { width: 80vw; max-width: 320px; scroll-snap-align: center; }
  .slider__dots { display: flex; }
}

/* ---------- Écoles partenaires ---------- */
.schools { position: relative; margin-top: 140px; text-align: center; }
.schools__title { font-size: 21px; line-height: 1.2; color: var(--primary); text-transform: uppercase; }
.schools__title + .schools__title { margin-top: 8px; }
.marquee { overflow: hidden; margin-top: 60px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 90px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { width: 200px; height: 150px; display: grid; place-items: center; flex: 0 0 auto; }
.marquee__item img { max-width: 200px; max-height: 150px; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
.schools__text { font-size: 16px; line-height: 24px; max-width: 845px; margin: 90px auto 0; }
.schools .btn { margin-top: 48px; }
@media (max-width: 767px) { .schools { margin-top: 90px; } .schools__title { font-size: 18px; } .marquee__track { gap: 40px; } .schools__text { margin-top: 48px; } }

/* ---------- FAQ ---------- */
.faq { position: relative; margin-top: 150px; }
.faq__inner { width: 80%; max-width: 1037px; margin: 0 auto; text-align: center; }
.faq__title { font-size: 36px; line-height: 54px; font-weight: 400; }
.faq__sub { font-size: 21px; line-height: 1.2; font-weight: 700; color: var(--primary); text-transform: uppercase; margin: 8px 0 48px; }
.faq__box { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: 24px; text-align: left; }
.faq__item { border-radius: var(--radius-xl); transition: background var(--dur) var(--ease); }
.faq__item.is-open { background: var(--primary-soft); }
.faq__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px; min-height: 48px; text-align: left; font-family: var(--font-body); font-size: 21px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.faq__head svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--grey-700); transition: transform var(--dur) var(--ease); opacity: 0; }
.faq__item:hover .faq__head svg, .faq__item.is-open .faq__head svg { opacity: 1; }
.faq__item.is-open .faq__head svg { transform: rotate(180deg); }
.faq__body { display: none; padding: 0 24px 24px; }
.faq__item.is-open .faq__body { display: block; }
.faq__body p { font-size: 18px; line-height: 20px; letter-spacing: .25px; color: var(--ink); margin-bottom: 16px; }
.faq__body a { color: var(--primary); text-decoration: underline; }
.faq__extra { display: none; }
.faq__item.is-expanded .faq__extra { display: block; }
.faq__more { display: inline-block; font-size: 18px; font-weight: 600; color: var(--grey-700); text-decoration: underline; letter-spacing: .25px; }
@media (max-width: 767px) {
  .faq { margin-top: 90px; }
  .faq__inner { width: 100%; }
  .faq__title { font-size: 30px; line-height: 1.3; }
  .faq__sub { font-size: 16px; }
  .faq__box { padding: 12px; }
  .faq__head { font-size: 18px; padding: 10px 16px; }
  .faq__body { padding: 0 16px 16px; }
  .faq__body p { font-size: 16px; line-height: 22px; }
}

/* ---------- Besoin d'aide ---------- */
.help { position: relative; margin-top: 150px; }
.help__wrap { width: 900px; max-width: 100%; margin: 0 auto; }
.help__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 310px; min-height: 270px; overflow: hidden; background: var(--yellow-soft); border-radius: var(--radius-lg); }
.help__content { align-self: center; padding: 44px 52px 44px 72px; }
.help__title { font-size: 32px; font-weight: 700; line-height: 1; color: var(--primary-dark); font-family: var(--font-body); }
.help__text { font-size: 16px; color: var(--primary-dark); margin-top: 8px; }
.help .btn { margin-top: 24px; }
.help__img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
@media (max-width: 991px) {
  .help { margin-top: 90px; }
  .help__box { display: block; min-height: 0; }
  .help__content { padding: 40px 24px; }
  .help__img { display: none; }
}
