/* Styles généraux */
body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  margin-bottom: 25px;
  padding: 0;
  color: #1e1e23;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Autres styles de ton site... */

/* Personnaliser la barre de défilement */
::-webkit-scrollbar {
  width: 12px; /* Largeur de la barre de défilement verticale */
}

/* Personnaliser la "piste" de la barre de défilement */
::-webkit-scrollbar-track {
  background: #1b4d3e; /* Vert sapin foncé pour la piste */
}

/* Personnaliser le "pouce" de la barre de défilement (la partie mobile) */
::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.95); /* Vert préféré avec transparence */
  border-radius: 10px; /* Bord arrondi du pouce */
}

/* Personnaliser le "pouce" au survol */
::-webkit-scrollbar-thumb:hover {
  background: #2e7d32; /* Vert sapin plus foncé au survol */
}

/* Page d'accueil avec fond */
body.index::before {
  content: "";
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  z-index: -1;
  background: url("/acceuil.webp") no-repeat center center / cover;
  /* Sur mobile, le fait de scroller fait disparaitre la barre URL, ce qui change la taille de 100% à 110% de façon brusque.
     Donner une taille un peu plus grande (110%) avec des marges négatives permet d'éviter que le navigateur
     ait besoin de recalculer et faire un "saut" ou "zoom" au moment du scroll. */
}

@media (max-width: 768px) {
  body.index::before {
    background-position: center center;
  }
}



input#name,
input#email,
textarea#message {
  box-sizing: border-box;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  margin-right: auto; /* Pousse le logo à gauche */
}

.logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Ajoutez cette classe à votre CSS */
.phone-numbers {
  white-space: nowrap;
}

/* Banner Congés / Annonce */
.vacation-banner {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  background: linear-gradient(135deg, #0f3328 0%, #1b4d3e 60%, #256652 100%);
  border-bottom: 2px solid #ffc107;
  color: #ffffff;
  padding: 8px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
}

.vacation-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.vacation-badge {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #0f3328;
  padding: 3px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.35);
}

.vacation-text {
  font-weight: 400;
  color: #ffffff;
}

.vacation-text strong {
  color: #ffc107;
  font-weight: 700;
}

.vacation-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.vacation-banner-close:hover {
  background: #ffc107;
  color: #0f3328;
  transform: translateY(-50%) scale(1.1);
}

