* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

:root {
    --primary-color: #000;
    --accent-color: #0066ff;
    --text-color: #333;
    --light-grey: #f4f4f4;
    --medium-grey: #e0e0e0;
    --transition-speed: 0.4s;
}

body {
    overflow-x: hidden;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
}

/* Section vidéo plein écran */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

/* Logo */

.logo img {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    width: 70px;
    height: 70px;
}

/* Navigation */
.nav {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) ease;
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width var(--transition-speed) ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Call to action central */
.cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-size: 5rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

.cta span {
    display: block;
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-top: 20px;
    font-weight: 400;
    opacity: 0.8;
}

/* Section projets */
.projects {
    padding: 120px 8%;
    background: #fff;
}

.section-header {
    margin-bottom: 80px;
    text-align: left;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
}

/* Modern Project Layout */
.project-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.project-item:nth-child(even) {
    flex-direction: row-reverse;
}

.project-item:hover {
    transform: translateY(-10px);
}

.project-image {
    flex: 1;
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    flex: 1;
    padding: 20px;
}

.project-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.project-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--accent-color);
}

.project-link:hover svg {
    transform: translateX(5px);
}

/* Modal pour description détaillée */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid var(--medium-grey);
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.detail-item h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #666;
}

.detail-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: var(--light-grey);
}

/* Contact section */
.contact {
    padding: 120px 8%;
    background: var(--light-grey);
}

.contact-container {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 500px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--medium-grey);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-button {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: var(--accent-color);
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-logo:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.social-logo:hover svg {
    fill: white;
}

.social-logo svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-color);
    transition: fill 0.3s ease;
}

/* Footer */
footer {
    background: rgb(244, 244, 244);
    color: black;
    padding: 40px 8%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    width: 50px;
    height: 50px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: black;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-legal {
    color: rgb(25, 25, 25);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-item {
        flex-direction: column !important;
        gap: 30px;
    }

    .project-image {
        width: 100%;
        height: 300px;
    }

    .contact-container {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .cta {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .projects, .contact {
        padding: 80px 5%;
    }

    .cta {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.modal-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-image {
    height: 100%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.modal-project {
    display: flex;
    width: 100%;
    height: 500px; /* Hauteur fixe pour la modal */
}

.modal-video {
    height: 100%;
    width: 50%; /* Ajusté pour laisser de l'espace au texte */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.modal-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.modal-details {
    width: 50%;
    padding: 20px;
    overflow-y: auto; /* Permet le défilement si le contenu est trop long */
}

@media (max-width: 768px) {
    .modal-project {
        flex-direction: column;
        height: auto;
    }

    .modal-video, 
    .modal-details {
        width: 100%;
        border-radius: 0;
    }

    .modal-video video {
        border-radius: 0;
    }

    .modal-video {
        height: 250px; /* Hauteur fixe sur mobile */
    }
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 150px; /* Hauteur fixe pour uniformiser */
    object-fit: cover; /* Couper l'image pour qu'elle remplisse le cadre */
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

/* Styles pour la lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1200;
}

.modal-details {
    padding: 40px 30px;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        background-color: rgba(255, 255, 255, 0.95); /* Ajoute un fond léger pour éviter l'effet visuel de flou */
}

.modal-details h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.modal-meta span {
    color: #666;
    position: relative;
}

.modal-meta span:not(:last-child)::after {
    content: '•';
    position: absolute;
    right: -12px;
}

.modal-details p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-details h4 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
}

.modal-details ul {
    list-style-type: none;
    margin-bottom: 30px;
}

.modal-details li {
    margin-bottom: 8px;
    color: #666;
}

.modal-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.primary-btn, .secondary-btn {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: #333;
    color: white;
}

.primary-btn:hover {
    background-color: #555;
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: #333;
    border: 1px solid #333;
}

.secondary-btn:hover {
    background-color: #f5f5f5;
}

/* Section Contact */
.contact {
    background-color: #f9f9f9;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-icon:hover {
    background-color: #555;
    transform: translateY(-5px);
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.submit-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #555;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.landscape-video {
    width: 100%;
    aspect-ratio: 16/9; /* Format paysage standard */
    margin: 20px 0;
}

.landscape-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Style spécifique pour le mode plein écran */
video::-webkit-media-controls-fullscreen-button {
    display: block;
}

/* S'assurer que la vidéo garde ses proportions en plein écran */
video:fullscreen {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
}

