:root {
--color-1: #FC8DCA;
--color-2: #C37EDB;
--color-3: #B7A6F6;
--color-4: #88A3E2;
--color-5: #AAECFC;
--color-text: #49168d;
--color-skill-1: #e1f5fe;

--color-1-light: #fc8dca1a;

--container-color: rgba(255, 255, 255, 0.15);
--body-color: rgba(255, 255, 255, 0.08);

--color-light: rgba(255, 255, 255, 0.1);
--color-lighter: rgba(255, 255, 255, 0.05);
--color-shadow: rgba(0, 0, 0, 0.5);
--color-shadow-light: rgba(0, 0, 0, 0.2);


--font-1: 'Inconsolata', monospace;
--font-2: 'Karla', monospace;

--first-color: var(--color-3);
--title-color: var(--color-text);

--normal-font-size: 1rem;
--small-font-size: 0.875rem;
--smaller-font-size: 0.75rem;

/* Poids de police */
--font-medium: 500;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    }

body {
    font-family: var(--font-2);
    color: var(--color-text);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--color-1) 0%, var(--color-2) 25%, var(--color-3) 50%, var(--color-4) 75%, var(--color-5) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.nav__logo{
    color: var(--color-text);
    transition: .4s;
    position: fixed;
    width: 100%;
    text-align: start;
    padding: 1rem 20%;
    text-decoration: none;
    z-index: 99;
}

.nav__container.scrolled .nav__logo{
    color: var(--color-light);
    box-shadow: 0 0 10px var(--color-shadow);
    backdrop-filter: blur(10px);
}


.nav__logo:hover{
    color: var(--color-4);
}

.accueil {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.navbar-spacer {
    display: block;
    width: 100%;
}

.nav__menu {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background-color: var(--color-1-light);
    padding: 1rem 2rem;
    z-index: 98;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    transition: bottom 0.4s ease;
}

.nav__container.scrolled .nav__menu{
    bottom: 20px;
    backdrop-filter: blur(10px);
}

.nav__menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
}


.nav__menu a img {
    width: 30px;
    height: auto;
    transition: all 0.3s ease;
}

.nav__menu a {
    display: block;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease, transform 0.3s ease;
}

.nav__menu a.active {
    background-color: var(--color-1);
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav__menu a.active img {
    transform: scale(1.2);
}

.nav__menu a:hover {
    background-color: var(--color-1);
}

h1, h2, h3 {
    font-family: var(--font-1);
    margin-bottom: 1rem;
    z-index: -1;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--color-1);
}
section {
    min-height: 90vh;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-profile {
    width: 300px;
    height: 300px;
    background-color: var(--color-1-light);
    border-radius: 300px;
    outline: 5px solid var(--color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.intro-text {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.intro__interactions .intro__list {
    display: flex;
    justify-content: center;
    gap: 1.5rem; 
    margin-top: 2rem;
    padding: 0; 
    flex-wrap: wrap; 
}

.intro__interactions .intro__list li {
    list-style: none;
}

.intro__interactions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-1);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    font-family: var(--font-1);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 44px; 
    min-height: 44px;
}

.intro__interactions .btn img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.intro__interactions .btn:hover {
    background-color: var(--color-2);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.intro__interactions .btn:hover img {
    transform: scale(1.5);
}

.btn {
    display: inline-block;
    background-color: var(--color-1);
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-1);
    font-weight: bold;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-2);
    transform: translateY(-3px);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p{
    margin: 1rem 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: var(--color-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
/* Définition des variables manquantes */
:root {
    /* Ajout de ces variables pour le nouveau système */
    --container-color: var(--color-light);
    --body-color: rgba(255, 255, 255, 0.05);
    --first-color: var(--color-1);
    --title-color: var(--color-text);
    
    /* Tailles de police */
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
    
    /* Poids de police */
    --font-medium: 500;
}


#competences {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

#competences h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

#competences h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-1); /* Utilisation de color-1 au lieu de color-primary */
}

.skills__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100vw;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.skills__content {
    background-color: var(--color-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--color-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.skills__content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--color-shadow);
}

.skills__title {
    font-size: 1.4rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
    height: 100%;
}

.skill-item {
    display: flex;
    align-items: center;
    background-color: var(--body-color);
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-right: 0.8rem;
    min-width: 30px;
    text-align: center;
}

.skill-info {
    flex: 1;
}

.skills__name {
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-bottom: 0.2rem;
    color: var(--color-text);
}

.niveau {
    display: inline-block;
    font-size: var(--smaller-font-size);
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    font-weight: var(--font-medium);
}

.initie {
    background-color: rgba(252, 141, 202, 0.2);
    color: var(--color-text);
}

.confirme {
    background-color: rgba(195, 126, 219, 0.3);
    color: var(--color-text);
}

.expert {
    background-color: rgba(183, 166, 246, 0.4);
    color: var(--color-text);
}

.skills__content {
    padding: 2rem;
}

.skills__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
}




/* Styles pour la section projets*/
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    background-color: var(--color-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-info {
    padding: 1.5rem;
}

.projects__more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}






.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-1);
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-lighter);
    border: 1px solid var(--color-3);
    border-radius: 4px;
    color: var(--color-text);
    font-family: var(--font-2);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    background-color: var(--color-1);
    color: var(--color-text);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-1);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--color-2);
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-1-light);
    margin-top: 5rem;
}

