/*
Theme Name: CT Chaville By Pink Guava Design
Theme URI: http://pinkguavadesign.com/
Description: CT Chaville Child Theme For Divi - Style Magic Form
Author: Barbara VINET
Author URI: http://pinkguavadesign.com/
Template: Divi
Version: 2.0
*/


/*------------------------------------------------*/
/*------------------------------------------------*/
/*-------------------New design 2024 - Magic Form Style--------------------*/

/* Boutons avec effet lift moderne */
.et_pb_button:hover,
.et_button_no_icon .et_pb_button:hover{
  color: #ffffff !important;
  padding: .3em 1.3em !important;
  transform: translateX(0px) translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(20, 58, 102, 0.3) !important;
}

.et_pb_button,
.et_button_no_icon .et_pb_button{
  color: #ffffff !important;
  background: linear-gradient(135deg, #143a66 0%, #2b70af 100%) !important;
  border-radius: 50px !important;
  padding: .3em 1.3em !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(20, 58, 102, 0.2) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}


/* Menu avec style moderne */
#top-menu > li:nth-child(1) > a:nth-child(1),
.et_mobile_menu li#menu-item-1820 a{
  color: #fff;
  background: linear-gradient(135deg, #d9b451 0%, #f4d88a 100%);
  padding: 12px 25px !important;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(217, 180, 81, 0.3);
}

#top-menu > li:nth-child(1) > a:nth-child(1):hover,
.et_mobile_menu li#menu-item-1820 a:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(217, 180, 81, 0.4);
}


/* Animation de rotation améliorée - Style Magic Form */
.yellow-rotate {
  z-index: -1;
  height: 500px;
  width: 500px;
  position: absolute;
  right: 25%;
  top: 42%;
  transform: translate(20%, -50%);
}

.yellow-rotate-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%,-50%);
  animation: rotate 10s linear infinite;
  width: 100%;
  height: 100%;
}

.yellow-rotate-circle:before {
  content: "";
  display: block;
  height: 30px;
  width: 30px;
  background: linear-gradient(135deg, #d9b451 0%, #f4d88a 100%);
  border-radius: 50%;
  transform-origin: center center;
  transform: translate(-50%,-50%);
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 30px rgba(217, 180, 81, 0.6),
              0 0 60px rgba(217, 180, 81, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

/* Balles animées pour les articles et pages */
.et_pb_post,
.et_pb_section,
article {
  position: relative;
  overflow: hidden;
}

/* Balle animée pour les articles de blog */
.et_pb_post:before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2b70af 0%, #143a66 100%);
  border-radius: 50%;
  top: 20%;
  right: -40px;
  z-index: 0;
  opacity: 0.15;
  animation: floatBall 8s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(43, 112, 175, 0.4);
}

.et_pb_post:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3aaa35 0%, #2d8529 100%);
  border-radius: 50%;
  bottom: 30%;
  left: -30px;
  z-index: 0;
  opacity: 0.15;
  animation: floatBall 10s ease-in-out infinite reverse;
  box-shadow: 0 0 40px rgba(58, 170, 53, 0.4);
}

/* Balles pour les sections */
.et_pb_section:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #d9b451 0%, #f4d88a 100%);
  border-radius: 50%;
  top: 10%;
  right: 5%;
  z-index: 0;
  opacity: 0.1;
  animation: floatBallSlow 15s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(217, 180, 81, 0.3);
}

.et_pb_section:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #2b70af 0%, #143a66 100%);
  border-radius: 50%;
  bottom: 15%;
  left: 8%;
  z-index: 0;
  opacity: 0.1;
  animation: floatBallSlow 12s ease-in-out infinite reverse;
  box-shadow: 0 0 60px rgba(43, 112, 175, 0.3);
}

/* Animation de rotation */
@keyframes rotate {
  from {
    transform: translate(-50%,-50%) rotate(0deg);
  }
  to {
    transform: translate(-50%,-50%) rotate(360deg);
  }
}

/* Animation de pulsation */
@keyframes pulse {
  0%, 100% {
    transform: translate(-50%,-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%,-50%) scale(1.2);
    opacity: 0.8;
  }
}

/* Animation de flottement pour balles */
@keyframes floatBall {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -30px) scale(1.1);
  }
  50% {
    transform: translate(40px, -20px) scale(0.9);
  }
  75% {
    transform: translate(20px, -40px) scale(1.05);
  }
}

@keyframes floatBallSlow {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-30px, 40px) rotate(120deg);
  }
  66% {
    transform: translate(30px, -40px) rotate(240deg);
  }
}


/*-------------------[GENERAL]--------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/

body{
  font-family: "Urbanist", sans-serif;
  font-size: 16px !important;
  color: #1d2f3f !important;
  line-height: 1.7 !important;
}

p {
  padding-bottom: 0em !important;
  line-height: 1.7em !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Urbanist", sans-serif;
  font-weight: 700 !important;
}

h1{
  font-size: 50px !important;
  text-align: left !important;
  color: #fff !important;
  line-height: 1.2em !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

h2{
  color: #2b70af !important;
  font-weight: 700 !important;
  padding: 10px 0px 30px !important;
  font-size: 38px !important;
  position: relative;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #d9b451 0%, transparent 100%);
  border-radius: 2px;
}

h3{
  color: #2b70af !important;
  font-size: 28px !important;
}

h4 {
  font-weight: 700 !important;
  color: #3aaa35 !important;
  font-size: 22px !important;
} 

h5 {
  font-weight: 400 !important;
  color: #2b70af !important;
  font-size: 14px !important;
  line-height: 1.5em !important;
}

h6{
  color: #3aaa35 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* Bandeau home avec effet */
#bandeauhome {
  margin-top: -100px !important;
  position: relative;
  z-index: 10;
}

/*------------------------------------------------*/
/*------------------post image post page-------------------*/
/*------------------------------------------------*/

div#left-area article.et_pb_post.post.type-post.status-publish.format-standard.has-post-thumbnail.hentry div.et_post_meta_wrapper img{
  width: 70% !important;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

div#left-area article.et_pb_post.post.type-post.status-publish.format-standard.has-post-thumbnail.hentry div.et_post_meta_wrapper img:hover{
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Style pour les cartes d'articles */
.et_pb_post {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.et_pb_post:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Liens avec effet moderne */
a {
  transition: all 0.3s ease;
}

a:hover {
  color: #2b70af !important;
}

/* Sections avec padding moderne */
.et_pb_section {
  position: relative;
  overflow: hidden;
}


/*------------------------------------------------*/
/*------------------Responsive--------------------*/
/*------------------------------------------------*/

@media only screen and (min-width: 1600px) {
  .et_pb_section {
    padding: 0px 0 !important;
  }
}

@media only screen and (max-width: 980px) { 
  h1 {
    font-size: 36px !important;
  }
  
  h2 {
    font-size: 28px !important;
  }
  
  .yellow-rotate {
    height: 300px;
    width: 300px;
  }
  
  .yellow-rotate-circle:before {
    height: 20px;
    width: 20px;
  }
  
  /* Réduire les balles animées sur mobile */
  .et_pb_post:before,
  .et_pb_post:after,
  .et_pb_section:before,
  .et_pb_section:after {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .et_pb_button,
  .et_button_no_icon .et_pb_button {
    font-size: 14px !important;
    padding: 0.5em 1.5em !important;
  }
}