body {
    font-family: "Playfair Display", serif;
    background-image: url('fond.png');
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.site-container {
   display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

header, footer {
     position: relative;
    z-index: 10;
    width: 100%;
    background-color: rgba(195, 195, 195, 0.19);
}

header {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 5px 5px 3px rgba(0, 0, 0, 0.2);
}

header .container {
     display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

.header-title {
    font-size: 25px;
    font-weight: bold;
}

.header-title a{
    text-decoration: none;
    color: #333;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.menu-icon {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

.about-me, .competences, .projects {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.about-me h2, .skills h2, .projects h2 {
    margin-top: 0;
    font-size: 23px;
}

.about-content {
    display: flex;
    align-items: center;
}

.about-text {
    flex: 1;
    padding-right: 20px;
    font-size: 15px;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 50%;
    padding-left: 200px;
    border-radius: 5px;
}

/* Style général de la section Compétences */
.competences {
    max-width: 100%;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Fond clair pour une lecture agréable */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ombre légère pour le relief */
     margin-bottom: 50px;
}

.competences h2 {
    color: #2c3e50; /* Bleu foncé pour un côté professionnel */
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eaeaea; /* Ligne de séparation discrète */
    padding-bottom: 10px;
}

/* Style des catégories de compétences */
.competences-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.categorie {
    flex: 1 1 200px; /* Largeur flexible avec un minimum de 200px */
    margin-bottom: 20px;
}

.categorie h3 {
    color: #34495e; /* Bleu-gris pour les titres de catégorie */
    font-size: 18px;
    margin-bottom: 10px;
}

.categorie ul {
    list-style-type: none; /* Pas de puces */
    padding: 0;
}

.categorie li {
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea; /* Ligne de séparation entre les compétences */
    color: #555; /* Gris pour le texte des compétences */
}

.categorie li:before {
    content: "• "; /* Puce personnalisée */
    color: #e74c3c; /* Rouge pour un côté dynamique */
    font-weight: bold;
}


.projects-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.project-card {
    flex: 0 0 calc(25% - 10px);
    background-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 150px;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-image img {
   width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.project-title {
    padding: 10px;
}

.project-title h3 {
    margin-top: 0;
}

.project-title a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #333;
}

.general{
    text-decoration: none;
    position: absolute;
    right: 0;
    color: #333;
}

footer {
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    box-shadow: 0 -5px 5px 3px rgba(0, 0, 0, 0.3);
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
}

.contact-title {
    flex: 1;
    text-align: center;
    position: absolute;
    left: -520px;
    top: 100px;
}

.tear-image {
   position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tear-image img {
    width: 800px; /* Réduction de la taille de l'image */
    height: auto;
    transform: rotate(45deg); /* Rotation de l'image */
    position: absolute;
    top: -140px;
    left: -740px;
}

.contact-title h1 {
    font-size: 35px;
    font-weight: bold;
    margin: 0;
    line-height: 0.9;
}

.contact-info {
    flex: 1;
}

.contact-item {
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
}

.contact-item i {
    font-size: 1.5em;
    margin-right: 15px;
    color: #333;
}

.contact-item p {
    font-size: 1.2em;
    margin: 0;
}

/* Media Queries */

@media screen and (max-width: 768px) {

    .menu-icon {
    display: block;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100px;
    background-image:url(fond.png);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;

    /* caché par défaut */
    display: none;
  }

  /* quand on clique sur le burger */
  #menu-toggle:checked + .menu-icon + .header-nav {
    display: flex;
  }

    /* Container général */
    .container {
        padding: 15px;
    }

    /* HEADER */
    header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-title {
        font-size: 20px;
    }

    .header-nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    /* ABOUT ME */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image img {
        max-width: 60%;
        padding-left: 0;
    }

    /* TITRES */
    .about-me h2,
    .skills h2,
    .projects h2 {
        font-size: 20px;
        text-align: center;
    }

    /* SKILLS */
    .skills-content {
        height: auto;
        padding: 15px;
    }

    /* PROJECTS */
    .projects-content {
        flex-direction: column;
        gap: 15px;
    }

    .project-card {
        flex: 1 0 100%;
    }

    .project-image {
        height: 120px;
    }

    /* FOOTER */
    footer {
        font-size: 13px;
    }

 .contact {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        position: relative;
    }

    /* TITRE */
    .contact-title {
        position: relative;
        left: 0;
        top: 0;
        text-align: center;
        margin-bottom: 40px;
        z-index: 2;
    }

    .contact-title h1 {
        font-size: 28px;
        line-height: 1.1;
    }

    /* BARRE BLANCHE (tear-image) */
    .tear-image {
        position: absolute;
        top: 100px;          /* position verticale de la barre */
        left: 0;
        width: 100%;
        height: 80px;        /* épaisseur de la barre */
        overflow: hidden;
        z-index: 1;
        opacity: 0.7;
    }

    .tear-image img {
        position: absolute;
        width: 500px;
        height: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}

    /* INFOS CONTACT */
    .contact-info {
        width: 100%;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        margin: 25px 0;
        justify-content: center;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.3em;
        margin-right: 10px;
    }

    .contact-item p {
        font-size: 1em;
    }