
html {
	scroll-behavior : smooth;
}

/* ===================== SECTION CRISTAL ===================== */
.cristal-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
  background-color: transparent;
}

.cristal-container {
  position: relative;
  width: 540px; /* taille de référence desktop */
  height: 540px;
  transform-origin: center center;
}

/* Structure de chaque morceau */
.cristal-piece {
  position: absolute;
  width: auto;
  height: auto;
}

.cristal-piece .inner {
  transition: transform 0.4s ease-in-out;
}

.cristal-piece:hover .inner {
  transform: translateY(-8px) rotate(0.5deg);
  z-index: 10;
}

.cristal-piece img {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  transform: scale(1.35);
  transform-origin: center center;
}

/* Positions EXACTES de ton CSS d'origine */
.gauche { 
  top: 50%; 
  left: 0; 
  transform: translateY(-50%); 
}
.haut { 
  top: 0; 
  left: 50%; 
  transform: translateX(-17%) translateY(-5%); 
}
.droite {
	position: absolute;
  top: 77%; 
  right: 16%; 
  transform: translateY(-90%); 
}
.bas { 
  bottom: 0; 
  left: 50%; 
  transform: translateX(-70%) translateY(5%); 
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: white;
  color: #333;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out;
  width: 180px;
  z-index: 20;
}

.tooltip h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.tooltip p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.tooltip-btn {
  display: inline-block;
  padding: 6px 12px;
  background: #CFD7B2;
  color: #725EA6;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  z-index: 30;
  position: relative;
}

.tooltip.left   { right: 115%; top: 50%; transform: translateY(-50%); }
.tooltip.right  { left: 115%; top: 50%; transform: translateY(-50%); }
.tooltip.top    { bottom: 115%; left: 50%; transform: translateX(-50%); }
.tooltip.bottom { top: 115%; left: 50%; transform: translateX(-50%); }

.cristal-piece:hover .tooltip {
  opacity: 1;
}

.click-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.tooltip-btn {
  position: relative;
  z-index: 15;
}

/* Mobile / tablette : titres visibles en permanence sur le cristal */
@media (max-width: 1024px) {
  .tooltip {
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 8px 15px; /* plus de padding autour du texte */
    border-radius: 12px;
    opacity: 1 !important;
    pointer-events: none;
    width: max-content; /* s'adapte au texte */
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap; /* éviter les retours à la ligne */
  }

@media (max-width: 1024px) {
  .tooltip h3 {
    font-family: 'Nave', sans-serif;
    font-size: clamp(1.3rem, 4vw, 2rem); /* min plus grand + max plus grand */
    color: #667941;
    margin: 0;
    line-height: 1.2;
  }
}

  /* cacher description et bouton */
  .tooltip p,
  .tooltip-btn {
    display: none !important;
  }

  .cristal-piece:hover .tooltip {
    opacity: 1;
  }

  .click-link {
    z-index: 10;
  }
}

/* Empêche le scroll horizontal causé par le cristal */
body {
  overflow-x: hidden;
}

/* Desktop : inchangé */
.cristal-container {
  position: relative;
  width: 540px;
  height: 540px;
  transform-origin: center center;
  margin: 0 auto;
}

/* Mobile / tablette — on réduit mais on garde la structure */
@media (max-width: 1024px) {
  .cristal-container {
    transform: scale(0.85);
  }
}

@media (max-width: 768px) {
  .cristal-container {
    transform: scale(0.7);
  }
}

@media (max-width: 480px) {
  .cristal-container {
    transform: scale(0.55);
  }
}



/* ===================== BANDEAU DÉFILANT ===================== */
.bande-defilante {
  width: 100%;
  height: 12vh;
  background-color: #667941;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee {
  display: flex;
  flex-shrink: 0;
  animation: defilement 60s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  padding-right: 40px;
}

.text {
  color: #F9F8F7;
  font-family: 'Titular Alt', sans-serif;
  font-size: 5vh;
  white-space: nowrap;
  animation: flottement 4s ease-in-out infinite;
}

.separator {
  font-size: 2.5vh;
  opacity: 0.8;
  white-space: nowrap;
  animation: none;
  color: #F9F8F7;
}

@keyframes defilement {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .tooltip.beauty {
    left: 0%;
    transform: translate(80%, -50%); /* -30% pour décaler vers la gauche */
  }
}

@media (max-width: 1024px) {
  .tooltip.reiki {
    top: 60%; /* plus petit pour remonter */
    transform: translate(-50%, -50%);
  }
}

/* ADDITIONAL CHANGES */

@media (max-width: 768px) {
  .titre-mobile-blanc {
    color: white !important;
  }
}