/* Header */
header {
  background-color: rgba(76, 175, 80, 0.95);
  padding: 0 20px 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Navigation */
.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.menu > li {
  margin: 0 0.5rem;
  overflow: visible; /* Changé de hidden à visible pour permettre au menu déroulant de s'afficher */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.menu a {
  text-decoration: none;
  color: white;
  font-size: 1.1em;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: color 0.3s ease;
  position: relative;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 44px;
  white-space: pre-wrap;
  line-height: 1.2;
  flex-direction: column;
}

/* Effet de survol */
.menu li a:hover {
  color: black;
}

.menu a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.menu a:hover::after {
  width: 100%;
}

/* Menu Toggle (Mobile) */
.menu-button-container {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  margin-right: 10px; /* Ajustez cette valeur selon vos besoins */
}

#menu-toggle {
  display: none;
}

.menu-button {
  display: block;
  background-color: #fff;
  position: relative;
  height: 4px;
  width: 30px;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.menu-button::before,
.menu-button::after {
  content: "";
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.menu-button::before {
  transform: translateY(-8px);
}

.menu-button::after {
  transform: translateY(8px);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background-color: transparent;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  transform: rotate(45deg);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  transform: rotate(-45deg);
}

/* Menu Toggle pour Mobile */
@media (max-width: 700px) {
  .menu-button-container {
      display: flex;
      margin-left: 0;
  }
  .menu {
      position: absolute;
      top: 70px;
      left: 0;
      flex-direction: column;
      width: 100%;
      background-color: rgba(76, 175, 80, 0.95);
      justify-content: center;
      align-items: center;
      padding: 5px 0 20px 0; /* Réduit encore plus le padding en bas */
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      visibility: hidden;
      max-height: calc(100vh - 70px);
      overflow-y: auto;
  }
  #menu-toggle:checked ~ .menu {
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
  }
  .menu > li {
      width: 100%;
      text-align: center;
      margin: 1px 0; /* Réduit encore plus la marge verticale */
  }
  .menu a {
      width: 100%;
      display: block;
      text-align: center;
      padding: 5px 0; /* Réduit encore plus le padding vertical */
      white-space: normal; /* Permet au texte de revenir à la ligne */
      line-height: 1; /* Réduit encore plus l'espacement des lignes */
  }
}
/* Ajouter un padding en bas pour les appareils iOS */
@supports (-webkit-touch-callout: none) {
  body {
      padding-bottom: constant(safe-area-inset-bottom);
      padding-bottom: env(safe-area-inset-bottom);
  }

  @media (max-width: 400px) {
      .menu a {
          color: rgb(255, 255, 255); /* Change la couleur du texte en bleu pour iOS */
          padding: 6px 10px; /* Réduire le padding */
          font-size: 12px; /* Réduire la taille de la police */
          min-height: auto; /* Ajuster la hauteur minimale */
      }

      .menu > li {
          margin: 2px 0; /* Réduire la marge verticale */
      }

      .menu-button-container {
          margin-right: 5px; /* Réduire la marge à droite */
      }

      .menu {
          padding: 5px 0 10px 0; /* Réduire le padding en bas */
      }

      .logo img {
          height: 40px; /* Réduire la taille du logo */
      }
  }
}



/* Afficher le bouton hamburger et centrer le texte pour les écrans de taille intermédiaire */
@media (max-width: 1024px) and (min-width: 701px) {
  .menu-button-container {
      display: flex;
      margin-left: 0;
  }

  .menu {
      flex-direction: column;
      width: 100%;
      position: fixed;
      top: 70px;
      left: 0;
      background-color: rgba(76, 175, 80, 0.95);
      justify-content: center;
      align-items: center;
      padding: 20px 0 60px 0; /* Ajout de padding en bas */
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      visibility: hidden;
      z-index: 1001;
      max-height: calc(100vh - 70px);
      overflow-y: auto;
  }

  #menu-toggle:checked ~ .menu {
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
  }

  .menu > li {
      width: 100%;
      margin: 5px 0;
      text-align: center;
  }

  .menu a {
      width: 100%;
      display: block;
      text-align: center;
      padding: 10px 0;
      white-space: normal; /* Permet au texte de revenir à la ligne */
      line-height: 1.2; /* Ajuste l'espacement des lignes */
  }
}

/* Styles pour le tableau */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  margin: 30px 0;
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* En-têtes */
th {
  background-color: #4caf50;
  color: white;
  padding: 18px 25px;
  text-align: center;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Cellules */
td {
  padding: 15px 20px;
  text-align: center;
  font-size: 1.1em;
  color: #333;
  background-color: #f9f9f9;
  align-items: center;
  justify-content: flex-start;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* Changement de couleur des lignes au survol */
tr:hover td {
  background-color: #f1f1f1;
}

/* Ligne de survol */
tr:nth-child(odd) td {
  background-color: #fafafa;
}

/* Surligner une ligne de tableau */
tr:hover {
  background-color: #f0f0f0;
}

/* Bordure et espace entre les cellules */
table th,
table td {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

table td:first-child,
table th:first-child {
  border-left: none;
}

/* Dernière cellule sans bordure droite */
table td:last-child,
table th:last-child {
  border-right: none;
}

/* Effet de transition pour les survols */
tr td,
th {
  transition: all 0.3s ease-in-out;
}

/* Style de la légende du tableau */
caption {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  table {
      font-size: 0.9em;
  }

  table th,
  table td {
      padding: 12px 15px;
  }
}

@media (max-width: 768px) {
  table {
      font-size: 0.7em;
  }

  table th,
  table td {
      padding: 7px 7px;
  }
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
  /* Centrer la section de contact */
  .contact-section {
      margin-top: 10px; /* Réduire la marge supérieure */
      padding: 10px; /* Réduire le padding */
      gap: 15px; /* Réduire l'espace entre les éléments */
      display: flex;
      flex-direction: column;
      align-items: center; /* Centrer horizontalement */
      text-align: center; /* Centrer le texte */
      width: 100%; /* Prendre toute la largeur disponible */
      box-sizing: border-box; /* Inclure le padding dans la largeur */
  }

  /* Réduire la taille des boîtes de contact */
  .contact-form,
  .contact-info {
      width: 100%; /* Prendre toute la largeur disponible */
      max-width: 100%; /* Pas de limite de largeur maximale */
      padding: 10px; /* Réduire le padding */
      margin: 0; /* Supprimer les marges */
      box-sizing: border-box; /* Inclure le padding dans la largeur */
  }

  /* Réduire la taille de la carte */
  .contact-map {
      width: 100%; /* Prendre toute la largeur disponible */
      max-width: 100%; /* Pas de limite de largeur maximale */
      margin: 0; /* Supprimer les marges */
      box-sizing: border-box; /* Inclure le padding dans la largeur */
  }

  .contact-map #map {
      height: 200px; /* Réduire la hauteur de la carte */
      width: 100%; /* Prendre toute la largeur disponible */
  }

  /* Ajuster le formulaire */
  .contact-form input,
  .contact-form textarea {
      width: 100%; /* Prendre toute la largeur disponible */
      padding: 8px; /* Réduire le padding des champs */
      font-size: 0.8em; /* Réduire la taille de la police */
      margin-bottom: 8px; /* Réduire l'espacement entre les champs */
      box-sizing: border-box; /* Inclure le padding dans la largeur */
  }

  .contact-form input[type="submit"] {
      padding: 8px; /* Réduire le padding du bouton */
      font-size: 0.9em; /* Réduire la taille de la police */
      width: 100%; /* Prendre toute la largeur disponible */
  }

  /* Ajuster les informations de contact */
  .contact-info p {
      font-size: 0.8em; /* Réduire la taille de la police */
      padding: 5px; /* Réduire le padding */
      margin-bottom: 10px; /* Réduire l'espacement entre les éléments */
      line-height: 1.4; /* Réduire l'espacement entre les lignes */
      text-align: left; /* Aligner le texte à gauche */
      box-sizing: border-box; /* Inclure le padding dans la largeur */
  }

  .contact-info p i {
      font-size: 1em; /* Réduire la taille des icônes */
  }

  /* Ajuster le titre de la carte */
  .contact-map h2 {
      font-size: 1.2em; /* Réduire la taille du titre */
      margin-bottom: 8px; /* Réduire l'espacement */
  }

  .menu a {
      padding: 8px 12px;
      font-size: 13px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      flex-direction: column;
      white-space: pre-wrap;
      word-break: break-word;
  }
}

/* Footer fixe en bas */
footer {
  background-color: rgba(76, 175, 80, 0.95);
  color: white;
  text-align: center;
  padding: 15px 20px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-content a,
.footer-content span {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.footer-content a:hover {
  color: #ffdd57;
}

.footer-content i {
  color: #ff4d4d;
  margin-left: 5px;
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  footer {
      padding: 10px;
  }

  .footer-content p {
      font-size: 0.85em;
      gap: 5px;
  }

  .footer-content span:last-child {
      font-size: 0.7em; /* Encore plus petit sur mobile */
  }
}

@media (max-width: 480px) {
  .footer-content p {
      font-size: 0.8em;
      gap: 3px;
  }

  .footer-content span:last-child {
      font-size: 0.65em; /* Le plus petit sur très petit écran */
  }
}

/* Responsive Design */
@media (max-width: 1280px) {
  .menu {
      justify-content: center;
  }

  .menu > li {
      margin: 0 3px;
  }

  .menu a {
      font-size: 14px;
      padding: 8px 10px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
  }
}

@media (max-width: 768px) {
  .logo img {
      height: 50px; /* Taille du logo pour les écrans de portable */
  }

  .menu {
      gap: 15px; /* Réduire l'espace entre les boutons de navigation */
  }

  .menu a {
      padding: 8px 12px;
      font-size: 13px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      flex-direction: column;
      white-space: pre-wrap;
      word-break: break-word;
  }
}

/* New styles for emphasis */
.tarif-info {
  font-weight: bold;
  margin-left: 10px;
}

.tarif-info.important {
  color: red;
  text-decoration: underline;
}

/* Main title styling */
main h1 {
  font-weight: bolder;
  text-align: center;
  margin-top: 105px; /* Adjust based on header height */
  font-size: 2.5em;
  color: #1b4d3e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-title {
  font-weight: bolder;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 24px;
  font-size: 2.5em;
  color: #1b4d3e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Styles pour les écrans mobiles */
@media (max-width: 768px) {
  main h1 {
      margin-top: 90px; /* Réduire la marge supérieure à 90px */
      font-size: 2em; /* Réduire la taille de la police */
  }
  .main-title {
      margin-top: 24px;
      font-size: 2em;
  }
}

.location-notice {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 15px;
  padding: 10px;
  font-style: italic;
  font-weight: bold;
}

/* Styles pour la grille de produits */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Cinq colonnes par défaut pour les écrans larges */
  gap: 20px;
  padding: 40px 20px;
  max-width: 1400px; /* Largeur maximale pour accueillir 5 colonnes */
  margin: auto;
  justify-content: center;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.9); /* Fond légèrement transparent */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.6); /* Bordure subtile */
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.product-card img {
  width: 100%; /* Prend toute la largeur du conteneur */
  height: auto; /* Permet à l'image de conserver son ratio d'aspect */
  object-fit: contain; /* Assure que l'image s'adapte sans être coupée */
  display: block;
}

.product-card .product-title {
  font-size: 1.2em;
  margin: 15px 0;
  color: #4caf50;
  font-weight: bold;
  padding: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* Bordure subtile pour séparer l'image du texte */
  background-color: rgba(255, 255, 255, 0.8); /* Fond légèrement transparent pour le texte */
}

/* Responsive Design */
@media (max-width: 1400px) {
  .product-grid {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 1200px) {
  .product-grid {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
      grid-template-columns: repeat(2, 1fr); /* Deux colonnes sur mobile */
  }

  .product-card img {
      height: 150px; /* Réduction de la hauteur des images pour mobile */
  }

  .product-card .product-title {
      font-size: 1em; /* Réduction de la taille du texte pour mobile */
  }
}

/* titre de la page*/
.page-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  color: #333;
}

/* Section de contact améliorée */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1100px;
  margin: 50px auto;
  padding: 30px;
  gap: 40px;
}

/* Boîtes de contact : Formulaire & Infos */
.contact-form,
.contact-info {
  flex: 1;
  min-width: 350px;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

/* Boîtes de contact au survol */
.contact-form:hover,
.contact-info:hover {
  transform: translateY(-5px);
}

/* Titres des sections */
.contact-form h2,
.contact-info h2,
.contact-map h2 {
  color: #222;
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Formulaire */
.contact-form form {
  display: grid;
  grid-gap: 20px;
}

/* Labels */
.contact-form label {
  font-size: 1.1em;
  font-weight: 600;
  color: #444;
  margin-bottom: 8px;
}

/* Champs texte et zone message */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #f7f7f7;
  transition: border-color 0.3s;
  margin-bottom: 12px; /* Ajout d'espacement entre les champs */
}

/* Effet de focus sur les champs */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #17eb04;
  outline: none;
  background: #fff;
}

/* Zone de message plus grande */
.contact-form textarea {
  min-height: 180px;
  resize: none; /* Empêche le redimensionnement */
}

/* Bouton envoyer */
.contact-form input[type="submit"] {
  background: linear-gradient(135deg, #17eb04, #0dbb02);
  color: white;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

.contact-form input[type="submit"]:hover {
  background: linear-gradient(135deg, #0dbb02, #0a8c01);
  transform: scale(1.05);
}

/* Informations de contact */
.contact-info p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px; /* Ajout d'un espacement plus important entre chaque ligne */
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.08);
}

/* Icônes */
.contact-info p i {
  font-size: 1.4em;
  color: #17eb04;
}

/* Espacement supplémentaire pour les coordonnées spécifiques */
.contact-info p span {
  display: block; /* Permet de créer un bloc distinct entre les coordonnées */
  margin-bottom: 10px; /* Ajout d'un espacement spécifique entre chaque information */
}

/* Carte OpenStreetMap */
.contact-map {
  width: 100%;
}

.contact-map #map {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .contact-section {
      flex-direction: column;
      align-items: center;
  }

  .contact-form,
  .contact-info {
      max-width: 100%;
  }

  .contact-map #map {
      height: 320px;
  }
}

.service-info {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-info p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
}

.service-info ul {
  list-style-type: none;
  padding: 0;
  font-size: 1.2em;
  color: #4caf50;
}

.service-info ul li {
  margin: 10px 0;
}

.pdf-viewer {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pdf-viewer iframe {
  border: none;
  width: 100%;
  height: 600px; /* Ajustez la hauteur selon vos besoins */
}

.pdf-viewer a {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #4caf50;
  text-decoration: none;
  font-size: 1em;
}

.pdf-viewer a:hover {
  text-decoration: underline;
}

/* Grille de logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ajuste automatiquement les colonnes */
  gap: 20px; /* Espace entre les éléments */
  padding: 80px 20px 20px; /* Plus de padding en haut pour éviter la coupure avec la navbar */
  max-width: 100%; /* Utilise toute la largeur disponible */
  margin: 40px auto; /* Marge pour centrer la grille */
  justify-content: center;
}

.logo-grid a {
  display: block;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* Coins arrondis pour un look plus moderne */
  overflow: hidden; /* Cache tout débordement */
}

.logo-grid a:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Ombre subtile au survol */
}

