/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

.elementor-field-group-category {
  display: none;
}
.elementor-location-header {
  color: white;
  font-family: 'Syne';
}



.elementor .user-container img {
  width: 40px!important;
  height: 40px;
  object-fit: cover;
  border-radius: 100px;
}
.elementor .user-container-2 img {
  width: 60px!important;
  height: 60px;
  object-fit: cover;
  border-radius: 100px;
}

.elementor-field-group-document,
    .elementor-field-group-video {
        display: none;
    }

.grecaptcha-badge {
    visibility: hidden;
}
#toggle { display: none; }

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    color: inherit;
    background-color: inherit;
}

.elementor-kit-5 button:focus,
.elementor-kit-5 input[type="button"]:focus,
.elementor-kit-5 input[type="submit"]:focus,
.elementor-kit-5 .elementor-button:focus {
    background-color: inherit;
}

#bouton_top {
    position: fixed;
    bottom: 75px;
    right: 0;
    z-index: 999;
}

/* Style pour rendre les cases à cocher avec un look iOS */
.elementor-field-type-checkbox .elementor-field-subgroup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.elementor-field-type-checkbox .elementor-field-option {
  position: relative;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Cacher les cases à cocher originales */
.elementor-field-type-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Style pour les labels */
.elementor-field-type-checkbox .elementor-field-option label {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin: 0;
  cursor: pointer;
  padding: 0;
  display: inline-block;
  box-shadow: none;
  min-height: auto;
  background: none;
}

/* Style pour le toggle iOS */
.elementor-field-type-checkbox .ios-toggle {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 25px;
}

.elementor-field-type-checkbox .ios-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e9e9eb;
  border-radius: 34px;
  transition: .4s;
  cursor: pointer;
}

.elementor-field-type-checkbox .ios-slider:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: .4s;
}

.elementor-field-type-checkbox input[type="checkbox"]:checked + label + .ios-toggle .ios-slider {
  background-color: #3243E4;
}

.elementor-field-type-checkbox input[type="checkbox"]:checked + label + .ios-toggle .ios-slider:before {
  transform: translateX(24px);
}

/* Titre des catégories */
.elementor-field-type-checkbox .elementor-field-label {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
  display: block;
}

/* Effet tactile sur mobile */
.elementor-field-type-checkbox .elementor-field-option.active {
  background-color: #f8f8f8;
}

@media (max-width: 480px) {
  .elementor-field-type-checkbox .elementor-field-option {
    padding: 12px 15px;
  }
}

/* Style pour le champ d'upload de fichier avec look iOS */
.elementor-field-type-upload {
  
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
}

/* Style pour le titre du champ */
.elementor-field-type-upload .elementor-field-label {
  font-weight: bold;
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
  display: block;
}

/* Cacher l'input original */
.elementor-upload-field {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

/* Style pour le bouton personnalisé */
.ios-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px !important;
  background-color: #3243e4; /* Bleu iOS */
  color: white !important;
  border-radius: 10px;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  border: none;
  font-size: 16px;
  -webkit-appearance: none;
  text-align: center;
}

.ios-file-button:active {
  transform: scale(0.98);
  background-color: #3243e4;
}
.espace_travail {
  
  border-radius: 100px;
  border: 1px solid white;
  padding: 5Px 13px;
  text-transform: uppercase;
}
.espace_travail span {
  font-size: 12px;
}
/* Style pour le nom du fichier sélectionné */
.file-name-display {
  margin-top: 12px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: Ă8px;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

/* Style pour la prévisualisation d'image */
.image-preview-container {
  margin-top: 15px;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.new-image-preview {
  display: none;
  margin-top: 15px;
  position: relative;
}

.new-image-preview img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.new-image-preview p {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

/* Style pour l'image actuelle */
.current-image-preview {
  margin-top: 15px;
}

.current-image-preview p {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.current-image-preview img {
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Bouton pour supprimer l'image */
.remove-file-button {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: #ff3b30; /* Rouge iOS */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  font-size: 18px;
  line-height: 1;
  z-index: 5;
}
.author_avatar {
  width: 45px;
  height: 45px;
  overflow: hidden;
  border-radius: 100px;;
}
.author_avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.user-container:first-child a {
  border-top: 0!important;
}
.user-container-2:first-child a {
  border-top: 0!important;
}
.elementor-loop-container .type-de-publication-document:first-child .document-item { 
  border-top: 0!important;
}

/* État réduit (scroll vers le bas) */

.collapsed .elementor-button-content-wrapper {
  gap: 0;
  height: 20px;
}
.elementor-button-wrapper.collapsed .elementor-button-text {
  opacity: 0 !important;
  max-width: 0 !important;
}
/* Header avec effet de scroll */
.elementor-location-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: transform 0.3s ease-in-out;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}



.elementor-location-header.header-hidden {
  transform: translateY(-250%);
}

.elementor-location-header.header-visible {
  transform: translateY(0);
}
.btn-add-publi svg {
  height: 15px;;
}
/* Ajustement pour le contenu principal */
body {
  padding-top: 80px; /* Ajustez selon la hauteur de votre header */
}

/* Animation pour le bouton cliqué */
.reaction-btn.reaction-clicked {
  animation: pulseScale 0.4s ease-out;
}
/* Style pour le bouton Commenter */
.elementor-heading-title:contains("Commenter") {
  cursor: pointer;
  transition: color 0.3s ease;
}

.elementor-heading-title:contains("Commenter"):hover {
  color: #3243e4;
}

/* Animation pour l'ouverture/fermeture */
.linkedin-comments-system {
  overflow: hidden;
}

/* Indicateur visuel que le système est actif */
.comments-active .elementor-heading-title {
  color: #3243e4;
  font-weight: bold;
}

@keyframes pulseScale {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
  }
}

/* Animation de fermeture de la modale */
.elementor-popup-modal.closing {
  pointer-events: none;
}

.dialog-widget-content.fadeOutScale {
  animation: fadeOutScale 0.6s ease-out forwards;
}

@keyframes fadeOutScale {
  0% {
      opacity: 1;
      transform: scale(1);
  }
  100% {
      opacity: 0;
      transform: scale(0.95);
  }
}

/* Alternative : Animation de glissement vers le haut */
.dialog-widget-content.slideUpFade {
  animation: slideUpFade 0.5s ease-out forwards;
}

@keyframes slideUpFade {
  0% {
      opacity: 1;
      transform: translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateY(-30px);
  }
}

/* Alternative : Animation de fondu avec flou */
.dialog-widget-content.fadeOutBlur {
  animation: fadeOutBlur 0.6s ease-out forwards;
}

@keyframes fadeOutBlur {
  0% {
      opacity: 1;
      filter: blur(0);
  }
  100% {
      opacity: 0;
      filter: blur(10px);
  }
}

@media (max-width: 768px) {
  body {
      padding-top: 60px; /* Ajustement pour mobile */
  }
}



/* Ajustements pour mobile */
@media (max-width: 480px) {
  .ios-file-button {
    width: 100%;
    max-width: none;
  }

  .image-preview-container {
    max-width: 100%;
  }
  .elementor-location-header .elementor-shortcode {
    font-size: 12px;;
    text-align: right;;
  }
  .date_format {
    font-size: 16px!important;;
  }
  .time_format {
    font-size: 14px!important;;
  }
}