/* ------------------- POLITIQUE DE CONFIDENTIALITÉ ------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Style des sections */
.container section {
    margin-bottom: 3rem;
}

/* Style des titres */
.container h1 {
    margin-bottom: 3rem;
    text-align: center;
    white-space: nowrap;
    padding: 0 1rem;
}

/* Style spécifique pour le titre de la politique de confidentialité */
.privacy-policy h1 {
    font-size: 2.2rem;
}

/* Consistent margin for H2 and H3 */
.container h2, .container h3 {
    margin: 1.5rem 1rem;
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.container h2 {
    font-size: 1.8rem;
    word-wrap: break-word;
}

/* Ensure H3 matches H2 styling */
.container h3 {
    font-size: 1.6rem;
}

/* Style des paragraphes */
.container p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--black);
}

/* Style des listes */
.container ul {
    margin: 1rem 0 1.5rem 2rem;
}

.container li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--black);
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .container h1 {
        font-size: 1.8rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Style spécifique pour le titre de la politique de confidentialité en mobile */
    .privacy-policy h1 {
        font-size: 1.4rem;
        word-wrap: break-word;
        white-space: normal;
    }

    /* Mobile-specific adjustments */
    .container h2, .container h3 {
        margin: 1.2rem 0.5rem;
        font-size: 1.4rem;
    }

    .container h3 {
        font-size: 1.3rem;
    }

    .container h2 {
        margin: 1.2rem 0.5rem;
        padding: 0 0.5rem;
    }

    .container section {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .container ul {
        margin-left: 1.5rem;
        padding-right: 0.5rem;
    }
}

/****** MENTIONS LEGALES ******/

.link-mentions-legales {
    color: var(--primary-color); /* Couleur primaire que tu as définie précédemment */
}

.link-mentions-legales:hover {
    color: var(--tertiary-color); /* Couleur tertiaire pour le hover */
}


/* ------------------- PAGE D'ACCUEIL ------------------- */



.cv-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.bouton-cv {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Copperplate Gothic Bold', Book Antiqua;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bouton-cv:hover {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
}

.bouton-projets {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Copperplate Gothic Bold', Book Antiqua;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bouton-projets:hover {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
}
/* Media Query pour appareils mobiles */
@media (max-width: 768px) {
    .bouton-cv::before {
        content: "Consulter mon CV"; /* Texte pour les mobiles */
        display: block;
        font-size: 1.2rem;
    }

    .bouton-projets::before{
        content:"Voir mes Projets";
        display: block;
        font-size: 1.2rem;
    }
    .bouton-cv , .bouton-projets {
        font-size: 0; /* Masque le texte original sur les mobiles */
    }

    .bouton-cv:hover , .bouton-projets:hover {
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }
}

.home-page {
    
    background-color: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home-page__wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 1rem;
}

/* Version desktop */
@media screen and (min-width: 769px) {
    .home-page {
        margin-top: -3rem; /* Augmenter la valeur négative pour rapprocher */
    }
    .home-page__wrapper {
        display: flex;
        align-items: center;
        gap: 3rem;
    }

    .home-page__image-container {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .home-page__profile-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .home-page__content {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .home-page__title-container {
        margin-bottom: 0rem;
    }

    .home-page__description {
        text-align: left;
    }
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .home-page__wrapper {
        display: flex;
        flex-direction: column;
        align-items:center;
        margin-top: 0rem;
    }

    .home-page__content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .home-page__title-container {
        order: 1;
        text-align: center;
        margin-top: -3rem;
    }

    .home-page__image-container {
       
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0rem;
        margin-bottom: 0.5rem;
    }

    .home-page__profile-image {
        order: 2;
        max-height: 50vh;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .home-page__description {
        order: 3;
        width: 100%;
        text-align :justify;
    }

    .home-page__description p {
        margin-bottom: 1rem;
        text-align: justify;
    }

    .cv-button-container a.bouton-cv{
        text-align: center;
    }
}

/* Version tablette */
@media screen and (max-width: 1024px) {
    .home-page__wrapper {
        gap: 2rem;
        padding: 1.5rem;
    }

    .home-page__image-container {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .home-page__content {
        max-width: 60%;
    }
}

.home-page__image-container {
    flex: 0 0 35%;
    max-width: 35%;
}

.home-page__profile-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 5px solid var(--primary-color);
    max-height: 400px;
}

.home-page__content {
    flex: 1;
    max-width: 65%;
}

.home-page__title {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: min(2.5rem, 5vw);
}

.home-page__description p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-size: min(1rem, 4vw);
    
}

/*************** PAGE SKILLS ************/  
.skills-grid {
    display: grid;
    grid-gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin: 2rem;
  }

  .skill-card {
    background: var(--background-secondary-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease;
  }
  .skill-card:hover {
    transform: translateY(-5px);
  }

  .skill-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
  }

  .skill-card__section + .skill-card__section {
    margin-top: 1rem;
  }

  .skill-card__section h4 {
    font-size: 1rem;
    margin-bottom: .5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--tertiary-color);
    display: inline-block;
    padding-bottom: .25rem;
  }

  .tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .tech-item {
    display: flex;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 999px;
    padding: .25rem .75rem;
    font-size: .875rem;
    gap: .5rem;
    transition: background .3s ease;
  }
  .tech-item:hover {
    background: rgba(var(--primary-rgb), 0.2);
  }

  .tech-icon {
    width: 1.2em;
    height: 1.2em;
    fill: var(--primary-color);
  }

/* Soft Skills Slider */
.skill-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--background-secondary-color);
    padding: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.skill-slider {
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
}

.skill-track {
    display: flex;
    width: max-content;
    animation: slide 45s linear infinite;
}

/*.skill-track:hover {
    animation-play-state: paused; 
}
*/
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    min-width: 120px;
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    background-color: rgba(var(--skill-color), 0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--skill-color);
    transition: color 0.3s ease;
}

