/* Variables */
:root {
  --primary-color: #ff3a3c;
  --secondary-color: #40bbf7;
  --accent-color-1: #f8c73e;
  --accent-color-2: #9dce55;
  --dark-color: #1e2938;
  --light-color: #ffffff;
  --gray-color: #f5f5f5;
  --text-color: #333333;
  --font-family: 'Montserrat', sans-serif;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}
@font-face {
  font-family: 'Clarendon Regular';
  font-style: normal;
  font-weight: normal;
  src: local('Clarendon Regular'), url('clarendon-regular.woff') format('woff');
  }
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-primary:hover {
  background-color: #e02a2c;
  transform: translateY(-3px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  transform: translateY(-3px);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

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

.logo img {
  height: 60px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero-bg.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--light-color);
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero .highlight {
  color: var(--accent-color-1);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero-social {
  margin-bottom: 30px;
}

.hero-social a {
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 1.3rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Presentation Section */
.presentation {
  padding: 100px 0;
  background-color: var(--light-color);
}

.presentation .about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.presentation .about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 20px;
}

.presentation .about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
}

.presentation .about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Services Section */
.services {
  padding: 100px 0;
  background-color: var(--gray-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  font-size: 2rem;
}

.service-card:nth-child(2) .service-icon {
  background-color: var(--secondary-color);
}

.service-card:nth-child(3) .service-icon {
  background-color: var(--accent-color-1);
}

.service-card:nth-child(4) .service-icon {
  background-color: var(--accent-color-2);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* Benefits Section */
.benefits {
  padding: 100px 0;
  background-color: var(--light-color);
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.benefits-list {
  margin-bottom: 30px;
}

.benefits-list li {
  margin-bottom: 25px;
  font-size: 1.1rem;
  display: flex;
  align-items: flex-start;
}

.benefits-list i {
  color: var(--primary-color);
  margin-right: 15px;
  font-size: 1.5rem;
  margin-top: 5px;
}

.benefits-list h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.benefits-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
  background-color: var(--gray-color);
}

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

.portfolio-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.portfolio-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.portfolio-item-title {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
}

.portfolio-item-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--light-color);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 30px;
}

.testimonial-slider::-webkit-scrollbar {
  display: none;
}

.testimonial {
  min-width: 100%;
  scroll-snap-align: start;
}

.testimonial-content {
  background-color: var(--gray-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-content::before {
  content: '\201C';
  font-size: 5rem;
  position: absolute;
  top: -20px;
  left: 10px;
  color: var(--primary-color);
  opacity: 0.2;
}

.testimonial-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.testimonial-author {
  text-align: right;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--gray-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 40px;
  border-radius: 10px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-item h3 {
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-family);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo img {
  margin-bottom: 20px;
}

.footer-logo p {
  font-style: italic;
  margin-top: 15px;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-social h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .benefits-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .benefits-image {
    order: -1;
  }
  
  .presentation .about-content {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 1000;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    height: auto;
    padding: 150px 0 100px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding: 30px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .benefits-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Styles pour la Lightbox */
.lightbox-active {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Fond plus sombre */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002; /* Au-dessus de tout, y compris le header sticky */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  animation: fadeInLightbox 0.3s forwards; /* Animation d'apparition */
}

@keyframes fadeInLightbox {
  to {
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 90vw; /* Largeur maximale en fonction de la largeur de la vue */
  max-height: 85vh; /* Hauteur maximale en fonction de la hauteur de la vue */
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  border-radius: 5px; /* Bords arrondis pour l'image */
  /* Animation pour l'image */
  transform: scale(0.8);
  opacity: 0;
  animation: zoomInImage 0.3s 0.1s forwards; /* Délai pour l'animation de l'image */
}

@keyframes zoomInImage {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
  line-height: 1; /* Ajustement pour un meilleur centrage vertical du 'x' */
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--primary-color); /* Changement de couleur au survol */
}

.re {
 color: #ED2F39;
}

.ca {
  color: #4FAAE5;
}

.pei {
  color: #F0B341;
}
.nt {
  color: #A7C941;
}
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/section-1.jpg') no-repeat center center/cover !important;
}

.social-links.hero-social {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.service-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.service-card-content {
  padding: 20px 30px 30px;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .benefits-content {
    grid-template-columns: 1fr;
  }
}

/* Styles pour la lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 85%;
  max-height: 80vh;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {transform: scale(0.85); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

#lightbox-caption {
  color: white;
  font-size: 1.2rem;
  text-align: center;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  width: auto;
  max-width: 80%;
}