.logo-grid img {
  width: 100%; /* Prend toute la largeur du conteneur */
  height: 120px; /* Augmente la hauteur pour une meilleure visibilité */
  object-fit: contain; /* Garde les proportions sans déformation */
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
}

.logo-grid a:hover img {
  transform: scale(1.1); /* Zoom léger sur l'image au survol */
}

.logo-name {
  margin-top: 10px; /* Espace entre l'image et le texte */
  font-size: 1rem; /* Taille du texte adaptée à l'environnement */
  color: black; /* Couleur du texte */
  text-decoration: none; /* Supprime le soulignement */
  transition: none; /* Supprime la transition de couleur */
  font-weight: bold; /* Met le texte en gras */
  text-transform: uppercase; /* Met le texte en majuscules */
}

.logo-grid a {
  text-decoration: none; /* Supprime le soulignement des liens */
  color: inherit; /* Conserve la couleur du texte */
}

/* Ajustements pour les mobiles */
@media (max-width: 768px) {
  .logo-name {
      font-size: 0.9rem; /* Taille du texte plus petite pour les mobiles */
  }
}

/* Ajustements pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo-name {
      font-size: 1rem; /* Taille du texte adaptée aux tablettes */
  }
}

/* Ajustements pour les PC portables */
@media (min-width: 1025px) and (max-width: 1440px) {
  .logo-name {
      font-size: 1.1rem; /* Taille du texte légèrement plus grande pour les PC portables */
  }
}

