p {
  text-align: justify !important;
}

/********************************************/
/* Header */
/********************************************/

.header_courbe {
  position: relative;
  margin-top: -10%;
}

.header_courbe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"%3E%3Cpath d="M0,20 Q50,5 100,10 L100,0 L0,0 Z" fill="%23F7F5F2"/%3E%3C/svg%3E');
  z-index: 5;
  /* opacity: 0.5; */
}

.header_logo img {
  position: relative;
  z-index: 10;
}

/********************************************/
/* Rotation Slogan */
/********************************************/

/* Conteneur principal */
.rotating_slogan {
  display: flex !important;
  align-items: center !important;
  overflow: hidden;
  position: relative;
}

/* Texte fixe "Studio" */
.rotating_fixed p {
  margin: 0 !important;
  font-weight: bold;
}

/* Conteneur des phrases rotatives */
.rotating_chg {
  position: relative !important;
  height: 1.5em !important; /* Ajustez selon la hauteur du texte */
  width: 100%;
}

/* Les phrases rotatives */
.rotating_chg p {
  position: absolute !important;
  left: 0;
  top: -115%;
  margin: 0 !important;
  opacity: 0;
  animation: pushRotate 15s infinite !important;
}

/* Délais pour chaque phrase */
.rotating_chg p:nth-child(1) {
  animation-delay: 0s !important;
}
.rotating_chg p:nth-child(2) {
  animation-delay: 3s !important; /* 15 / 4 */
}
.rotating_chg p:nth-child(3) {
  animation-delay: 6s !important; /* 15 / 2 */
}
.rotating_chg p:nth-child(4) {
  animation-delay: 9s !important; /* 15 * 3 / 4 */
}
.rotating_chg p:nth-child(5) {
  animation-delay: 12s !important; /* Juste avant la boucle */
}

/* Animation keyframes */
@keyframes pushRotate {
  0% {
    opacity: 0;
    transform: translateY(100%); /* Texte en attente hors de la vue */
  }
  10% {
    opacity: 1;
    transform: translateY(0%); /* Texte devient visible */
  }
  20% {
    opacity: 1;
    transform: translateY(0%); /* Texte reste stable un court moment */
  }
  40% {
    opacity: 0;
    transform: translateY(
      -100%
    ); /* Texte commence à partir dès que le suivant arrive */
  }
  100% {
    opacity: 0;
    transform: translateY(-100%); /* Texte complètement sorti */
  }
}

/********************************************/
/* Methodologie */
/********************************************/

.methodo_grid {
  display: flex;
}

.methodo_group {
  position: relative;
}

.methodo_group::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-image: url("/wordpress/wp-content/themes/test2/src/images/fondequipe.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  width: 600px;
  height: 600px;
  opacity: 0.2;
  pointer-events: none;
}

.methodo_btn {
  display: none !important;
}

.methodo_slide1_titre,
.methodo_slide2_titre,
.methodo_slide3_titre {
  padding-left: 20px;
}
.methodo_newsletter {
  position: relative;
  padding-bottom: 100px !important;
  z-index: 10;
}

/********************************************/
/* Newsletter */
/********************************************/

.tnp-email,
.tnp-submit {
  position: relative;
  z-index: 10;
  margin-bottom: 10px; /* Pour éviter tout chevauchement */
}

.methodo_newsletter {
  width: 100%;
}

.tnp-subscription-minimal form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tnp-subscription-minimal input.tnp-email {
  width: 100% !important;
}

.tnp-subscription-minimal input.tnp-submit {
  width: 85% !important;
}

.methodo_newsletter::after {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  width: 100%;
  height: 200%;
  background-image: url("http://localhost/wordpress/wp-content/uploads/2024/11/backnewsletter.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  transform: rotate(270deg);
  z-index: 0;
}

/********************************************/
/* Equipe */
/********************************************/

.equipe_col1 {
  margin-top: -200px !important;
}

.equipe_col2top {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px;
}

.equipe_qsn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 450px;
  transform: scale(0.6);
  text-wrap: nowrap;
  position: relative;
}

.equipe_qsn img.wp-block-cover__image-background {
  width: 135%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

/********************************************/
/* Articles */
/********************************************/

.dernier-article-contenu,
.article_suite {
  position: relative;
  z-index: 10 !important;
}

.articles_maincol {
  height: 700px;
  display: flex;
  flex-direction: row;
}

.truncate_title a,
.truncate_lasttitle a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
}
.truncate_title a {
  -webkit-line-clamp: 3;
  max-height: calc(1.9em * 3);
}

.truncate_lasttitle a {
  -webkit-line-clamp: 2;
  max-height: calc(1.5em * 2);
}

.dernier-article {
  position: relative;
  height: 700px;
}

.dernier-article img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.dernier-article-contenu {
  position: absolute;
  bottom: 0%;
  left: 20%;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  z-index: 2;
  max-width: 20%;
  height: 350px;
  overflow: hidden;
  transform: translate(0%, 0%);
}

.article_2,
.article_4 {
  padding-bottom: 0px !important;
}

.wp-block-read-more.article_readmore:hover {
  background-color: #666666;
  color: #ffffff;
}

.article_courbe {
  position: relative;
  margin-top: -10%;
}

.article_courbe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"%3E%3Cpath d="M0,5 Q50,2 100,15 L100,0 L0,0 Z" fill="%23F7F5F2"/%3E%3C/svg%3E');
  z-index: 5;
  /* opacity: 0.5; */
}

.articles_btn {
  display: none !important;
}

/********************************************/
/* Footer */
/********************************************/
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
  margin-block-end: 0;
}
