/* === Structure générale === */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5; /* gris très clair pour le fond global */
    color: #333;
}

.portfolio-container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

/* === Sidebar === */
.sidebar {
    width: 250px;
    background-color: #000; /* noir */
    color: #fff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li.tab {
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}

.sidebar li.tab:hover {
    background-color: rgba(255,128,0,0.2); /* orange léger */
}

.sidebar li.tab.active {
    background-color: #ff8000; /* orange DG Multiservices */
    color: #000;
    font-weight: bold;
}

/* === Contenu === */
.content {
    flex: 1;
    padding: 40px;
    position: relative;
    background: #fff8f0; /* fond légèrement chaud, blanc cassé/orangé */
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.03);
}

/* === Tab content === */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

/* Conteneur image + texte côte à côte */
.site-display {
    display: flex;
    align-items: center;
    justify-content: center; /* centre horizontalement */
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Image du site */
.site-display img {
    max-width: 300px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Texte et bouton */
.site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Description texte */
.site-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #000;
}

/* Bouton stylé */
.btn-visit {
    display: block;
    width: 100%;
    padding: 12px 0;
    background-color: #ff8000; /* orange */
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.btn-visit:hover {
    background-color: #e67300; /* orange plus foncé */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* === Responsive === */
@media (max-width: 900px) {
    .portfolio-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }

    .sidebar li.tab {
        flex: 1 0 auto;
        text-align: center;
        border-bottom: none;
        border-right: 1px solid rgba(255,255,255,0.2);
    }

    .site-display {
        flex-direction: column;
        align-items: center;
    }

    .site-display img {
        max-width: 100%;
        max-height: 250px;
        margin-bottom: 15px;
    }

    .site-info {
        width: 100%;
        text-align: center;
    }

    .btn-visit {
        margin-top: 10px;
    }
}
