/**
 * Flash'Actus Single Post Styles
 * Responsive design for Flash'Actus custom post type
 */

/* Container */
.flash-actus-single {
    width: 100%;
    max-width: 100%;
    background: #F9F5F9;
    padding: 100px 30px 30px 30px;
}

.flash-actus-container {
    max-width: 1240px;
    display: flex;
    gap: 30px;
    padding: 30px 0px;
}

/* Sidebar Column - 1/4 width */
.flash-actus-sidebar-col {
    flex: 0 0 25%;
    max-width: 25%;
}

.flash-actus-meta-box {
    background: #F9F5F9;
    border: 2px solid #8b5a9e;
    border-radius: 15px;
    overflow: hidden;
}

.flash-actus-meta {
    padding: 30px 20px 20px 20px;
    font-size: 13px;
    line-height: 1.6;
    background: #F9F5F9;
}

.flash-actus-illustration {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-actus-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

.flash-actus-meta-item-margin {
    margin: 15px 0;
}

.flash-actus-meta-item:last-child {
    margin-bottom: 0;
}

.flash-actus-meta-item strong {
    font-weight: 600;
    color: #000000;
}

.flash-actus-meta-ref {
    color: #7D4193;
}

.flash-actus-reference-meta {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

/* Main Content Column - 3/4 width */
.flash-actus-main-col {
    flex: 0 0 75%;
    max-width: 75%;
    background-color: #ffffff;
    padding: 40px 5%;
    border-radius: 15px;
    min-height: 500px;
}

/* Title styles moved to tk-plugin.css as .section-title for plugin-wide use */
/* .flash-actus-title and .flash-actus-title-en classes kept in tk-plugin.css for backward compatibility */

/* Content Section */
.flash-actus-content {
    margin-top: 0;
}

.flash-actus-bloc {
    margin-bottom: 40px;
    padding-bottom: 30px;
    position: relative;
}

.flash-actus-bloc::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to left, #F5F1F8, #B47BC9);
}

.flash-actus-bloc:last-child {
    padding-bottom: 0;
}

.flash-actus-bloc:last-child::after {
    display: none;
}

.flash-actus-bloc-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 700;
}

.flash-actus-bloc-title-en {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

.flash-actus-bloc-content {
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
}

.flash-actus-bloc-content p {
    margin: 0 0 15px 0;
}

.flash-actus-bloc-content p:last-child {
    margin-bottom: 0;
}

.flash-actus-bloc-content ul,
.flash-actus-bloc-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.flash-actus-bloc-content li {
    margin-bottom: 8px;
}

.flash-actus-bloc-content strong {
    font-weight: 600;
}

.flash-actus-bloc-content em {
    font-style: italic;
}

.flash-actus-bloc-content a {
    color: #8b5a9e;
    text-decoration: underline;
}

.flash-actus-bloc-content a:hover {
    color: #6d4580;
}

.flash-actus-bloc-source {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-left: 3px solid #8b5a9e;
}


.flash-actus-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.flash-actus-btn .arrow {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.flash-actus-btn:hover .arrow {
    transform: translateX(5px);
}

.flash-actus-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.flash-actus-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Tables in content */
.flash-actus-bloc-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    font-size: 13px;
}

.flash-actus-bloc-content table th {
    background: #8b5a9e;
    color: #fff;
    padding: 10px;
    text-align: left;
    font-weight: 600;
}

.flash-actus-bloc-content table td {
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.flash-actus-bloc-content table tr:nth-child(even) td {
    background: #f9f9f9;
}

/* Responsive Design */

/* iPad Pro and similar (1024px width) */
@media screen and (min-width: 1024px) and (max-width: 1024px) {
    .flash-actus-login-panel {
        bottom: 650px;
    }
}

/* Tablet: 768px - 1023px */
@media screen and (max-width: 1023px) {
    .flash-actus-container {
        gap: 20px;
        padding: 30px 20px;
    }
    
    .flash-actus-sidebar-col {
        flex: 0 0 28%;
        max-width: 28%;
    }
    
    .flash-actus-main-col {
        flex: 0 0 72%;
        max-width: 72%;
    }
    
    /* Title responsive styles moved to tk-plugin.css */
    
    .flash-actus-login-panel {
        padding: 25px 30px;
        bottom: 600px;
    }
    
    .flash-actus-login-panel h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .flash-actus-login-panel p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .flash-actus-footer-container {
        gap: 30px;
    }
}

/* Mobile: up to 767px */
@media screen and (max-width: 767px) {
    .flash-actus-page-title {
        padding: 20px 15px 10px 15px;
    }
    
    .flash-actus-page-title h1 {
        font-size: 28px;
    }
    
    .flash-actus-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .flash-actus-sidebar-col {
        flex: 1 1 auto;
        max-width: 100%;
    }
    
    .flash-actus-meta-box {
        display: flex;
        flex-direction: column;
    }
    
    .flash-actus-meta {
        order: 1;
    }
    
    .flash-actus-illustration {
        order: 2;
    }
    
    .flash-actus-main-col {
        flex: 1 1 auto;
        max-width: 100%;
        min-height: 0;
    }
    
    /* Title responsive styles moved to tk-plugin.css */
    
    .flash-actus-bloc-title {
        font-size: 18px;
    }
    
    .flash-actus-bloc-content {
        font-size: 14px;
    }
    
    
    .flash-actus-login-buttons {
        gap: 15px;
        flex-direction: column;
    }
    
    .flash-actus-btn {
        padding: 14px 40px;
        font-size: 15px;
        width: 100%;
        max-width: 320px;
    }
    
    .flash-actus-footer-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .flash-actus-footer-logo,
    .flash-actus-footer-info,
    .flash-actus-footer-contact,
    .flash-actus-footer-links {
        flex: 1 1 auto;
        width: 100%;
    }
    
    /* Make tables scrollable on mobile */
    .flash-actus-bloc-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Small mobile: up to 480px */
@media screen and (max-width: 480px) {
    .flash-actus-page-title {
        padding: 15px 10px 8px 10px;
    }
    
    .flash-actus-page-title h1 {
        font-size: 24px;
    }
    
    .flash-actus-container {
        padding: 20px 10px;
    }
    
    .flash-actus-illustration {
        min-height: 120px;
    }
    
    /* Title responsive styles moved to tk-plugin.css */
    
    .flash-actus-bloc-title {
        font-size: 16px;
    }
}

/* Print styles */
@media print {
    .flash-actus-footer,
    .flash-actus-thumbnail {
        display: none;
    }
    
    .flash-actus-container {
        max-width: 100%;
    }
    
    .flash-actus-bloc-content {
        page-break-inside: avoid;
    }
}
