/*
Theme Name: Pastel Theme
Theme URI: https://example.com
Description: Thème enfant WordPress aux couleurs pastel
Author: Alex
Template: twentytwentyfive
Version: 1.0
*/

@import url("../twentytwentyfive/style.css");

:root {
  --color-green-dark: #b89ee8; /*#5f9c79;*/
  --color-green: #88c9a1;
  --color-green-light: #b7e0c7;
  --color-green-xlight: #e5f6ee;
  --color-green-accent: #6fbf92;

  --color-violet-dark: #6a4d8f;
  --color-violet: #9370db;
  --color-violet-light: #00a897; /*#b89ee8;*/
  --color-violet-xlight: #efe6fb;
  --color-violet-accent: #a678e2;

  --color-grayviolet-dark: #625d6e;
  --color-grayviolet: #8a8598;
  --color-grayviolet-light: #00a897; /*#b3afc0;*/
  --color-grayviolet-xlight: #eae7f2;
  --color-grayviolet-accent: #a095b3;

  --color-rose: #e8a9b7;
  --color-yellow: #f7e3af;
  --color-blue: #a9c8e8;



  --wp--style--global--content-size: 1200px;
  /* ou la valeur qui te convient */
  --wp--style--global--wide-size: 1400px;
  /* si ton thème l'utilise */
  --wp-theme-color-one: var(--color-violet-light);
  --wp-theme-color-two: var(--color-violet-light);
  --wp-theme-color-three: var(--color-rose);
  --wp-theme-dark-one: var(--color-dark-green);
  --wp-theme-dark-two: var(--color-violet-dark);
  --wp-theme-light-one: var(--color-green-xlight);
  --wp-theme-light-two: var(--color-violet-xlight);
  --light-grey: #6e6e6e;
  --medium-grey: #414141;
  --dark-grey: #242424;
  --wp--preset--color--contrast: #242424;
  --wp--preset--color--base: #fffcf4;
}

body {
  background-color: #fffcf4;
}

header,
footer {
  color: var(--medium-grey);
}

a {
  color: var(--wp-theme-color-two);
}

/* Espace entre les lettres pour les titres */
h1 {
  color: var(--wp-theme-color-one);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0.5px;
  /* ou 0.02em pour proportionnel */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Espace entre les lettres pour les titres */
.pastel-title {
  background: var(--wp-theme-color-one);
  color: white;
}

/* Styles des icones sur le menu */

.wp-block-navigation .feather {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
  color: var(--wp-theme-color-two);
}

.wp-block-navigation-item__label {
  display: inline-flex;
  align-items: center;
}

.wp-block-navigation-item__content:focus,
.wp-block-navigation-item__content:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


/* Menu hover */
/* Soulignement qui s'étire depuis le centre */
.wp-block-navigation-item__content {
  position: relative;
  display: inline-block;
  /* pour caler l'after à la largeur du texte */
  text-decoration: none;
  color: #fff;
  /* texte blanc sur #c4a2c1 */
  padding: .25rem .25rem;
  transition: color .25s ease;
}

.wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.35em;
  /* un peu sous la ligne de base */
  width: 100%;
  /* >>> centré et plus court que le texte */
  height: 2px;
  background-color: var(--wp-theme-color-one);
  /* vert pastel */
  border-radius: 999px;
  /* bouts arrondis */
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  /* étire depuis le centre */
  transition: transform .28s ease;
}

.wp-block-navigation-item__content:hover::after,
.wp-block-navigation-item__content:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* Garde l’onglet actif souligné */
.current-menu-item>.wp-block-navigation-item__content::after,
.current_page_item>.wp-block-navigation-item__content::after {
  transform: translateX(-50%) scaleX(1);
}

/* Respecte la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {

  .wp-block-navigation-item__content,
  .wp-block-navigation-item__content::after {
    transition: none;
  }
}

/* =======================
   Style général pour tous les boutons
   ======================= */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
input[type="button"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6em 1.2em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
  border-radius: 9999px;
}

/* =======================
   Boutons plein
   ======================= */
.wp-block-button.is-style-fill>.wp-block-button__link:not(.has-text-color, .has-background),
.wp-element-button,
.wpcf7-form button,
.wpcf7-form input[type="submit"],
.mpa-shortcode button{
  color: var(--wp--preset--color--base);
  background-color: var(--wp-theme-color-two);
  border: 2px solid var(--wp-theme-color-two);
}

.wp-block-button.is-style-fill>.wp-block-button__link:not(.has-text-color, .has-background):hover,
.wp-element-button:hover,
.wpcf7-form button:hover,
.wpcf7-form input[type="submit"]:hover,
.mpa-shortcode button:hover{
  background-color: var(--wp-theme-color-one);
  border-color: var(--wp-theme-color-one);
  color: #333;
}

