/* ============================================================
   ÉCRIN D'AVENTURES — Home Page Styles
   styles/home.css
   ============================================================ */

/* -----------------------------------------------------------
   HEADER OFFSET (espace pour le header fixe)
   ----------------------------------------------------------- */
body {
  padding-top: 0; /* le hero prend tout l'écran */
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--ea-green);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px; /* offset header */
  border-bottom: var(--border-gold);
}

/* Fond — lignes géométriques décoratives */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 61, 43, 0.75) 0%,
    rgba(26, 61, 43, 0.55) 50%,
    rgba(26, 61, 43, 0.70) 100%
  );
}

.hero__bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    /* Lignes verticales subtiles */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 119px,
      rgba(181, 151, 74, 0.07) 120px
    ),
    /* Lignes horizontales subtiles */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 119px,
      rgba(181, 151, 74, 0.07) 120px
    );
}

/* Dégradé radial central */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(181, 151, 74, 0.06) 0%,
    transparent 70%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  max-width: 900px;
}

.hero__eyebrow {
  margin-bottom: var(--space-6);
}

.hero__title {
  color: var(--ea-white);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.hero__title em {
  color: var(--ea-gold);
  font-style: italic;
}

.hero__subtitle {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-base);
  letter-spacing: var(--ls-base);
  color: var(--ea-gold-pale);
  opacity: 0.85;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__btn-outline {
  color: var(--ea-gold-pale);
  border-color: rgba(181, 151, 74, 0.4);
}
.hero__btn-outline:hover {
  background: rgba(181, 151, 74, 0.1);
  border-color: var(--ea-gold);
  color: var(--ea-gold);
}

/* Flèche scroll */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: var(--ea-gold);
  opacity: 0.5;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* -----------------------------------------------------------
   ANIMATIONS REVEAL
   ----------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-gold),
              transform var(--duration-slow) var(--ease-gold);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.15s; }
[data-reveal-delay="2"] { transition-delay: 0.30s; }
[data-reveal-delay="3"] { transition-delay: 0.50s; }

/* -----------------------------------------------------------
   SECTION GÉNÉRIQUE
   ----------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-8);
}

.section-header .t-eyebrow {
  display: block;
  margin-bottom: var(--space-4);
}

.section-header .t-h2 {
  margin-bottom: var(--space-4);
}

.section-intro {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-base);
  color: var(--ea-charcoal);
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto;
}

/* -----------------------------------------------------------
   UNIVERS — Section 2
   ----------------------------------------------------------- */
.universes {
  padding: var(--space-10) 0;
  background: var(--ea-offwhite);
}

.universes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--border-gold);
  border-right: none;
}

.universe-card {
  border-right: var(--border-gold);
  border-top: var(--border-gold-2);
  background: var(--ea-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--duration-base) var(--ease-gold);
}

.universe-card:hover { background: var(--ea-offwhite); }

/* Photo thumbnail */
.universe-card__photo {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}

.universe-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.7s var(--ease-gold);
  display: block;
}

.universe-card:hover .universe-card__photo img {
  transform: scale(1.05);
}

.universe-card__photo-tag {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-4);
  font-size: 9px;
  color: var(--ea-gold);
  background: rgba(26, 61, 43, 0.85);
  padding: 3px 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* Contenu card */
.universe-card__content-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.universe-card__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-xl);
  color: var(--ea-green);
  line-height: var(--lh-snug);
}

.universe-card__body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
  opacity: 0.75;
  flex: 1;
}

.universe-card__accordion {
  border-top: 1px solid rgba(181, 151, 74, 0.3);
}

.universe-card .accordion-trigger {
  font-size: 9px;
  color: var(--ea-green);
  padding: var(--space-3) 0;
}

.universe-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.universe-card__list li,
.universe-card__list a {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.universe-card__list a:hover {
  color: var(--ea-green);
}

/* -----------------------------------------------------------
   NARRATION — Section 3
   ----------------------------------------------------------- */
.section-narration {
  background: var(--ea-green);
  padding: var(--space-10) 0;
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}

.section-narration .section-header {
  margin-bottom: var(--space-7);
}

.section-narration .separator::before,
.section-narration .separator::after {
  background: rgba(181, 151, 74, 0.4);
}

/* -----------------------------------------------------------
   TÉMOIGNAGES — Section 4
   ----------------------------------------------------------- */
.testimonials {
  padding: var(--space-10) 0;
  background: var(--ea-offwhite);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.testimonial-card {
  padding: var(--space-7) var(--space-6);
  background: var(--ea-white);
  border-top: var(--border-gold-2);
  position: relative;
}

.testimonial-card--center {
  margin-top: var(--space-6);
}

.testimonial-card:hover { background: var(--ea-offwhite); }
.testimonial-card--center:hover { background: var(--ea-cream); }

.testimonial-card__quote-mark {
  font-family: var(--font-editorial);
  font-size: 80px;
  line-height: 0.6;
  color: var(--ea-gold);
  opacity: 0.3;
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  user-select: none;
}

.testimonial-card__text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ea-green);
}

.testimonial-card__role {
  color: var(--ea-charcoal);
  opacity: 0.5;
}

.testimonials__google-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-4);
}

.testimonials__stars {
  color: #f4b400;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonials__rating-text {
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  color: var(--ea-charcoal);
  opacity: 0.65;
  letter-spacing: 0.05em;
}

