/*
 * Page d'accueil publique — Auto-École La Bénédiction
 */

:root {
  --brand-orange: #d9581b;
  --brand-orange-hover: #b94a15;
  --brand-blue: #0d4d8c;
  --brand-blue-deep: #083560;
  --home-ink: #142033;
  --home-muted: #5a6578;
  --home-surface: #f6f8fb;
  --home-font-display: "Syne", sans-serif;
  --home-font-body: "DM Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.home-page {
  font-family: var(--home-font-body);
  color: var(--home-ink);
  background: #fff;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page .home-brand {
  font-family: var(--home-font-display);
}

/* ----- Navbar publique ----- */
.home-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 77, 140, 0.08);
}

.home-nav .nav-link {
  font-weight: 500;
  color: var(--home-ink);
  transition: color 0.2s ease;
}

.home-nav .nav-link:hover {
  color: var(--brand-orange);
}

.btn-brand-blue {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  font-weight: 600;
}

.btn-brand-blue:hover {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
  color: #fff;
}

.btn-brand-orange {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-brand-orange:hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 88, 27, 0.28);
}

.btn-syllabus {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-syllabus:hover {
  background: #fff;
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.btn-syllabus-solid {
  background: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  color: #fff;
  font-weight: 600;
}

.btn-syllabus-solid:hover {
  background: var(--brand-blue-deep);
  color: #fff;
}

/* ----- Hero full-bleed ----- */
.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 53, 96, 0.28) 0%, rgba(8, 53, 96, 0.5) 42%, rgba(8, 53, 96, 0.94) 100%),
    url("../images/hero-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: home-hero-kenburns 18s ease-in-out infinite alternate;
}

.home-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(217, 88, 27, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 30%, rgba(24, 103, 181, 0.35), transparent 65%);
  animation: home-glow 8s ease-in-out infinite alternate;
}

@keyframes home-glow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.home-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
  animation: home-rise 0.9s ease both;
}

.home-hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.home-hero__scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  position: relative;
}

.home-hero__scroll span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: home-scroll-dot 1.6s ease-in-out infinite;
}

@keyframes home-scroll-dot {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes home-hero-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 7rem 0 4.5rem;
}

.home-brand {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: home-rise 0.9s ease both;
}

.home-brand span {
  color: #ffb089;
}

.home-hero__headline {
  font-family: var(--home-font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  max-width: 32rem;
  margin-bottom: 0.75rem;
  opacity: 0.95;
  animation: home-rise 0.9s ease 0.12s both;
}

.home-hero__lead {
  font-size: 1.05rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  animation: home-rise 0.9s ease 0.22s both;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: home-rise 0.9s ease 0.32s both;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Stats strip ----- */
.home-stats {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  color: #fff;
  padding: 1.75rem 0;
}

.home-stats__item {
  text-align: center;
  padding: 0.5rem;
}

.home-stats__value {
  font-family: var(--home-font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffb089;
  line-height: 1.1;
}

.home-stats__label {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ----- Sections communes ----- */
.home-section {
  padding: 5rem 0;
}

.home-section--muted {
  background:
    radial-gradient(ellipse at top right, rgba(13, 77, 140, 0.06), transparent 55%),
    var(--home-surface);
}

.home-section__title {
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.home-section__subtitle {
  color: var(--home-muted);
  margin-bottom: 2.5rem;
}

/* ----- Syllabus band ----- */
.home-syllabus {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(13, 77, 140, 0.96), rgba(217, 88, 27, 0.9)),
    url("../images/carrousel2.jpg") center / cover no-repeat;
  color: #fff;
  padding: 3.5rem 0;
}

.home-syllabus__icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  animation: home-pulse 2.4s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ----- Carousel ----- */
.home-carousel {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 32, 51, 0.12);
}

.home-carousel .carousel-item img {
  height: min(52vh, 480px);
  object-fit: cover;
}

.carousel-caption-modern {
  left: 50%;
  right: auto;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(90%, 640px);
  background: rgba(8, 53, 96, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.carousel-caption-modern h3 {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.home-carousel .carousel-control-prev-icon,
.home-carousel .carousel-control-next-icon {
  width: 2.75rem;
  height: 2.75rem;
  filter: none;
}

.home-carousel .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d9581b'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.home-carousel .carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d9581b'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ----- Features / formations ----- */
.home-feature {
  height: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(13, 77, 140, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 32, 51, 0.08);
}

.home-feature i {
  font-size: 2rem;
  color: var(--brand-orange);
  margin-bottom: 0.85rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

.home-feature:hover i {
  transform: scale(1.08);
}

.home-feature h5 {
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.feature-icon-sm {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.bg-orange { background-color: var(--brand-orange) !important; }
.bg-blue { background-color: var(--brand-blue) !important; }

.home-formation {
  height: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(13, 77, 140, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-formation:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 32, 51, 0.08);
}

.home-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--brand-orange);
  background: #fff;
  border-radius: 0 0.75rem 0.75rem 0;
  font-weight: 600;
  color: var(--brand-orange);
}

/* ----- Témoignages ----- */
.home-quote {
  height: 100%;
  padding: 1.75rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(13, 77, 140, 0.08);
}

.home-quote__stars {
  color: #e6a817;
  margin-bottom: 0.85rem;
}

.home-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 77, 140, 0.08);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ----- CTA ----- */
.home-cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 88, 27, 0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(13, 77, 140, 0.12), transparent 40%),
    var(--home-surface);
  text-align: center;
  padding: 4.5rem 0;
}

/* ----- Publications (galerie au-dessus du footer) ----- */
.home-publications {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse at bottom left, rgba(217, 88, 27, 0.06), transparent 50%),
    #fff;
  border-top: 1px solid rgba(13, 77, 140, 0.06);
}

.home-pub-card {
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(13, 77, 140, 0.08);
  box-shadow: 0 10px 28px rgba(20, 32, 51, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 32, 51, 0.1);
}

.home-pub-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f7;
}

.home-pub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-pub-card:hover .home-pub-card__media img {
  transform: scale(1.05);
}

.home-pub-card__body {
  padding: 0.9rem 1rem 1.1rem;
}

.home-pub-card__title {
  font-family: var(--home-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.home-pub-card__caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--home-muted);
  line-height: 1.4;
}

/* ----- Floating actions ----- */
.floating-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-float {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1.35rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-float:hover {
  transform: scale(1.08);
  color: #fff !important;
}

.btn-float--whatsapp {
  background: #25D366;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.2s ease-in-out infinite;
}

.btn-float--whatsapp:hover {
  background: #1ebe57;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.12); }
}

.btn-float--login { background: var(--brand-orange); }
.btn-float--mail { background: #c44e16; }
.btn-float--phone { background: var(--brand-blue); }

.footer-link--muted {
  opacity: 0.45;
  font-size: 0.9em;
}

.footer-link--muted:hover {
  opacity: 0.9;
}

/* ----- Footer ----- */
.footer-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.footer-social-btn:hover {
  background: var(--brand-orange);
  transform: translateY(-2px);
  color: #fff;
}

/* ----- Reveal ----- */
.reveal-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-element.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .home-hero__content {
    padding: 6rem 0 3rem;
  }

  .floating-contact {
    bottom: 1rem;
    right: 1rem;
  }

  .home-hero__scroll {
    display: none;
  }
}
