/*
Theme Name: StefMel
Theme URI: https://stefmel.fr
Author: StefMel
Description: Thème WordPress personnalisé pour le portfolio de StefMel
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: stefmel
*/

html, body {
  overflow-x: hidden;
}

body {
  /* font-family: 'Poppins', sans-serif; */
  background-color: #F9FBE7;
  /* color: #4E4E4E; */
  margin: auto;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: #2B2F2E;
}

h1, h2, h3 {
  color: #7CB342;
  font-weight: 600;
}

a {
  color: #7CB342;
  text-decoration: none;
}

.btn {
  display: inline-block;
  background-color: #7CB342;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #A5D6A7;
  color: #4E4E4E;
}

/* Hero */

.hero {
  height: 90vh;
  background: url('assets/img/hero-bg2.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* Contenu dans l'écran */
.hero-content {
  max-width: 700px;
  background: transparent;
  /* top: 60%; */
  position: absolute;
  transform: translate(0, 30%);
  /* margin: 0 32%; */
  padding-left: 2%;
}

.hero h1 {
  font-size: 2.1rem;
  color: #4A5A4F;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #5F6F65;
  margin-bottom: 2rem;
}

.hero-content h1 span {
  color: #8D6E63;
}

/* A propos*/
#about {
    text-align: center;
    padding: 4rem 2rem;
}


.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    max-width: 1400px; 
    margin: 3rem auto 0; 
    text-align: left; 
}

/* Style des Cartes Individuelles */
.skill-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #7CB342; 
    transition: transform 0.3s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
    color: #7CB342; 
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.skill-card p {
    color: #2B2F2E;
    line-height: 1.6;
}

/* Media Query pour les petits écrans (tablette et mobile) */
@media (max-width: 1353px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr); 
        max-width: 800px; 
    }
    .hero p {
        font-size: 0.8rem;
      }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Portfolio */

#portfolio{
  text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    max-width: 1200px; 
    margin: 2rem auto; 
    padding: 0 2rem; 
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}


.project:hover {
  transform: translateY(-5px);
}

.archive-projets .projets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem;
}

.projects-grid img {
  object-fit: cover;
  height: 180px;
  margin-top: 1.5rem;
}
.projects-grid .btn {
  margin-bottom: 1.5rem;
}

.single-projet {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
}

.single-projet .featured-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 2rem;
}



.projet-meta a {
  display: inline-block;
  margin-right: 1rem;
  color: #7CB342;
  font-weight: 500;
}


.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  /* background: #A6B7A1; Vert sauge doux */
  color: #fff;
  border-radius: 8px;
  transition: 0.3s;
}

.btn:hover {
  background: #8EA38C; 
}

header.site-header {
  background-color: #F9FBE7;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* position: sticky; */
  top: 0;
  z-index: 999;
}

.main-navigation .menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: #7CB342;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s ease;
}

.main-navigation a:hover {
  opacity: 0.7;
}

.logo-header img {
  height: 50px;
  width: auto;
  display: block;
}

/*Modale de contact */

.stefmel-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%; 
    max-width: 500px; 
    position: relative;
    animation: fadeIn 0.3s ease-out; 
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #7CB342; 
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.stefmel-modal.is-open {
    display: flex;
}

.icon-linkedin {
  display: inline-block;
  width: 22px;
  height: 22px;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('assets/img/linkedin.svg');
  filter: brightness(0) invert(1);
  transition: opacity .3s ease;
}
.icon-linkedin:hover {
  opacity: .6;
}

.linkedin-icon svg {
  width: 26px;
  height: 26px;
  fill: #6B795A; 
  transition: fill .3s ease;
}

.linkedin-icon:hover svg {
  fill: #3E4635; 
}

/* Menu Burger */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001; 
}


.menu-toggle .line {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px auto;
    background-color: #2B2F2E; 
    transition: all 0.3s ease-in-out;
}



@media (max-width: 768px) {
    
    .site-header {
        position: relative; 
    }
    
    .menu-toggle {
        display: block; 
    }

    .main-navigation {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        height: auto; 
        background-color: #F9FBE7; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 20px 0;
    }

    .main-navigation .menu {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation .menu li {
        margin: 10px 0;
    }
    
    .main-navigation a {
        padding: 10px 0;
        display: block;
        font-size: 1.2rem;
    }

    
    .site-header.menu-open .main-navigation {
        display: block;
    }

    
    .site-header.menu-open .line:nth-child(2) {
        opacity: 0; 
    }
    .site-header.menu-open .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg); 
    }
    .site-header.menu-open .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg); 
    }
}

@media (max-width: 1585px){
  .hero h1 {
    font-size: 1.9rem;
    }
}

@media (max-width: 1440px) {
    .hero h1 {
    font-size: 1.5rem;
    }
    .hero p {
    font-size: 0.95rem;
    }
}

@media (max-width: 1275px){
  .hero p {
    font-size: 0.85rem;
    }
}


@media (max-width: 600px){

  .hero h1 {
    font-size: 1.3rem;
    }
    .hero p {
    font-size: 1rem;
    }
    .site-branding img {
      max-height: 35px;}
    .hero {
      background: #D6E2C3;
      height: 30vh;
    }
    .hero-content {
      transform: translate(0, 0);
    }
    
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.3rem;
    }
    .hero p {
    font-size: 1rem;
    }
}