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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 20%;
    background-color: #944150;
    color: #fff;
    height: 100vh;
    padding: 30px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.sidebar.active .profile,
.sidebar.active nav,
.sidebar.active {
    display: block;
}


/* Profile Section */
.profile-img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.profile h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 10px;
}

.profile p {
    font-size: 16px;
    color: #eee;
}

/* Navigation */
nav ul {
    list-style-type: none;
}

nav ul li {
    margin-bottom: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: #f4f4f9;
}

/* Social Links */
.social-links {
    margin-top: 10px;
    margin-bottom: 10px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #f4f4f9;
}

/* Main Content */
.main-content {
    margin-left: 20%;
    padding: 40px;
    width: 80%;
    min-height: 80vh;
}

/* Buttons */
button {
    padding: 10px 25px;
    background-color: white;
    color: #944150;
    border: 2px solid white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-right: 15px;
    margin-bottom: 15px;
}

button:hover {
    background-color: #944150;
    color: white;
    border: 2px solid white;
}

button.border {
    border-color: #944150;
}

button.full-width {
    width: 100%;
}

/* Sections and Headings */
h1,
h2 {
    color: #944150;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

p,
li {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

section {
    margin-bottom: 50px;
}

/* Style pour le sélecteur de langue */
.language-selector {
    margin-top: 15px;
    position: relative;
    display: inline-block;
    text-align: center;
}

.lang-toggle {
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lang-list {
    display: none;
    position: absolute;
    top: -150px;
    /* Positionne le sélecteur au-dessus du globe */
    left: 50%;
    transform: translateX(-50%);
    background-color: #f4f4f9;
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 150px;
    /* Largeur du menu */
    overflow: hidden;
}

.lang-list li {
    padding: 0;
    margin: 0;
}

.lang-list li a {
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 14px;
    color: #944150;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lang-list li a img {
    width: 20px;
    margin-right: 10px;
}

.lang-list li a:hover {
    background-color: #741e32;
    color: #fff;
}

.lang-toggle:hover {
    color: #f4f4f9;
}

/* Afficher la liste lorsqu'elle est active */
.language-selector .lang-list.active {
    display: block;
}

/* Highlight the active language */
.active-lang {
    font-weight: bold;
    color: #741e32;
}

/* Cards */
.card-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    text-decoration: none;
    color: inherit;
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #944150;
}

.card p {
    font-size: 16px;
    color: #555;
}

.card a {
    text-decoration: none;
    color: inherit;
}

/* Section with Image */
#portfolio-img {
    width: 40%;
}

.section-with-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-with-img:not(.no-list):nth-child(odd) {
    flex-direction: row-reverse;
}

.section-with-img img {
    transition: transform 0.3s ease;
    border-radius: 20px;
    width: 20%;
    object-fit: cover;
    filter: drop-shadow(0px 10px 30px rgba(0, 0, 0, 0.15));
}

.section-with-img img:hover {
    transform: scale(1.05);
}

.section-with-img-content {
    width: 70%;
}

.section-with-img-content p {
    margin-bottom: 20px;
}

/* Contact Page Specific */
.contact-info {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.contact-info li {
    font-size: 18px;
    margin-bottom: 10px;
}

.link {
    color: #944150;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.link:hover {
    color: #741e32;
}

/* Redesigned social buttons */
.social-box {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-weight: bold;
}

.social-button i {
    margin-right: 10px;
}

.social-button.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social-button.instagram:hover {
    background: linear-gradient(45deg, #dd2a7b, #f58529);
}

.social-button.linkedin {
    background-color: #0077b5;
}

.social-button.linkedin:hover {
    background-color: #005582;
}

.social-button.github {
    background-color: #333;
}

.social-button.github:hover {
    background-color: #555;
}

/* Additional hover effect for all buttons */
.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
}

/* Image de profil en grand pour la page de contact */
.profile-img-large {
    width: 350px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
}

.accordion {
    cursor: pointer;
    padding: 18px;
    width: 100%;
    background-color: #944150;
    color: white;
    text-align: left;
    border: none;
    outline: none;
    font-size: 18px;
    transition: background-color 0.4s ease;
    border-radius: 8px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.accordion:hover {
    background-color: #6f2f36;
}

.accordion:after {
    content: '\002B';
    /* Unicode pour le symbole "+" */
    color: white;
    float: right;
}

.active-accordion:after {
    content: "\2212";
    /* Unicode pour le symbole "-" */
}

.panel {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #555;
}

/* Footer Section */
footer {
    background-color: #5A1E28;
    /* Couleur de fond pour une cohérence plus sobre */
    color: #bbb;
    /* Couleur de texte secondaire */
    padding: 40px 0 0 0;
    font-family: 'NomDeVotrePolice', sans-serif;
    /* Adaptez au style de votre site */
    margin-left: 20%;
    width: 80%;
}

footer .footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

footer .footer-section {
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

footer .footer-section h3 {
    font-size: 16px;
    color: #bbb;
    /* Couleur pour les titres de section */
    margin-bottom: 10px;
    font-weight: bold;
}

footer .footer-section p,
footer .footer-section ul {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
    /* Couleur des textes secondaires pour le footer */
}

footer .footer-section ul {
    list-style: none;
    padding: 0;
}

footer .contact a {
    color: #bbb;
    /* Couleur des liens */
    text-decoration: none;
}

footer .contact a:hover {
    color: #8B2C38;
    /* Couleur des liens au survol */
    text-decoration: underline;
}

footer .social-media-links a {
    color: #bbb;
    /* Couleur des icônes de réseaux sociaux */
    font-size: 18px;
    text-decoration: none;
    margin: 0 15px 0 0;
}

footer .social-media-links a:last-child {
    margin: 0px;
}

footer .social-media-links a:hover {
    color: #8B2C38;
    /* Couleur des icônes au survol */
}

footer .footer-section .logo {
    font-size: 20px;
    /* Taille de logo ou texte de bienvenue */
    color: #bbb;
    font-weight: bold;
}

footer .footer-section p {
    margin: 0;
}

/* Copyright */
footer .footer-copyright {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #888;
    /* Couleur plus douce pour le copyright */
    border-top: 1px solid #bbbbbb84;
    /* Ligne séparatrice subtile */
}

footer .footer-copyright a {
    color: #888;
    /* Couleur des liens de mentions légales et de politique */
    text-decoration: none;
}

footer .footer-section ul li {
    margin-bottom: 5px;
}


/* Responsive Styling */

/* Tablet and smaller devices */
@media (max-width: 810px) {

    h1,
    h2 {
        text-align: center;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }

    /* Stack image and text vertically */
    .section-with-img {
        flex-direction: column;
        text-align: center;
    }

    .section-with-img img {
        display: none;
    }

    .section-with-img-content {
        width: 100%;
    }

    .social-links {
        margin-top: 20px;
    }

    .social-box {
        justify-content: center;
        gap: 10px;
    }

    footer {
        width: 100%;
        margin-left: 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {

    p,
    a {
        font-size: 14px !important;
    }

    .profile-img-large {
        width: 120px;
    }

    .section-with-img img {
        width: 120px;
    }

    .section-with-img-content p,
    li {
        font-size: 14px;
    }

    .social-box {
        margin-top: 10px;
    }

    .contact-info li {
        font-size: 14px;
    }

    button {
        font-size: 14px;
    }

    footer .footer-container {
        text-align: center;
    }
}