/* Photo présentation ronde desktop et mobile */
.img-box img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .img-box img {
    width: 120px;
    height: 120px;
  }
  .img-box img[src$="pix5.jpg"] {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    max-width: 100%;
  }
}
@media (max-width: 700px) {
  #contact {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  #contact form {
    align-items: center;
  }
}

.en-voir-plus-btn:hover {
  background: #05005c;
  transform: scale(1.04);
  color: #fff;
}
/* Suppression des règles CSS pour les sections services et projets */

/* Section Services */
.services, .projets {
  margin-left: 40px;
  margin-right: 40px;
}

.services .card-img {
  width: 100px !important;
  height: 100px !important;
  object-fit: cover;
  margin-bottom: 8px;
  display: block;
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 701px) {
  .mobile-menu {
    display: none !important;
  }
}
@media (min-width: 701px) {
  .mobile-header, .mobile-header-left, .hamburger {
    display: none !important;
  }
}
/* Dégradé gris sticky header */
.site-header.sticky, .mobile-header.sticky {
  background: rgba(131, 131, 131, 0.527) 20%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 700px) {
  .mobile-header-left img {
    display: none !important;
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    margin-left: 0;
    margin-right: 0;
  }
  .mobile-header-left {
    gap: 16px;
    padding-right: 12px;
  }
  .hamburger {
    margin-left: 18px;
    margin-right: 0;
  }
  .mobile-header.sticky {
    background: transparent !important;
  }
  .mobile-header.hide-logo .mobile-header-left img {
    display: none !important;
  }
  /* Hamburger menu container */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    background: transparent;
    z-index: 1200;
    padding: 0 18px;
  }
  .mobile-header-left {
    display: flex;
    align-items: center;
    height: 40px;
  }
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 0;
    height: 40px;
  }
  .mobile-header-left {
    display: flex;
    align-items: center;
    height: 70px;
  }
  .hamburger {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 0;
    height: 70px;
    display: flex;
    align-items: center;
  }
  .mobile-header .logo {
    display: none;
  }
  .mobile-header .cta {
    display: none;
  }
  .hamburger {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    margin-left: 10px;
    z-index: 1300;
    margin-right: 0;
  }
  /* Masque le texte et le bouton du hero quand menu ouvert */
  .hero.hide-mobile-text p,
  .hero.hide-mobile-text .hero-btn {
    display: none !important;
  }
  /* Menu déroulant */
  .mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100vw;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transition: max-height 0.3s, opacity 0.3s;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    z-index: 1200;
  }
    .mobile-menu.open {
      max-height: 400px;
      opacity: 1;
      background: rgba(30, 42, 56, 0.7);
  }
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .mobile-menu ul li {
    width: 100vw;
    margin: 0;
  }
  .mobile-menu a {
    display: block;
    width: 100vw;
    padding: 18px 0;
    font-size: 1.3em;
    color: #fff;
    text-align: center;
    background: transparent;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
  }
  .mobile-menu a:hover, .mobile-menu a:focus {
    background: #007BFF;
    color: #fff;
  }
  /* Masque le menu desktop en mobile */
  .header-center, .main-nav {
    display: none !important;
  }
  /* Masque le logo du hero quand menu ouvert */
  .hero-logo.hide-mobile {
    display: none !important;
  }
}
  .header-center {
    background: rgba(30,42,56,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-radius: 0 0 16px 16px;
    padding: 30px 0 20px 0;
  }
  .header-center ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .header-center ul li {
    margin: 16px 0;
  }
  .header-center a {
    display: block;
    padding: 18px 0;
    font-size: 1.3em;
    color: #fff;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    background: transparent;
  }
  .header-center a:hover, .header-center a:focus {
    background: #007BFF;
    color: #fff;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1100;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5em;
    cursor: pointer;
    margin-left: 10px;
  }
  .header-right {
    display: none;
  }
  .hero h1 {
    font-size: 1.5em;
  }
  .hero-btn {
    padding: 9px 24px;
    font-size: 0.9em;
  }
  .hero-logo img {
    transform: scale(0.5);
    height: 200px;
  }
}
body {
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

header {
    left: 0;
  right: 0;
  width: 100vw;
  background: transparent;
  height: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}


.site-header {
  left: 0;
  right: 0;
  width: 100vw;
  background: transparent;
  height: 70px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  padding: 18px 24px;
}
.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: #d2691e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  width: auto;
  vertical-align: middle;
  margin-right: 4px;
}
.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.main-nav a:focus,
.main-nav a:hover {
  color: #ffffff;
}
.cta {
  background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(210,105,30,0.08);
  transition: background 0.2s, transform 0.2s;
}
.cta:focus,
.cta:hover {
  background: #05005c;
  transform: scale(1.04);
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #1e2a38;
  color: white;
  font-size: 2em;
  padding: 10px 16px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1000;
}
.back-to-top:hover {
  opacity: 1;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  width: auto;
}

