/* Styles pour la section Fiches Missions */
:root {
    --primary-color: #f8aa00;
    --secondary-color: #7dafd5;
    --light-bg: #f8fafc;
    --dark-text: #1a202c;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects {
    padding: 100px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 26, 42, 0.1), transparent);
}

.section-title {
    color: var(--dark-text);
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
    max-width: 200px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 0 auto 40px;
    font-weight: 400;
    text-align: center;
    max-width: 700px;
    line-height: 1.6;
}

/* Filtres de projets */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 auto 50px;
    max-width: 800px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(125, 175, 213, 0.3);
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

.mission-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: rgba(125, 175, 213, 0.2);
}

.mission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(125, 175, 213, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 16px;
    z-index: 0;
}

.mission-header {
    background: var(--secondary-color);
    color: white;
    padding: 28px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.mission-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.mission-card:hover .mission-header::before {
    opacity: 1;
}

.mission-header h3 {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.mission-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.3s ease;
}

.mission-card:hover .mission-header h3::after {
    width: 60px;
}

.mission-header h2 {
    margin: 0 0 18px 0;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Styles des cartes de mission */
.mission-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mission-header {
    background: var(--secondary-color);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.mission-card:hover .mission-header::before {
    opacity: 1;
}

.mission-header h3 {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    position: relative;
}

.mission-header h2 {
    margin: 0 0 18px 0;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mission-card:hover .mission-header h2 {
    transform: translateY(-2px);
}

.mission-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.mission-year,
.mission-duration {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mission-card:hover .mission-year,
.mission-card:hover .mission-duration {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contenu de la carte */
.mission-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.mission-section {
    margin: 0 0 35px 0;
    position: relative;
}

.mission-section:last-child {
    margin-bottom: 15px;
}

.mission-section::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.mission-section:last-child::after {
    display: none;
}

.mission-section h4 {
    color: var(--secondary-color);
    margin: 0 0 18px 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mission-card:hover .mission-section h4 {
    padding-left: 5px;
}

.mission-section h4 i {
    font-size: 1.1em;
    opacity: 0.9;
}

.mission-section p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
    font-size: 0.98em;
}

.mission-section p:last-child {
    margin-bottom: 0;
}

.mission-section ul {
    padding-left: 0;
    margin: 12px 0 8px;
    list-style: none;
}

.mission-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
    color: #444;
    font-size: 0.96em;
    transition: transform 0.2s ease, padding-left 0.3s ease;
}

.mission-card:hover .mission-section li {
    padding-left: 32px;
}

.mission-section li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.mission-card:hover .mission-section li:before {
    transform: translateY(-50%) scale(1.2);
    background: var(--primary-color);
}

/* Images dans les cartes */
.mission-image {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

.mission-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-card:hover .mission-image img {
    transform: scale(1.03);
}

.mission-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(125, 175, 213, 0.1) 0%, rgba(125, 175, 213, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-card:hover .mission-image::after {
    opacity: 1;
}

/* Grille pour les contraintes */
.constraints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 18px 0 10px;
}

.constraint-item {
    background: #f8f9fa;
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.constraint-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.constraint-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: white;
}

.constraint-item:hover::before {
    transform: scaleX(1);
}

.constraint-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.constraint-item h5 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #333;
}

.constraint-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Bouton Voir plus */
.show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 12px 32px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.02em;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(125, 175, 213, 0.3);
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.show-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(125, 175, 213, 0.4);
    color: white;
}

.show-more-btn:hover::before {
    opacity: 1;
}

.show-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateX(4px);
}

/* Styles responsifs */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .projects {
        padding: 80px 0;
    }
    
    .mission-header h2 {
        font-size: 1.6rem;
    }
    
    .mission-content {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .constraints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-section {
        margin-bottom: 30px;
    }
    
    .mission-header {
        padding: 24px 20px;
    }
    
    .mission-header h2 {
        font-size: 1.5rem;
    }
    
    .mission-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .mission-year,
    .mission-duration {
        width: fit-content;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .projects {
        padding: 60px 0;
    }
    
    .project-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .constraints-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-header h2 {
        font-size: 1.4rem;
    }
    
    .mission-header h3 {
        font-size: 0.8rem;
    }
    
    .mission-section h4 {
        font-size: 1.15rem;
    }
    
    .show-more-btn {
        padding: 10px 24px;
        font-size: 0.95em;
    }
}

.mission-section {
    margin: 0 0 35px 0;
    position: relative;
}

.mission-section:last-child {
    margin-bottom: 15px;
}

.mission-section::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.mission-section:last-child::after {
    display: none;
}

.mission-section h4 {
    color: var(--secondary-color);
    margin: 0 0 18px 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease;
}

.mission-card:hover .mission-section h4 {
    padding-left: 5px;
}

.mission-section h4 i {
    font-size: 1.1em;
    opacity: 0.9;
}

.mission-section p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #444;
    font-size: 0.98em;
}

.mission-section p:last-child {
    margin-bottom: 0;
}

.mission-section ul {
    padding-left: 0;
    margin: 12px 0 8px;
    list-style: none;
}

.mission-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
    color: #444;
    font-size: 0.96em;
    transition: transform 0.2s ease, padding-left 0.3s ease;
}

.mission-card:hover .mission-section li {
    padding-left: 32px;
}

.mission-section li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.mission-card:hover .mission-section li:before {
    transform: translateY(-50%) scale(1.2);
    background: var(--primary-color);
}

.mission-image {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

.mission-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-card:hover .mission-image img {
    transform: scale(1.03);
}

.mission-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(125, 175, 213, 0.1) 0%, rgba(125, 175, 213, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-card:hover .mission-image::after {
    opacity: 1;
}

/* Grille pour les contraintes */
.constraints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 18px 0 10px;
}

.constraint-item {
    background: #f8f9fa;
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.constraint-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.constraint-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: white;
}

.constraint-item:hover::before {
    transform: scaleX(1);
}

.constraint-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.constraint-item h5 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #333;
}

.constraint-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Bouton Voir plus */
.show-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 12px 32px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.02em;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(125, 175, 213, 0.3);
}

.show-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.show-more-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(125, 175, 213, 0.4);
    color: white;
}

