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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fefefe;
    color: #2c2c2c;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0;
    padding: 0 0 0 60px;
}

/* Header */
.header {
    padding: 60px 0 40px 0;
    margin-bottom: 60px;
    padding-left: 0;
}

.logo {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: #2c2c2c;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    opacity: 0.9;
}

/* Layout principal */
.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 120px;
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

/* Sidebar (1/4 de la largeur) */
.sidebar {
    padding-right: 30px;
    padding-left: 0;
}

.sidebar-content h2 {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.sidebar-content h3 {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 40px 0 20px 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.7;
}

.sidebar-content p,
.sidebar-content div {
    color: #666666;
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
}

.sidebar-content div p {
    margin: 0 0 1em 0;
}

.sidebar-content div p:last-child {
    margin-bottom: 0;
}

.contact-info {
    margin-top: 50px;
    padding-top: 40px;
}

/* Section des projets (3/4 de la largeur) */
.projects-section {
    padding-left: 0;
}

.section-title {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Grille des projets */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

/* Cartes de projet */
.project-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

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

/* Ligne de séparation supprimée */

.project-preview {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Format 16:9 */
    overflow: hidden;
    background: #fafafa;
    margin-bottom: 25px;
    position: relative;
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.9;
}

/* Effet hover sur les images supprimé */

.project-content {
    padding: 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-title {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.project-tag {
    background: #f0f0f0;
    color: #666666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-description {
    color: #666666;
    margin-bottom: 15px;
    font-size: 0.85rem;
    line-height: 1.8;
    font-weight: 300;
}

.project-description p {
    margin: 0 0 1em 0;
}

.project-description p:last-child {
    margin-bottom: 0;
}

/* Actions des projets */
.project-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 0;
    border: none;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    background: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #2c2c2c;
    transition: width 0.3s ease;
}

.btn:hover::after {
    width: 100%;
}

.btn-primary {
    color: #2c2c2c;
}

.btn-primary:hover {
    color: #666666;
}

.btn-secondary {
    color: #999999;
}

.btn-secondary:hover {
    color: #666666;
}

/* Lien de projet */
.project-link {
    color: #666666;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 15px;
    display: block;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2c2c2c;
}

/* Liens dans le texte */
.text-link {
    color: #666666;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #2c2c2c;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 50px;
    border-radius: 0;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: none;
    border: 1px solid #f0f0f0;
}

.close {
    color: #999999;
    float: right;
    font-size: 20px;
    font-weight: 300;
    position: absolute;
    right: 30px;
    top: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2c2c2c;
}

.modal-content h2 {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Formulaire */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 400;
    color: #2c2c2c;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 300;
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #2c2c2c;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sidebar {
        padding-right: 0;
    }
    
    .projects-section {
        padding-left: 0;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 20px 20px 20px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .main-content {
        gap: 30px;
    }
    
    .sidebar {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .project-content {
        padding: 20px;
    }
}

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

.project-card {
    animation: fadeIn 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

/* États de chargement */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Messages de chargement et d'erreur */
.loading-message,
.no-projects,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-style: italic;
}

.error-message {
    color: #e74c3c;
}

/* Sections de catégories */
.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-family: 'Futura', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
}

.category-description {
    color: #666666;
    margin-bottom: 30px;
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
    font-style: italic;
}

.category-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
