
#share-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

#share-modal.visible {
    display: flex;
}

.share-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
}

.share-modal-close {
    float: right;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-share {
  background: var(--ts-btn-color);
  color: var(--ts-color-white);
  font-weight: bold;
  border-radius: 9999px;
  font-size: 1.6rem;
  padding: 1rem 2rem 1rem 3.5rem; /* espace pour l'icône à gauche */
  transition: 0.5s;
  text-decoration: none;
  border: 0 none;
  display: block;
  clear: both;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
  width: fit-content;
}

/* Icône SVG intégrée */
.btn-share::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  background: currentColor;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M503.691 189.836L320.055 6.199c-8.291-8.291-21.745-8.291-30.036 0-8.292 8.291-8.292 21.745 0 30.036L452.764 199.98H21.333C9.551 199.98 0 209.531 0 221.313s9.551 21.333 21.333 21.333h431.431L290.019 475.764c-8.292 8.291-8.292 21.745 0 30.036 8.291 8.291 21.745 8.291 30.036 0L503.69 321.164c8.291-8.291 8.291-21.745.001-30.036z"/></svg>');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="white" d="M503.691 189.836L320.055 6.199c-8.291-8.291-21.745-8.291-30.036 0-8.292 8.291-8.292 21.745 0 30.036L452.764 199.98H21.333C9.551 199.98 0 209.531 0 221.313s9.551 21.333 21.333 21.333h431.431L290.019 475.764c-8.292 8.291-8.292 21.745 0 30.036 8.291 8.291 21.745 8.291 30.036 0L503.69 321.164c8.291-8.291 8.291-21.745.001-30.036z"/></svg>');
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}


/*nouveau*/
/* === MODALE DE PARTAGE === */
.share-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.share-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bouton de fermeture */
.share-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-close:hover,
.share-modal-close:focus {
    color: #000;
    text-decoration: none;
}

/* Titre de la modale */
#share-modal-title {
    margin: 0 0 20px 0;
    font-size: 1.6rem;;
    color: #333;
    text-align: center;
}

/* === BOUTONS DE PARTAGE === */
.share-social,
.share-email,
.share-calendar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Couleurs spécifiques par plateforme */
.share-btn[data-type="copy"]:hover {
    background-color: #666;
}

.share-btn[data-type="whatsapp"]:hover {
    background-color: #25D366;
}

.share-btn[data-type="facebook"]:hover {
    background-color: #1877F2;
}

.share-btn[data-type="twitter"]:hover {
    background-color: #1DA1F2;
}

.share-btn[data-type="linkedin"]:hover {
    background-color: #0A66C2;
}

#mailto-link:hover {
    background-color: #EA4335;
}

#gmail-calendar-link:hover {
    background-color: #4285F4;
}

#outlook-calendar-link:hover {
    background-color: #0078D4;
}

/* Icônes dashicons */
.share-btn .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

/* === BOUTONS DÉCLENCHEURS === */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-trigger-btn:hover {
    background-color: #007cba;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.share-trigger-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* === NOTIFICATIONS === */
.copy-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    z-index: 10001;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .share-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    #share-modal-title {
        font-size: 20px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
    }
    
    .share-btn .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }
}

#social-share, #calendar-links, #email-form{
    position: relative;
    margin: auto;
    width: 400px;
    border: 1px solid red;
    z-index: 1;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;

    /* Ombre douce type pop-in */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

#share-modal.visible #social-share {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.block-close-btn{
    float:right;
    color:red;
    margin-top:-10px;
}