.show-more-btn:hover::before {
    opacity: 1;
}

.show-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.show-more-btn:hover i {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .projects {
        padding: 80px 0;
    }
    
    .mission-header h2 {
        font-size: 1.6rem;
    }
    
    .mission-content {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .constraints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mission-section {
        margin-bottom: 30px;
    }
    
    .mission-header {
        padding: 24px 20px;
    }
    
    .mission-header h2 {
        font-size: 1.5rem;
    }
    
    .mission-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .mission-year,
    .mission-duration {
        width: fit-content;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .projects {
        padding: 60px 0;
    }
    
    .project-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .constraints-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-header h2 {
        font-size: 1.4rem;
    }
    
    .mission-header h3 {
        font-size: 0.8rem;
    }
    
    .mission-section h4 {
        font-size: 1.15rem;
    }
    
    .show-more-btn {
        padding: 10px 24px;
        font-size: 0.95em;
    }
}

/* Variables de couleurs et styles */
:root {
    /* Couleurs principales */
    --primary-color: #f8aa00;    /* Orange */
    --secondary-color: #7dafd5;  /* Nouveau bleu plus clair */
    --accent-color: #f8aa00;     /* Utilisation de l'orange comme couleur d'accent */
    --light-bg: #f0f7ff;         /* Bleu très clair pour les fonds */
    --dark-text: #0a1a2a;        /* Texte foncé avec une teinte de bleu */
    
    /* Couleurs de base */
    --text-color: #2d0a24;       /* Texte principal */
    --white: #ffffff;            /* Blanc pur */
    --dark-overlay: rgba(125, 175, 213, 0.8); /* Overlay avec teinte de bleu */
    --section-bg: #ffffff;       /* Fond des sections */
    
    /* Autres variables */
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(125, 175, 213, 0.1); /* Ombre avec teinte de bleu */
    --transition: all 0.3s ease;
    --header-height: 80px;
}

/* Réinitialisation et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajustez cette valeur en fonction de la hauteur de votre en-tête */
}

/* Style pour les ancres de section */
section[id] {
    scroll-margin-top: 100px; /* Même valeur que scroll-padding-top */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn i {
    font-size: 1rem;
    transition: var(--transition);
}

/* Style principal des boutons */
.btn-primary {
    background-color: var(--primary-color);
    color: white; /* Texte en blanc */
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #e69a00;
    color: white; /* Texte blanc au survol */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 170, 0, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white; /* Texte blanc au survol */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 170, 0, 0.3);
}

/* Bouton d'accentuation */
.btn-accent {
    background-color: var(--accent-color);
    color: var(--dark-text);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: var(--dark-text);
    color: var(--white);
    border-color: var(--dark-text);
}

/* Tailles de boutons */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Bouton avec icône */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 30px;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 0 20px;
}

