
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --bg-light: #F6F2EC;
    --text-dark: #0D0D0D;
    --accent: #000000;
    --card-bg: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-title {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}



.back {
    color: black;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: left;
}

.about {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    margin-left: 15vh;
}

.about-text {
    text-align: left;
    padding-right: 20px;
}

.about-image {
    flex-shrink: 0;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.about-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
}

.competences-grid, .valeurs-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 100%;
    margin: auto;
}

.card, .valeur {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    background: #333333;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 20px var(--shadow);
    transition: transform 0.2s ease-in-out;
    min-height: 250px;
}

.card p, .valeur p {
    flex-grow: 1;
}

.card:hover, .valeur:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.1);
}

.card h3, .valeur h3 {
    font-size: 1.2rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.interets {
    text-align: center;
    margin-top: 50px;
}

.interets h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: left;
}

.interets-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}


.interet-item {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow);
    overflow: hidden;
    width: 280px;
    height: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.interet-item:hover {
    transform: scale(1.05);
}

.interet-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid var(--accent);
    margin-bottom: -5px;
}

.interet-text {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.interet-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    margin-top: 40px;
}

.contact-button {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.contact-button:hover {
    background: #000000;
}

section {
    margin-top: 80px;
    margin-bottom: 50px;
}

.interets h2 {
    text-align: center;
}

.competences h2, .valeurs h2 {
    margin-bottom: 30px;
}

.competences-grid, .valeurs-grid {
    gap: 30px;
}

.about-text {
    max-width: 60%;
    margin-left: -150px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }

    .competences-grid, .valeurs-grid {
        grid-template-columns: 1fr;
    }

    .interets-grid {
        flex-direction: column;
        align-items: center;
    }

    .page-title,
    .section-title,
    .interets h2 {
        text-align: center;
    }
}
