@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* ===== MAIN COURANTE - STYLE TIMELINE ===== */
.fdf-main-courante {
    width: 100%;
}

.fdf-main-courante-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

@media screen and (max-width: 600px) {
    .fdf-main-courante-header {
        white-space: nowrap;
    }

    .fdf-main-courante-etat {
        padding: 5px;
    }

    .fdf-main-courante-signal {
        margin-right: 0;
        padding-left: 5px !important;
    }

    .fdf-main-courante-etat-feu {
        padding-left: 15px !important;
    }
}


.fdf-main-courante-etat {
    flex: 1;
    display: flex;
    background-color: #2F2F2F;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 15px;
    margin-right: 15px;
}

.fdf-main-courante-signal {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-right: 2px solid #ffffff;
    padding-left: 25px;
}



.fdf-main-courante-signal-label {
    font-size: 1em;
    color: #ffffff;
    font-weight: 400;
    font-style: normal;
    display: block;
}

.fdf-main-courante-signal-value {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
    font-style: normal;
    display: block;
}

.fdf-main-courante-etat-feu {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 25px;
}

.fdf-main-courante-etat-feu-label {
    font-size: 1em;
    color: #ffffff;
    font-weight: 400;
    font-style: normal;
    display: block;
}

.fdf-main-courante-etat-feu-value {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
    font-style: normal;
    display: block;
}

@media screen and (max-width: 600px) {
    .fdf-main-courante-signal-label {
        font-size: 0.8em;
    }

    .fdf-main-courante-signal-value {
        font-size: 1em;
    }

    .fdf-main-courante-etat-feu-label {
        font-size: 0.8em;
    }

    .fdf-main-courante-etat-feu-value {
        font-size: 1em;
    }
}

.fdf-main-courante h3 {
    text-align: left;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.fdf-main-courante-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
    display: flex;
    align-items: center;
}

.fdf-main-courante-list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fdf-main-courante-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    white-space: nowrap;
}

.fdf-main-courante-ligne-verticale {
    position:absolute;
    left:66px;
    top:40px;
    bottom:0;
    width:3px;
    background: #2F2F2F;
}

.fdf-last-update {
    font-weight: 400;
    font-style: italic;
    display: block;
    font-size: 12px;
}

.fdf-last-update-box {
    flex: 1;
    text-align: right;
}

.fdf-last-update-label {
    font-size: 12px;
    color: #666;
    font-weight: 700;
    font-style: normal;
    display: block;
}

.refresh-link {
    font-size: 14px !important;
    border: none;
    color: #2F2F2F;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    background-color: transparent;
    font-style: italic;
    margin-left: 10px;
}

.refresh-link::before {
    content: "\f021";
    font-family: "FontAwesome";
    font-size: 0.8em;
    color: #D00000;
    margin-right: 5px;
    font-weight: 400;
    font-style: normal;
}

.fdf-main-courante-item {
    align-items: center;
    position: relative;
    margin-bottom: 10px;
    min-height: 48px;
    animation: slideIn 0.3s ease-out;
    padding: 10px;
    border-radius: 15px;
}

.fdf-main-courante-item.priorite-1 {
    font-weight: 400;
    border: 2px solid #2F2F2F;
    background-color: #FFF;
}
.fdf-main-courante-item.priorite-1 p {
    font-size: 1em;
}

.fdf-main-courante-item.priorite-2 {
    font-weight: 600;
    border: 2px solid #2F2F2F;
    font-size: 1.1em;
    background-color: #FFF;
}

.fdf-main-courante-item.priorite-2 p {
    font-size: 1em;
}

.fdf-main-courante-item.priorite-3 {
    font-weight: 500;
    border: 2px solid #D00000;
    background-color: #FFF;
}

.fdf-main-courante-item.priorite-3 p {
    font-size: 1em;
}

.fdf-main-courante-item.priorite-4 {
    font-weight: 600;
    border: 2px solid #D00000;
    background-color: #FFF;
}

.fdf-main-courante-item.priorite-4 p {
    font-size: 1em;
}

