@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('Image/fond.avif') 
}

h1 {
    text-align: center;
    color: #00796b;
    margin: 60px 0 30px;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

h3 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Navigation */
#MainTop {
    background: rgba(0,121,107,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
}

#MainTop nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
}

#MainTop nav a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    background: #004d40;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
}

#MainTop nav a:hover {
    background: #ffffff;
    color: #00796b;
    transform: scale(1.05);
}

/* Présentation (Hero) */
#Présentation {
    background: linear-gradient(to right, #e0f2f1, #c8e6c9);
    padding: 60px 20px;
    text-align: center;
}

.presentation-content {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.presentation-img img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.presentation-img img:hover {
    transform: scale(1.05);
}

.presentation-text {
    flex: 1 1 300px;
}

.presentation-text h1 {
    font-size: 2.5rem;
    color: #004d40;
    margin-bottom: 10px;
}

.presentation-text .role {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 10px;
}

.presentation-text .email {
    font-size: 1rem;
    color: #777;
    margin-bottom: 20px;
}

#Réseaux a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #00796b;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

#Réseaux a img {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

#Réseaux a:hover {
    background: #004d40;
}

.contact-button {
    display: inline-block;
    background: #00796b;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.contact-button:hover {
    background: #004d40;
    transform: scale(1.05);
}

/* Parcours Professionnel */
#Conteneur {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
    padding: 0 20px;
}

.parcours-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.parcours-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.parcours-img img {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.parcours-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.parcours-text a {
    color: #006c29;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #00796b;
    transition: color 0.3s;
}

.parcours-text a:hover {
    color: #004d40;
}

/* Compétences Techniques */
#Qualité {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.competence-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    flex: 1 1 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.competence-card img {
    max-width: 80px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.competence-card:hover img {
    transform: scale(1.1);
}

.competence-card span {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
    line-height: 1.4;
}

/* Certification */
#Certification {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.certif-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    flex: 1 1 200px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.certif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.certif-card img {
    max-width: 80px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s;
}

.certif-card:hover img {
    transform: scale(1.1);
}

#Menu, #Menu2, #Menu3 {
    display: none;
    background: #f9f9f9;
    border: 1px solid #ddd;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 10;
}

#Menu a, #Menu2 a, #Menu3 a {
    display: block;
    text-decoration: none;
    color: #00796b;
    font-weight: 600;
    margin: 5px 0;
}

.certif-card:hover #Menu,
.certif-card:hover #Menu2,
.certif-card:hover #Menu3 {
    display: block;
}

/* Centre d'intérêts */
#CentreInteret {
    max-width: 1200px;
    margin: 40px auto 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0 20px;
}

.interest-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    flex: 1 1 150px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.interest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.interest-item .item-image img {
    max-width: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.interest-item:hover .item-image img {
    transform: scale(1.1);
}

.item-text span {
    display: block;
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}

.competences-section {
    background: #004d40; /* Vert sombre */
    padding: 60px 20px;
    text-align: center;
}

.competences-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Effet lumineux sur le titre */
.competences-section h2 {
    text-shadow: 0 0 10px rgba(0,255,170,0.7), 0 0 20px rgba(0,255,170,0.5);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.competence-card {
    background: #00695c; /* Vert un peu plus clair pour contraster */
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.competence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.competence-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.competence-card:hover img {
    transform: scale(1.1);
}

.competence-card span {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* Ajustements responsive */
@media (max-width: 600px) {
    .competences-section h2 {
        font-size: 1.8rem;
    }

    .competence-card {
        padding: 20px;
    }

    .competence-card img {
        width: 50px;
        height: 50px;
    }
}


/* Footer */
footer {
    background-color: #0a3d2e;
    padding: 20px;
    text-align: center;
    color: #aaa;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.footer-content a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #fff;
}

.footer-content img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.footer-content span {
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .presentation-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-button {
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    /* Styles pour tablettes */
}

@media screen and (max-width: 480px) {
    /* Styles pour téléphones */
}

/* Dans ton index.css, par exemple à la fin */

body.dark-mode {
    background: #121212; 
    color: #f1f1f1;
  }
  
  body.dark-mode header,
  body.dark-mode nav,
  body.dark-mode footer {
    background: #1f1f1f;
  }
  
  body.dark-mode a {
    color: #bb86fc; /* Un violet clair, par exemple */
  }
  
  /* Pour les cartes, etc., si tu veux un background plus sombre : */
  body.dark-mode .competence-card,
  body.dark-mode .parcours-item,
  body.dark-mode .interest-item,
  body.dark-mode .certif-card {
    background: #2c2c2c; 
    color: #eee;
  }
  
  /* Ajuste en fonction de tes besoins d’accessibilité et de contrastes */

  /* ------------------------ *
 *     MENU BURGER (Mobile)
 * ------------------------ */
 #menu-label {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    padding: 10px;
    text-align: center;
    background: #004d40;
  }
  
  #MainTop nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    flex-wrap: wrap;
  }
  
  #MainTop nav a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    background: #004d40;
    font-weight: 600;
    transition: transform 0.3s, background 0.3s;
  }
  
  #MainTop nav a:hover {
    background: #ffffff;
    color: #00796b;
    transform: scale(1.05);
  }
  
  /* Mode mobile */
  @media (max-width: 768px) {
    #menu-label {
        display: block;
        padding: 15px;
        font-size: 1.5rem;
    }
  
    #MainTop nav {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: #004d40;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 999;
    }
  
    /* ✅ Ajout de cette ligne pour s'assurer que la classe active s'affiche bien */
    #MainTop nav.active {
        display: flex;
    }
  
    #MainTop nav a {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
    }
  }