/* Styles pour le contenu article provenant de la BDD */
.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content a {
    color: #4096ee;
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #2563eb;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.article-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.article-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content em {
    font-style: italic;
}

.article-content blockquote {
    border-left: 4px solid #4096ee;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

/* Masquer scrollbar sur mobile pour la section "Plus d'infos" */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


/* =====================================================
   Vidéos Dailymotion — Gestion RGPD
   ===================================================== */

/* Placeholder 16:9 — réserve l'espace dès le rendu pour éviter le CLS */
.dm-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    background: #e5e5e5;
}

/* Shimmer de fond */
.dm-embed::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.6) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: dm-shimmer 2s ease-in-out infinite;
}

/* Icône play + texte centré */
.dm-embed::after {
    content: '▶  Vidéo en chargement…';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.85rem;
    font-family: inherit;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes dm-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}


/* Wrapper 16:9 pour l'iframe une fois chargée */
.dm-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    background: #000;
}

.dm-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Bloc consent wall */
.dm-consent-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    background: #e5e5e5;
    border-radius: 0.5rem;
    text-align: center;
    color: #374151;
    min-height: 200px;
}

.dm-consent-wall__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: rgba(0, 0, 0, 0.25);
}

.dm-consent-wall__icon svg {
    width: 100%;
    height: 100%;
}

.dm-consent-wall__text {
    font-size: 0.82rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.5);
    max-width: 480px;
    margin: 0;
}

.dm-consent-wall__btn {
    display: inline-block;
    padding: 0.5rem 1.4rem;
    background: #374151;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.dm-consent-wall__btn:hover {
    background: #111827;
}

.dm-consent-wall__btn:active {
    transform: scale(0.97);
}

