/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navigation */
.nav {
    background-color: #2c2c2c;
    border-bottom: 3px solid #CC0000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item {
    flex: 0 0 auto;
}

.nav-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #CC0000;
}

.nav-link.active {
    background-color: #CC0000;
}

.nav-link.disabled {
    color: #666;
    cursor: not-allowed;
}

.nav-link.disabled:hover {
    background-color: transparent;
}

/* Drapeaux dans la navigation */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 10px;
}

.lang-flag {
    width: 32px;
    height: 32px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 1;
}

.lang-flag:hover {
    transform: scale(1.1);
}

.lang-flag.hidden {
    display: none;
}

/* Main content */
.main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero section */
.hero {
    background: #fff;
    color: #333;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
}

.hero-subtitle {
    font-size: 1.3em;
    color: #333;
    font-weight: 300;
    line-height: 1.4;
}

/* Sections */
.section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section h2 {
    color: #CC0000;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #CC0000;
    padding-bottom: 10px;
}

.section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

/* Project highlight */
.project-highlight {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-left: 4px solid #0066cc;
    padding: 30px;
    margin: 30px 0;
    border-radius: 4px;
}

.project-highlight h3 {
    color: #0066cc;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.project-link:hover {
    background-color: #0052a3;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.value-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #CC0000;
}

.value-card h4 {
    color: #CC0000;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.value-card p {
    color: #666;
    font-size: 1em;
    text-align: left;
}

/* FAQ */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #CC0000;
}

.faq-question {
    width: 100%;
    background-color: #f9f9f9;
    border: none;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c2c2c;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-item.active .faq-question {
    background-color: #CC0000;
    color: #fff;
}

.faq-icon {
    font-size: 1.5em;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

/* Projects page */
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.features-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
    font-size: 1.2em;
}

/* Join page */
.join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.join-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.join-card:hover {
    border-color: #CC0000;
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.1);
}

.join-card h3 {
    color: #CC0000;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.join-card p {
    color: #555;
    line-height: 1.6;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #CC0000;
}

.submit-button {
    background-color: #CC0000;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #a30000;
}

/* Resources page */
.resource-list {
    margin-top: 30px;
}

.resource-item {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #CC0000;
}

.resource-item h3 {
    color: #2c2c2c;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.resource-item p {
    color: #666;
    margin-bottom: 15px;
    text-align: left;
}

.download-link {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.download-link:hover {
    background-color: #0052a3;
}

/* News page */
.no-content {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

/* Language selector */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-flag {
    width: 30px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lang-flag:hover {
    transform: scale(1.1);
    border: 2px solid #CC0000;
}

.lang-flag.active {
    border: 2px solid #0066cc;
}

.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: #CC0000;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-link {
        text-align: center;
    }
    
    .language-selector {
        padding: 10px;
    }
    
    .hero-logo {
        max-width: 90%;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .section {
        padding: 25px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}