/* Ajustements pour les grands écrans */
@media (min-width: 1441px) {
  .logo-name {
      font-size: 1.2rem; /* Taille du texte plus grande pour les grands écrans */
  }
}

/* Ajustements pour les mobiles */
@media (max-width: 768px) {
  .logo-grid {
      grid-template-columns: repeat(2, 1fr); /* Deux colonnes pour les mobiles */
      gap: 15px; /* Réduit l'espace entre les éléments */
      padding: 90px 10px 20px; /* Plus de padding en haut */
      margin: 20px auto; /* Réduit la marge */
  }
}

/* Ajustements pour les tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo-grid {
      grid-template-columns: repeat(3, 1fr); /* Trois colonnes pour les tablettes */
      gap: 20px; /* Ajuste l'espace entre les éléments */
      padding: 80px 20px 20px; /* Plus de padding en haut */
  }
}

/* Ajustements pour les PC portables */
@media (min-width: 1025px) and (max-width: 1440px) {
  .logo-grid {
      grid-template-columns: repeat(4, 1fr); /* Quatre colonnes pour les PC portables */
      gap: 25px; /* Ajuste l'espace entre les éléments */
      padding: 50px 20px 20px; /* Plus de padding en haut */
  }
}

/* Ajustements pour les grands écrans */
@media (min-width: 1441px) {
  .logo-grid {
      grid-template-columns: repeat(6, 1fr); /* Six colonnes pour les grands écrans */
      gap: 20px; /* Ajuste l'espace entre les éléments */
      padding: 60px 20px 20px; /* Plus de padding en haut */
      max-width: 1600px; /* Augmente la largeur maximale pour mieux utiliser l'espace */
  }
}

/* Style des images en petit format */
.small-image {
  width: 50px !important; /* Taille très petite */
  height: 50px !important;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}


/* Fond sombre en arrière-plan lors de l'agrandissement */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Image agrandie */
.image-overlay img {
  max-width: 60vw !important; /* Limite la taille en largeur */
  max-height: 60vh !important; /* Limite la taille en hauteur */
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

/* Afficher l'image agrandie */
.image-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Ajustement des images sur PC et tablette */
@media screen and (min-width: 768px) {
  .small-image {
      width: 50px !important;
      height: 50px !important;
  }
}

@media screen and (min-width: 1024px) {
  .small-image {
      width: 60px !important;
      height: 60px !important;
  }
}

@media screen and (min-width: 1400px) {
  .small-image {
      width: 70px !important;
      height: 70px !important;
  }
}

/* Style par défaut pour les écrans de taille moyenne et grande (PC et tablette) */
.table-container {
  display: flex;
  align-items: center;
}

.table-container img {
  margin-right: 20px; /* Espace entre l'image et le texte */
}

/* Style pour les écrans mobiles */
@media (max-width: 600px) {
  .table-container {
      display: flex;
      flex-direction: column;
      justify-content: center; /* Centrer horizontalement */
      align-items: center; /* Centrer horizontalement */
      text-align: center; /* Centrer le texte */
  }

  .table-container img {
      margin-right: 0;
      margin-bottom: 10px; /* Espace entre l'image et le texte */
      align-self: flex-start; /* Aligner l'image en haut */
  }
}

/* Conteneur dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Bouton du menu déroulant */
.dropdown-toggle {
  cursor: pointer;
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: #4caf50;
  min-width: 170px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 5px;
  padding: 5px 0;
  list-style: none;

  left: 50%;
  transform: translateX(-50%);
  top: 100%; /* PAS de +1px sinon ça flotte */

  pointer-events: auto; /* toujours cliquable */
}

.dropdown-menu li {
  width: 100%;
  margin: 0 !important;
}

.dropdown-menu a {
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  text-align: center;
  color: white;
  font-size: 1em;
  white-space: nowrap;
  min-width: auto;
}

.dropdown-menu a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* ----- PC : Hover ou actif (clic JS) ----- */
@media (min-width: 1025px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.dropdown-active .dropdown-menu {
      display: block;
  }
  
  .dropdown-menu a {
      font-size: 0.95em; /* Légèrement plus petit que le menu principal */
      padding: 8px 12px; /* Padding plus serré */
  }
}

/* Pour les tablettes et mobiles */
@media (max-width: 1024px) {
  .dropdown {
      width: 100%;
      display: block;
      position: relative;
  }

  .dropdown-toggle {
      display: block;
      width: 100%;
      text-align: center;
  }

  .dropdown-menu {
      display: none;
      position: static;
      background-color: #3c9141;
      width: 100%;
      padding: 0;
      margin: 0;
      border-radius: 0;
      box-shadow: none;
      transform: none;
      left: 0;
      top: 0;
  }

  .dropdown.dropdown-active .dropdown-menu {
      display: block;
  }

  .dropdown-menu li {
      width: 100%;
  }

  .dropdown-menu a {
      display: block;
      width: 100%;
      text-align: center;
      padding: 10px 15px;
      color: white;
      text-decoration: none;
      font-size: 0.9em;
      white-space: normal;
  }

  .dropdown-menu a:hover {
      background-color: rgba(0, 0, 0, 0.1);
  }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
  .dropdown-menu a {
      font-size: 0.85em;
      padding: 8px 10px;
  }
}

.gallery-section {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 16px 32px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.gallery-section h2 {
  text-align: center;
  margin: 32px 0 24px 0;
  font-size: 2rem;
  color: #222;
  letter-spacing: 1px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  background: #eaeaea;
  transition: transform 0.2s;
}
.gallery-grid img:hover {
  transform: scale(1.04);
}
@media (max-width: 600px) {
  .gallery-section {
      margin: 16px 0 0 0;
      padding: 0 8px 16px 8px;
  }
  .gallery-section h2 {
      font-size: 1.3rem;
      margin: 20px 0 14px 0;
  }
  .gallery-grid img {
      height: 120px,120px;
  }
}

.video-section {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 16px 32px ;
  background: #fff;
  border-radius: 12px;
  background: #f9f9f9; /* Légèrement plus clair pour un look plus doux */
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced minmax width */
  gap: 18px;
  padding-bottom: 16px;
}
.video-card[href="tete-a-fil.html"] img {
width: 80%;
height: auto;
display: block;
margin: 0 auto;
}
.video-card {
position: relative;
  text-align: absolute;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  background: #f5f5f5; 
  transition: transform 0.2s;
  text-align: center;
  color: white;
  text-decoration: none;
}

.video-card:hover {
  transform: scale(1.04);
}

.video-card img {
  width: 100%;
  height: 200px; /* Reduced height for smaller images */
  object-fit: cover;
  border-radius: 8px;
}

/* Modification pour centrer correctement les textes sur les images */
.card-image {
position: relative;
width: 100%;
height: 100%;
}

.card-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.5rem;
font-weight: bold;
color: #ffffff;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Ajout d'une ombre pour améliorer la lisibilité */
width: 100%;
text-align: center;
}

/* Style spécifique pour le texte de l'image du milieu (TÊTE À FIL) */
.video-card[href="tete-a-fil.html"] .card-content {
color: #000000; /* Texte en noir pour l'image du milieu */
text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5); /* Ombre claire pour la lisibilité */
}

