/* ========================================
   COMPOSANTS SPÉCIFIQUES AUX PAGES
   ======================================== */

/* ========================================
   COMPÉTENCES - DESIGN AMÉLIORÉ
   ======================================== */
.skills-section {
    margin-bottom: 2rem;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.8rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-2px);
}

.skill-category h3 {
    color: #667eea;
    margin-bottom: 0.8rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.4rem;
    font-size: 1.1rem;
}

.skill-category p {
    color: #666;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    font-size: 0.85rem;
}

.skill-category ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.skill-category li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.85rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Design spécifique pour les skill-card (page d'accueil) */
.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-2px);
}

.skill-card h3 {
    color: #667eea;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.skill-card p {
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive pour les compétences */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.2rem;
    }
    
    .skill-category h3 {
        font-size: 1rem;
    }
    
    .skill-category li {
        padding: 0.25rem 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
    }
    
    .skill-category li {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
}

/* ========================================
   PAGE D'ACCUEIL - SERVICES PREVIEW
   ======================================== */
.services-preview {
    padding: 3rem 0;
    background: #f8f9fa;
}

.services-overview {
    margin-bottom: 2rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 2rem;
    color: #667eea;
    margin: 0 0 0.5rem 0;
}

.stat-card p {
    margin: 0;
    color: #666;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.service-header h3 {
    margin: 0;
    color: #333;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.project-meta,
.project-title-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.project-date,
.project-date-updated,
.project-title-date,
.project-title-date-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #495057;
}

.project-date::before,
.project-title-date::before {
    content: "📅";
    font-size: 0.8rem;
}

.project-date-updated::before,
.project-title-date-updated::before {
    content: "🔄";
    font-size: 0.8rem;
}