/* -----------------------------------------------------------
   SHOWCASE SPLIT — Section 4b
   ----------------------------------------------------------- */
.showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}

.showcase-split__photo {
  overflow: hidden;
}

.showcase-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s var(--ease-gold);
}

.showcase-split:hover .showcase-split__photo img {
  transform: scale(1.03);
}

.showcase-split__content {
  background: var(--ea-offwhite);
  padding: var(--space-10) var(--space-9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-5);
}

.showcase-split__content .t-eyebrow {
  color: var(--ea-gold);
}

.showcase-split__content .t-h2 {
  color: var(--ea-green);
}

.showcase-split__content .t-h2 em {
  font-style: italic;
  color: var(--ea-green);
  opacity: 0.75;
}

.showcase-split__text {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
  opacity: 0.75;
  max-width: 460px;
}

.separator--left {
  justify-content: flex-start;
}

/* -----------------------------------------------------------
   B2B — Section 5
   ----------------------------------------------------------- */
.b2b-section {
  background: var(--ea-green);
  padding: var(--space-9) 0;
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}

.b2b-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-9);
}

.b2b-section__content {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.b2b-section__content .t-eyebrow {
  color: var(--ea-gold);
}

.b2b-section__text {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ea-gold-pale);
  opacity: 0.8;
}

.b2b-section__visual {
  flex-shrink: 0;
  width: 380px;
  height: 280px;
  overflow: hidden;
  border: 1px solid rgba(181, 151, 74, 0.3);
}

.b2b-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.7s var(--ease-gold), opacity 0.4s;
}

.b2b-section__visual:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* -----------------------------------------------------------
   CHATBOT
   ----------------------------------------------------------- */
.chatbot-trigger {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 990;
  width: 52px;
  height: 52px;
  background: var(--ea-white);
  color: var(--ea-green);
  border: var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-gold),
              transform var(--duration-fast) var(--ease-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.chatbot-trigger:hover {
  background: var(--ea-offwhite);
  transform: scale(1.05);
}

.chatbot-window {
  position: fixed;
  bottom: calc(var(--space-6) + 64px);
  right: var(--space-6);
  z-index: 991;
  width: 360px;
  max-height: 520px;
  background: var(--ea-offwhite);
  border: var(--border-gold);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.chatbot-window[hidden] { display: none; }

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--ea-cream);
  border-bottom: var(--border-gold);
}

.chatbot-header__identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chatbot-header__name {
  font-size: 9px;
  letter-spacing: var(--ls-widest);
  color: var(--ea-green);
}

.chatbot-header__brand {
  font-size: var(--fs-xs);
  color: var(--ea-gold);
}

.chatbot-close {
  color: var(--ea-charcoal);
  opacity: 0.5;
  transition: opacity var(--duration-fast);
}
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scroll-behavior: smooth;
}

.chatbot-msg {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
}

.chatbot-msg p {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  margin: 0;
}

.chatbot-msg--assistant {
  background: var(--ea-white);
  border-left: 2px solid var(--ea-gold);
  align-self: flex-start;
}

.chatbot-msg--user {
  background: var(--ea-green);
  color: var(--ea-gold-pale);
  align-self: flex-end;
}

.chatbot-msg--user p { color: var(--ea-gold-pale); }

.chatbot-msg__action {
  display: inline-block;
  margin-top: var(--space-2);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--ea-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 151, 74, 0.4);
  transition: border-color var(--duration-fast);
}
.chatbot-msg__action:hover { border-color: var(--ea-gold); }

.chatbot-form {
  display: flex;
  border-top: var(--border-gold);
}

.chatbot-input {
  flex: 1;
  padding: var(--space-4) var(--space-4);
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--ea-charcoal);
}

.chatbot-input::placeholder {
  color: var(--ea-charcoal);
  opacity: 0.4;
}

.chatbot-send {
  padding: var(--space-4) var(--space-4);
  color: var(--ea-gold);
  border-left: var(--border-gold);
  transition: background var(--duration-fast);
}
.chatbot-send:hover { background: var(--ea-cream); }

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .universes__grid {
    grid-template-columns: repeat(2, 1fr);
    border-right: var(--border-gold);
  }
  .universe-card:nth-child(2) { border-right: none; }
  .universe-card:nth-child(4) { border-right: none; }
  .universe-card:nth-child(3),
  .universe-card:nth-child(4) {
    border-top: none;
  }
}

@media (max-width: 900px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .testimonial-card--center { margin-top: 0; }

  .showcase-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .showcase-split__photo { height: 300px; }
  .showcase-split__content {
    padding: var(--space-8) var(--space-6);
  }

  .b2b-section__inner {
    flex-direction: column;
    text-align: center;
  }
  .b2b-section__visual { display: none; }
  .b2b-section__content { align-items: center; }
}

@media (max-width: 600px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero__ctas .btn {
    justify-content: center;
  }
  .universes__grid {
    grid-template-columns: 1fr;
  }
  .universe-card:nth-child(n) {
    border-right: var(--border-gold);
    border-top: var(--border-gold-2);
  }
  .chatbot-window {
    right: var(--space-3);
    left: var(--space-3);
    width: auto;
    bottom: calc(var(--space-6) + 60px);
  }
}

@media (max-width: 480px) {
  .chatbot-trigger {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}