@media (max-width: 600px) {
  .video-section {
      margin: 16px 0 0 0;
      padding: 16px; /* Increased padding for mobile */
  }
  .video-grid {
      gap: 12px; /* Slightly reduced gap for better fit */
  }
  .video-card img {
      height: 180px; /* Slightly reduced height for better fit */
  }
  .card-content {
      font-size: 1.8rem; /* Slightly reduced font size for better fit */
  }
}

.double-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 0;
  margin: 0;
}
.double-line span {
  margin: 0;
  padding: 0;
}
/* Styles pour les pages légales */
.legal-page .main-title {
  color: #4caf50;
  margin-top: 100px;
  margin-bottom: 30px;
  text-align: center;
  font-size: 2.2em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.legal-page .service-info {
  max-width: 900px;
  margin: 0 auto 60px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.legal-page .legal-section {
  margin-bottom: 30px;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 20px;
}

.legal-page .legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-page h2 {
  color: #4caf50;
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 600;
}

.legal-page p, .legal-page li {
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
}

.legal-page strong {
  font-weight: 600;
  color: #222;
}

.legal-page ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-page a {
  color: #4caf50;
  text-decoration: none;
  transition: color 0.3s;
}

.legal-page a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

.legal-page .last-updated {
  font-style: italic;
  text-align: right;
  color: #777;
  margin-top: 20px;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .legal-page .main-title {
      margin-top: 90px;
      font-size: 1.8em;
  }
  
  .legal-page .service-info {
      padding: 20px;
      margin-bottom: 40px;
  }
  
  .legal-page h2 {
      font-size: 1.3em;
  }
}
/* Styles pour le carrousel principal */
.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 120px auto 40px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 320px; /* Plus haut pour un effet plus premium */
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide:nth-child(1) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/images/slide1.jpg");
}

.carousel-slide:nth-child(2) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/images/slide2.jpg");
}

.carousel-slide:nth-child(3) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/images/slide3.jpg");
}

.carousel-slide:nth-child(4) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("/images/slide4.jpg");
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background-color: rgba(76, 175, 80, 0.85); /* Tout vert comme sur mobile ! */
  box-sizing: border-box;
}

.carousel-content a,
.carousel-content h2,
.carousel-content p {
    color: #fff; /* tout en blanc */
}

/* Texte du <p> un peu plus gros */
.carousel-content p {
    margin-top: 25px; /* remonte un peu */
    font-size: 1.2em;
}

/* Texte du <h2> un peu plus petit (mais pas beaucoup) */
.carousel-content h2 {
  margin-top: -20px;
    font-size: 1.4em;
}