.hero-logo img {
  height: 400px; /* Mets la taille souhaitée */
  width: auto;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center; /* Ajouté */
  padding: 0;              /* Ajouté pour enlever le padding par défaut */
  margin: 0;  

}

nav a {
  color: #ffffff; /* orange, modifiable selon préférence */
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: url('images/pix1.jpg') center/cover no-repeat;
  color: white;
  padding: 0 20px;
  text-align: center;
  overflow: hidden;
}


.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-center ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.header-center a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.header-right a:hover {
  color: #31445a;
}



.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.468); /* Overlay blanc léger à 25% */
  z-index: 1;
}
.hero > * {
  position: relative;
  z-index: 2;
  
}



.hero-bckg img{
   display: block;
  width: 100%;
  height: auto;
}

.hero-bckg::before {
    content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(30, 42, 56, 0.5); /* Couleur overlay, ici bleu foncé à 50% */
  pointer-events: none;
  z-index: 1;
}

.hero h1 {
  font-size: 3em; /* Tu peux ajuster cette valeur selon ton besoin */
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-btn {
  display: inline-block;
  padding: 18px 48px;
  margin-top: 20px;
  background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover {
  background: #05005c;
  transform: scale(1.04);
  color: #fff;
}

.about_section {
  padding: 50px;
  background: #222831;
  color: #ffffff;
}

.about_section .row {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}



.titre-presentation {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
  font-weight: bold;
  font-size: 2.5em;
  margin-bottom: 30px;
}

.about_section .img-box {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.about_section .img-box img {
    width: 300px;         /* Taille du carré */
  height: 300px;        /* Taille du carré */
  max-width: 445px;
  position: bottom;
  z-index: 2;
  border-radius: 100%;
}

.about_section .detail-box p {
  
  text-align: left;
}

.about_section .detail-box a {
  display: inline-block;
  padding: 10px 45px;
  background-color: #ffbe33;
  color: #ffffff;
  border-radius: 12px;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  border: none;
  margin-top: 15px;
}

.about_section .detail-box a:hover {
  background-color: #170057;
}

.btn-presentation {
   display: flex;
   justify-content: center;
  margin-top: 20px;
}

.title {
  font-size: 30px;
}

.card-text {
  text-align: justify;
}



.project {

  max-width: 800px;
  background: none;
  flex: 1;
  width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  height: 300px;
  margin: auto;

}

.project img {
  align-items: stretch;
  justify-content: center;
  width: 100%; /* Ajuste la taille si besoin */
  height: 100%;
  display: block; /* Modifié */
  object-fit: cover;
  margin-left: 20px;
  margin-right: 20px;
  
}

.project h3 {
  padding: 10px;
  font-size: 1em;
  color: #333;
}


.image-text-container img {
  width: 100%;
  height: auto;
  display: block;
}



.overlay-text h3 {
  margin: 0;
  font-size: 1.2em;
}

.overlay-text p {
  margin-top: 5px;
  font-size: 0.9em;
}


.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  background-color: #ffffff;
  padding: 20px;
  flex: 1;
  min-width: 250px;
  border-radius: 8px;
}

.gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}



form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: auto;
}

