/* Added banner styles */
.banner {
    background-color: #3d8e7d;
    color: #ffffff;
    padding: 10px;
    text-align: center;
}

body {
    /* Added banner styles */
    padding-top: 50px;
    background-color: #FAF0E6;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Added frame styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(61,142,125,0.3);
    border-radius: 15px;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    font-size: 2em;
    color: #000000;
}

h3 {
    font-size: 1.8em;
    color: #000000;
}

h4 {
    font-size: 1.6em;
    color: #000000;
}

h5 {
    font-size: 1.4em;
    color: #000000;
}

h6 {
    font-size: 1.2em;
    color: #000000;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
}

section {
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.activites-content article,
.veille-content,
.presentation {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

/* Style des boutons de téléchargement */
button {
    background-color: #3d8e7d;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    margin: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    display: inline-block;
}

button a:hover {
    color: #FAF0E6;
}

/* Styles pour la page parcours */

/* Styles for the banner */
.banner {
    background-color: #3d8e7d;
    color: #ffffff;
    padding: 10px;
    text-align: center;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
}

.stage-section {
    margin-bottom: 30px;
    margin-top: 10px;
}

.stage-card {
    display: flex;
    flex-direction: column;
    border: 3px solid #3d8e7d; /* Added new frame */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stage-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.stage-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.stage-details {
    color: #555;
}

.stage-details ul {
    list-style-type: disc;
    margin: 0 auto;
    padding-left: 10px;
    text-align: center;
    list-style-position: inside;
    display: inline-block;
}

.stage-details li {
    margin-bottom: 5px;
    padding-left: 0;
    text-align: left;
}

.activity-group {
    margin-bottom: 15px;
}

.activity-group h6 {
    color: #3d8e7d;
    margin-bottom: 10px;
}

.stage-status {
    color: #e74c3c;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .stage-card {
        padding: 15px;
    }
}

/* Styles pour la page veille */
.veille-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.veille-content h2 {
    color: #3d8e7d;
    border-bottom: 2px solid #3d8e7d;
    padding-bottom: 10px;
    margin-top: 30px;
}

.veille-content ul {
    list-style-type: disc;
    margin: 15px 0;
    padding-left: 20px;
}

.veille-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.veille-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.veille-content th, 
.veille-content td {
    padding: 12px;
    text-align: left;
    border: 1px solid #3d8e7d;
}

.veille-content th {
    background-color: #3d8e7d;
    color: white;
}

.veille-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

.veille-content p {
    margin: 15px 0;
    line-height: 1.8;
}

/* Styles pour les encarts d'en-tête */
.header-encarts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.encart {
    flex: 0 1 auto;
    min-width: 160px;
    max-width: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e9ecef;
    gap: 10px;
}

.encart:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(61,142,125,0.2);
    background-color: #3d8e7d;
}

.encart:hover .encart-icon,
.encart:hover .encart-titre,
.encart:hover .encart-description {
    color: #ffffff;
}

.encart-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.encart-icon {
    font-size: 1.4em;
    color: #3d8e7d;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.encart-titre {
    font-size: 1em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    text-align: left;
    transition: color 0.3s ease;
}

.encart-description {
    font-size: 0.75em;
    color: #666;
    text-align: left;
    line-height: 1.2;
    margin: 0;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .header-encarts {
        gap: 8px;
        padding: 8px;
    }
    
    .encart {
        min-width: 140px;
        padding: 6px 10px;
    }

    .encart-icon {
        font-size: 1.2em;
    }

    .encart-titre {
        font-size: 0.9em;
    }

    .encart-description {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .header-encarts {
        flex-direction: column;
        align-items: stretch;
    }
    
    .encart {
        width: 100%;
        max-width: none;
        margin-bottom: 5px;
    }
}

/* Styles pour le menu déroulant */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding-top: 10px;
    margin-top: -10px;
}

/* Zone tampon invisible pour faciliter le survol */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.dropdown-content a:hover {
    background-color: #3d8e7d;
    color: #ffffff;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-trigger i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
        border-top: 1px solid #e9ecef;
        padding-top: 0;
    }
    
    .dropdown-content::before {
        display: none;
    }
    
    .dropdown-content a {
        padding: 8px 15px;
    }
}