.fdf-main-courante-item.priorite-5 {
    background-color: #D00000;
    color: #fff;
    font-weight: 600;
    border: 2px solid #D00000;
}

.fdf-main-courante-item.priorite-5 p {
    font-size: 1em;
}

.fdf-main-courante-item.priorite-9 {
    background-color: #2F2F2F;
    color: #fff;
    font-weight: 600;
    border: 2px solid #2F2F2F;
}



.fdf-main-courante-item:last-child {
    margin-bottom: 0;
}

.fdf-main-courante-time {
    font-size: 0.8em;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 5px;
}

.fdf-main-courante-puce {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 600px) {
    .fdf-main-courante-puce {
        margin: 0 8px;
    }
}



.fdf-main-courante-action {
    flex: 1;
}


/* Priorités */


.fdf-main-courante-action.priorite-1 p {
    font-weight: 500;
    font-size: 1em;
}


.fdf-main-courante-action.priorite-2 p {
    font-weight: 500;
    font-size: 1em;
}



.fdf-main-courante-action.priorite-3 p {
    font-weight: 500;
    font-size: 1em;
}



.fdf-main-courante-action.priorite-4 p {
    font-weight: 500;
    font-size: 1em;
}


.fdf-main-courante-action.priorite-5 p {
    font-weight: 500;
    font-size: 1em;
}

.fdf-main-courante-action.priorite-5 {
    background-color: #dc3545;
    color: #fff;
}

.fdf-main-courante-action.priorite-9 {
    background-color: #2F2F2F;
    color: #fff;
}



/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ===== ÉDITEUR WYSIWYG ===== */
.fdf-editor-wrapper {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.fdf-editor-wrapper .wp-editor-container {
    border: none !important;
}

.fdf-editor-wrapper .wp-editor-tools {
    border-bottom: 1px solid #ddd !important;
    background: #f9f9f9 !important;
}

.fdf-editor-wrapper .mce-toolbar {
    background: #f9f9f9 !important;
    border: none !important;
}

.fdf-editor-wrapper .mce-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #32373c !important;
}

.fdf-editor-wrapper .mce-btn:hover {
    background: #e0e0e0 !important;
    border: 1px solid #ccc !important;
}

.fdf-editor-wrapper iframe {
    border: none !important;
}

/* Isolation de TinyMCE des styles du thème */
.fdf-admin-interface iframe[id*="fdf_main_courante_message"] {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

/* Styles pour le contenu de l'éditeur TinyMCE */
.mce-content-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #32373c !important;
    background: #fff !important;
    background-color: #fff !important;
    margin: 8px !important;
    padding: 0 !important;
}

.mce-content-body * {
    font-family: inherit !important;
}

.mce-content-body p {
    margin: 0 0 1em 0 !important;
}

.mce-content-body a {
    color: #0073aa !important;
    text-decoration: underline !important;
}

/* ===== EMBEDS ET CARTES DE LIENS ===== */
.fdf-embedded-link {
    display: inline-block !important;
    padding: 4px 8px !important;
    background: #f0f8ff !important;
    border: 1px solid #0073aa !important;
    border-radius: 3px !important;
    color: #0073aa !important;
    text-decoration: none !important;
    font-size: 13px !important;
    margin: 2px !important;
}

.fdf-embedded-link:hover {
    background: #e6f2ff !important;
}

.fdf-link-card {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin: 8px 0 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.fdf-link-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.fdf-link-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    font-size: 0.8em !important;
    font-transform: uppercase !important;
    font-weight: 600 !important;
    color: #666 !important;
    gap: 8px !important;
}


.fdf-link-card-favicon {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
}

.fdf-link-card-favicon img {
    width: 24px !important;
    height: 24px !important;
}

.fdf-link-card-domain {
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 500 !important;
}

.fdf-link-card-content {
    flex: 1 !important;
    margin-left: 0px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: initial !important;
    justify-content: initial !important;
    gap: 8px !important;
    align-items: initial !important;
}

