/**
 * Styles pour le widget ACF Taxonomy Fields
 */

/* Notice pour l'éditeur */
.acf-taxonomy-widget-notice {
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    color: #646970;
    font-size: 14px;
    text-align: center;
}

/* Container pour le texte */
.acf-taxonomy-text {
    word-wrap: break-word;
    line-height: 1.6;
}

/* Container pour les images */
.acf-taxonomy-image {
    display: block;
}

.acf-taxonomy-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Styles spéciaux pour le contenu WYSIWYG */
.acf-taxonomy-wysiwyg {
    /* Reset des marges par défaut */
}

.acf-taxonomy-wysiwyg > *:first-child {
    margin-top: 0 !important;
}

.acf-taxonomy-wysiwyg > *:last-child {
    margin-bottom: 0 !important;
}

.acf-taxonomy-wysiwyg h1,
.acf-taxonomy-wysiwyg h2,
.acf-taxonomy-wysiwyg h3,
.acf-taxonomy-wysiwyg h4,
.acf-taxonomy-wysiwyg h5,
.acf-taxonomy-wysiwyg h6 {
    margin-top: 0.8em;
    margin-bottom: 0.4em;
    line-height: 1.3;
}

.acf-taxonomy-wysiwyg h1:first-child,
.acf-taxonomy-wysiwyg h2:first-child,
.acf-taxonomy-wysiwyg h3:first-child,
.acf-taxonomy-wysiwyg h4:first-child,
.acf-taxonomy-wysiwyg h5:first-child,
.acf-taxonomy-wysiwyg h6:first-child {
    margin-top: 0;
}

.acf-taxonomy-wysiwyg p {
    margin: 0 0 0.8em 0;
    line-height: 1.6;
}

.acf-taxonomy-wysiwyg p:last-child {
    margin-bottom: 0;
}

.acf-taxonomy-wysiwyg ul,
.acf-taxonomy-wysiwyg ol {
    margin: 0 0 0.8em 0;
    padding-left: 1.5em;
}

.acf-taxonomy-wysiwyg li {
    margin-bottom: 0.3em;
    line-height: 1.5;
}

.acf-taxonomy-wysiwyg li:last-child {
    margin-bottom: 0;
}

.acf-taxonomy-wysiwyg blockquote {
    margin: 0.8em 0;
    padding: 1em;
    border-left: 4px solid #ddd;
    background: #f9f9f9;
}

.acf-taxonomy-wysiwyg blockquote:first-child {
    margin-top: 0;
}

.acf-taxonomy-wysiwyg blockquote:last-child {
    margin-bottom: 0;
}

.acf-taxonomy-wysiwyg a {
    color: #0073aa;
    text-decoration: underline;
}

.acf-taxonomy-wysiwyg a:hover {
    color: #005177;
}

.acf-taxonomy-wysiwyg img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5em 0;
}

.acf-taxonomy-wysiwyg img:first-child {
    margin-top: 0;
}

.acf-taxonomy-wysiwyg img:last-child {
    margin-bottom: 0;
}

/* Espacement entre les différents éléments */
.acf-taxonomy-wysiwyg > * + * {
    margin-top: 0.8em;
}

.acf-taxonomy-wysiwyg > h1 + *,
.acf-taxonomy-wysiwyg > h2 + *,
.acf-taxonomy-wysiwyg > h3 + *,
.acf-taxonomy-wysiwyg > h4 + *,
.acf-taxonomy-wysiwyg > h5 + *,
.acf-taxonomy-wysiwyg > h6 + * {
    margin-top: 0.5em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .acf-taxonomy-text {
        font-size: 14px;
    }
    
    .acf-taxonomy-wysiwyg {
        font-size: 14px;
    }
} 