/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header and Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
}

/* Effet de soulignement animé */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--secondary-color);
}

/* Menu burger pour mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* Style pour le menu actif */
.nav-links li a.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Media Queries */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease;
        margin: 0;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    /* Animation du menu burger */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Hero Section */
.hero {
    height: 60vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Carousel Styles */
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: white;
}

/* Projects Section */
.projects {
    padding: 6rem 5%;
    background-color: var(--light-bg);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Team Section */
.team {
    padding: 6rem 5%;
    background-color: var(--light-bg);
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 1rem;
}

.team-member {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.team-member-info p {
    color: #666;
    font-size: 1rem;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-member-social a {
    color: var(--primary-color);
    transition: var(--transition);
}

.team-member-social a:hover {
    color: var(--secondary-color);
}

/* Contact Section */
.contact {
    padding: 6rem 5%;
    background-color: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: transparent;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.5rem;
    color: #666;
    cursor: text;
    transition: var(--transition);
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
}

#contact-form button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info {
    padding: 2rem;
    background-color: var(--primary-color);
    border-radius: 8px;
    color: #fff;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
} 

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
}

.language-selector button {
    padding: 0.3rem 0.6rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.language-selector button:hover {
    background: var(--primary-color);
    color: white;
}

/* About Section */
.about {
    padding: 6rem 5%;
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.mission, .vision {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mission h3, .vision h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
} 

/* Project Categories */
.project-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn.active,
.category-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-info p {
    color: #666;
    line-height: 1.6;
} 

/* Project Cards Spacing */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    padding: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 1000px;
    margin: 50px auto;
    padding: 2rem;
    border-radius: 12px;
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.project-gallery img:hover {
    transform: scale(1.05);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Full size image view */
.fullsize-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    cursor: zoom-out;
}

.fullsize-image img {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} 

/* Ajustements pour le responsive design */

/* Menu mobile */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.5s ease;
        margin: 0;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .language-selector {
        position: absolute;
        right: 80px;
    }

    /* Hero section adjustments */
    .hero {
        height: 50vh;
    }

    .hero-content {
        width: 90%;
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Projects section */
    .project-categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        gap: 1.5rem;
        padding: 0.5rem;
    }

    /* Team section */
    .team-grid {
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .team-member {
        margin: 0 auto;
        max-width: 300px;
    }

    /* Contact section */
    .contact-container {
        padding: 1.5rem;
    }

    #contact-form button {
        width: 100%;
        text-align: center;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 1rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .close-modal {
        top: 0.5rem;
        right: 0.5rem;
    }

    /* Full size image */
    .fullsize-image img {
        width: 95%;
        height: auto;
    }
}

/* Petits écrans */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission, .vision {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .language-selector button {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Ajustements pour les tablettes */
@media (min-width: 481px) and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Amélioration de l'accessibilité tactile */
@media (hover: none) {
    .nav-links li a,
    .category-btn,
    .project-card,
    .team-member,
    button {
        cursor: default;
    }

    .nav-links li a:active,
    .category-btn:active,
    .project-card:active {
        transform: scale(0.98);
    }

    .project-gallery img {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
    }
}

/* Amélioration de la navigation au clavier */
:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Amélioration du contraste pour la lisibilité */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #1a2530;
        --secondary-color: #0066cc;
        --text-color: #000000;
    }
}

/* Contact Section */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        margin: 0 1rem;
        gap: 2rem;
    }

    #contact-form {
        width: 100%;
        padding: 0;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 0.8rem;
    }

    .contact-info {
        margin: 0;
        padding: 1.5rem;
    }

    #contact-form button {
        width: 100%;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 4rem 1rem;
    }

    .contact-container {
        padding: 1rem;
        margin: 0;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}