.carousel-content a {
  margin-top: 30px;
  color: #4caf50;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.carousel-content h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-btn, .contact-btn {
  display: inline-block;
  background-color: white !important; /* Force le fond blanc */
  color: #4caf50 !important; /* Force le texte vert */
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.carousel-btn:hover, .contact-btn:hover {
  background-color: #333 !important;
  color: #ffffff !important;
  border-color: #4caf50;
  transform: translateY(-3px);
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background-color: rgba(76, 175, 80, 0.9);
  color: white;
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

.carousel-indicators {
  position: absolute;
  bottom: 8px; /* Redescendu un peu */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #ffffff;
  transform: scale(1.3);
  opacity: 1;
}

/* Titre de section */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: white;
  margin: 40px auto 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 10px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4caf50;
}

/* Styles pour les cartes d'information */
.info-cards {
  display: flex;
  justify-content: center;
  gap: 25px;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.info-card {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0) 100%);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.info-card:hover:before {
  opacity: 1;
}

.info-icon {
  font-size: 2.2rem;
  color: #4caf50;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.1);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #333;
  transition: color 0.3s ease;
}

.info-card:hover h3 {
  color: #4caf50;
}

.info-card p {
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Style pour les liens dans les cartes */
.card-link {
  display: inline-block;
  color: #4caf50;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.card-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

.card-link:hover {
  color: #2e7d32;
  transform: translateY(-2px);
}

.card-link:hover:after {
  width: 100%;
}

/* Nouveau carrousel pour les machines */
.machines-carousel-container {
  position: relative;
  max-width:  1000px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.85);
}

.machines-carousel {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  height: 270px;
  position: relative;
}

.machine-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.machine-slide.active {
  opacity: 1;
  z-index: 1;
}

.machine-image {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.machine-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  display: block;
  transition: transform 0.3s ease;
}

.machine-content {
  flex: 1;
  padding: 20px;
  text-align: left;
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.machine-content h3 {
  font-size: 1.8rem;
  margin-left: -100px;
  margin-top: -15px;
  margin-bottom: 15px;
  color: #333;
  text-align: left;
}

.machine-content p {
  font-size: 1rem;
  color: #666;
  margin-left: -100px;
  margin-top: -15px;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: left;
}

.machine-btn {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.machine-btn:hover {
  background-color: white;
  color: #4caf50;
  border-color: #4caf50;
  transform: translateY(-3px);
}

.machines-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.machines-carousel-control:hover {
  background-color: rgba(76, 175, 80, 0.9);
  color: white;
}

.machines-carousel-control.prev {
  left: 15px;
}

.machines-carousel-control.next {
  right: 15px;
}

.machines-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.machine-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.machine-indicator.active {
  background-color: #4caf50;
  transform: scale(1.2);
}

/* Bannière de contact */
.contact-banner {
  background-color: rgba(76, 175, 80, 0.8);
  color: white;
  text-align: center;
  padding: 35px 1px;
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-banner:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/images/pattern.png');
  opacity: 0.1;
  z-index: 0;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.contact-banner p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* .contact-btn style déplacé et synchronisé plus haut avec .carousel-btn */

/* Responsive design */
@media (max-width: 1024px) {
  .carousel-container {
    margin-top: 100px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Ajoute une marge intérieure sans casser la marge externe */
    box-sizing: border-box;
  }

  .carousel-content h2 {
    margin-top: -30px;
    font-size: 1.9rem;
  }

/* Texte du <p> un peu plus gros */
.carousel-content p {
  margin-top: 20px; /* remonte un peu */
  font-size: 1.5em;
}

  .info-cards {
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .info-card {
    max-width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .contact-banner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
  }

  /* Suppression des styles qui cassent le carrousel sur mobile/tablette */
  
  /* Styles corrects pour le carrousel sur mobile/tablette */
  .machines-carousel-container {
    max-width: 90%;
  }
  
  .machine-content h3,
  .machine-content p {
      margin-left: 0;
  }
  
  .machines-carousel {
    height: 450px;
    position: relative;
  }
  
  .machine-content h3 {
    font-size: 1.5rem;
  }
  
  .machine-content p {
    font-size: 0.9rem;
  }
}


@media (max-width: 768px) {
  .carousel-container {
    margin-top: 110px; /* Plus d'espace en haut sur mobile */
    margin-bottom: 20px;
    max-width: 90%;
  }

  .carousel {
    height: 320px;
  }

  .carousel-content h2 {
    font-size: 1.5rem;
  }

  .carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .carousel-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .carousel-control {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin: 30px auto 25px;
  }
  
  .info-cards {
    gap: 15px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .info-icon {
    font-size: 2rem;
  }
  
  .info-card h3 {
    font-size: 1.3rem;
  }
  
  .info-card p {
    font-size: 0.9rem;
  }

  .contact-banner {
    padding: 25px 15px;
    max-width: 90%;
  }
  
  .contact-banner h2 {
    font-size: 1.5rem;
  }

  .contact-banner p {
    font-size: 0.95rem;
  }
  
  .contact-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .machines-carousel-container {
    max-width: 90%;
  }
  .machine-content h3,
  .machine-content p {
      margin-left: 0;
  }
  .machines-carousel {
    height: 450px;
    position: relative;
  }
  
  .machine-content h3 {
    font-size: 1.5rem;
  }
  
  .machine-content p {
    font-size: 0.9rem;
  }
  
    .machines-carousel .machine-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
  }
  
  .machines-carousel .machine-slide.active {
    opacity: 1;
    z-index: 1;
  }
  
  
}

@media (max-width: 480px) {
  .carousel-container {
    margin-top: 100px;
    margin-bottom: 25px;
    border-radius: 15px;
    max-width: 95%;
    overflow: hidden;
    padding: 0 !important; /* CRITIQUE : Enlève la marge intérieure qui créait le cadre */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }

  .carousel {
    height: 260px !important; /* Hauteur mobile forcée */
    display: block !important;
    position: relative !important;
    padding: 0 !important;
  }

  .carousel-slide {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .carousel-content {
    background-color: rgba(76, 175, 80, 0.85) !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }

  .carousel-content h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    margin-top: 0 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }

  .carousel-content p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    margin-top: 0 !important;
    line-height: 1.3;
  }

  .carousel-btn {
    padding: 6px 15px;
    font-size: 0.85rem;
  }

  .carousel-control {
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.6);
  }

  .carousel-indicators {
    bottom: 8px;
  }

  /* Déplacement des indicateurs sur mobile pour ne pas toucher le bouton */
  .carousel-indicators {
    bottom: 5px !important;
  }
  
  .indicator {
    width: 6px !important;
    height: 6px !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
  }

  .indicator.active {
    background-color: #ffffff !important;
    transform: scale(1.3) !important;
    opacity: 1 !important;
  }
  
  /* Styles spécifiques pour mobile - carrousel machines */
  .machines-carousel-container {
    max-width: 95%;
    margin: 20px auto;
  }
  
  .machines-carousel {
    height: 480px !important;
    position: relative !important;
    overflow: hidden;
  }
  
  .machine-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    box-sizing: border-box !important;
  }
  
  .machine-slide.active {
    opacity: 1 !important;
    z-index: 1 !important;
  }
  
  .machine-image {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .machine-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .machine-content {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
  
  .machine-content h3 {
    font-size: 1.2rem !important;
    margin: 0 0 10px 0 !important;
  }
  
  .machine-content p {
    font-size: 0.9rem !important;
    margin: 0 0 15px 0 !important;
  }
  
  .machine-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
/* Styles pour la galerie vidéo */
.video-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.video-page-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.video-page-item {
    flex: 0 0 calc(50% - 30px);
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-page-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-page-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.video-page-link::before {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1;
}

.video-page-link:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-page-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.video-page-link:hover .video-page-thumbnail {
    transform: scale(1.05);
}

.video-page-title {
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #4caf50;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive design pour mobile */
@media (max-width: 768px) {
    .video-page-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .video-page-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
    }
    
    .video-page-link::before {
        font-size: 3rem;
    }
    
    .video-page-title {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* Pour les très petits écrans */
@media (max-width: 480px) {
    .video-page-title {
        font-size: 1rem;
        padding: 10px;
    }
    
    .video-page-link::before {
        font-size: 2.5rem;
    }
}

#season-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}





/* ===== CORRECTIONS MOBILE CARROUSEL MACHINES ===== */
/* Indicateurs du carrousel machines : remontés sur mobile pour ne pas chevaucher le footer vert */
@media (max-width: 768px) {
  .carousel-indicators {
    bottom: 55px; /* Remontée plus importante pour éviter le bouton En savoir plus */
  }

  .machines-indicators {
    bottom: auto;
    top: 8px;
    background: rgba(255, 255, 255, 0.6);
    padding: 3px 8px;
    border-radius: 20px;
  }

  /* Carrousel machines en layout vertical sur mobile */
  .machines-carousel {
    height: auto;
    min-height: 320px;
  }

  .machine-slide {
    position: relative;
    flex-direction: column;
    padding: 36px 14px 14px;
    height: auto;
    min-height: 400px;
  }

  .machine-slide.active {
    position: relative;
  }

  /* Toutes les slides empilées, la JS gère l'affichage via opacity/visibility */
  .machine-slide:not(.active) {
    position: absolute;
  }

  .machine-image {
    width: 100%;
    height: 250px;
    flex: none;
    padding: 5px;
  }

  .machine-image img {
    max-height: 240px;
    width: auto;
    max-width: 100%;
  }

  .machine-content {
    width: 100%;
    flex: none;
    padding: 10px 5px 5px;
    text-align: center;
  }

  .machine-content h3 {
    font-size: 1.2rem;
    margin-left: 0;
    margin-top: 0;
    text-align: center;
  }

  .machine-content p {
    font-size: 0.9rem;
    margin-left: 0;
    margin-top: 0;
    text-align: center;
  }

  .machine-btn {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
}

/* ===== PLACEHOLDER "PROCHAINEMENT" POUR IMAGES MANQUANTES ===== */
.img-prochainement {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 2px dashed #4caf50;
  border-radius: 8px;
  color: #2e7d32;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  min-height: 120px;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  gap: 8px;
}

.img-prochainement::before {
  content: "🌿";
  font-size: 2rem;
  display: block;
}

/* Product card : quand l'image est remplacée */
.product-card .img-prochainement {
  height: 150px;
}

/* Carrousel machines : quand l'image est remplacée */
/* ===== STYLES PAGE CARTE GRISE (COMPATIBILITÉ iOS/MOBILE) ===== */
.service-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px;
}

.service-card-docs {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.service-card-docs i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.service-card-docs h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card-docs p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.btn-cg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-cg.download {
    background-color: #4caf50;
    color: white;
}

.btn-cg.download:hover {
    background-color: #2e7d32;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-cg.view {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-cg.view:hover {
    background-color: #eee;
}

@media (max-width: 480px) {
    .service-card-docs {
        padding: 20px;
    }
    .service-card-docs i {
        font-size: 2.5rem;
    }
}

/* ==========================================
   POPUP PROMOTIONNELLE (MODAL)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: white;
  width: 90%;
  max-width: 850px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.85) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f5f5f5;
  transform: rotate(90deg);
}

.modal-split {
  display: flex;
  min-height: 450px;
}

.modal-image {
  flex: 1;
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.modal-body {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  align-items: center;
}

.modal-content-inner {
  width: 100%;
}

.modal-tag {
  background-color: #4caf50;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-body h2 {
  font-size: 2rem;
  margin: 15px 0;
  color: #1e1e23;
  line-height: 1.2;
}

.modal-body p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.modal-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.modal-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-weight: 500;
}

.modal-features li i {
  color: #4caf50;
  font-size: 1.1rem;
}

.modal-btn {
  display: block;
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.modal-btn:hover {
  background-color: #2e7d32;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Responsive Popup */
@media (max-width: 768px) {
  .modal-split {
    flex-direction: column;
  }
  
  .modal-image {
    height: 200px;
  }
  
  .modal-body {
    padding: 30px 25px;
  }
  
  .modal-body h2 {
    font-size: 1.6rem;
  }
  
  .modal-container {
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-close {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
  }
}

/* ===== MONTAGE FLYER ROBOROCK ===== */
.flyer {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    width: 95vw;
    max-width: 1400px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}

/* Bouton fermer */
.flyer-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 50;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform .2s, background .2s;
    line-height: 1;
}
.flyer-close:hover {
    transform: scale(1.15);
    background: #e60012;
    color: #fff;
}

/* Logo */
.flyer-logo {
    background: #000;
    text-align: center;
    padding: 1.5vh 0;
    flex-shrink: 0;
}
.flyer-logo img {
    height: 5vh;
    max-height: 45px;
}

/* Corps principal — 2 colonnes PC */
.flyer-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Colonne gauche */
.flyer-col-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    background: #000;
    padding: 1.5vh 2vw;
    gap: 1vh;
}

.flyer-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    gap: 0.3vh;
}
.ft-sub {
    font-size: clamp(0.9rem, 2vh, 1.5rem);
    font-weight: 800;
    text-transform: uppercase;
}
.ft-big {
    font-size: clamp(2rem, 5vh, 4.5rem);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 3px;
}
.ft-tech {
    font-size: clamp(0.6rem, 1.25vh, 1.1rem);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0.5vh;
}

/* Image pente */
.flyer-slope {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.flyer-slope img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slope-label {
    position: absolute;
    bottom: 8%;
    right: 5%;
    text-align: right;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
    line-height: 1.1;
}
.slope-label span {
    display: block;
    font-size: clamp(0.7rem, 1.5vh, 1.2rem);
    font-weight: 700;
}
.slope-label strong {
    display: block;
    font-size: clamp(1.4rem, 3.5vh, 3rem);
    font-weight: 900;
}

/* Colonne droite — 3 cartes */
.flyer-col-right {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
    padding: 1.5vh 2vw 1.5vh 0;
}
.flyer-card {
    position: relative;
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    min-height: 0;
}
.flyer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, transparent 65%);
    color: #fff;
    padding: 1.2vh 1.5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3vh;
}
.card-overlay strong {
    font-size: clamp(1.1rem, 2.2vh, 1.8rem);
    font-weight: 900;
}
.card-overlay small {
    font-size: clamp(0.7rem, 1.3vh, 1rem);
    color: #ccc;
    max-width: 75%;
}
.card-btn {
    align-self: flex-start;
    background: #fff;
    color: #000;
    padding: 0.5vh 1.2vw;
    border-radius: 10px;
    font-size: clamp(0.6rem, 1.1vh, 0.85rem);
    font-weight: 800;
    text-decoration: none;
    margin-top: 0.4vh;
    transition: background .2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.card-btn:hover {
    background: #e60012;
    color: #fff;
}
.card-price {
    font-size: clamp(0.9rem, 1.6vh, 1.4rem);
    font-weight: 900;
    margin-top: 0.5vh;
}

/* Section basse */
.flyer-bottom {
    background: #fff;
    flex-shrink: 0;
}
.flyer-bottom-inner {
    display: flex;
    align-items: center;
    gap: 1vw;
    padding: 1vh 2vw;
}
.flyer-cta {
    color: #e60012;
    font-weight: 900;
    font-size: clamp(1.4rem, 3vh, 2.8rem);
    line-height: 1.15;
    flex: 0.4;
    text-align: left;
}
.flyer-group {
    flex: 1;
    display: block;
    max-height: 25vh;
    object-fit: contain;
    width: auto;
}
.flyer-footer {
    background: #000;
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.5vh, 1.3rem);
    padding: 1.2vh 0;
    letter-spacing: 1px;
}

/* ===== MOBILE : Layout portrait ===== */
@media (max-width: 700px) {
    .flyer {
        width: 95vw;
        max-height: 90vh;
    }
    .flyer-body {
        flex-direction: column;
    }
    .flyer-col-left {
        padding: 0.5vh 3vw;
    }
    .flyer-col-right {
        padding: 1vh 3vw;
        gap: 0.5vh;
    }
    .flyer-slope {
        max-height: 18vh;
    }
    .flyer-card {
        min-height: 9vh;
    }
    .flyer-card-pc {
        display: none;
    }
    .flyer-logo {
        padding: 0.5vh 0;
    }
    .flyer-logo img {
        height: 3.5vh;
    }
    .ft-big {
        font-size: clamp(1.5rem, 3.5vh, 2.5rem);
    }
    .flyer-bottom-inner {
        padding: 1vh 3vw;
        gap: 0;
        justify-content: center;
    }
    .flyer-cta {
        font-size: clamp(0.75rem, 1.6vh, 1.1rem);
        flex: 1;
        text-align: center;
        line-height: 1.1;
    }
    .flyer-group {
        display: none;
    }
}

/* ===== BANDEAU PROMO LATERAL ===== */
.promo-banner {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #e60012, #c00);
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px 0 0 6px;
    font-weight: 800;
    font-size: 0.7rem;
    z-index: 9998;
    box-shadow: -3px 3px 15px rgba(0,0,0,0.3);
    transition: right 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    cursor: pointer;
}
.promo-banner.show {
    right: 0;
}
.promo-banner:hover {
    padding-right: 28px;
    background: linear-gradient(135deg, #ff1a2e, #e60012);
}

@media (max-width: 700px) {
    .promo-banner {
        padding: 6px 8px;
        font-size: 0.6rem;
        border-radius: 5px 0 0 5px;
    }
}

/* Service Carte Grise */
.service-info {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 20px;
    background: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.service-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.service-card-docs {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.service-card-docs:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.15);
}

.service-card-docs i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 20px;
}

.service-card-docs h3 {
    margin-bottom: 15px;
    color: #1b4d3e;
    font-size: 1.4rem;
}

.service-card-docs p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cg {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-cg.download {
    background: #4caf50;
    color: #fff;
}

.btn-cg.view {
    background: #1b4d3e;
    color: #fff;
}

.btn-cg:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

/* Roborock Page Premium */
.roborock-hero {
    background: linear-gradient(135deg, #1b4d3e 0%, #4caf50 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    margin-top: 70px;
}

.roborock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: -50px auto 100px;
    padding: 0 20px;
}

.robot-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.robot-card:hover {
    transform: translateY(-15px);
}

.robot-img-container {
    height: 300px;
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.robot-details {
    padding: 30px;
    text-align: center;
}

.robot-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #e60012;
    margin: 15px 0;
}

.roborock-footer-links {
    text-align: center;
    padding: 60px 20px;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rr-link-btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    border: 2px solid #1b4d3e;
    color: #1b4d3e;
    transition: all 0.3s;
}

.rr-link-btn:hover {
    background: #1b4d3e;
    color: #fff;
}