footer a {
    color: var(--color-1);
    text-decoration: none;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--color-text);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    text-decoration: none;
}


#projetModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: fadeIn 0.3s;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}
  

  #modalContent {
    background-color: var(--color-1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    margin: 50px auto;
    box-shadow: 0 4px 20px var(--color-shadow);
    position: relative;
    animation: slideIn 0.3s;
    border: 1px solid var(--color-3);
    color: var(--color-text);
    padding: 25px;
  }
  
  .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s;
  }
  
  .close:hover {
    color: var(--color-1);
  }
  
  .modal-header {
    padding-right: 40px;
  }
  



  /* Styles pour les filtres de projets */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 1rem;
}

.filter-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-light);
    color: var(--color-text);
    border-radius: 8px;
    font-family: var(--font-1);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px var(--color-shadow-light);
}

.filter-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--color-shadow);
}

.filter-tag.active {
    background-color: var(--color-1);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--color-shadow);
}

/* Styles pour les tags dans les cartes de projets */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.project-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--color-1-light);
    color: var(--color-text);
    border-radius: 30px;
    font-size: var(--smaller-font-size);
    font-weight: var(--font-medium);
}

/* Message quand aucun projet ne correspond aux filtres */
.no-projects-message {
    text-align: center;
    padding: 2rem;
    width: 100%;
    color: var(--color-text);
    font-style: italic;
    background-color: var(--color-light);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px var(--color-shadow-light);
}

/* Responsive design pour les filtres */
@media (max-width: 768px) {
    section{
        height: auto;
    }

    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1.2rem;
    }

    
    .nav__menu a {
        margin: 0.2rem 0;
    }

    .nav__logo{
        padding: 1rem 10%;
    }

    .intro__interactions .intro__list {
        gap: 1rem;
    }
    
    .intro__interactions .btn {
        padding: 0.6rem 1.2rem;
    }

    .skill-item {
        flex-direction: column;
        text-align: center;
    }
    
    .skill-icon {
        margin-right: 0;
        margin-bottom: 0.8rem;
    }

    .skills__container {
        gap: 0.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .skills__content {
        padding: 1rem;
    }

    #modalContent {
        width: 95%;
        margin: 20px auto;
        padding: 15px;
      }
      
      .close {
        right: 10px;
        top: 10px;
      }
      .project-filters {
        gap: 8px;
        padding: 0.5rem;
    }
    
    .filter-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

}


/* -------------------------------------------------------------------------------- */


/* First, let's add some base responsive settings */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for easy rem scaling */
}

@media (max-width: 900px) {
.skills__container {
    grid-template-columns: 1fr; /* Single column for smaller screens */
    column-gap: 1rem;
}

.badge-profile {
    width: 200px; /* Smaller profile image */
    height: 200px;
}

}

