/* CSS Document */
/* Style du bouton d'ouverture */
/* Style de base hérité des .share-btn (alignement, padding, transition, etc.) */
.share-btn.btn-open-modal {
  background-color: rgba(153,0,0,1); /* Couleur de fond par défaut (similaire aux autres) */
  color: #333;              /* Couleur du texte/icône */
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  gap: 8px; /* Espace entre l'icône et le texte */
}

/* Effet au survol identique aux autres boutons share-btn */
.share-btn.btn-open-modal:hover {
  background-color: rgba(204,0,0,1);
}

/* Arrière-plan semi-transparent (Overlay) */
.modal-newsletter-overlay {
    display: none; /* Masqué par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Ombre d'arrière-plan */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

/* Fenêtre modale */
.modal-newsletter-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 25px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bouton de fermeture (Croix) */
.modal-newsletter-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-newsletter-close:hover {
    color: #333;
}

.modal-newsletter-content h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 20px;
}

.modal-newsletter-content p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.modal-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: #007bff;
}

.modal-btn-submit {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-btn-submit:hover {
    background-color: #0069d9;
}

/* Messages de confirmation / erreur */
.modal-message {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 5px;
    font-size: 13px;
}
.modal-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.modal-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

