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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

/* Container */
.container {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Headers */
h1, h2 {
    color: #333;
}

h1 {
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    position: absolute;
    bottom: 0;
    left: 430px;
    margin: 0;
}

/* Header Container et Photo */
.header-container {
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-bottom: 30px;
}

.profile-photo {
    width: 200px;
    height: 275px;
    margin-right: 30px;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Info */
.contact-info {
    position: absolute;
    top: 0;
    left: 230px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info h2 {
    margin: 0 0 10px 0;
    color: #007bff;
    font-size: 1.5em;
}

.contact-info p {
    margin: 5px 0;
    font-size: 1em;
    color: #333;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Tabs */
.tabs-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    width: 100%;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab.active {
    background-color: #007bff;
    color: white;
}

.tab:hover {
    background-color: #e7f1ff;
}

.tab.active:hover {
    background-color: #0056b3;
}

/* Projects */
.project {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

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

.project-title i {
    margin-right: 15px;
    color: #007bff;
    font-size: 24px;
}

.project-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sections */
.section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: #007bff;
    margin-top: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #e7f1ff;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tech-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tech-item img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-dots {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Media Queries */
@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }

    h1 {
        position: static;
        text-align: center;
        padding-bottom: 10px;
    }

    .contact-info {
        position: static;
        margin: 20px auto;
        text-align: center;
        max-width: 400px;
    }

    .tabs-container {
        flex-direction: column;
        gap: 10px;
    }

    .tab {
        margin: 0;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    .slide img {
        height: 300px;
    }
    
    .carousel-button {
        padding: 10px;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .project-banner {
        height: 200px;
    }
}
