/*
Theme Name: Hello Child
Template: hello-elementor
Version: 1.0
*/

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'ACaslonPro';
  src: url('fonts/ACaslonPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'ACaslonPro';
  src: url('fonts/ACaslonPro-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'ACaslonPro';
  src: url('fonts/ACaslonPro-SemiboldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
}

/* Appliquer les polices */
body, p {
  font-family: 'Poppins' !important;
}

h1, h2, h3, blockquote {
  font-family: 'ACaslonPro' !important;
}

.titre-poppins h1, .titre-poppins h2, .titre-poppins h3, .titre-poppins h4, .titre-poppins h4{
  font-family: 'Poppins' !important;
}

/* form */



.cf7-submit {
    background-color: #D8C495 !important;
    font-family: "Poppins", Sans-serif!important;
    font-weight: 200!important;
    text-transform: uppercase!important;
    border-radius: 0px 0px 0px 0px!important;
    padding: 10px 30px 10px 30px!important;
    color: #ffffff !important;
    border: none !important;
}
.wpcf7-form input.cf7-field,
.wpcf7-form textarea.cf7-field{
    background: none;
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: solid 1px white;
    border-radius: 0;
}

label {
  color: #ffffff !important;
  font-family: "Poppins", Sans-serif!important;
  font-weight: 200 !important;
}

textarea[name="your-message"] {
  width: 100%; /* ou 300px, ou 80%, etc. */
  max-width: 100%;
  box-sizing: border-box;
}


/* widget projets */

.projets-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;

    /* force l’élément à s'étendre correctement */
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 40px; /* ou plus, pour aérer */
}

.projet-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}


.elementor-element-8b9f23b, .elementor-element-e846eab {
    display: block;
    width: 100%;
    height: auto !important;
    overflow: visible;
    position: relative;
}

/* Responsive mobile */
@media screen and (max-width: 767px) {
    .projets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* slider */

.temoignages-slider-container {
    width: 100%;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.swiper-slide {
    background: #ffffff;
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 0; /* plus de border-radius */
}

.swiper-wrapper {
    align-items: stretch; /* toutes les slides alignées sur la même hauteur */
}

.swiper-slide blockquote,
.swiper-slide p {
    font-family: 'Poppins', sans-serif !important;
    margin-bottom: 1em;
}

.swiper-slide p {
    font-weight: 800;
}

.swiper-button-prev,
.swiper-button-next {
    color: #ffffff;
    background: transparent;
    border: none;
    font-size: 24px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    color: #ffffff;
}
.swiper-button-prev {
    left: -40px; /* ajustable */
    background-color: #495B5A;
    padding: 30px;
    border-radius: 100px;
}

.swiper-button-next {
    right: -40px; /* ajustable */
    background-color: #495B5A;
    padding: 30px;
    border-radius: 100px;
}

/* overlay projets */

.projet-item {
    position: relative;
    overflow: hidden;
}

.projet-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* voile noir semi-transparent */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.projet-item:hover .overlay {
    opacity: 1;
}

.projet-item .titre-projet {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    padding: 0 10px;
}