/* Enhance existing media query for tablets/medium mobile (768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* Slightly smaller base font size */
    }
    
    section {
        padding: 3rem 1.5rem; /* Reduce padding on sections */
        min-height: auto; /* Allow sections to be their natural height */
    }

    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem; /* Reduce margin */
    }
    
    .intro-text {
        font-size: 1.2rem;
    }
    
    /* Improve nav menu for mobile */
    .nav__menu {
        padding: 0.8rem 1.5rem;
        width: 90%; /* Make it more compact */
    }
    
    .nav__menu ul {
        gap: 0.5rem;
    }
    
    .nav__menu a {
        padding: 0.4rem 0.8rem;
        margin: 0 0.2rem;
    }
    
    .nav__logo {
        padding: 1rem 5%; /* More space efficient */
    }
    
    /* Better spacing for buttons */
    .intro__interactions .intro__list {
        gap: 0.8rem;
    }
    
    .intro__interactions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Improve layout for skills section */
    .skills__container {
        grid-template-columns: 1fr; /* Stack skills vertically */
        gap: 1.5rem;
    }
    
    .skills__content {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Better layout for skill items */
    .skill-item {
        flex-direction: row; /* Keep horizontal for better space usage */
        align-items: center;
        padding: 0.7rem;
    }
    
    .skill-icon {
        margin-right: 0.5rem;
        margin-bottom: 0;
        font-size: 1.2rem;
    }
    
    /* Projects grid for better mobile view */
    .projects {
        grid-template-columns: 1fr; /* Single column */
        gap: 1.5rem;
    }
    
    /* Form elements for better touch */
    input, textarea, button {
        padding: 0.8rem;
        font-size: 1rem; /* Bigger for touch */
    }
    
    /* Fix filter tags */
    .project-filters {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Modal improvements */
    #modalContent {
        width: 95%;
        padding: 1rem;
        margin: 2rem auto;
    }
}

/* Add new media query for smaller phones */
@media (max-width: 480px) {
    html {
        scroll-behavior: smooth;
        font-size: 13px; /* Even smaller base */
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .badge-profile {
        width: 200px; /* Smaller profile image */
        height: 200px;
    }
    
    /* Navigation tweaks for very small screens */
    .nav__menu {
        padding: 0.6rem 1rem;
        width: 95%;
    }
    
    .nav__menu a img {
        width: 24px; /* Smaller icons */
    }
    
    .nav__menu a {
        padding: 0.3rem 0.6rem;
        margin: 0 0.1rem;
    }
    
    /* Button adjustments */
    .intro__interactions .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    .intro__interactions .btn img {
        width: 20px;
        height: 20px;
    }
    
    /* Tighter layouts */
    .about-content {
        gap: 1.5rem;
    }
    
    .about-image {
        height: 250px; /* Smaller height */
    }
    
    /* Ensure all grid items stack properly */
    .projects {
        gap: 1.2rem;
    }
    
    .project-card {
        margin-bottom: 0.5rem;
    }
    
    .project-image {
        height: 150px; /* Smaller images */
    }
    
    .project-info {
        padding: 1rem;
    }
    
    /* Form elements for very small screens */
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Fix filter tags for tiny screens */
    .project-filters {
        gap: 6px;
        padding: 0.5rem 0;
    }
    
    .filter-tag {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    /* Improve skills display */
    .skills__content {
        padding: 1rem;
    }
    
    .skills__title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Footer spacing */
    footer {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }
}

/* Verrouiller l'orientation en mode portrait sur mobile */
@media screen and (max-width: 768px) {
    html, body {
        min-height: 100%;
        overflow-x: hidden;
    }
    
    body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow-y: auto;
    }
    
}

@media (hover: none) {
    .nav__menu a, 
    .btn, 
    .filter-tag,
    button {
        min-height: 44px; 
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .project-card:hover,
    .skill-item:hover,
    .nav__menu a:hover,
    .btn:hover {
        transform: none;
    }
    
    .project-card:active,
    .skill-item:active,
    .nav__menu a:active,
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}