/* --- Spécifications Générales --- */
:root {
  --blue-gray: #a4b0c2;
  --green: #67E6B8;
  --dark-text: #333;
  --light-text: #fff;
  --background-light: #F9FAFB;
}


/* Remplacé par le prefligt de Tailwind mais on remet les comportement de navigateur par défaut*/

/*
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: inline !important;
  vertical-align: baseline;
  /* pour retrouver le comportement naturel */
}


html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-text);
}

.video {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: visible;
  padding: 0 1, 5rem;
  /*modif js*/
  gap: 100px;
}

h1,
h2 {
  font-weight: 300;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px !important;
  font-weight: 400 !important;
  margin-bottom: 5px !important;
}

h3 {
  font-size: 24px !important;
  font-weight: 300 !important;
  margin-top: 20px !important;
  margin-bottom: 5px !important;
}

p {
  margin-bottom: 20px;
}

a {
  color: #133868;
  /* couleur du texte */
  text-decoration: none;
  /* enlève le soulignement */
  font-weight: 600;
  /* met en gras */
}

a:hover {
  color: #1e40af;
  /* couleur au survol */
  text-decoration: underline;
  /* soulignement au survol */
}

a:visited {
  color: #76dca1;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--light-text);
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  /*justify-content: center;*/
  /*gap: 8px;*/
  background: var(--green);
  color: var(--light-text);
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-form:hover {
  background-color: #62c38a;
  transform: translateY(-2px);
}

.btn:visited {
  color: #133868;
}


/* spinner */
btn:hover:not(:disabled) {
  background: #005fa3;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#form-response {
  margin-top: 1em;
  font-size: 0.95rem;
}

#form-response p.success {
  color: #2e7d32;
}

#form-response p.error {
  color: #c62828;
}

/* --- En-tête & Pied de page --- */
.header {
  padding: 2rem 0;
  text-align: center;
}

.header .logo {
  max-width: 200px;
  height: auto;
}

.footer {
  background: #f4f4f4;
  color: var(--dark-text);
  text-align: center;
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-links a {
  color: var(--dark-text);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s ease;
}

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

.footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}

.fb-link {
  display: inline-block;
  background-color: #1877F2;
  color: white !important;
  padding: 0px 5px;
  border-radius: 8px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  transition: background-color 0.2s ease !important;
}

.fb-link:hover {
  background-color: #0e63d9;
}

/* --- Page d'accueil (index.html) --- */

/* Section Hero */
.hero {
  height: 90vh;
  background: url('../images/hero-home.jpg') no-repeat center center/cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-text);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;
  flex-shrink: 0;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Section Services */
#services {
  padding: 4rem 0;
  background-color: var(--background-light);
  text-align: center;
}

#services h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.grid-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* gap: 18px; */
  font-family: Inter, system-ui, sans-serif;
  justify-content: center;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-features li {
  background: #fff;
  padding: 16px;
  border-radius: 80px;
  box-shadow: 100 6px 20px rgba(2, 6, 23, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.grid-features h4 {
  margin: 0 0 6px 0;
  color: #0f172a;
}

.grid-features p {
  margin: 0;
  color: #133868;
  font-size: 0.95rem;
}

.facebook-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #1877F2;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.facebook-btn:hover {
  background-color: #0e63d9;
  transform: translateY(-2px);
}

.facebook-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.service-card {
  background: var(--light-text);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card-content>p {
  min-height: 120px;

}

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

.service-card p {
  font-size: 1rem;
  padding-bottom: 1rem;
}

/* Carte mise en avant */
.service-card.highlighted {
  border: 3px solid var(--green);
  transform: scale(1.05);
}

/* --- Pages de Service, Devis & Contact --- */
.page-header {
  background-color: var(--blue-gray);
  color: var(--light-text);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
}

.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 900px;
}

/* Galerie Avant/Après */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.gallery-item img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item p {
  text-align: center;
  font-weight: bold;
  margin-top: 0.5rem;
}

.liste-args {
  /* état invisible par défaut */
  opacity: 0;
  /* transform: translateY(80px);
  transition: all 1s ease; */
}

/* États initiaux différents */
/*
.fade-up    { transform: translateY(80px); }
.slide-left { transform: translateX(-120px); }
.slide-right{ transform: translateX(120px); }
.zoom       { transform: scale(0.5); }
*/
.liste-args ul {
  margin-top: 0;
}

.liste-args.show {
  opacity: 1;
  transform: translateY(0);
}

.cta-button {
  text-align: center;
  margin-top: 2rem;
}

/* Formulaires */
.form {
  background: var(--light-text);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group .dropzone {
  border: 2px dashed #76dca1;
  margin-bottom: 2em;
  text-align: center;
  color: #666;
  cursor: pointer;
}

/* Style par défaut de la zone */
#photoDropzone {
  border: 2px dashed #67E6B8;
  background-color: #F9FAFB;
  transition: all 0.3s ease;
  padding: 20px;
  border-radius: 12px;
}

/* Quand un fichier survole la zone */
#photoDropzone.dz-drag-hover {
  /* border-color: #000000;  */
  border: hidden;
  background-color: #29B6F6;
  /* bleu très clair */
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
  transform: scale(1.02);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  margin-top: 3rem;
}

.contact-info p {
  font-size: 1.1rem;
}

.success {
  background: #e9fce9;
  color: #187a18;
  padding: 10px;
  border-radius: 6px;
}

.error {
  background: #fdeaea;
  color: #b31010;
  padding: 10px;
  border-radius: 6px;
}

.mentions-legales {
  font-size: 0.75rem;
  /* texte plus petit */
  line-height: 1.4;
  /* lisibilité */
  color: #666;
  padding: 0.1rem;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
}

.mentions-legales p {
  font-size: 0.70rem;
  /* texte plus petit */
  line-height: 1.5;
  /* lisibilité */
  padding: 0.1rem;
  margin-top: 0;
}

.container-techniques {
  display: inline-block;
  align-items: center;
  justify-content: center;
  gap: 40px;
  /*  max-width: 900px;*/
}

.image-box,
.text-box {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

/* Décalage des animations */
.image-box {
  animation-delay: 0.3s;
}

.text-box {
  animation-delay: 0.8s;
}

.error-description {
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-\[0ms\] {
  animation-delay: 0ms;
}

.delay-\[150ms\] {
  animation-delay: 150ms;
}

.delay-\[300ms\] {
  animation-delay: 300ms;
}

.delay-\[450ms\] {
  animation-delay: 450ms;
}

/* Image */
.image-box img {
  width: 320px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}



/* Tablettes et + */
@media (min-width: 768px) {
  .mentions-legales {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

/* Écrans larges (desktop) */
@media (min-width: 1200px) {
  .mentions-legales {
    font-size: 0.85rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-features {
    grid-template-columns: repeat(3, 1fr);
  }

}

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

  .service-card.highlighted {
    transform: scale(1);
    /* Annule le scale sur mobile pour l'harmonie */
  }

  .gallery {
    grid-template-columns: 1fr;
  }

}

/* visually hidden (screen reader only) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* file list styles */
.file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.file-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* petite croix de suppression */
.file-remove {
  background: transparent;
  border: none;
  color: #c00;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}

.file-remove:focus {
  outline: 2px solid #333;
  border-radius: 3px;
}

/* annonce temporaire (non visible) */
.file-announcer {
  position: relative;
  left: -9999px;
}