.fdf-link-card-title {
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.fdf-link-card-title a {
    color: #0073aa !important;
    text-decoration: none !important;
}

.fdf-link-card-title a:hover {
    text-decoration: underline !important;
}

.fdf-link-card-image {
    flex: 0 0 auto !important;
}

.fdf-link-card-image img {
    width: 120px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 5px !important;
}

.fdf-embed-placeholder {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 8px 0 !important;
    background: #f7f7f7 !important;
    text-align: center !important;
    display: block !important;
    position: relative !important;
}

.fdf-embed-placeholder-icon {
    margin-bottom: 8px !important;
    opacity: 0.6 !important;
}

.fdf-embed-placeholder-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    color: #1e1e1e !important;
    margin-bottom: 4px !important;
}

.fdf-embed-placeholder-url {
    font-size: 12px !important;
    color: #666 !important;
    word-break: break-all !important;
}



/* Responsive pour l'édition */
@media (max-width: 600px) {
    .fdf-main-courante-add-form {
        padding: 12px;
    }



    .fdf-action-edit-form {
        padding: 10px;
    }
}

/* ===== STYLES FORMULAIRE PUBLIC ET MAIN COURANTE ===== */

/* Formulaire public */
.fdf-public-message-form {
    margin-bottom: 15px;
    background-color: #D00000;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.fdf-public-bouton-title {
   font-weight: 800;
   color: #FFF;
   font-size: 1.4em;
   text-transform: uppercase;
}

.fdf-public-form-text {
    font-weight: 600;
    color: #FFF;
    font-size: 1em;
}

@media screen and (max-width: 600px) {
    .fdf-public-message-form {
        padding: 10px;
    }

    .fdf-public-bouton-title {
        font-size: 1em;
    }

    .fdf-public-form-text {
        font-size: 0.8em;
    }
}

.fdf-public-title:hover {
    background-color: rgba(0, 123, 187, 0.1);
    color: #007bb8;
}



.fdf-public-title:hover .fdf-public-form-toggle {
    color: #007bb8;
}

.fdf-toggle-icon {
    font-size: 0.8em;
    color: #FFF;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 10px;
}

.fdf-public-title:hover .fdf-toggle-icon {
    color: #007bb8;
}

.fdf-public-form-content {
    overflow: hidden;
}

.fdf-public-message-form textarea {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px;
    font-family: inherit;
    resize: vertical;
}

.fdf-public-message-form input[type="file"] {
    margin-bottom: 5px;
}

.fdf-public-message-form .button {
    color: white;
}

.fdf-public-message-form .button:hover {
    background: #005a87;
}

.fdf-accordion-responsabilite {

}

/* Modal pour affichage des images en grand */
#fdf-image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.fdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fdf-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.fdf-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.fdf-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

#fdf-modal-image {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Styles pour les miniatures */
.fdf-main-courante-container .fdf-media-thumbnail {
    max-width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #FFF;
    display: inline-block;
    vertical-align: top;
    margin: 5px;
}

.fdf-main-courante-container .fdf-media-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #007cba;
}

/* Modal vidéo styles */
#fdf-video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#fdf-video-modal .fdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#fdf-video-modal .fdf-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

#fdf-video-modal .fdf-modal-video-content {
    width: 100vw;
    height: 100vh;
}

#fdf-modal-video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: #000;
}

/* Styles pour les vignettes vidéo */
.fdf-video-thumbnail-container {
    display: inline-block;
    vertical-align: top;
    margin: 5px;
    position: relative;
}

.fdf-video-thumbnail {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Fallback si pas de miniature */
    border-radius: 15px;
    border: 2px solid #FFF;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fdf-video-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #007cba;
}

.fdf-video-play-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #333;
    text-shadow: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.fdf-video-thumbnail:hover .fdf-video-play-button {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.fdf-video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

/* Overlay sombre subtil pour améliorer la lisibilité sur les miniatures claires */
.fdf-video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    z-index: 1;
    transition: background 0.2s;
}

.fdf-video-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.1);
}

/* Rétrocompatibilité pour les anciennes vidéos */
.fdf-main-courante-container .fdf-media-video-thumbnail {
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #FFF;
    display: inline-block;
    vertical-align: top;
    margin: 5px;
}

