:root {
    --main-color: #282c3b;  
    --hover-color: #464c5f;  ; 
    --button-color: #242835; 
    
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;

    display: flex;
    flex-direction: column;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
    margin: 0;
}
main {
    flex: 1;  
    background-color: #f0f0f0;
    justify-content: center; 
    align-items: center;      
    padding:30px;
}
.main-container {
    position:unset;
    height:unset;
}

.legal-section {
    text-align: justify;
}
.header-nav {
    margin-left: auto; 
}


.faq-section {
    width: 600px;               
    margin: 0 auto;             
    padding: 20px;
    text-align: justify;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
    border-radius: 20px;
    background-color: white;  
}
.contact {
    width: 600px;          
    margin: 0 auto;            
    padding: 20px;
    text-align: justify;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
    border-radius: 20px;
    background-color: white;  
}

.legal-section {
    width: 600px;               
    margin: 0 auto;             
    padding: 20px;
    text-align: justify;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  
    border-radius: 20px;
    background-color: white; 
}


.faq-section h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}


.contact-section h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}


.legal-section h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}


.faq-item {
    margin-bottom: 15px;
}

.faq-item h2 {
    font-size: 18px;
    color: #242835;
    margin-bottom: 5px;
}

.faq-item h3 {
    font-size: 16px;
    color: #242835;
    margin: 20px 0 10px 0;
    padding-left: 5px;
    border-left: 4px solid var(--main-color);
}
.legal-section h2 {
    font-size: 18px;
    color: #242835;
    margin-bottom: 5px;
}

.faq-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;

}
.legal-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    text-align: justify;
}
.footer {
    position:relative;
    background-color: var(--main-color); ;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    width: 100%;
    margin-top: auto; 
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-link {
    color: #f9f9f9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #007acc;
}

.footer-link:hover {
    color: #007acc;              
}
textarea {
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
    text-align: justify;
    resize: none; 
}

form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    z-index: 10;
}
label{
    font-size: 16px;
}
h2{
    margin-bottom: 5px;
    margin-top: 5px;
}

/* Styles pour le tableau des sources de données */
.data-sources-table {
    margin: 15px 0 25px 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.data-sources-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 13px;
}

.data-sources-table th {
    background-color: var(--main-color);
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid #ddd;
}

.data-sources-table th:last-child {
    border-right: none;
}

.data-sources-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    vertical-align: top;
    font-size: 13px;
}

.data-sources-table td:last-child {
    border-right: none;
}

.data-sources-table tr:last-child td {
    border-bottom: none;
}

.data-sources-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-sources-table tr:hover {
    background-color: #f0f7ff;
}

.data-sources-table strong {
    color: var(--main-color);
    font-weight: bold;
}

.data-sources-legend {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
    border: 1px solid #e9ecef;
}

.data-sources-legend h4 {
    color: var(--main-color);
    margin: 0 0 10px 0;
    font-size: 15px;
}

.data-sources-legend ul {
    margin: 8px 0;
    padding-left: 20px;
}

.data-sources-legend li {
    margin: 6px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .data-sources-table {
        font-size: 11px;
        border-radius: 6px;
    }
    
    .data-sources-table th,
    .data-sources-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .data-sources-table th {
        font-size: 10px;
    }
    
    .faq-item h3 {
        font-size: 14px;
        margin: 15px 0 8px 0;
    }
    
    /* Sur mobile, on peut réduire les bordures pour plus de lisibilité */
    .data-sources-table th {
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .data-sources-table td {
        border-right: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
    }
}