/* Responsive pour les métadonnées */
@media (max-width: 768px) {
    .project-meta,
    .project-title-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .project-date,
    .project-date-updated,
    .project-title-date,
    .project-title-date-updated {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .project-meta,
    .project-title-meta {
        gap: 0.3rem;
    }
    
    .project-date,
    .project-date-updated,
    .project-title-date,
    .project-title-date-updated {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
}

/* ========================================
   PAGE PROJETS - FILTRES ET CATÉGORIES
   ======================================== */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active {
    background: #667eea;
    color: white;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
}

.project-category {
    margin-bottom: 3rem;
}

.project-category h2 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.category-description {
    color: #666;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-left: 3px solid #667eea;
    padding-left: 1rem;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.no-projects {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #ccc;
}

/* ========================================
   PAGE PROJET INDIVIDUEL
   ======================================== */
.project-header {
    margin-bottom: 2rem;
}

/* ========================================
   PAGE CONSTRUCTION
   ======================================== */
.construction-container {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.construction-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.construction-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.construction-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
}

.construction-progress {
    width: 100%;
    max-width: 400px;
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    animation: progress 3s ease-in-out infinite;
}

.construction-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 800px;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-desc {
    color: #666;
    font-size: 0.9rem;
}

.construction-actions {
    margin-top: 3rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .construction-title {
        font-size: 2rem;
    }
    
    .construction-subtitle {
        font-size: 1rem;
    }
    
    .construction-features {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PROJETS AVEC IMAGES - NOUVEAU SYSTÈME
   ======================================== */

/* Thumbnail des projets dans la liste */
.project-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-thumbnail:hover img {
    transform: scale(1.05);
}

/* Structure des articles de projet avec image */
.project-item {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.project-item:hover {
    transform: translateY(-2px);
}

.project-item .project-thumbnail {
    flex: 0 0 250px;
    height: auto;
    border-radius: 0;
    margin-bottom: 0;
}

.project-item .project-content {
    flex: 1;
    padding: 1.5rem;
}

/* Cartes de projet sur la page d'accueil */
.project-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
}

.project-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.project-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-thumbnail img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 1.5rem;
}

/* Galerie d'images dans la page projet */
.project-gallery {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.project-gallery h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.project-image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

.project-image-item:hover {
    transform: scale(1.02);
}

.project-image-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    display: block;
}

/* Modal pour afficher les images en grand */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Responsive pour les projets avec images */
@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
    }
    
    .project-item .project-thumbnail {
        flex: none;
        height: 200px;
    }
    
    .project-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .project-image-item img {
        height: 120px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .project-thumbnail {
        height: 150px;
    }
    
    .project-card-thumbnail {
        height: 140px;
    }
    
    .project-images-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image-item img {
        height: 200px;
    }
}

/* ========================================
   BOUTONS DES PROJETS - AMÉLIORATION DE LA LISIBILITÉ
   ======================================== */

/* Boutons dans les cartes de projet */
.project-card .btn,
.project-item .btn {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    margin-top: 1rem !important;
}

.project-card .btn:hover,
.project-item .btn:hover {
    background-color: #0056b3 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.project-card .btn:active,
.project-item .btn:active {
    transform: translateY(0) !important;
}

/* Boutons spécifiques pour les projets */
.btn-primary {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
}

.btn-primary:hover {
    background-color: #0056b3 !important;
    color: white !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
    border: none !important;
}

.btn-secondary:hover {
    background-color: #545b62 !important;
    color: white !important;
}

/* Boutons petits */
.btn-small {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.85rem !important;
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
}

.btn-small:hover {
    background-color: #0056b3 !important;
    color: white !important;
}

/* ========================================
   HERO DES PROJETS - IMAGE PURE + SECTION TITRE SÉPARÉE
   ======================================== */

.project-hero {
    position: relative;
    margin-bottom: 0;
}

.project-hero-image {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    margin-bottom: 0;
    position: relative;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Voile violet sur l'image hero */
.project-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.15) 0%,
        rgba(118, 75, 162, 0.10) 100%
    );
    pointer-events: none;
}

/* Section titre séparée */
.project-title-section {
    background: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.project-title-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-title-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.project-title-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-title-date {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

.project-title-section .status-badge {
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-title-section .project-tag {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-title-section .project-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Responsive pour le hero des projets */
@media (max-width: 768px) {
    .project-hero-image {
        height: 300px;
    }
    
    .project-title-section {
        padding: 2rem 0;
    }
    
    .project-title-content {
        padding: 0 1.5rem;
    }
    
    .project-title-content h1 {
        font-size: 2.2rem;
    }
    
    .project-title-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .project-hero-image {
        height: 250px;
    }
    
    .project-title-section {
        padding: 1.5rem 0;
    }
    
    .project-title-content {
        padding: 0 1rem;
    }
    
    .project-title-content h1 {
        font-size: 1.8rem;
    }
    
    .project-title-date {
        font-size: 1rem;
    }
}

/* ========================================
   BANDEAUX DE PROJETS DANS LA LISTE
   ======================================== */

/* Bandeau de projet dans la liste */
.project-banner {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    background: #f8f9fa;
}

.project-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-item:hover .project-banner img {
    transform: scale(1.05);
}

.project-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Suppression du voile violet
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.55) 0%,
        rgba(118, 75, 162, 0.38) 100%
    );
    */
    display: flex;
    align-items: flex-end;
    color: white;
    padding: 2rem;
}

.project-banner-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.project-banner-content h2 a {
    color: white;
    text-decoration: none;
}

.project-banner-content h2 a:hover {
    color: rgba(255,255,255,0.9);
}

.project-banner-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-banner-meta .project-date {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.project-banner-overlay .status-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

/* Structure des articles de projet avec bandeau */
.project-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-item .project-content {
    padding: 1.5rem;
}

/* Responsive pour les bandeaux de projets */
@media (max-width: 768px) {
    .project-banner {
        height: 200px;
    }
    
    .project-banner-overlay {
        padding: 1.5rem;
    }
    
    .project-banner-content h2 {
        font-size: 1.5rem;
    }
    
    .project-banner-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .project-banner {
        height: 180px;
    }
    
    .project-banner-overlay {
        padding: 1rem;
    }
    
    .project-banner-content h2 {
        font-size: 1.3rem;
    }
    
    .project-banner-meta .project-date {
        font-size: 0.8rem;
    }
}

/* ========================================
   BANNIÈRE HERO DES PAGES
   ======================================== */

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 2rem 0;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 1.5rem 0;
    }
    
    .page-hero-content h1 {
        font-size: 1.5rem;
    }
    
    .page-hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}

/* ========================================
   MINI-BANNIÈRES HERO DES PROJETS DANS LA LISTE
   ======================================== */

/* Mini-bannière hero de projet dans la liste */
.project-mini-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    background: #f8f9fa;
}

.project-mini-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-item:hover .project-mini-hero img {
    transform: scale(1.05);
}

.project-mini-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Suppression du voile violet
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.55) 0%,
        rgba(118, 75, 162, 0.38) 100%
    );
    */
    display: flex;
    align-items: flex-end;
    color: white;
    padding: 1.5rem;
}

.project-mini-hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.project-mini-hero-content h2 a {
    color: white;
    text-decoration: none;
}

.project-mini-hero-content h2 a:hover {
    color: rgba(255,255,255,0.9);
}

.project-mini-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-mini-hero-meta .project-date {
    font-size: 0.8rem;
    opacity: 0.9;
    color: white;
}

.project-mini-hero-overlay .status-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
}