.fdf-main-courante-container .fdf-media-video-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #007cba;
}

/* Responsive */
@media (max-width: 768px) {
    .fdf-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .fdf-modal-close {
        top: -30px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }

    #fdf-video-modal .fdf-modal-video-content {
        width: 100vw;
        height: 100vh;
    }

    /* Responsive pour les vignettes vidéo */
    .fdf-video-thumbnail {
        width: 100px;
        height: 100px;
    }

    .fdf-video-play-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Responsive pour les anciennes vidéos (rétrocompatibilité) */
    .fdf-main-courante-container .fdf-media-video-thumbnail {
        max-width: 150px;
        height: 100px;
    }
}

/* ===== BOUTONS DE FILTRAGE MAIN COURANTE ===== */

.fdf-filter-btn:hover {
    background: #f0f0f0 !important;
    border-color: #999;
}

.fdf-filter-btn.active {
    background-color: #2F2F2F !important;
    color: white !important;
    font-weight: 800;
}

.fdf-filter-btn.active:hover {
    background: #005a87 !important;
    color: white !important;
}

.fdf-main-courante-filters {
    margin-bottom: 15px;
    display: flex;
    gap: 0;
    background-color: #EFEFEF;
    border-radius: 15px;
}

.fdf-filter-btn {
    display: flex;
    flex: 1;
    border: none !important;
    border-radius: 15px !important;
    gap: 0;
    background-color: #EFEFEF !important;
    font-weight: 600;
    color: #2F2F2F !important;
}

/* Responsive pour les filtres */
@media (max-width: 768px) {
    .fdf-filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .fdf-main-courante-filters {
        gap: 0;
    }
}

/* ===== INTERFACE DE MODÉRATION - MÉDIAS ===== */
/* Styles spécifiques pour l'affichage des médias dans l'interface de modération */

.fdf-pending-content .fdf-media-thumbnail,
.fdf-pending-content .fdf-video-thumbnail-container,
.fdf-pending-content .fdf-media-video-thumbnail {
    max-width: 150px;
    height: auto;
    margin: 5px;
    display: inline-block;
    vertical-align: top;
}

.fdf-pending-content .fdf-video-thumbnail-container {
    position: relative;
    cursor: pointer;
}

.fdf-pending-content .fdf-video-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fdf-pending-content .fdf-video-play-button {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.fdf-pending-content .fdf-video-duration {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
    z-index: 2;
}

.fdf-pending-content .fdf-video-thumbnail:hover {
    border-color: #007cba;
    transform: scale(1.02);
}

.fdf-pending-content .fdf-video-thumbnail:hover .fdf-video-play-button {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Responsive pour interface de modération */
@media (max-width: 768px) {
    .fdf-pending-content .fdf-media-thumbnail,
    .fdf-pending-content .fdf-video-thumbnail-container {
        max-width: 100px;
    }

    .fdf-pending-content .fdf-video-thumbnail {
        width: 100px;
        height: 70px;
    }

    .fdf-pending-content .fdf-video-play-button {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

/* ===== Styles pour le signalement d'abus ===== */




.fdf-report-abuse-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

/* Modal de signalement d'abus */
#fdf-report-abuse-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
}

#fdf-report-abuse-modal .fdf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    box-sizing: border-box;
}

#fdf-report-abuse-modal .fdf-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInScale 0.3s ease-out;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#fdf-report-abuse-modal .fdf-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

#fdf-report-abuse-modal .fdf-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

/* Formulaire de signalement d'abus */
#fdf-report-abuse-form {
    font-family: inherit;
}

#fdf-report-abuse-form label {
    font-family: inherit;
    color: #333;
}

#fdf-report-abuse-form select,
#fdf-report-abuse-form textarea,
#fdf-report-abuse-form input[type="email"] {
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#fdf-report-abuse-form select:focus,
#fdf-report-abuse-form textarea:focus,
#fdf-report-abuse-form input[type="email"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
    outline: none;
}