/* Tablette : enlever complètement le padding horizontal */
@media (max-width: 1024px) and (min-width: 769px) {
  .reiki-cover {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile : padding horizontal "tiny" (par ex. 8px) */
@media (max-width: 768px) {
  .reiki-cover {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Cacher sur desktop */
@media (min-width: 1025px) {
  .special-spacer {
    display: none !important;
  }
}

/* Supprimer outline sur clic ou focus */
a:focus, button:focus, img:focus {
  outline: none;
}

.site-logo img {
  transition: filter 0.3s ease, transform 0.1s ease;
}

.site-logo img:hover {
  filter: brightness(0.9); /* assombri au survol */
}

.site-logo img:active {
  filter: brightness(0.8); /* plus sombre au clic */
  transform: scale(0.97);
}

.site-logo a:focus {
  outline: none;
}

/* Effets hover / clic sur les morceaux du cristal */
.cristal-piece .inner img {
  transition: filter 0.18s ease, transform 0.08s ease;
}

.cristal-piece:hover .inner img {
  filter: brightness(1);
}

.cristal-piece:active .inner img {
  filter: brightness(0.90);
  transform: scale(0.9999);
}

/* Supprimer outline disgracieux sur clic/focus des morceaux */
.click-link:focus {
  outline: none;
  box-shadow: 0 0 0 0px rgba(114, 94, 166, 0.14); /* halo léger si navigation clavier */
}

/* Optionnel : curseur pointeur pour toute la zone cliquable */
.click-link {
  cursor: pointer;
}

/* Inverser l'ordre uniquement sur ce bloc Columns */
@media (max-width: 781px) { /* breakpoint natif Gutenberg */
  .wp-block-columns.inverse-mobile {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
  .wp-block-columns.inverse-mobile > .wp-block-column {
    width: 100% !important;       /* force pleine largeur en pile */
    margin-left: 0 !important;    /* nettoie les gaps hérités */
  }
}

@media (max-width: 1024px) {
  /* On supprime le fond blanc du conteneur pour le mettre sur le titre */
  .tooltip {
    background: none !important;
    padding: 0 !important;
  }

  .tooltip h3 {
    display: inline-block; /* Le fond suit juste le texte */
    background: white;
    padding: 8px 15px;
    border-radius: 12px;
    line-height: 1.3; /* Ajuste la hauteur interne */
    white-space: nowrap; /* Empêche les retours à la ligne */
  }
}

@media (max-width: 768px) {
  .colonne-services{
    display: flex;
    flex-direction: column;
  }

  .colonne-services > .wp-block-group {
    width: 100% !important; /* pour forcer pleine largeur */
  }
}

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
  }

  .cristal-section {
    position: relative;
    width: 100%;
    overflow-x: hidden; /* coupe uniquement horizontal */
  }
}


@media (max-width: 1024px) {
  .tooltip {
    max-width: 90vw; /* évite que le texte fasse dépasser */
    overflow-wrap: break-word;
  }
}
/* Mobile : agrandir un peu et corriger positions */
@media (max-width: 480px) {
  .cristal-container {
    transform: scale(0.65) translateX(-5%); /* plus grand que 0.55 */
  }

  /* Réajustement des morceaux pour éviter le chevauchement */
  .gauche { 
    left: 1%;
    transform: translateY(-50%);
  }
  .haut { 
    top: 1%;
    transform: translateX(20%) translateY(-5%);
  }
  .droite { 
    right: -15%;
    transform: translateY(-90%);
  }
  .bas { 
    bottom: 5%;
    transform: translateX(-40%) translateY(5%) scale(1.2);
  }
}

/* Style du bouton */
.scroll-down-button {
    background-color: transparent;  /* Fond transparent */
    border: 0px solid white;  /* Bordure blanche */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;  /* Centre le bouton */
}

/* Ajouter une flèche blanche */
.scroll-down-button::after {
    content: '↓';  /* Flèche */
    font-size: 30px;
    color: white;  /* Flèche blanche */
    display: block;
}

/* Effet au survol */
.scroll-down-button:hover {
    background-color: rgba(255, 255, 255, 0.2);  /* Léger fond blanc transparent au survol */
}

/* Animation de la flèche */
.scroll-down-button:hover::after {
    animation: bounce 1.5s infinite;
}

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

/* Active le scroll fluide */
html {
    scroll-behavior: smooth;
}

/* Texte du message de confirmation après envoi */
.contact-form-submission.submission-success,
.contact-form-submission.submission-success h4,
.contact-form-submission.submission-success p,
.contact-form-submission.submission-success a {
  color: #F9F8F7 !important;
}

/* Inverser l'ordre des blocs dans "hey-friend" uniquement sur mobile */
@media (max-width: 768px) {
  .hey-friend {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
}

/* === Version mobile de ton Cover "cover-leaves" === */
@media (max-width: 768px) {
  .cover-leaves img.wp-block-cover__image-background {
    content: url("https://ambermurphey.com/wp-content/uploads/2025/08/leaves-mobile.jpg");
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 768px) {
  .title-price {
    display: flex;
    flex-direction: column !important;  /* forcer en colonne */
    justify-content: flex-start !important; /* supprime le space-between horizontal */
    align-items: flex-start !important;     /* les colle à gauche (ou center si tu veux centré) */
    gap: 0 !important;                      /* pas d’espace ajouté entre eux */
  }

  .title-price .left-title,
  .title-price .right-title {
    width: 100% !important;  /* chaque titre occupe toute la ligne */
    margin: 0 !important;    /* supprime marges héritées */
    text-align: left;        /* change en center si tu veux centrer */
  }
}

@media (max-width: 768px) {
  .home-cover .wp-block-cover__background {
    background-image: linear-gradient(
      to right,      /* gauche → droite */
      #725EA6 5%,
      #F9F8F7 0%,
      #725EA6 5%
    ) !important;
  }
}

@media (max-width: 768px) {
  .reiki-cover .wp-block-cover__image-background {
    background-image: url('https://ambermurphey.com/wp-content/uploads/2025/08/reiki-mobile.jpg') !important;
  }
}


