/**
 * Styles pour la modal d'ajout à l'écran d'accueil
 */

.add-to-home-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.add-to-home-modal.visible {
    opacity: 1;
    visibility: visible;
}

.add-to-home-modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 90%;
    width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.add-to-home-modal.visible .add-to-home-modal-content {
    transform: translateY(0);
}

.add-to-home-modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-home-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.add-to-home-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.add-to-home-modal-body {
    padding: 20px 15px;
}

.add-to-home-modal-body p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.add-to-home-modal-body ol {
    margin: 0;
    padding-left: 20px;
}

.add-to-home-modal-body li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.add-to-home-modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.add-to-home-modal-dismiss,
.add-to-home-modal-ok {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.add-to-home-modal-dismiss {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.add-to-home-modal-ok {
    background-color: #b4db49;
    border: 1px solid #a6cc3c;
    color: #fff;
}

.ios-share-icon {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

/* Styles spécifiques pour les petits écrans */
@media (max-width: 480px) {
    .add-to-home-modal-content {
        width: 95%;
    }
    
    .add-to-home-modal-header h3 {
        font-size: 16px;
    }
    
    .add-to-home-modal-body {
        padding: 15px 12px;
    }
    
    .add-to-home-modal-footer {
        padding: 12px;
    }
}
