/* --- IMPORTS DE POLICES --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* --- RESET & GLOBAL --- */
* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(to right, #ffffff, #fed7ad);
    color: #333;
}

/* --- NAVIGATION --- */
nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.Logo {
    color: black;
    font-size: 1.8rem;
    font-weight: 800;
}
.Logo span {
    color: rgb(109,67,0);
    text-shadow: 0 0 10px rgba(109,67,0, 0.3);
}

.nav-container .links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-container .links a {
    position: relative;
    font-size: 1rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: rgb(109,67,0);
    transition: 0.2s linear;
}
.nav-container .links a:hover::before {
    width: 100%;
}
.nav-container .links a:hover {
    color: rgb(109,67,0);
}

.contact-btn a {
    padding: 8px 15px;
    border-radius: 20px;
    color: rgb(109,67,0) !important;
    border: 2px solid rgb(109,67,0);
    transition: 0.3s;
}
.contact-btn a:hover {
    background-color: rgb(109,67,0);
    color: white !important;
}

/* Menu Hamburger */
.hamburg, .cancel {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 25px;
    color: black;
    font-size: 1.8rem;
    display: none;
}

.dropdown {
    position: absolute;
    top: 100%;   /* navbar ke niche */
    left: 0;
    width: 100%;

    background: rgba(0, 0, 0, 0.95);

    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    transition: 0.3s ease;
}
.dropdown.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    margin: 6px 0;
    display: block;
    text-align: center;
}
.dropdown a:hover {
    color: blue;
}


/* --- SECTIONS COMMUNES --- */
section {
    padding: 50px 10%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: rgb(109,67,0);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

/* --- HERO SECTION (Home) --- */
#home {
    flex-direction: row; 
    justify-content: space-between;
}

.main-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image {
    width: 45%;
    text-align: center;
}
.image img {
    width: 80%;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(109,67,0, 0.2);
    border: 5px solid white;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.content {
    width: 50%;
}
.content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 10px;
}
.content h1 span {
    color: rgb(109,67,0);
}

.typewriter {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0;
    color: #555;
}
.typewriter span {
    color: rgb(109,67,0);
}

.content p {
    margin: 20px 0;
    line-height: 1.6;
    color: #444;
}

.social-links {
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.social-links a i {
    width: 45px;
    height: 45px;
    line-height: 42px;
    text-align: center;
    border: 2px solid rgb(109,67,0);
    border-radius: 50%;
    color: rgb(109,67,0);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: 0.3s;
    background: white;
}
.social-links a i:hover {
    background-color: rgb(109,67,0);
    color: white;
    transform: translateY(-5px);
}

/* Bouton Downloader CV */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: rgb(109,67,0);
    color: white;
    border: 2px solid rgb(109,67,0);
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(109, 67, 0, 0.2);
}
.btn-download:hover {
    background-color: transparent;
    color: rgb(109,67,0);
    transform: scale(1.05);
}

/* --- ABOUT SECTION --- */
#about {
    background-color: rgb(238, 240, 239);
}
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-card {
    background: #fff5eb;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid rgb(109,67,0);
}
.highlight {
    color: rgb(109,67,0); 
    font-weight: bold;
}
.about-list {
    max-width: 700px;
    margin: auto;
    text-align: left;
    line-height: 1.8;
    list-style: none;
    padding: 20px;
}

.about-list li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.about-list li::before {
    content: "➤";
    position: absolute;
    left: 0;
    color: #38bdf8;
}

/* --- CERTIFICATS SECTION --- */
.cert-container {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 5000px;
}

.cert-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column; /* Mise en page verticale pour les cartes */
    align-items: flex-start;
    gap: 15px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(109,67,0, 0.15);
    border-color: rgb(109,67,0);
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: #fff5eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(109,67,0);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #222;
    line-height: 1.4;
    font-weight: 600;
}

.cert-btn {
    display: inline-block;
    width: fit-content;
    margin-top: 10px;

    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;

    background: #ece8e6;
    color: black !important;

    border-radius: 6px;
    text-decoration: none;

    transition: all 0.25s ease;
    cursor: pointer;
}

/*  STRONG HOVER (visible change) */
.cert-btn:hover {
    background: #a18537;   /* darker blue */
    color: white !important;

    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14,165,233,0.5);
}

/* DECORATION: Platform Label */
.cert-issuer {
    background-color: #fff5eb;
    color: rgb(109,67,0);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.cert-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* --- ACTIVITIES SECTION --- */
#activities {
    background-color: rgb(238, 240, 239);
}

