/* STYLES NON CRITIQUES */
/* Styles supplémentaires à charger après le contenu critique */

/* MENU ET NAVIGATION */
.nav-container {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed);
}
.nav-container ul {
  display: flex;
  gap: 1rem;
}
.nav-container ul li.nav-item a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  transition: background-color var(--transition-speed);
}
.nav-container ul li.nav-item a:hover {
  background-color: #eaeaea;
}
.nav-container ul li.nav-item.active a {
  background-color: #000;
  color: #fff;
}
.menu-toggle {
  display: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.menu-toggle:hover {
  background-color: #000;
  color: #fff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 1000px) {
  .menu-toggle {
    display: block;
  }
  .nav-container {
    position: absolute;
    top: var(--header-height);
    left: 50%;
    transform: translateX(-50%) translateY(-200%);
    width: 90%;
    justify-content: flex-start;
    padding: 20px;
    border-radius: 20px;
    flex-direction: column;
    transition: transform 0.4s ease;
  }
  .nav-container.show {
    transform: translateX(-50%) translateY(0);
  }
  .nav-container ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  .nav-right {
    z-index: 99999;
  }
}

/* HERO CARDS */
.hero-cards-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}
.hero-card {
  width: 300px;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}
.hero-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.card-content p {
  font-size: 0.95rem;
  color: #333;
}
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
}
@media (max-width: 600px) {
  .hero-cards-container {
    position: relative;
    right: auto;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }
  .hero-card {
    width: 45%;
    max-width: 150px;
    text-align: center;
  }
}

/* FADE-IN ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* SERVICES SECTION */
.services-section {
  padding: 50px 20px;
  background-color: #ffffff;
}
.services-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.services-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #000000;
}
.services-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.service-box {
  background-color: #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: row;
  height: 150px;
}
.service-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}
.service-box__image {
  width: 50%;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-box__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-box__content {
  width: 50%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.service-box__content h3 {
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
.service-box__content p {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  color: #555555;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
@media (max-width: 1200px) {
  .service-box__content h3 {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  .service-box__content p {
    font-size: 0.8rem;
    -webkit-line-clamp: 4;
  }
  .service-box__content {
    padding: 12px;
  }
}
@media (max-width: 992px) {
  .service-box__content h3 {
    font-size: 0.85rem;
  }
  .service-box__content p {
    font-size: 0.75rem;
    line-height: 1.2;
    -webkit-line-clamp: 4;
  }
  .service-box__content {
    padding: 10px;
  }
}
@media (max-width: 768px) {
  .service-box {
    flex-direction: column;
    height: auto;
  }
  .service-box__image,
  .service-box__content {
    width: 100%;
  }
  .service-box__image {
    height: 150px;
  }
  .service-box__content {
    padding: 15px;
    text-align: center;
  }
  .service-box__content h3 {
    font-size: 1rem;
  }
  .service-box__content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 5;
  }
}

/* PORTFOLIO SECTION */
.portfolio-section {
  padding: var(--spacing-section) 20px;
  background-color: #f1f1f1;
}
.portfolio-section .container {
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.portfolio-section p.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.portfolio-item img {
  height: 200px;
  object-fit: cover;
}
.portfolio-item .info {
  padding: 15px;
}
.portfolio-item .info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.portfolio-item .info p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* À PROPOS SECTION - REDESIGN */
.about-section {
  padding: 50px 20px;
  background-color: #f8f9fa;
  color: #333;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  position: relative;
}
.about-section .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.about-info {
  flex: 1;
  padding-right: 20px;
}
.about-section h2 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}
.about-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}
.contact-info-block {
  margin-top: 30px;
}
.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.contact-icon i {
  font-size: 20px;
  color: #333;
}
.contact-text {
  flex: 1;
}
.contact-text h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 600;
}
.contact-text a {
  color: #1877F2;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}
.contact-text a:hover {
  color: #333;
  text-decoration: underline;
}
.contact-text p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
  color: #555;
}
.map-container {
  flex: 1;
  min-height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.social-info {
  margin-top: 30px;
}
.social-info h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 15px;
}
.social-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 15px;
}
.facebook-link {
  display: inline-flex;
  align-items: center;
  background-color: #1877F2;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}
.facebook-link i {
  margin-right: 8px;
  font-size: 18px;
}
.facebook-link:hover {
  background-color: #166fe5;
  color: #fff;
}
@media (max-width: 992px) {
  .about-section {
    flex-direction: column;
  }
  .about-section .container {
    flex-direction: column;
  }
  .about-info, .map-container {
    width: 100%;
  }
  .map-container {
    min-height: 300px;
    margin-top: 30px;
  }
}

/* CONTACT SECTION */
.contact-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 20px;
  margin-bottom: 0;
  background-color: #fff;
  position: relative;
}
.devis {
  flex: 1;
  text-align: left;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.devis h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.devis h2 i {
  color: #333;
}
.devis-form {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background-color: #fff;
  box-shadow: none;
}
.devis-form label {
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 2px;
}
.devis-form input,
.devis-form textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9f9f9;
}
.devis-form input:focus,
.devis-form textarea:focus {
  border-color: #1877f2;
  outline: none;
  background-color: #fff;
}
.devis-form textarea {
  resize: none;
  height: 120px;
}
.devis-form button {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.devis-form button:hover {
  background-color: #555;
}
/* FACEBOOK SECTION */
.facebook-section {
  flex: 1;
  padding: 20px 0;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.facebook-card {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: none;
}
.facebook-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  width: 100%;
  justify-content: center;
}
.facebook-logo {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
.facebook-logo img {
  width: 100%;
  height: auto;
}
.facebook-info {
  display: flex;
  flex-direction: column;
}
.facebook-card h2 {
  font-size: 1.3rem;
  color: #333;
  margin: 0;
  font-weight: 600;
}
.facebook-card .subtitle {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}
.facebook-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}
.facebook-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 80%; /* Ratio réduit */
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.facebook-card iframe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  max-width: 340px;
}
@media (max-width: 768px) {
  .facebook-container {
    padding-bottom: 100%; /* Ratio réduit en mobile aussi */
  }
}
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.contact-btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}
.contact-phone {
  background-color: #4CAF50;
}
.contact-email {
  background-color: #f44336;
}
.contact-facebook {
  background-color: #1877f2;
}
@media (max-width: 992px) {
  .contact-section {
    flex-direction: column;
  }
  .devis, .facebook-section {
    flex: none;
    width: 100%;
  }
}