.mpa-time-period-selected{
  background-color: var(--color-violet) !important;
}
/* =======================
   Boutons contour
   ======================= */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color, .has-background) {
  background-color: transparent;
  border: 2px solid var(--medium-grey);
  color: var(--medium-grey);
}

.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color, .has-background):hover {
  background-color: white;
  color: var(--medium-grey);
  box-shadow: inherit;
  border-color: var(--wp-theme-color-one);
}


.wp-block-button__link {
  display: inline-flex;
  /* use flex to control alignment */
  align-items: center;
  /* vertically center content */
  justify-content: center;
  /* horizontally center if needed */
  line-height: 1;
  /* remove extra baseline space */
}

.wp-block-button__link svg {
  display: block;
  /* remove inline baseline spacing */
  height: 1em;
  /* match font size */
  width: 1em;
  /* maintain square */
}

.wp-block-button__link:has(svg) {
  padding-left: 0;
  padding-right: 0;
}


/* =======================
 Index
======================= */

/* Remove title from index */

.page-id-25 .wp-block-post-title {
  display: none;
}

.page-id-25 main {
  margin-top: 0 !important;
}

/* Explorez vos mondes intérieurs */
.h1-explore {
  color: var(--medium-grey);
}

.hypnose-bloc svg,
.dream-bloc svg {
  margin: auto;
  display: block;
  width: 70px;
  height: 70px;
}

.hypnose-bloc svg {
  color: var(--wp-theme-light-two)
}

.dream-bloc svg {
  color: var(--wp-theme-light-one)
}

.hypnose-bloc,
.dream-bloc {
  border-radius: 30px;
  padding: 30px 100px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  /* smooth animation */
  cursor: pointer;
  /* looks interactive */
}

.hypnose-bloc:hover,
.dream-bloc:hover {
  transform: translateY(-5px);
  /* small lift */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  /* soft shadow */
  filter: brightness(1.05);
  /* slightly brighter */
}


.wp-block-column>a {
  color: inherit;
  text-decoration: none;
}

.hypnose-bloc {
  background-color: var(--wp-theme-color-one);
}

.dream-bloc {
  background-color: var(--wp-theme-color-two);
}


/* Inputs, selects, textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.mpa-shortcode input[type="text"],
.mpa-shortcode input[type="email"],
.mpa-shortcode input[type="tel"],
.mpa-shortcode select,
.mpa-shortcode textarea {
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  padding: 0.6em 1em;
  border: 2px solid var(--color-green);
  border-radius: 0.75em;
  background-color: var(--wp--preset--color--base);
  color: #333;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

/* On focus */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.mpa-shortcode input[type="text"]:focus,
.mpa-shortcode input[type="email"]:focus,
.mpa-shortcode input[type="tel"]:focus,
.mpa-shortcode select:focus,
.mpa-shortcode textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(0, 168, 151, 0.25);
}

/* Placeholder color */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder,
.mpa-shortcode input::placeholder,
.mpa-shortcode textarea::placeholder {
  color: #999;
  opacity: 1;
}



@media (max-width: 1180px){
  header .wp-block-buttons{
    display: none;
  }
}

@media (max-width: 1024px) {
  .hypnose-bloc,
  .dream-bloc {
    padding: 20px 10px;
  }

  .hands-hypnose{
    display: none;
  }

}

@media (max-width: 768px) {
  .wp-block-columns>.wp-block-column>*:last-child {
    margin-bottom: 20px !important;
  }

  .wp-block-columns>.wp-block-column>*:first-child {
    margin-top: 20px !important;
  }
  
}

/*
@media (max-width: 600px){
  header .wp-block-buttons{
    display: inline-flex;
  }
}*/

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .desktop-only {
    display: block !important;
  }
}
/* Affiche uniquement sur mobile (moins de 768px de large) */
@media (max-width: 768px) {
  .phone-only {
    display: block !important;
  }
}

/* Cache sur les écrans plus larges */
@media (min-width: 769px) {
  .phone-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mpa-time-wrapper{
    width: 100%;
  }
  .mpa-date-wrapper{
    width: 100%;
  }
  .mpa-date-wrapper .flatpickr-calendar{
    margin: auto !important;
  }
}

/**
Background dynamiquedream machine 
*/

/*
.page-id-29 {
  background: linear-gradient(135deg,
      var(--wp-theme-light-one),
      var(--wp-theme-light-two),
      var(--wp-theme-light-one));
  background-size: 400% 400%;
  animation: dreamy-gradient 30s ease-in-out infinite;
}
*/


@keyframes dreamy-gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}
