/* =====================================================================
   ACCUEIL.CSS : styles de la page d'accueil (index.html) uniquement
   (les cadres, titres, chiffres et boutons viennent de prestations.css)
   ===================================================================== */

/* ----- Bandeau de saison (tout en haut) -----
   S'allume / s'éteint dans l'éditeur visuel : panneau « Page » → « Bandeau de saison ».
   Le texte et le lien se changent en cliquant dessus dans l'éditeur. */
.bandeau-saison {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #c2185b, #810ece);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 20px rgba(83, 10, 96, 0.25);
}

.bandeau-saison p {
  margin: 0;
}

.bandeau-saison a {
  background: #fff;
  color: #1e1b2e;
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  white-space: nowrap;
}

.bandeau-saison a:hover,
.bandeau-saison a:focus-visible {
  color: #810ece;
}

/* ----- Haut de page : nom, accroche, présentation ----- */
.ac-hero {
  text-align: center;
}

.ac-hero h1 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5.4rem);
  line-height: 1;
  color: #1e1b2e;
  margin-bottom: 0.4rem;
}

.ac-accroche {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: #3b3450;
  margin-bottom: 0.8rem;
}

.ac-intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ----- Les deux univers : la carte entière est un lien ----- */
.ac-univers {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 26px;
  text-align: center;
  color: #1e1b2e;
  text-decoration: none;
  border-radius: 20px;
  background: var(--ta-verre);                 /* même "verre dépoli" que les autres blocs */
  -webkit-backdrop-filter: var(--ta-flou);
  backdrop-filter: var(--ta-flou);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Arrivée sur la page : les cartes "s'ouvrent" (gauche puis droite), comme l'ancien accueil */
.ac-artistique {
  animation: ac-ouverture 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  transform-origin: 0% 50%;
}

.ac-bien-etre {
  animation: ac-ouverture 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
  transform-origin: 100% 50%;
}

@keyframes ac-ouverture {
  from { opacity: 0; transform: scaleX(0.3); }
  to { opacity: 1; transform: none; }
}

/* Survol : la carte se soulève */
.ac-univers:hover,
.ac-univers:focus-visible {
  color: #1e1b2e;
  transform: translateY(-6px);
  box-shadow: 0 12px 34px rgba(83, 10, 96, 0.25);
}

/* Le grand rond, avec sa bordure en dégradé qui se remplit au survol (comme l'ancien accueil) */
.ac-rond {
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  padding: 8px;
  background-size: 250%;
  background-position: 100% 100%;
  transition: background-position 0.5s ease, transform 0.4s ease;
}

.ac-artistique .ac-rond {
  background-image: linear-gradient(135deg, red, blue 50%, transparent 50%);
}

.ac-bien-etre .ac-rond {
  background-image: linear-gradient(135deg, rgb(0, 225, 255), rgb(217, 255, 0) 50%, transparent 50%);
}

.ac-univers:hover .ac-rond,
.ac-univers:focus-visible .ac-rond {
  background-position: 0% 0%;
  transform: scale(1.04);
}

.ac-univers h2 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin: 0;
  transition: color 0.3s ease;
}

.ac-artistique:hover h2 { color: #810ece; }
.ac-bien-etre:hover h2 { color: #0b6f78; }

.ac-univers p {
  margin: 0;
  max-width: 440px;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Ce qu'on trouve dans chaque partie */
.ac-pastilles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ac-pastilles li {
  background: #fff;
  border: 2px solid #1e1b2e;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.ac-bien-etre .ac-pastilles li {
  border-color: #0b6f78;
  color: #0b6f78;
}

/* Petite ligne "Découvrir… →" qui montre que la carte est cliquable */
.ac-indice {
  margin-top: auto;
  font-weight: 700;
  color: #5a0a96;
}

.ac-bien-etre .ac-indice {
  color: #0b6f78;
}

/* Personnes qui ont demandé "moins d'animations" dans leur téléphone / ordinateur */
@media (prefers-reduced-motion: reduce) {
  .ac-artistique,
  .ac-bien-etre {
    animation: none;
  }
}

/* ----- Qui est Marie ? ----- */
.ac-marie {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}

.ac-portrait {
  width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 6px 5px 1px 0 rgba(83, 10, 96, 0.6);
}

.ac-chiffres {
  margin-top: 6px;
}

@media (max-width: 767.98px) {
  .ac-marie {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ac-portrait {
    width: 190px;
  }
}

/* ----- Aperçu de la galerie : 6 vignettes (3 par ligne sur téléphone) ----- */
.ac-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.ac-entete a {
  font-weight: 700;
  color: #5a0a96;
}

.ac-bande {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* photos immobiles (éditeur) : 2 lignes de 5 */
  gap: 10px;
}

.ac-bande img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 3px 3px 1px 0 rgba(83, 10, 96, 0.45);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.ac-bande a:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

@media (max-width: 767.98px) {
  .ac-bande {
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
  }
}

/* ----- Bandeau qui défile tout seul (JS/defile.js) -----
   Sans JavaScript, dans l'éditeur ou en « moins d'animations », les photos restent
   en grille immobile (règles juste au-dessus). */
.ac-bande.defile-actif {
  display: block;
  overflow: hidden;
  padding: 8px 0 10px;          /* place pour l'ombre et le petit zoom au survol */
  margin: -8px 0 -10px;
  /* les bords gauche et droit s'estompent doucement */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.defile-piste {
  --ecart: 10px;
  display: flex;
  gap: var(--ecart);
  width: max-content;
  /* VITESSE : elle se règle dans l'éditeur (Lent / Normal / Rapide / Arrêter).
     --duree (durée d'un tour complet) est calculée par JS/defile.js selon le nombre de photos. */
  animation: ac-defile var(--duree, 65s) linear infinite;
}

.defile-piste > a {
  flex: none;
  width: 200px;                 /* TAILLE des photos sur ordinateur */
}

/* la souris sur le bandeau : on s'arrête (seulement avec une vraie souris :
   sur téléphone, le doigt laisse un « survol » collé qui bloquait le bandeau au retour sur la page) */
@media (hover: hover) and (pointer: fine) {
  .ac-bande.defile-actif:hover .defile-piste {
    animation-play-state: paused;
  }
}

/* la touche Tab sur une photo (clavier) : on s'arrête aussi.
   :focus-visible = seulement au clavier, pas après un clic ou un toucher */
.ac-bande.defile-actif .defile-piste:has(a:focus-visible) {
  animation-play-state: paused;
}

@keyframes ac-defile {
  to { transform: translateX(calc(-50% - var(--ecart) / 2)); }
}

@media (max-width: 767.98px) {
  .defile-piste {
    --ecart: 7px;
    animation-duration: calc(var(--duree, 65s) * 0.77);   /* photos plus petites : tour un peu plus court */
  }

  .defile-piste > a {
    width: 130px;               /* TAILLE des photos sur téléphone */
  }
}