.activities-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.activity-card {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 1px solid #eee;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(109,67,0, 0.15);
    border-color: rgb(109,67,0);
}

.activity-img {
    width: 200px;
    background: #fff5eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-right: 1px solid #eee;
}

.activity-img i {
    font-size: 3rem;
    color: rgb(109,67,0);
}

.activity-content {
    padding: 30px;
    flex: 1;
}

.activity-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: rgb(109,67,0);
}

.activity-org {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.activity-content p {
    line-height: 1.6;
    color: #444;
}

/* --- SKILLS SECTION --- */
#skills {
    background-color: transparent;
}
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
}
.skill-card {
    background: white;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 180px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.skill-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid rgb(109,67,0);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.skill-card i {
    font-size: 3rem;
    color: rgb(109,67,0);
    margin-bottom: 15px;
    transition: 0.3s;
}
.skill-card:hover i {
    transform: scale(1.1);
}
.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}
 /* --- PROJECTS SECTION --- */
 #projects{
    background-color: rgb(238, 240, 239);
    padding: 60px,20px;
 }
.projects {
  padding: 40px;
  text-align: center;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 25px;
  width: 90%;
  margin: auto;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  display:flex;
  flex-direction: column;
  height: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
   border-bottom: 4px solid rgb(109,67,0);
   box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.project-card h3 {
  margin-bottom: 10px;
}
.project-card a {
  display: inline-block;
  margin-top: 12px;
  color: blue;
  text-decoration: none;
}
.project-btn {
    display: inline-block;
    width: fit-content;

    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;

    background: #ece8e6;
    color: black !important;

    border-radius: 6px;
    text-decoration: none;

    transition: all 0.25s ease;
    cursor: pointer;
}

/* 🔥 STRONG HOVER (visible change) */
.project-btn:hover {
    background: #a18537;   /* darker blue */
    color: white !important;

    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(14,165,233,0.5);
}
@media (max-width: 768px) {
  .project-container {
    grid-template-columns: 1fr; /* mobile = 1 column */
  }
}

/* --- CONTACT SECTION --- */
#contact {
    background-color:oklch(97.522% 0.01698 67.483);
    text-align: center;
    padding-bottom: 80px;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.contact-info a {
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 10px;
}
.contact-info a:hover {
    color: rgb(109,67,0);
    background-color: #fff5eb;
    transform: translateX(5px);
}
.contact-info i {
    color: rgb(109,67,0);
    font-size: 1.4rem;
}
/* --- CONTACT BTN --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 300px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.contact-form button {
    padding: 10px;
    background: rgb(109,67,0);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* --- RESPONSIVE --- */
@media(max-width:884px) {
    .nav-container .links { display: none; }
    .hamburg { display: block; }
    
    section { padding: 50px 5%; }

    /* Hero Responsive */
    #home {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 40px;
        height: auto;
        padding-top: 120px; /* Espace pour le menu fixe */
    }
    .content, .image { width: 100%; }
    .social-links { justify-content: center; }
    .content h1 { font-size: 2.5rem; }
    
    /* Certificats */
    .cert-container { grid-template-columns: 1fr; } 

    /* Activités */
    .activity-card { flex-direction: column; }
    .activity-img { 
        width: 100%; 
        height: 120px; 
        border-right: none; 
        border-bottom: 1px solid #eee; 
    }
}
.link{
    text-decoration: none;
    color: #38bdf8;
}
link.hover{
    text-decoration: underline;
}
/* ================= FINAL MOBILE FIX ================= */
@media (max-width: 768px) {

  /* Main layout fix */
  .main-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
  }

  /* Fix content width */
  .content {
    width: 100%;
  }

  /* Fix text */
  .content h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .typewriter {
    font-size: 18px;
  }

  .content p {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* Fix image */
  .image {
    width: 100%;
    margin-top: 20px;
  }

  .image img {
    width: 220px;
    height: 220px;
    max-width: none;   /* IMPORTANT */
    display: block;
    margin: 0 auto;

    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 0 15px rgba(0,173,181,0,6),0 30px rgba( 0.0.0.0.3);
  }

  /* Fix social icons */
  .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .social-links a i {
    margin: 0;
  }

  /* Fix button */
  .btn-download {
    display: block;
    width: 80%;
    max-width: 280px;
    margin: 25px auto;
    text-align: center;
    justify-content: center;
  }
}
