/*
 Theme Name:   Hello Elementor Enfant
 Theme URI:    https://sssm.mg
 Description:  Thème enfant de Hello Elementor
 Author:       Hervé Estache
 Author URI:   http://herveestache.mg
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  hello-elementor-enfant
*/

body, * {
    font-family: 'Bahnschrift', sans-serif;
}
.blue-text{
    color: #313892;
}
.red-text{
    color: #E41F28;
}

/* Style quand le menu est actif */
a.wpr-menu-item{
    transition: all 0.3s ease-in-out;
}
a.wpr-menu-item.active {
   color: #E41F28 !important;
   transition: all 0.3s ease-in-out;
}
a.wpr-menu-item.active::after {
    content: "";
    display: block;
    width: 100%;
    opacity: 1 !important;
    height: 2px !important;
}
.menu-content-sssm {
    will-change: transform, opacity;
}
.menu-content-sssm.menu-fixed {
    animation: smoothFixed 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: top;
}
@keyframes smoothFixed {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    60% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-content-sssm.menu-fixed .wpr-menu-item,
.menu-content-sssm.menu-fixed .wpr-logo-image {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.menu-content-sssm.menu-fixed .elementor-icon-list-item {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.elementor-element-66d7d2a {
    transition: all 0.3s ease;
}
.elementor-element-6d8c2d5 img {
    transition: all 0.3s ease;
    will-change: transform;
}
.hfe-nav-menu li a {
    transition: all 0.3s ease;
    will-change: transform;
}
.adresse-content {
    transition: 
        opacity 0.6s 0.1s ease-out,
        transform 0.6s ease-out !important;
    will-change: transform, opacity;
}
.menu-fixed + .adresse-content {
    opacity: 0;
    transform: translateY(-30px);
}

.wpcf7 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}
.wpcf7 .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
/* Mobile (par défaut) */
.wpcf7 .col-md-6, 
.wpcf7 .col-md-12 {
    flex: 0 0 100%;
    padding: 0 10px;
    margin-bottom: 15px;
}

/* Labels */
.wpcf7 label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.indication-requis {
    color: red;
}

.indication-requis::before {
    content: '*';
}

/* Inputs */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"], 
.wpcf7 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #FFD917;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

/* Bouton d'envoi */
.wpcf7 input[type="submit"] {
    background-color: #E41F28;
    color: white;
    border: none;
    padding: 10px 50px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease; 
}

.wpcf7 input[type="submit"]:hover {
    transform: scale(1.1); 
}

/* Gestion des erreurs */
.data-error-phone, 
.data-error-mail {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Responsive */
@media screen and (min-width: 768px) {
    .wpcf7 .col-md-6 {
        flex: 0 0 50%;
    }
}

/* Styles spécifiques pour certains champs */
.identification-phone {
    display: none; /* Caché par défaut */
}

/* Placeholder styling */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Validation et erreurs Contact Form 7 */
.wpcf7-not-valid-tip {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
}

.wpcf7-mail-sent-ok {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.wpcf7-mail-sent-ng {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}
/* Tablette (600px à 991px) */
@media screen and (min-width: 600px) and (max-width: 991px) {
    .wpcf7 {
        padding: 20px;
    }

    .wpcf7 .row {
        margin: 0 -15px;
    }

    .wpcf7 .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"], 
    .wpcf7 select,
    .wpcf7 textarea {
        font-size: 15px;
        padding: 12px;
    }
}

/* Desktop (992px et plus) */
@media screen and (min-width: 992px) {
    .wpcf7 {
        padding: 30px;
    }

    .wpcf7 .row {
        margin: 0 -20px;
    }

    .wpcf7 .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"], 
    .wpcf7 select,
    .wpcf7 textarea {
        font-size: 16px;
        padding: 15px;
    }
}

/* Ajustements spécifiques pour très petit écran */
@media screen and (max-width: 375px) {
    .wpcf7 {
        padding: 10px;
    }

    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"], 
    .wpcf7 select,
    .wpcf7 textarea {
        font-size: 13px;
        padding: 8px;
    }

    .wpcf7 label {
        font-size: 14px;
    }
}

/* Corrections de flexbox pour différentes tailles d'écran */
.wpcf7 .row {
    display: flex;
    flex-wrap: wrap;
}

/* Assure que les colonnes s'adaptent correctement */
.wpcf7 .col-md-6 {
    box-sizing: border-box;
}


/* CSS pour transformer la structure de la direction en carrousel sur mobile */
@media screen and (max-width: 767px) {
    .conteneur-direction, .conteneur-services {
      display: flex !important;
      flex-direction: row !important; 
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      scroll-snap-type: x mandatory !important;
      -webkit-overflow-scrolling: touch !important;
      gap: 15px !important;
      padding: 15px 0 !important;
    }
    .conteneur-direction > .e-con.e-child, .conteneur-services > .e-con.e-child{
      /* min-width: 85% !important; */
      scroll-snap-align: center !important;
      flex: 0 0 auto !important;
      margin-right: 0 !important;
    }
    .conteneur-direction::-webkit-scrollbar, .conteneur-services::-webkit-scrollbar {
      height: 6px !important;
    }    
    .conteneur-direction::-webkit-scrollbar-thumb, .conteneur-services::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.2) !important;
      border-radius: 3px !important;
    }
    .conteneur-direction:after, .conteneur-services:after{
      content: "" !important;
      min-width: 15px !important;
    }
  }