#fdf-report-abuse-form button[type="submit"] {
    transition: all 0.2s ease;
    font-family: inherit;
}

#fdf-report-abuse-form button[type="submit"]:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#fdf-report-abuse-form button[type="submit"]:active {
    transform: translateY(0);
}

#fdf-report-abuse-form button[type="button"] {
    transition: all 0.2s ease;
    font-family: inherit;
}

#fdf-report-abuse-form button[type="button"]:hover {
    background: #5a6268 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Messages de retour */
#fdf-abuse-message div {
    padding: 12px !important;
    border-radius: 6px !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

#fdf-abuse-loading {
    font-family: inherit;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    #fdf-report-abuse-modal .fdf-modal-overlay {
        padding: 10px;
    }

    #fdf-report-abuse-modal .fdf-modal-content {
        max-height: 95vh;
    }

    .fdf-report-abuse-button {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }
}

@media (max-width: 480px) {
    #fdf-report-abuse-modal .fdf-report-abuse-content {
        padding: 20px !important;
    }

    .fdf-report-abuse-button {
        position: static !important;
        margin-top: 10px !important;
        text-align: center !important;
    }

    #fdf-exclusion-responsabilite {
        padding-bottom: 50px !important;
    }
}

/* Aperçu URL / embeds — carte pleine largeur, coins ~20px, type aperçu article. */
.fdf-mc-url-frame {
    max-width: 100%;
    min-height: 0;
    margin-top: 10px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.fdf-mc-url-frame:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.09);
}

.fdf-mc-url-frame > .fdf-mc-link-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.fdf-mc-url-frame > .fdf-mc-link-card:hover {
    border: none;
    box-shadow: none;
}

.fdf-mc-url-frame > .fdf-mc-url-embed {
    display: block;
}

.fdf-mc-url-preview--loading {
    position: relative;
    opacity: 0.75;
}

.fdf-mc-url-preview--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.45),
        transparent
    );
    animation: fdf-mc-url-shimmer 1.1s ease-in-out infinite;
}

@keyframes fdf-mc-url-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.fdf-mc-url-frame__fallback,
.fdf-mc-link-fallback {
    display: block;
    padding: 12px 14px;
    word-break: break-all;
    font-size: 0.95em;
    color: #1a5f9e;
}

.fdf-mc-link-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.fdf-mc-link-card:hover {
    border-color: #cfcfcf;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.fdf-mc-link-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 180px;
    max-height: 320px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.fdf-mc-link-card__media img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fdf-mc-link-card__source {
    background: #EFEFEF;
    padding: 5px 10px;
    min-width: 0;
    border-top: 1px solid #f0f0f0;
}

.fdf-mc-link-card__media:first-child + .fdf-mc-link-card__source {
    border-top: none;
}

.fdf-mc-link-card__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.fdf-mc-link-card__source-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.fdf-mc-link-card__favicon-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.fdf-mc-link-card__favicon-wrap--empty {
    display: none;
}

.fdf-mc-link-card__favicon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.fdf-mc-link-card__domain {
    min-width: 0;
    font-size: 0.65rem;
    line-height: 1.1;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdf-mc-link-card__ext {
    flex-shrink: 0;
    color: #222;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.fdf-mc-link-card__ext svg {
    display: block;
}

.fdf-mc-link-card__title-block {
    background: #fff;
    padding: 0 10px 10px;
    min-width: 0;
}

.fdf-mc-link-card__headline {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.1;
    color: #000;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fdf-mc-url-embed__ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.fdf-mc-url-embed__ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fdf-mc-url-frame .twitter-tweet {
    margin: 0 auto !important;
}

@media (max-width: 480px) {
    .fdf-mc-link-card__media {
        max-height: 240px;
        min-height: 150px;
    }

    .fdf-mc-link-card__media img {
        max-height: 240px;
    }

    .fdf-mc-link-card__source {
        padding: 12px 16px;
    }

    .fdf-mc-link-card__title-block {
        padding: 0 16px 16px;
    }

    .fdf-mc-link-card__headline {
        font-size: 0.9375rem;
    }
}
