/**
 * Styles pour le plugin Accords Mets & Vins
 */

.P10{
    padding: 10%;
}

ul li{
    list-style: none;
}

.accords-mets-vins-container {
    max-width: 800px;
    margin: 0 auto;
}

.recherche-accords-form {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-weight: bold;
}

.recherche-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
}

.recherche-submit {
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.recherche-submit:hover {
    background-color: #7A1F1F;
}

/* Résultats de la recherche */
.resultats-recherche {
    margin-top: 20px;
}

.resultats-recherche h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.resultats-message {
    margin-bottom: 20px;
    font-style: italic;
    color: #666;
}

.vin-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vin-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.vin-item:hover {
    transform: translateY(-5px);
}

.vin-content {
    padding: 25px;
    background-color: #fff;
    border-radius: 20px;
}

.vin-titre {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.vin-titre a {
    color: #000;
    text-decoration: none;
}

.vin-titre a:hover {
    text-decoration: none;
}

.vin-details {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.vin-detail {
    margin-bottom: 5px;
}

.vin-description {
    color: #333;
    margin-bottom: 15px;
}

.vin-voir {
    display: inline-block;
    padding: 8px 15px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.vin-voir:hover {
    background-color: #7A1F1F;
}

/* Styles pour la fenêtre modale - MISE À JOUR */
.vin-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Augmentation significative du z-index pour surpasser tout autre élément */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Assombrir davantage l'arrière-plan */
}

.vin-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 0 auto; /* Modifié pour le centrage vertical */
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5); /* Ombre plus prononcée */
    animation: modalFadeIn 0.4s;
    top: 50%;
    transform: translateY(-50%); /* Centrage vertical parfait */
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50%) scale(0.95);}
    to {opacity: 1; transform: translateY(-50%) scale(1);}
}

.vin-modal-close {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.vin-modal-close:hover,
.vin-modal-close:focus {
    color: black;
    text-decoration: none;
}

.vin-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9; /* Ajout d'un fond légèrement contrasté pour l'en-tête */
    border-radius: 8px 8px 0 0;
}

.vin-modal-header h2 {
    margin: 0;
    padding-right: 30px;
    color: #000;
    text-align: left;
    font-size: 32px;
}

.vin-modal-info {
    padding: 20px 25px;
    text-align: left;
    color: black;
}

.vin-modal-details {
    width: 100%;
}

.vin-modal-detail {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.vin-modal-detail:last-child {
    border-bottom: none;
}

.vin-modal-detail strong {
    display: inline-block;
    width: 100px;
    color: #000;
}

.vin-modal-description {
    padding: 20px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recherche-submit {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .vin-liste {
        grid-template-columns: 1fr;
    }
    
    .vin-modal-content {
        width: 95%;
        margin: 0 auto;
    }
    
    .vin-modal-detail strong {
        width: 120px;
    }
}

/**
 * Styles pour les types de vin
 */

/* Styles communs pour les badges de type de vin */
.vin-type-rouge {
    color: #9B2B2B !important;  /* Rouge */
}

.vin-type-blanc {
    color: #1F5E28 !important;  /* Vert */
}

.vin-type-rose {
    color: #E5A5B5 !important;  /* Rose */
}

.vin-type-effervescent {
    color: #D4AF37 !important;  /* Or */
}

.vin-type-biere {
    color: #FF8C00 !important;  /* Orange */
}

.vin-type-sans-alcool {
    color: #1E90FF !important;  /* Bleu */
}

/* Style pour le titre du vin */
.vin-titre-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
}

.vin-titre-link:hover {
    text-decoration: none;
}

/* Rendre tout l'élément vin-item cliquable */
.vin-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer; /* Ajouter un curseur pointer pour indiquer que c'est cliquable */
}

.vin-item:hover {
    transform: translateY(-5px);
}
/* Ajout d'un style pour le champ de recherche amélioré */
.recherche-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
    transition: border-color 0.3s;
}

.recherche-input:focus {
    border-color: #7A1F1F;
    outline: none;
    box-shadow: 0 0 5px rgba(122, 31, 31, 0.3);
}

/* Ajout d'un petit texte d'aide sous le champ de recherche */
.recherche-aide {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
    display: block;
}


/* Style pour le débogage (mode administrateur) */
.debug-info {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #495057;
    font-family: monospace;
    border-radius: 3px;
}

/* Style amélioré pour les messages de correspondance partielle */
.resultats-partiels {
    background-color: #fff9e6;
    border-left: 3px solid #f9d876;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b5900;
    border-radius: 3px;
}

