/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* DIV */

/* Overlay plein écran */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 2000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Contenu centré */
.overlay-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  width: 50%;
  max-width: 500px;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* 💡 centre verticalement */
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  overflow-y: auto; /* 💡 si le contenu dépasse */
}

.overlay-content img {
margin-top: 40px;
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.overlay-content button {
  background: #333;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.overlay-content button:hover {
  background: #555;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  border: none;
  background: transparent;
}

.contact-details {
  margin-top: 1rem;
  font-weight: bold;
  display: none;
}


.descr{
    text-align: left;
    font-size: 1rem;
    color: #555;
    font-style: italic;
    font-weight: lighter;
}

/* 📱 Version mobile */
@media (max-width: 768px) {
  .overlay-content {
    width: 90%;
    max-height: 90%;
  }
}

/* END DIV */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    /* [disabled]box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    background-color: #f8f8f8;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* [disabled]-webkit-box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover {
    /* color: #999; */
    color: red;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: block;
}

.nav-links-mobile {
    list-style: none;
    padding: 20px;
}

.nav-links-mobile li {
    margin-bottom: 15px;
}

.nav-link-mobile {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    /* color: #007acc; */
    color: red;
}

/* Main Content */
.main {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    /* color: #333; */
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
    text-align: left;
    font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
    line-height: normal;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #aeaeae;
    margin: 0 auto;
    line-height: 1.8;
    text-align: left;
    font-style: oblique;
    font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
}

/* Portfolio Grid */
.portfolio {
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.portfolio-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-description {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

/* Call to Action */
.cta {
    text-align: center;
    margin-bottom: 60px;
}

.cta-button {
    background-color: transparent;
    border: 2px solid #333;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #333;
    color: white;
}

/* Bottom Images */
.bottom-images {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.bottom-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.bottom-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bottom-image:hover img {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: #333;
    color: #999;
    padding: 30px 0;
    font-size: small;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Tablet Styles (768px - 960px) */
@media screen and (max-width: 960px) and (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Mobile Styles (< 768px) */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hide desktop nav, show hamburger */
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Single column portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Bottom images stack */
    .bottom-images {
        flex-direction: column;
    }
    
    /* Footer stack */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 479px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Large Desktop (> 1200px) */
@media screen and (min-width: 1201px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .portfolio-grid {
        gap: 25px;
    }
}