input, textarea {
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

button {
  background-color: #1e2a38;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background-color: #1e2a38;
  color: white;
  text-align: center;
  padding: 20px;
}

.presentation h2 {
  margin-bottom: 30px;
  font-size: 2em;
  color: #1e2a38;
}

.presentation-content {
  margin: 30px 30px 30px 30px;
  display:flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.presentation-photo img {
  width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.presentation-text {
  flex: 1;
  min-width: 220px;
  text-align: justify;
  font-size: 1.15em;
  color: #31445a;
}

.presentation-title {
  text-transform: uppercase;
  text-align: center;
  margin: center;
  font-display: swap;
  font-size: 2em;
  color: #1e2a38;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}
body, html {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 700px) {
  .presentation-content {
    flex-direction: column;
    gap: 20px;
  }
  .presentation-text {
    text-align: center;
  }
}

.services h2 {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1e2a38;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.btn-portefolio {
    background: #05005c;
  transform: scale(1.04);
  color: #fff;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 2em;
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2em;
  cursor: pointer;
  margin-left: 10px;
  z-index: 1001;
}

/* Responsive menu */
@media (max-width: 800px) {
  .header-center {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(30,42,56,0.3); /* Fond semi-transparent */
    box-shadow: none;
    border-radius: 0 0 16px 16px;
    transition: transform 0.3s;
    transform: translateY(-120%);
    z-index: 1000;
    padding: 30px 0 20px 0;
  }
  .header-center.active {
    transform: translateY(0);
  }
  .header-center ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  .header-center ul li {
    margin: 16px 0;
  }
  .header-center a {
    display: block;
    padding: 12px 0;
    font-size: 1.2em;
    color: white; /* <-- Corrigé, le texte est visible */
    border-radius: 8px;
    transition: background 0.2s;
    text-align: center;
    background: transparent; /* <-- Pas de fond blanc */
  }
  .header-center a:hover {
    background: #31445a;
    color: white;
  }

 
   .hero {
    padding-top: 0 !important; /* Enlève le padding en haut */
    min-height: 100vh;
  }
}
@media (max-width: 800px) {
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1100;
  }
  .header-right {
    display: none; /* Cache les pictogrammes en mobile si besoin */
  }
}
  @media (max-width: 700px) {
  .cards {
    flex-direction: column;
    align-items: center; /* Centre les cards en mobile */
    gap: 20px;
  }
  .card {
    max-width: 90vw;
    margin: 0 auto;
  }
}
@media (max-width: 800px) {
  .header-center {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: transparent;
    transform: translateY(-120%);
    transition: transform 0.3s;
    z-index: 1000;
    padding: 30px 0 20px 0;
  }
  .header-center.active {
    transform: translateY(0);
  }
  .hero.menu-open {
    transition: padding-top 0.3s;
    padding-top: 220px !important; /* Ajuste selon la hauteur du menu */
  }
}

@media (max-width: 800px) {
  .hero.menu-open {
    background: url('images/pix1.jpg') no-repeat center center/cover;
  }
  .hero.menu-open > * {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
}

@media (max-width: 700px) {
  #contactForm input,
  #contactForm textarea,
  #contactForm button {
    width: 90%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 90%;
    margin: 0;
  }
}

/* CSS pour la nouvelle section contact moderne */
.contact-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.contact-card-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-card-icon.phone { background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%); color: #fff; }
.contact-card-icon.email { background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%); color: #fff; }
.contact-card-icon.location { background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%); color: #fff; }
.contact-card-icon.hours { background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%); color: #fff; }

.contact-card-content h3 {
  color: #fff;
  font-size: 1.1em;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.contact-card-content p {
  color: #e0e0e0;
  margin: 0;
  line-height: 1.4;
}

.contact-card-content a {
  color: #00C6FF;
  text-decoration: none;
  font-weight: 500;
}

.contact-card-content a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-cta-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(90deg, #007BFF 0%, #00C6FF 100%);
  border-radius: 12px;
}

.contact-cta-section h3 {
  color: #fff;
  font-size: 1.6em;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.contact-cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  font-size: 1.1em;
}

.contact-action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-action-btn {
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.contact-action-btn.primary {
  background: #fff;
  color: #007BFF;
}

.contact-action-btn.whatsapp {
  background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
}

.contact-action-btn.whatsapp:hover {
  background: linear-gradient(90deg, #128C7E 0%, #075E54 100%);
}

.contact-action-btn.secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid #fff;
}

.contact-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive pour les cartes contact */
@media (max-width: 768px) {
  .contact-modern-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .contact-info-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .contact-action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .contact-action-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 25px;
  }
}

/* Horaires sur toute la largeur */
.contact-info-card.hours-full-width {
  grid-column: 1 / -1;
  justify-content: center;
}

/* Spacer invisible pour l'espacement */
.contact-spacer {
  height: 35px;
  width: 100%;
}

/* Style pour la mention devis gratuit */
.devis-mention {
  font-size: 0.8em;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
  margin-bottom: 0;
}

/* Améliorations responsive supplémentaires */
@media (max-width: 480px) {
  .contact-cta-section {
    padding: 25px 15px;
  }
  
  .contact-cta-section h3 {
    font-size: 1.4em;
  }
  
  .contact-action-btn {
    max-width: 100%;
    font-size: 0.95em;
  }
  
  .contact-modern-grid {
    gap: 12px;
  }
  
  .contact-info-card {
    padding: 18px;
  }
  
  .contact-spacer {
    height: 25px;
  }
  
  .devis-mention {
    margin-top: 0;
    font-size: 0.75em;
  }
}

/* Espacement supplémentaire pour tablettes */
@media (min-width: 481px) and (max-width: 768px) {
  .contact-spacer {
    height: 30px;
  }
  
  .devis-mention {
    margin-top: 0;
    font-size: 0.78em;
  }
}