/* FOOTER */
footer {
  padding: 2rem;
  background-color: #000;
  color: #fff;
  text-align: center;
}
footer p {
  margin-bottom: 1rem;
}
/* Container global pour les logos */
.partners-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.full-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.limited-partners {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.partners-container img {
  height: 50px;
  max-width: 100px;
  object-fit: contain;
  border-radius: 5px;
}
.partners-container img:hover {
  filter: none;
}
.more-partners {
  height: 50px;
  width: 100px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}
.more-partners span {
  color: #fff;
  font-size: 0.9rem;
}
.more-partners:hover {
  background-color: #555;
}
/* Modal style */
.modal {
  display: none; /* caché par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  background-color: #fff;
  margin: 20% auto;
  padding: 1rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  position: relative;
  border-radius: 4px;
}
.modal-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.modal-partners img {
  height: 50px;
  max-width: 100px;
  object-fit: contain;
}
.koramic {
  background-color: white;
}
.close {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .partners-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
  }
  .full-partners {
    display: none;
  }
  .limited-partners {
    display: flex;
  }
  .partners-container img,
  .more-partners {
    height: 40px;
    max-width: 80px;
    flex-shrink: 0;
    margin-right: 10px;
  }
}
/* MODAL LIGHTBOX STYLE */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.show {
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
  animation: zoom 0.3s ease;
}
@keyframes zoom {
  from {transform: scale(0.1)}
  to {transform: scale(1)}
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.lightbox-close:hover {
  color: #bbb;
}
.lightbox-img {
  cursor: pointer;
  transition: transform 0.3s ease;
}
.lightbox-img:hover {
  transform: scale(1.03);
}
/* Caption */
.lightbox-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 40px;
  position: absolute;
  bottom: 20px;
}
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
  }
  .lightbox-close {
    top: 15px;
    right: 25px;
    font-size: 35px;
  }
} 