/* Polices */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary-color: #ff85a2;
    --secondary-color: #ffd1dc;
    --dark-color: #333;
    --light-color: #fff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
}

/* Navigation */
.menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--dark-color);
    transition: var(--transition);
    z-index: 99;
    padding: 2rem;
}

.menu.active {
    left: 0;
}

.menu-close-btn {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.menu ul {
    list-style: none;
    margin-top: 5rem;
}

.menu li {
    margin-bottom: 1rem;
}

.menu a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.menu a:hover {
    color: var(--primary-color);
}

/* Social Icons */
.social-icons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    background-color: var(--dark-color);
    padding: 1rem 0.5rem;
    border-radius: 10px 0 0 10px;
    z-index: 90;
}

.social-icons a {
    color: var(--light-color);
    font-size: 1.2rem;
    margin: 0.5rem 0;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-image {
        margin-bottom: 0;
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.project-card:hover .view-project {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.project-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.view-project {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    opacity: 1;
}

@media (hover: hover) {
    .view-project {
        opacity: 0;
    }
}

.view-project i {
    margin-left: 5px;
    transition: var(--transition);
}

.project-card:hover .view-project i {
    transform: translateX(3px);
}

/* Section Hobbies */
.hobbies {
    text-align: center;
    padding: 0rem 2rem;
    background: var(--light-color); /* Fond blanc */
}

.hobbies .title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

/* Ajoutez ces lignes à votre section des hobbies dans le CSS */
.hobbies .carousel .card {
    background: var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    border: 2px solid var(--primary-color);
    height: 420px; /* Hauteur fixe pour toutes les cartes */
    display: flex;
    flex-direction: column;
}

.hobbies .carousel .card .box {
    display: flex;
    flex-direction: column;
    height: 100%; /* Prend toute la hauteur de la carte */
    justify-content: space-between; /* Distribue l'espace verticalement */
}

.hobbies .carousel .card .box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color); /* Cercle rose */
    margin-bottom: 1rem;
}

.hobbies .carousel .card .box .text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.hobbies .carousel .card .box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    flex-grow: 1; /* Permet au paragraphe de prendre l'espace disponible */
    display: flex;
    align-items: center; /* Centre verticalement le texte */
}

/* Effet au survol */
.hobbies .carousel .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 133, 162, 0.4); /* Ombre rose */
}

/* Button */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-decoration: none;
}

.btn:hover {
    background-color: #ff6b8b;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--light-color);
    margin: 0 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .social-icons {
        padding: 0.5rem 0.3rem;
    }
    
    .social-icons a {
        font-size: 1rem;
    }
}