/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

/* À propos */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}


.about-text {
    flex: 1;
}

.about-text p {
    text-align: justify;
    justify-content: none;
}

.about-image-mosaic {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.right-column {
    flex: 1;
}

.about-image-mosaic img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.left-column img {
    height: calc(50% - 0.5rem); /* pour que les deux ensemble fassent la hauteur de la grande */
}

.right-column img {
    height: 100%;
}


/* Formation */
.formation {
    background-color: #f9f9f9;
}

.forma {
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
    padding-left: 16px;
}

.forma h3 {
    color: #3498db;
    font-size: 1.4em;
}

.forma p {
    margin: 4px 0;
    font-size: 0.95em;
    color: #555;
}



/* Skills Section */
.skills {
    background-color: #f5f5f5;
    padding: 5rem 0;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.skill-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: calc(33.333% - 2rem);
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.skill-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-description {
    color: #666;
}

/* Portfolio */
.portfolio {
    background-color: #f9f9f9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    margin-bottom: 0.5rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #e9ecef;
    color: #555;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.lienProjets {
    text-align: center;
    margin-top: 20px;
    background-color: #007bff;
    width: 20%;
    border-radius: 10px;
    margin: auto;
    margin-top: 10px;
}

.lienProjets a {
    text-decoration: none;
    color: white;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    margin-bottom: 50px;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #1e40af;
}

/* Quote Section */
.quote {
    background-color: #230FA6;
    /*background-color: #f5f5f5;*/
    padding: 6rem 0;
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    color: #ffff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quote-author {
    font-weight: 600;
    color: #fff;
}

/* Contact */
.contact {
    background-color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details li span a {
    text-decoration: none;
    color: #333;
}

.contact-details li span a:hover {
    color: #007bff;
}

.contact-icon {
    margin-right: 1rem;
    color: #007bff;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}