.skill-label {
    font-size: 0.9rem;
    color: var(--text-color);
    white-space: nowrap;
    font-weight: 500;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-label {
    color: var(--skill-color);
}


/****************FORM*****************/

/* Styles généraux pour le formulaire */
.contact-form {
    width: calc(100% - 4rem); /* Réduit la largeur pour créer des marges de 2rem de chaque côté */
    margin: -2rem 2rem 2rem; /* Ajustement de la marge pour centrer le formulaire */
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.contact-form fieldset {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.contact-form legend {
    color: var(--primary-color);
    font-weight: bold;
    padding: 0 0.5rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Réglages pour les boutons radio */
.contact-form .radio-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Empêche le retour à la ligne automatique */
}

.contact-form .radio-group label {
    margin-left: 0.5rem; /* Espace entre le bouton radio et le label */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.contact-form input[type="radio"] {
    margin-right: 0.5rem; /* Espace avant le label */
}

/* Styles pour les autres entrées de formulaire */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .submit-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-form input[type="submit"] {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form input[type="submit"]:hover {
    background-color: var(--tertiary-color);
}


/* Version mobile de la navigation et du formulaire */
@media screen and (max-width: 768px) {
    .contact-form label, .contact-form legend {
        font-size: 0.8rem; /* Réduit la taille des labels et des légendes */
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 0.9rem; /* Taille de la police réduite pour les entrées et textareas */
    }

    .contact-form input[type="text"]::placeholder,
    .contact-form input[type="email"]::placeholder,
    .contact-form textarea::placeholder {
        font-size: 0.8rem; /* Réduit la taille du texte des placeholders pour une meilleure lisibilité */
        color: var(--primary-color); /* Optionnel: ajuste également la couleur du placeholder si nécessaire */
    }

    .contact-form .radio-group {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .contact-form .radio-group label {
        white-space: nowrap; /* Empêche le texte de passer à la ligne */
    }

    .contact-form fieldset:first-of-type {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .navbar-logo.menu-open {
        transform: translateX(-25%); /* Ajuste la position du logo lors de l'ouverture du menu */
    }

    .navbar-menu {
        display: flex; /* Assure que le menu est visible en flexbox */
    }
}


/* Additional Contact Information Section */
.additional-contact-info {
    max-width: 600px;
    margin: 0rem auto;
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-bottom: 2rem;
}

.additional-contact-info p {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: 1rem;
}

.additional-contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.additional-contact-info a:hover {
    color: var(--tertiary-color);
}
.additional-contact-info a.bouton-cv:hover{
    color: var(--secondary-color);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .additional-contact-info {
        width: calc(100% - 2rem);
        margin: 1rem;
        padding: 1rem;
    }

    .additional-contact-info p {
        font-size: 0.9rem;
    }

    .additional-contact-info a {
        word-break: break-all;
    }
}

/*PAGE ABOUT */ 

.about-main{
    /* Variables locales à la page */
    --primary:#480e33;
    --secondary:#e8e0e5;
    --tertiary:#8499a5;
    --ink:#1f1f24;
    --bg:#ffffff;
    --muted:#f5f5f7;
    --border:#ececec;
    --date:#6c6c75;

    color:var(--ink);
    background:var(--bg);
    font-family:Copperplate Gothic Bold, ;
    line-height:1.65;
  }
  .about-main *{ box-sizing:border-box; }

  /* Layout principal */
  .about-wrap{max-width:1040px;margin:0 auto;padding:clamp(16px,3vw,32px)}

  /* Hero */
  .about-hero{margin-bottom:22px}
  .about-title{font-size:clamp(28px,4vw,42px);margin:4px 0 6px;color:var(--primary)}
  .about-sub{font-size:clamp(16px,1.4vw,18px);margin:0}

/* Actions (boutons) */
.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
  }
  
  .about-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    transition: background 0.3s ease, color 0.3s ease;
  }
  
  .about-btn:hover {
    background: var(--tertiary); /* couleur tertiaire */
    color: #fff; /* pour garder le contraste */
  }
  
  .about-btn--ghost {
    background: #fff;
    color: var(--primary);
  }
  
  .about-btn--ghost:hover {
    background: var(--tertiary);
    color: var(--primary);
  }
  /* Badges infos rapides sous le hero */
  .about-strip{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px}
  .about-pill{background:var(--muted);border:1px solid var(--border);padding:6px 12px;border-radius:999px;font-size:.95rem;color:#333}

  /* Séparateur */
  .about-divider{height:1px;background:linear-gradient(90deg,transparent,var(--tertiary),transparent);margin:20px 0}

  /* Grilles / cartes */
  .about-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:18px;margin-top:18px}
  @media(max-width:900px){.about-grid{grid-template-columns:1fr}}
  .about-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px 20px;box-shadow:0 8px 18px rgba(0,0,0,.04)}
  .about-card h2{margin:0 0 8px;font-size:1.15rem;color:var(--primary)}

  /* Section titre (plein largeur) */
  .about-section-title{margin:22px 0 10px;font-weight:600;color:#2f2f36}

  /* Stats / repères rapides */
  .about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
  @media(max-width:720px){.about-stats{grid-template-columns:1fr}}
  .about-stat{background:var(--muted);border:1px solid var(--border);border-radius:14px;padding:16px}
  .about-stat strong{font-size:1.25rem;color:var(--primary)}
  .about-stat span{font-size:.92rem;color:#505059}
  .about-stat--link{cursor:pointer}
  .about-stat--link:hover{background:#ececec}

  /* Timeline bipartite */
  .about-timeline{display:grid;grid-template-columns:1fr 1fr;gap:20px}
  .about-timeline-col h3{margin-top:0;color:var(--primary)}
  .about-event{margin-bottom:14px;padding-left:12px;border-left:3px solid var(--tertiary)}
  .about-event-title{display:block;font-weight:600;color:var(--primary)}
  .about-event-date{display:block;color:var(--date);font-size:.9rem;margin-top:2px}

  /* Section loisirs détaillée */
  .about-free p{margin:0 0 10px}
  .about-link{color:var(--primary);text-decoration:underline}



/****************PAGE PROJETS*****************/
.projets-section {
    padding: 2rem 1rem;
    background-color: var(--white);
    color: var(--primary-color);
  }
  
  .search-bar-projets {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .search-bar-projets input {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    width: 60%;
    color: var(--primary-color);
  }
  
  .filters-projets {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .filters-projets button {
    margin: 0.5rem;
    padding: 0.5rem 1.2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 30px;
    font-family: 'Book Antiqua', serif;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .filters-projets button:hover {
    background-color: var(--tertiary-color);
  }
  
  .grid-projets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
  
  .card-projet {
    width: 300px;
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
  }
  
  .card-projet:hover {
    background-color: var(--tertiary-color);
    transform: scale(1.03);
  }
  
  .card-projet h3 {
    margin-top: 1rem;
  }
  
  .card-projet .categorie-projet {
    font-size: 0.85rem;
    color: grey;
    margin-bottom: 0.5rem;
  }
  
  .img-projet {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
  }
  
  .disabled-projet {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
  }
  
  .disabled-projet .img-projet {
    filter: grayscale(100%);
  }
  
  .prochainement-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--tertiary-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
  }
  








/************** PAGE PROJET INDIVIDUEL **************/
.project-individual-container {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Maintain this ratio but ensure responsiveness */
    gap: 20px;
    margin-bottom: 20px;
}

.project-individual-image-block {
    width: 100%; /* Allows the block to fill the grid column */
    max-width: 300px; /* Limits the maximum width to avoid becoming too large */
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-left: 25%; /* Margin to center within the column */
}

.project-individual-image-block img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}


.project-individual-text-block {
    grid-column: 2 / 4; /* Spans across remaining columns */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers content vertically */
    background-color: transparent;
    color: var(--primary-color);
    padding: 0px;
    text-align: justify;
    margin-right: 8%;
    margin-left: 12%;
}

.project-individual-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.pdf-project-container {
    width: 100%;
    margin-left: 15%;
    margin-right: 15%;
    width: 70%;

}

@media (max-width: 768px) {
    .project-individual-container {
        grid-template-columns: 1fr; /* Stack on small screens */
    }

    .project-individual-image-block,
    .project-individual-text-block {
        grid-column: 1; /* Use full width */
        margin-left: 5%;
        margin-right: 5%;
        max-width: none;
    }

    .project-individual-image-block {
        margin-left: auto;
        margin-right: auto;
        max-width: 200px; /* Reduce max width for mobile to make the image smaller */
    }
    

    .pdf-project-container object {
        display: none; /* Optionally hide the PDF viewer if it's not working well on mobile */
    }

    .pdf-project-container {
        height: auto; /* Adjust height based on content */
        margin-top: 0; /* Remove extra space if PDF is not displayed */
        padding: 10px; /* Ensures there's space for the fallback message */
    }

    .pdf-project-container p {
        display: block; /* Ensure the fallback message is always visible on mobile */
        font-size: 16px; /* Increase font size for better visibility */
        color: var(--primary-color); /* Ensure the text is readable */
        text-align: center; /* Center the fallback message */
    }
}

.bouton-rapport {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Copperplate Gothic Bold', Book Antiqua;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bouton-rapport:hover {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
}

/* Media Query pour appareils mobiles */
@media (max-width: 768px) {
    .bouton-rapport::before {
        content: "Consulter mon Rapport de Stage"; /* Texte pour les mobiles */
        display: block;
        font-size: 1.2rem;
    }

    .bouton-rapport {
        font-size: 0; /* Masque le texte original sur les mobiles */
    }

    .bouton-rapport:hover {
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }
}


.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-arrow {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color); /* Adjust the color based on your theme */
    font-size: 20px; /* Adjust based on your preference */
    margin: 15px;
}

.nav-arrow img {
    width: 50px; /* Adjust based on your image size */
    height: auto;
}

.nav-arrow span {
    margin-left: 10px; /* Space between the arrow image and the text */
}
@media (max-width: 768px) {
    .project-navigation {
        margin-left:-20px;
        margin-right:-20px;
    }
    .nav-arrow span {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
}

/*github */
.github-project-container {
    text-align: center; /* Center-align the image and text */
    margin-top: 20px; /* Space from the previous content */
    padding: 20px; /* Padding around the content */
}

.github-project-container img {
    width: 100%; /* Full width of the container or adjust as necessary */
    max-width: 1300px; /* Maximum width of the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Optional: adds depth with a shadow */
    transition: transform 0.3s ease-in-out; /* Smooth transition for scaling */
}

.github-project-container img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.github-project-container p {
    color: var(--primary-color); /* Primary color for the text */
    margin-top: 10px; /* Space above the text */
    font-size: 16px; /* Font size */
}

.github-link {
    color: var(--primary-color); /* Color for the link */
    text-decoration: underline; /* Underline the link */
}

.github-link:hover {
    color: var(--tertiary-color); /* Hover color for the link */
}

/* GitHub project container styles, set for desktop above */

@media (max-width: 768px) {
    .github-project-container img {
        max-width: 100%; /* Adjust image max-width for smaller screens */
        border-radius: 5px; /* Smaller radius for a more subtle effect on small devices */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Lighter shadow for a less aggressive look */
    }

    .github-project-container p {
        font-size: 14px; /* Smaller font size for mobile */
        padding: 0 10px; /* Add padding to keep text from the edges of the screen */
        line-height: 1.5; /* Improve line height for better readability */
    }

    .github-link {
        font-size: 14px; /* Ensure link font size is appropriate for mobile */
    }
}

/*BDD*/
/* General Layout for Large Screens */
.magic-container {
    display: grid;
    align-items: center; /* Center elements vertically */
    justify-items: center; /* Center elements horizontally */
    grid-template-columns: 1fr 1fr; /* Two columns: image and code */
    gap: 20px; /* Space between image and code */
    margin-top: 40px;
    margin-left: 10%; /* Margins for large screens */
    margin-right: 10%;
}

.magic-image img {
    width: 100%;
    max-width: 600px; /* Limit image size */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 5%;
}

.description-text {
    color: var(--primary-color);
    text-align: justify;
    margin-top: 20px;
    line-height: 1.6;
    font-size: 16px;
    grid-column: 1 / 2; /* Confine text to the image column */
}

/* Code Block Styling */
.magic-code-container {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* Syntax Highlighting */
.sql .keyword {
    color: #c678dd;
    font-weight: bold;
}

.sql .string {
    color: #98c379;
}

.sql .comment {
    color: #5c6370;
    font-style: italic;
}

.sql .orange {
    color: #d19a66;
}

.sql .blue {
    color: #61afef;
}

/* Medium Screens (1550px to 1026px) */
@media (max-width: 1550px) {
    .magic-container {
        grid-template-columns: 2fr 1fr; /* Shrink the code block */
        gap: 30px; /* Increase spacing between image and code */
        margin-left: 2%;
        margin-right: 5%;
    }
    .magic-image{
        margin-right: 15%;
    }

    .magic-image img {
        max-width: 90%; /* Ensure image scales down */
        margin-bottom: 10px; /* Add space below the image */
    }

    .description-text {
        font-size: 15px; /* Slightly smaller font size */
        line-height: 1.5;
        margin-top: 10px; /* Reduce top margin */
        grid-column: 1 / 2; /* Ensure text stays under the image */
    }

    .magic-code-container {
        font-size: 13px; /* Reduce code font size */
        padding: 15px; /* Adjust padding for better spacing */
        margin-right: 12%;
    }
}
@media (max-width: 1025px) {
    .magic-container {
        grid-template-columns: 1fr; /* Single-column layout */
        gap: 30px; /* Add spacing between items */
        margin-left: 5%; /* Ensure uniform spacing on the left */
        margin-right: 5%; /* Ensure uniform spacing on the right */
    }

    .magic-image{
        margin-right:4%;
    }
    .magic-image img {
        max-width: 90%; /* Slightly smaller than full width for better spacing */
        display: flex;
        margin-left: auto; /* Center the image */
        margin-right: auto;
        margin-bottom: 15px;
    }

    .description-text {
        font-size: 14px; /* Slightly smaller text for mobile */
        line-height: 1.4;
        margin-top: 10px;
        margin-left: 5%; /* Add spacing on the left */
        margin-right: 5%; /* Add spacing on the right */
        text-align: justify;
    }

    .magic-code-container {
        font-size: 12px; /* Reduce font size for better fit */
        padding: 15px; /* Add padding for spacing */
        margin-left: auto; /* Center the code block */
        margin-right: auto; /* Center the code block */
        max-width: 90%; /* Ensure the code block doesn't stretch too far */
    }
}

/**projet SEO**/

/*bouton SEO */

.bouton-seo {
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Copperplate Gothic Bold', Book Antiqua;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.bouton-seo:hover {
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
}
/* Media Query pour appareils mobiles */
@media (max-width: 768px) {
    .bouton-seo::before {
        content: "Consulter mon Audit SEO"; /* Texte pour les mobiles */
        display: block;
        font-size: 1.2rem;
    }

    .bouton-seo {
        font-size: 0; /* Masque le texte original sur les mobiles */
    }

    .bouton-seo:hover {
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }
}


/**** HACKER OU PROTEGER ****/

.main-hack {
    padding: 2rem;
  }
  .section-hack {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
  }
  .title-hack {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .audio-hack {
    display: block;
    margin: 1rem 0;
  }
  .text-hack {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  /*mdp generateur*/
  .generator-container-hack {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--tertiary-color);
    border-radius: 8px;
  }
  .generator-label-hack {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
  }
  .generator-output-hack {
    font-family: monospace;
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 1px solid var(--tertiary-color);
    background-color: var(--white);
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 4px;
  }
  .generator-button-hack {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
  }
  .generator-button-hack:hover {
    background-color: var(--tertiary-color);
  }

  @media screen and (max-width: 600px) {
    .main-hack {
      padding: 1rem;
    }

    .section-hack {
      padding: 2rem 1rem;
      margin: 1rem;
    }
    .text-hack {
        font-size: 1rem;
        text-align: justify;
      }

      .generator-button-hack {
        width: 100%;
        margin-top: 1rem;
      }

      .generator-container-hack {
        padding: 1rem;
      }

      #wifi-animation-hack > div {
        flex-direction: column;
        gap: 1rem;
      }

    }


/********** PAGE DES PROJETS UNIQUES ***********/
.proj-wrapper {
    background-color: #e8e0e5;
    color: #480e33;
    font-family: 'Roboto', sans-serif;
  }
  .proj-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .proj-fade.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .proj-tag {
    background-color: #8499a5;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: inline-block;
  }
  @media (min-width: 1024px) {
.proj-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  padding-left: 1rem;
  padding-right: 1rem;
}
.proj-sidebar {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}
}
    