/* RESET ET STYLES DE BASE */
:root {
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --military-green: #2E8B57;
    --text-dark: #212529;
    --text-light: #6c757d;
    --primary-light: #e8f5e9;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER STYLES (reprise du style principal) */


/* MAIN CONTENT */
.legal-container {
    padding: 60px 0;
    min-height: calc(100vh - 400px);
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.legal-header h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.legal-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--military-green);
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* Navigation tabs */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.nav-btn {
    padding: 15px 30px;
    background-color: var(--light-gray);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    min-width: 250px;
}

.nav-btn:hover {
    background-color: var(--medium-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.nav-btn.active {
    background-color: var(--military-green);
    color: white;
    border-color: var(--military-green);
    box-shadow: var(--shadow-medium);
}

/* Sections légales */
.legal-content {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.legal-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.legal-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    font-size: 14px;
}

/* Summary */
.summary {
    background-color: var(--primary-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid var(--military-green);
}

.summary h3 {
    color: var(--military-green);
    margin-bottom: 10px;
    font-size: 20px;
}

/* Preview cards */
.preview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.preview-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
}

.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.preview-card h3 {
    color: var(--military-green);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-card h3::before {
    content: '•';
    color: var(--military-green);
    font-size: 24px;
}

.preview-card ul {
    margin-left: 20px;
    margin-top: 10px;
}

.preview-card li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Full content */
.full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.full-content.expanded {
    max-height: 800px;
    overflow-y: auto;
    padding: 30px;
}

.full-content.loaded {
    animation: fadeIn 0.5s ease-out;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

.pdf-content {
    line-height: 1.8;
}

.pdf-content h3 {
    color: var(--military-green);
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.pdf-content h4 {
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.pdf-content p {
    margin-bottom: 15px;
}

.pdf-content ul, .pdf-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.pdf-content li {
    margin-bottom: 10px;
}

/* Document actions */
.document-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.view-more {
    min-width: 200px;
}

.view-more .icon {
    margin-left: 8px;
    transition: transform 0.3s;
}

.view-more.active .icon {
    transform: rotate(180deg);
}

/* Contact section */
.contact-section {
    margin-top: 60px;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 10px;
    text-align: center;
}

.contact-section h3 {
    color: var(--military-green);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info {
    margin-top: 20px;
    text-align: left;
    max-width: 500px;
    margin: 20px auto 0;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info strong {
    color: var(--text-dark);
    min-width: 100px;
}

/* FOOTER */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.legal-link {
    cursor: pointer;
}

.legal-link.active {
    color: var(--military-green) !important;
    font-weight: bold;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    padding: 12px 20px;
    background-color: #495057;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
}

.download-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .legal-header h1 {
        font-size: 36px;
    }
    
    .nav-btn {
        min-width: 200px;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body,html{
        overflow-x: hidden;
    }
    
    .document-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .legal-header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .full-content.expanded {
        padding: 20px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-info p {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #121212;
        --light-gray: #1e1e1e;
        --medium-gray: #2d2d2d;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --border-color: #3d3d3d;
        --primary-light: #1a3c2e;
    }
    
    .preview-card,
    .full-content,
    .contact-info {
        background-color: var(--medium-gray);
        color: var(--text-dark);
    }
    
    .summary {
        background-color: var(--primary-light);
    }
}
/* Ajoutez ces styles à votre fichier pol_and_conf.css */

/* Conteneur d'affichage PDF */
.pdf-display-container {
    margin: 40px 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pdf-viewer {
    width: 100%;
    height: 600px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.pdf-error i {
    font-size: 64px;
    color: var(--military-green);
    margin-bottom: 20px;
    opacity: 0.7;
}

.pdf-error h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 24px;
}

/* Contrôles PDF */
.pdf-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}

.pdf-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    min-width: auto;
}

.pdf-download {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-download .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

.pdf-info {
    width: 100%;
    padding: 15px 20px;
    background: rgba(46, 139, 87, 0.1);
    border-top: 1px solid rgba(46, 139, 87, 0.2);
    color: var(--military-green);
    font-size: 14px;
}

/* Mode plein écran */
.pdf-viewer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--white);
}

/* Supprimez les anciens styles inutiles */
.full-content,
.loading,
.pdf-content {
    display: none;
}

.document-actions {
    display: none;
}

/* Ajustements responsive pour les PDF */
@media (max-width: 992px) {
    .pdf-viewer {
        height: 500px;
    }
    
    .pdf-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pdf-actions,
    .pdf-download {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pdf-viewer {
        height: 400px;
    }
    
    .pdf-action-btn,
    .pdf-download .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .pdf-viewer {
        height: 300px;
    }
    
    .pdf-actions,
    .pdf-download {
        flex-direction: column;
    }
    
    .pdf-action-btn,
    .pdf-download .btn {
        width: 100%;
    }
}