/* Ajout d'une légère animation de chargement lors de la recherche */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.recherche-en-cours {
    animation: pulse 1.5s infinite;
    padding: 15px;
    text-align: center;
    color: #666;
}

/* Amélioration du style du champ de recherche */
.recherche-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 280px;
    transition: all 0.3s;
}

.recherche-input:focus {
    border-color: #7A1F1F;
    outline: none;
    box-shadow: 0 0 6px rgba(122, 31, 31, 0.3);
}

/* Style pour le texte d'aide */
.recherche-aide {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 15px;
    font-style: italic;
    display: block;
}


/* Styles pour la recherche inversée */
.plats-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.plat-item {
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s;
    background-color: #fff;
}

.plat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plat-titre {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.plat-description {
    margin-bottom: 15px;
    color: #666;
}

.vins-associes h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #555;
}

.vins-associes-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}


/* Remplacer le style existant pour les items de la liste des vins associés */
.vins-associes-liste li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 0; /* Supprimer le padding-left */
    list-style: none;

}

.vins-associes-liste li::before {
    content: "🍷";
    margin-right: 5px; /* Ajouter un petit espace entre l'icône et le texte */
    position: static; /* Changer de absolute à static */
    display: inline-block; /* Afficher en ligne avec le texte */
    font-size: 14px;
}


/* Styles modernes pour le plugin Accords Mets & Vins */
.accords-mets-vins-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Styles pour l'en-tête de recherche */
.accords-recherche-header {
    margin-bottom: 20px;
}

.accords-recherche-header label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.accords-selecteur {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, .5);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.accords-selecteur:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 77, 255, 0.1);
}

/* Styles pour le formulaire de recherche */
.recherche-accords-form {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

@media (min-width: 600px) {
    .form-group {
        flex-direction: row;
        align-items: stretch;
    }
}

.recherche-input {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #e1e1e1;
    border-radius: 30px;
    background-color: #f9f9f9;
    transition: all 0.3s;
}

.recherche-input:focus {
    border-color: #4d4dff;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 77, 255, 0.1);
}

.recherche-submit {
    padding: 0 25px;
    height: 50px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background-color: #4d4dff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.recherche-submit:hover {
    background-color: #3a3ac2;
}

/* Style pour le texte d'aide */
.recherche-aide {
    display: block;
    margin-top: 12px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

/* Gestion de l'affichage des contenus */
.accords-contenu {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.accords-contenu.actif {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation pour le chargement */
.recherche-en-cours {
    text-align: center;
    padding: 20px;
    color: #666;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Style pour le pied de page de la modale et le lien vers la page détaillée */
.vin-modal-footer {
    padding: 15px 20px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.vin-page-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4d4dff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.vin-page-link:hover {
    background-color: #3a3ac2;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Ajout d'une légère animation au survol */
.vin-page-link:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* S'assurer que le lien reste lisible sur fond sombre */
.vin-page-link:visited, .vin-page-link:focus {
    color: white;
    text-decoration: none;
}

/* Styles pour les indicateurs de pertinence des résultats */
.resultats-partiels {
    background-color: #f0f8ff; /* Bleu très clair */
    border-left: 3px solid #4d79ff;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #333;
}

.resultats-partiels strong {
    color: #2c3e50;
}

.plat-trouve {
    background-color: #f1f1f1;
    border-radius: 15px;
    padding: 4px 10px;
    margin-right: 5px;
    display: inline-block;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.plat-trouve:hover {
    background-color: #e1e1e1;
}

.score-tres-eleve {
    color: #e74c3c;
    font-weight: bold;
}

.score-eleve {
    color: #f39c12;
    font-weight: bold;
}

.score-moyen {
    color: #3498db;
    font-weight: normal;
}

.plats-autres {
    font-style: italic;
    color: #777;
    font-size: 12px;
}

/* Animation de highlight pour les mots clés trouvés */
@keyframes highlight {
    0% {background-color: rgba(255, 255, 0, 0.3);}
    50% {background-color: rgba(255, 255, 0, 0.1);}
    100% {background-color: transparent;}
}

/* Amélioration de la boîte de résultats partiels pour les mobiles */
@media (max-width: 600px) {
    .resultats-partiels {
        padding: 10px;
    }
    
    .plat-trouve {
        padding: 3px 8px;
        font-size: 13px;
    }
}

/* Style pour le titre du vin */
.vin-titre-link {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
}

.vin-titre-link:hover {
    text-decoration: none;
}

/* Rendre tout l'élément vin-item cliquable */
.vin-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer; /* Ajouter un curseur pointer pour indiquer que c'est cliquable */
}

.vin-item:hover {
    transform: translateY(-5px);
}