/* Header & Navigation */
header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

/* Ajustement du conteneur principal */
.navbar > .container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Ajustement de la navigation */
.navbar {
    flex: 1;
    min-width: 0;
    overflow: visible;
    margin-left: 0;
}

/* Ajustement de la liste des liens */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Masquer la barre de défilement sur WebKit */
.nav-links::-webkit-scrollbar {
    display: none;
}

/* Ajustement des éléments de la liste */
.nav-links li {
    margin: 0 6px;
    flex-shrink: 0;
}

/* Ajustement des liens */
.nav-links a {
    font-weight: 500;
    padding: 8px 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* Style pour le lien actif */
.nav-links a[style*="color: white"] {
    font-weight: 600;
}

/* Ajustement pour la section hero */
.hero {
    margin-top: 0;
    padding-top: 100px; /* Ajustement pour le header fixe */
    position: relative;
    z-index: 1;
    background-color: var(--white); /* Assure un fond cohérent */
}

/* Suppression de l'effet de défilement */
.scrolled {
    /* Conserver le même style que la barre normale */
    padding: 15px 0;
    background-color: var(--secondary-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* S'assurer que les liens restent blancs */
.nav-links a {
    color: white !important;
}

.nav-links a:hover {
    color: white !important;
    opacity: 0.9;
}

/* Suppression de la marge à gauche inutile */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.nav-links::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
}

.nav-links li {
    margin: 0 10px;
    flex-shrink: 0;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 8px 12px;
    display: inline-block;
    white-space: nowrap;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 60%;
}
/* Style pour le conteneur du logo et du nom */
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: -60px; /* Décalage de 60px vers la gauche */
}

.logo {
    height: 35px; /* Réduit la hauteur du conteneur */
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px; /* Réduit de 50px à 40px */
    width: auto;
    background-color: white;
    padding: 4px; /* Légèrement réduit */
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
}

.name-header a {
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.name-header .first-name {
    color: white;
    margin-right: 5px;
}

.name-header .last-name {
    color: #f8aa00; /* Orange */
    font-weight: 700;
}
.hero .logo-home {
    margin: 20px 0;
    text-align: center;
}

.hero .logo-home img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Menu déroulant mobile */
.mobile-nav {
    display: none; /* Caché par défaut, affiché uniquement sur mobile */
    margin-left: auto;
    position: relative;
    z-index: 1000;
}

.mobile-select {
    padding: 10px 35px 10px 15px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Style pour l'icône de flèche personnalisée */
.mobile-select-wrapper {
    position: relative;
    display: inline-block;
}

.mobile-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid white;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.mobile-select:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.mobile-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-select option {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px;
}

/* Style pour le menu desktop */
.desktop-nav {
    display: block;
}

/* Masquer le menu mobile par défaut */
.mobile-nav {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    padding: calc(var(--header-height) + 40px) 0 80px;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('assets/images/A skeleton-inspired generative designed frame makes this drone incredibly lightweight yet strong - Yanko Design.jpg') no-repeat center center/cover;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjUwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDIpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0 auto 25px;
    color: var(--white);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

.hero .tagline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 0 auto 40px;
    color: var(--accent-color);
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Animation des éléments du hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero h1 { 
    animation: fadeInUp 1s ease 0.3s forwards; 
}
.hero .tagline { 
    animation: fadeInUp 1s ease 0.6s forwards;
    display: block;
    margin: 0 auto 40px;
    color: var(--accent-color);
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}
.cta-buttons { 
    animation: fadeInUp 1s ease 0.9s forwards; 
}

/* About Section */
.about {
    background-color: var(--section-bg);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 25px;
}

.about-text .section-title::after {
    margin: 15px 0 30px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 500;
}

.about-details {
    margin: 2rem 0;
}

.about-details p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

.about-details p:last-child {
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.info-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    height: 100%;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
    min-width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(248, 170, 0, 0.1);
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 8px;
}

.info-item h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.info-item p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.text-muted {
    color: #888 !important;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.cv-download {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: center;
}

/* Style pour les paragraphes dans la section À propos */
.about p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Style pour les titres de section */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Image de profil */
.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

/* Badges de compétences */
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.filter-btn {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--secondary-color);
    color: white; /* Texte blanc au survol */
    transform: translateY(-2px);
}

.skill-badge i {
    font-size: 0.9rem;
}

/* Section Compétences */
.skills-section {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background-color: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(248, 170, 0, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Désactivation de l'effet de survol sur l'icône */
.skill-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(248, 170, 0, 0.1);
    border-radius: 12px;
    transition: none; /* Désactive toutes les transitions */
}

/* Suppression de l'effet de survol sur l'icône */
.skill-card:hover .skill-icon {
    background-color: rgba(248, 170, 0, 0.1);
    color: var(--primary-color);
    transform: none;
}

.skill-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 3px;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.skill-list li {
    padding: 8px 0;
    color: #555;
    position: relative;
    line-height: 1.7;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    border: none !important;
    background: none !important;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.skill-list li:hover {
    color: var(--secondary-color);
    padding-left: 30px; /* On enlève le décalage au survol */
    background: none !important; /* S'assurer qu'il n'y a pas de fond au survol */
}

/* Suppression des puces triangulaires */
.skill-list li::before {
    display: none; /* Cache complètement les puces */
}

/* Styles pour la page des plaquettes */
.plaquettes-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.plaquettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.plaquette-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.plaquette-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.plaquette-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.plaquette-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.plaquette-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pdf-preview {
    margin-top: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 2px dashed #ddd;
}

.pdf-preview p {
    margin: 5px 0;
}

.pdf-preview .small {
    font-size: 0.85rem;
}

/* Styles pour l'affichage des PDF */
.pdf-container {
    width: 100%;
    height: 500px;
    border: 1px solid #eee;
    margin-top: 20px;
    display: none;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-card {
        padding: 30px 25px;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: rgba(14, 77, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.skill-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.skill-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .info-grid, 
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .cv-download {
        flex-direction: column;
        gap: 10px;
    }
    
    .cv-download .btn {
        width: 100%;
        text-align: center;
    }
}
/* Section des compétences */
.skills {
    padding: 100px 0;
    background-color: var(--section-bg);
}

.skills .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #eee;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
/* Styles pour les icônes de compétences */
.skill-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.skill-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 10px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.skill-list li::before {
    content: '✓';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 15px;
}

/* Styles pour les fiches de mission */
.mission-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Styles pour le bouton Voir toutes les missions */
.text-center {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: var(--secondary-color);
    color: white; /* Texte en blanc */
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 85, 138, 0.3);
}

/* Styles pour les cartes de mission */
.mission-card {
    display: none; /* Caché par défaut */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mission-card.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour l'affichage des cartes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mission-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.mission-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mission-card:hover .mission-main-image {
    transform: scale(1.05);
}

.mission-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.mission-gallery-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.mission-gallery-image:hover {
    transform: scale(1.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-gallery {
        grid-template-columns: 1fr;
    }
}


.mission-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* Suppression du dégradé orange */

.mission-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    background: transparent;
}

.mission-year,
.mission-duration {
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mission-year::before {
    content: '📅';
    font-size: 1rem;
}

.mission-duration::before {
    content: '⏱️';
    font-size: 1rem;
}

.mission-section {
    margin-bottom: 20px;
    flex-grow: 1;
    flex-shrink: 0;
}

.mission-section h4 {
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f9f5ff;
    border-radius: 6px;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.mission-section h4:hover {
    background-color: #f0e6ff;
}

/* En-tête de fiche mission */
.mission-header {
    background: var(--secondary-color);
    color: white;
    padding: 20px 25px;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.mission-header h2 {
    font-size: 1.4rem;
    margin: 10px 0 5px;
    line-height: 1.3;
}

.mission-header h3 {
    font-size: 0.9rem;
    margin: 0 0 5px;
    opacity: 0.9;
}

.mission-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.mission-content {
    padding: 20px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mission-section {
    margin-bottom: 20px;
}

.mission-section h4 {
    color: var(--secondary-color);
    margin: 15px 0 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mission-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.skill-tag {
    background: #f0f7ff;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #d0e3ff;
}

.mission-header h2 {
    margin: 0 0 10px;
    color: var(--primary-color); /* Titre en orange */
    font-size: 1.8rem;
    font-weight: 700;
}

.mission-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contenu de la fiche mission */
.mission-content {
    background: #ffffff; /* Fond blanc pour le contenu */
    padding: 25px 30px 30px;
    border-radius: 0 0 12px 12px; /* Coins arrondis en bas */
    margin-top: 0; /* Suppression de la marge en haut */
}

.mission-section h4 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.mission-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    position: relative;
    padding-left: 25px;
    font-size: 0.98rem;
}

.mission-section p::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1;
    top: 0.1em;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mission-section:hover p::before {
    transform: translateX(3px);
    color: var(--secondary-color);
}

.mission-section strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.mission-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

/* Styles pour la galerie */
.gallery-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.gallery-section h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.gallery-item {
    flex: 0 0 22%;
    margin: 0 1.5% 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Responsive pour la galerie */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 45%;
        margin: 0 2.5% 15px;
    }
    
    .gallery-thumbnail {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 0 15px;
    }
}

.mission-gallery-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-height: 300px;
    object-fit: contain;
}

.mission-gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Style pour la vue modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Style épuré pour la galerie */
.mission-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 15px 0;
    background: transparent;
    width: 100%;
}

.mission-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease;
    aspect-ratio: 4/3;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mission-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mission-image-wrapper:hover .mission-image {
    transform: scale(1.03);
}

/* Style du titre de la section galerie */
.mission-section h4[aria-label="Galerie"] {
    text-align: center;
    color: #2c3e50;
    font-size: 1.4em;
    margin: 20px 0 15px;
    position: relative;
    padding-bottom: 8px;
}

.mission-section h4[aria-label="Galerie"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #3498db;
    border-radius: 2px;
}

/* Style pour la légende des images */
.mission-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mission-image-wrapper:hover .mission-image-caption {
    transform: translateY(0);
}

/* Styles responsifs pour la galerie */
@media (max-width: 1200px) {
    .mission-images-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .mission-images-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .mission-section h4[aria-label="Galerie"] {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .mission-images-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .mission-section h4[aria-label="Galerie"] {
        font-size: 1.3em;
    }
}

@media (max-width: 576px) {
    .mission-images-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mission-images-container {
        grid-template-columns: 1fr;
    }
    
    .mission-section h4[aria-label="Galerie"] {
        font-size: 1.2em;
    }
}

/* Style pour les écrans plus petits */
@media (max-width: 768px) {
    .gallery-item {
        max-width: 100%;
    }
    
    .mission-gallery-image {
        max-height: 250px;
    }
    
    .mission-image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
}

.mission-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 170, 0, 0.03), rgba(13, 85, 138, 0.03));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-grid-item:hover::before {
    opacity: 1;
}

.mission-grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.mission-grid-item:hover {
    background: #ffffff;
}

.mission-grid-item:hover h4 {
    color: var(--primary-color);
}

.mission-grid-item:hover h4::before {
    background: var(--secondary-color);
}

.mission-grid-item:hover::before {
    background: var(--secondary-color);
    width: 6px;
}

.mission-grid-item h4 {
    margin: 0 0 15px 0;
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 15px;
    transition: color 0.3s ease;
}

.mission-grid-item h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mission-grid-item h4 i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mission-grid-item:hover h4 i {
    transform: rotate(10deg) scale(1.1);
}

.mission-grid-item h4 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.mission-grid-item ul {
    padding-left: 5px;
    margin: 0;
    list-style: none;
}

.mission-grid-item li {
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.mission-grid-item li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.mission-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    position: relative;
}

.mission-skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.skill-tag {
    background: #f0f0f0;
    color: #333;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.skill-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 170, 0, 0.08), rgba(128, 14, 101, 0.08));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 170, 0, 0.1), rgba(128, 14, 101, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 170, 0, 0.1), rgba(128, 14, 101, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.skill-tag:hover {
    background: #e0e0e0;
    color: #000;
}


.skill-tag i {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.skill-tag:hover i {
    transform: rotate(12deg) scale(1.25);
    color: var(--white);
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag i {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.skill-tag:hover i {
    transform: rotate(10deg) scale(1.2);
    color: var(--white);
}

.skill-tag:hover::before {
    opacity: 1;
}

.skill-tag i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.skill-tag:hover i {
    transform: scale(1.2) rotate(10deg);
}

.mission-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f0f0f0;
    background: #fff;
    display: block;
}

.mission-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(248, 170, 0, 0.1) 0%, 
        rgba(128, 14, 101, 0.15) 50%,
        rgba(248, 170, 0, 0.1) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(100%);
    mix-blend-mode: overlay;
}

.mission-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(248, 170, 0, 0.1), 
        rgba(128, 14, 101, 0.1),
        rgba(248, 170, 0, 0.1)
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    mix-blend-mode: overlay;
}

.mission-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(248, 170, 0, 0.1),
        rgba(128, 14, 101, 0.1)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mission-image:hover {
    opacity: 0.9;
}


@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.mission-image:hover::before {
    opacity: 1;
}

/* Projects Section */
.projects {
    background-color: var(--section-bg);
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid rgba(128, 14, 101, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(128, 14, 101, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tag {
    background-color: rgba(248, 170, 0, 0.1);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(128, 14, 101, 0.1);
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: rgba(248, 170, 0, 0.2);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 60px 0;
}

.section-title::after {
    display: none;
}

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

input,
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 50px;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 0;
}

/* Styles pour la section valorisation */
.valorisation {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.valorisation .section-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 15px;
}

.valorisation .section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.valorisation .section-subtitle {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
    display: block;
    padding: 0 20px;
    font-size: 1.1rem;
}

/* Styles pour le tableau de valorisation */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.valorisation-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.valorisation-table th,
.valorisation-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

.valorisation-table th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

.valorisation-table tbody tr:hover {
    background-color: #f5f5f5;
}

.valorisation-table td {
    color: #555;
    line-height: 1.5;
}

.table-legend {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.table-legend p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Styles pour le tableau de valorisation */
.valorisation {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    background: white;
}

.valorisation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
    min-width: 1000px;
}

.valorisation-table thead th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.valorisation-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.valorisation-table tbody tr:last-child {
    border-bottom: none;
}

.valorisation-table tbody tr:hover {
    background-color: rgba(248, 170, 0, 0.05);
}

.valorisation-table td {
    padding: 15px;
    vertical-align: top;
    border-right: 1px solid #f0f0f0;
    color: #555;
    line-height: 1.5;
}

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

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

.table-legend {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    border-left: 4px solid var(--primary-color);
}

.table-legend p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Styles responsifs */
@media screen and (max-width: 1200px) {
    .valorisation-table {
        font-size: 0.85rem;
    }
    
    .valorisation-table th,
    .valorisation-table td {
        padding: 12px 10px;
    }
}

@media screen and (max-width: 992px) {
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .valorisation-table {
        display: block;
        min-width: 100%;
    }
    
    .valorisation-table thead {
        display: none;
    }
    
    .valorisation-table tbody,
    .valorisation-table tr,
    .valorisation-table td {
        display: block;
        width: 100%;
    }
    
    .valorisation-table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .valorisation-table td {
        padding: 12px 15px 12px 45%;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }
    
    .valorisation-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%;
        padding-right: 15px;
        font-weight: 600;
        color: var(--secondary-color);
    }
    
    .valorisation-table td:last-child {
        border-bottom: none;
    }
    
    .table-legend {
        margin: 20px 0;
        padding: 12px;
    }
}

@media screen and (max-width: 768px) {
    .valorisation {
        padding: 50px 0;
    }
    
    .valorisation-table td {
        padding-left: 50%;
    }
    
    .valorisation-table td:before {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-padding: 50px 0;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .navbar > .container {
        padding: 0 5px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Masquer la navigation desktop sur mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Afficher le menu déroulant mobile */
    .mobile-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Style du sélecteur mobile */
    .mobile-select-wrapper {
        position: relative;
        min-width: 140px;
    }
    
    .mobile-select {
        min-width: 130px;
        padding: 10px 35px 10px 15px;
        font-size: 14px;
        font-weight: 500;
        border: 2px solid rgba(255, 255, 255, 0.5);
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border-radius: 20px;
        margin-left: 10px;
        transition: all 0.3s ease;
    }
    
    .mobile-select:focus {
        outline: none;
        border-color: white;
        background-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    
    .mobile-select:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Ajustement du conteneur du logo */
    .navbar .logo {
        flex: 0 0 auto;
        margin-right: 20px;
    }
    
    .navbar .logo img {
        max-width: 100px;
        height: auto;
        transition: all 0.3s ease;
    }
    
    .navbar > .container {
        padding: 0 15px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        margin: 0;
        display: flex;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: white;
        font-size: 1.1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: var(--dark-text);
    }
    
    /* En-tête */
    .logo img {
        height: 35px; /* Réduire la taille du logo */
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    /* Boutons */
    .btn, .btn-primary, .btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Grille des projets */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Cartes de mission */
    .mission-card {
        margin-bottom: 20px;
    }
    
    .mission-header h2 {
        font-size: 1.3rem;
    }
    
    .mission-header h3 {
        font-size: 0.9rem;
    }
    
    /* Formulaire de contact */
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    
    input[type="text"],
    input[type="email"],
    textarea {
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    /* Pied de page */
    footer {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    body {
        overflow-x: hidden;
    }
    
    .navbar .container {
        padding: 0 10px;
    }
    
    .nav-links {
        padding: 0 10px;
    }
}

@media screen and (max-width: 576px) {
    .valorisation-table td {
        padding-left: 55%;
    }
    
    .valorisation-table td:before {
        width: 50%;
        font-size: 0.8rem;
    }
    
    .valorisation-table td {
        font-size: 0.85rem;
    }
}

/* Anciens styles de timeline commentés pour référence
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}
*/

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
    right: auto;
}

.timeline-content {
    padding: 25px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(128, 14, 101, 0.15);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.timeline-content .date {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.timeline-content ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.timeline-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.timeline-content li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Styles responsifs pour la timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 21px;
    }
}

/* Styles responsifs pour les fiches de mission */
@media (max-width: 768px) {
    .mission-header {
        padding: 18px;
    }
    
    .mission-header h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
    
    .mission-header h3 {
        font-size: 0.8rem;
    }
    
    .mission-content {
        padding: 18px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .mission-section h4 {
        font-size: 1rem;
    }
    
    .mission-section p, .mission-grid-item li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
    border: 1px solid #e0e0e0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}