/* Structure des articles de projet avec mini-hero */
.project-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.project-item .project-content {
    padding: 1.5rem;
}

/* Responsive pour les mini-bannières hero */
@media (max-width: 768px) {
    .project-mini-hero {
        height: 160px;
    }
    
    .project-mini-hero-overlay {
        padding: 1rem;
    }
    
    .project-mini-hero-content h2 {
        font-size: 1.3rem;
    }
    
    .project-mini-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .project-mini-hero {
        height: 140px;
    }
    
    .project-mini-hero-overlay {
        padding: 0.8rem;
    }
    
    .project-mini-hero-content h2 {
        font-size: 1.1rem;
    }
    
    .project-mini-hero-meta .project-date {
        font-size: 0.7rem;
    }
}

/* ========================================
   CARTE PROJET HORIZONTALE (mini-bannière à gauche)
   ======================================== */
.project-item-horizontal {
    display: flex;
    min-height: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    align-items: stretch;
    transition: box-shadow 0.2s, transform 0.2s;
}
.project-item-horizontal:hover {
    box-shadow: 0 8px 24px rgba(102,126,234,0.13);
    transform: translateY(-2px) scale(1.01);
}
.project-mini-hero-horizontal {
    flex: 0 0 40%;
    min-width: 220px;
    max-width: 400px;
    min-height: 200px;
    max-height: 220px;
    position: relative;
    transition: filter 0.3s;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-mini-hero-horizontal::after {
    /* Suppression du voile violet
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.45) 0%, rgba(118,75,162,0.28) 100%);
    pointer-events: none;
    */
}
.project-mini-hero-horizontal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.project-mini-hero-placeholder {
    background: repeating-linear-gradient(135deg, #e2e8f0 0 20px, #f8fafc 20px 40px);
}
.project-content-horizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem 2.2rem 2.2rem 2rem;
    min-width: 0;
}
.project-content-horizontal h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}
.project-content-horizontal h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}
.project-content-horizontal h2 a:hover {
    color: #667eea;
}
.project-content-horizontal .project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.project-content-horizontal .project-date {
    font-size: 0.9rem;
    color: #888;
}
.project-content-horizontal .status-badge {
    background: #667eea;
    color: #fff;
    border-radius: 12px;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 4px rgba(102,126,234,0.08);
}
.project-content-horizontal p {
    margin: 0.7rem 0 1.1rem 0;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.5;
}
.project-content-horizontal .project-tags {
    margin-bottom: 0.7rem;
}
.project-content-horizontal .project-tag {
    display: inline-block;
    background: #f1f5fa;
    color: #667eea;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.15rem 0.7rem;
    margin-right: 0.3rem;
    margin-bottom: 0.2rem;
}
.project-content-horizontal .btn {
    margin-top: 0.5rem;
    min-width: 140px;
}
@media (max-width: 900px) {
    .project-item-horizontal {
        flex-direction: column;
        min-height: unset;
    }
    .project-mini-hero-horizontal {
        width: 100%;
        min-width: 100%;
        min-height: 140px;
        max-height: 180px;
    }
    .project-content-horizontal {
        padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    }
}
@media (max-width: 600px) {
    .project-content-horizontal h2 {
        font-size: 1.1rem;
    }
    .project-content-horizontal {
        padding: 0.8rem 0.7rem 1rem 0.7rem;
    }
}

.project-navigation-top {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

/* ========================================
   SERVICES - SYSTÈME D'ONGLETS
   ======================================== */
.service-category {
    margin-bottom: 3rem;
}

.service-category h2 {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.no-services {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #ccc;
}

/* Responsive pour les onglets et services */
@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .services-overview {
        margin-bottom: 1.5rem;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .service-features {
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .feature {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .filter-buttons {
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-header h3 {
        font-size: 1rem;
    }
    
    .service-features {
        gap: 0.2rem;
    }
    
    .feature {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .tech-card h3 {
        font-size: 1rem;
    }
    
    .tech-card li {
        font-size: 0.8rem;
    }
}

/* ========================================
   COMPOSANTS SPÉCIFIQUES AUX PAGES
   ======================================== */ 

/* Responsive pour les boutons dans les cartes de projet */
@media (max-width: 900px) {
    .projects-grid,
    .services-grid {
        align-items: flex-start !important;
    }
    .project-card,
    .service-card {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    .project-card-content {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    .project-card .btn,
    .project-item .btn {
        margin-top: auto !important;
        width: 100% !important;
        display: block !important;
        position: static !important;
    }
}

@media (max-width: 480px) {
    .project-card .btn,
    .project-item .btn {
        font-size: 0.85rem;
    }
} 