.gallery h2, .case-study h2, .video-demo h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #081548;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    flex: 1 1 calc(25% - 20px);
    box-sizing: border-box;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.gallery-item p {
    font-size: 18px;
    margin-top: 10px;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.case-study-item {
    margin-bottom: 20px;
}

.case-study-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-study-item p {
    font-size: 18px;
    margin-bottom: 10px;
}

.video-demo {
    text-align: center;
}

.video-demo video {
    width: 60%;
    height: auto;
    border-radius: 5px;
}

/* Styles pour la page des projets */

.projects-container {
    width: 100%;
}

/* Hero section - fond modifié */
.projects-hero {
    background-color: transparent; /* Suppression du fond bleu */
    color: #081548; /* Changement de la couleur de texte pour le fond clair */
    padding: 150px 0 0 0;
    text-align: center;
    position: relative;
}

.projects-hero::before {
    display: none; /* Suppression de l'image de fond et de l'overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.projects-hero h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #cf9903;
}

.projects-hero p {
    font-size: 18px; /* Harmonisation avec les paragraphes de la page d'accueil */
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: #444; /* Couleur standard des paragraphes */
}

/* Filtres */
.projects-filter {
    margin: 60px 0 40px 0;
    text-align: center;
}

.projects-filter h2 {
    font-size: 32px; /* Aligné sur la taille du h2 de technologie */
    font-weight: 700;
    margin-bottom: 20px; /* Ajusté pour correspondre à technologie */
    color: #081548;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    color: #081548;
    border: 2px solid #081548;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #cf9903;
    border: none;
    color: white;
}

.filter-btn.active {
    background-color: #081548;
    color: white;
}

/* Grille de projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
    margin-bottom: 100px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    background-color: white;
    height: 100%;
    position: relative;
}

.project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #081548;
}

.project-type {
    color: #cf9903;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 15px;
    display: block;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #777;
    margin-top: 15px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
}

.meta-item.location::before {
    content: '📍 ';
    margin-right: 5px;
}

.meta-item.date::before {
    content: '🗓 ';
    margin-right: 5px;
}

.realisations-display {
    display: flex;
    flex-wrap: wrap;
    gap: 70px;
    justify-content: center;
}

.realisation {
    position: relative;
    width: 500px;
    height: auto;
    overflow: hidden;
}

.realisation a {
    display: block;
    width: 100%;
}

.realisation img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.realisation:hover img {
    filter: brightness(0.8);
    transition: filter 0.3s ease-in-out;
}

.realisation .realisation-info {
    width: 100%;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    opacity: 1;
    text-align: left;
    padding: 20px 0;
    box-sizing: border-box;
}

.realisation .realisation-info h3 {
    color: #000;
    font-size: 30px;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 0;
}

.realisation .realisation-info p {
    font-size: 12px;
    margin: 5px 0;
    color: var(--secondary-color);
}

.realisation .realisation-info .realisation-meta {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 0;
}

.realisation .realisation-info .read-more {
    text-decoration: underline;
    color: var(--primary-color);
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s ease;    
}

.realisation .realisation-info .read-more:hover {
    color: #cf9903;
}

/* Étude de cas */
.featured-case-study {
    margin: 0;
    padding: 50px;
    background-color: #f8f9fa;
}

.featured-case-study h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #081548;
    text-align: center;
    position: relative;
}

.featured-case-study h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #cf9903;
}

.case-study-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.case-study-info {
    flex: 1;
}

.case-study-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #081548;
}

.case-study-client {
    color: #cf9903;
    font-weight: 600;
    margin-bottom: 20px;
}

.case-study-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.case-study-highlights {
    margin: 25px 0;
    padding-left: 20px;
}

.case-study-highlights li {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.case-study-highlights li::before {
    content: '✓';
    position: absolute;
    left: -15px;
    color: #cf9903;
    font-weight: bold;
}

.case-study-btn {
    margin-top: 15px;
    display: inline-block;
}

.case-study-video {
    flex: 1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.video-caption {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #777;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .case-study-item h3 {
        font-size: 20px;
    }

    .case-study-item p {
        font-size: 14px;
    }

    .projects-hero {
        padding: 140px 0 0 0;
    }
    
    .projects-hero h1 {
        font-size: 32px;
    }
    
    .projects-hero p {
        font-size: 16px;
    }
    
    .projects-filter h2, .featured-case-study h2 {
        font-size: 28px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .project-image {
        height: 180px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .project-info p {
        font-size: 14px;
    }

    .project-meta {
        font-size: 12px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-message {
        font-size: 14px;
        line-height: 1.5;
    }

    .testimonial-name {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .featured-case-study {
        padding: 30px 20px;
    }
    
    .realisation {
        width: 100%;
    }

    .realisation img {
        height: 250px;
    }
}

@media (max-width: 992px) {
    .case-study-content {
        flex-direction: column;
    }
    
    .case-study-info, .case-study-video {
        width: 100%;
    }
}