/* ========================================================================= */
/* --- 1. VARIABLES & RESET --- */
/* ========================================================================= */
:root {
  /* Couleurs améliorées */
  --primary-green: #15653E;
  --dark-green: #0A361F;
  --accent-orange: #FF8800;
  --bright-orange: #FF6600;

  --text-dark: #333333;
  --text-light: #f5f5f5;
  --white: #ffffff;
  --light-bg: #fdfdfd;
  --glass-bg: rgba(255, 255, 255, 0.2);

  /* Rayons et Ombres adoucis */
  --border-radius-soft: 10px;
  --shadow-soft: 0 5px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 15px 35px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.65;
  background-color: var(--light-bg);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; transition: 0.4s ease-in-out; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 5px;
  background: var(--accent-orange);
  z-index: 1001;
  transition: width 0.1s;
}

/* ========================================================================= */
/* --- 2. BOUTONS & UI --- */
/* ========================================================================= */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px;
  position: relative; overflow: hidden; z-index: 1; transition: all 0.4s ease;
  border: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4);
  border-radius: 50px;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: 0.5s; z-index: -1;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: var(--bright-orange);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(255, 102, 0, 0.6);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  border-radius: 8px;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary-green);
  transform: none;
}
.btn-secondary {
  background: var(--white);
  color: var(--accent-orange);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  background: var(--light-bg);
  transform: translateY(-3px);
}

/* Sections et En-têtes */
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 20px;
}
.separator {
  width: 60px;
  height: 5px;
  background: var(--accent-orange);
  margin: 0 auto;
  border-radius: 3px;
}
.section-header p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 15px auto 0;
}
.services .section-header p {
  margin-top: 15px;
  color: #666;
}

/* ========================================================================= */
/* --- 3. HEADER & NAV --- */
/* ========================================================================= */
header {
  position: fixed; width: 100%; top: 0; z-index: 1000;
  transition: all 0.4s ease; background: transparent; padding: 25px 0;
  border-bottom: none;
}
header.scrolled {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow-soft);
}
nav { display: flex; justify-content: space-between; align-items: center; }

/* ========================================================================= */
/* --- LOGO COMPOSÉ (IMAGE + TEXTE) - VERSION CLEAN & AJUSTÉE --- */
/* ========================================================================= */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

/* 1. L'IMAGE (Logo) */
.nav-logo-img {
  height: 40px; /* Taille réduite (était 50px) */
  width: auto;
  transition: all 0.3s ease;

  /* Rend l'image entièrement blanche sur le fond vert */
  filter: brightness(0) invert(1);
}

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

/* 2. LE TEXTE */
.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  transition: color 0.4s;
}

.logo-text span {
  color: var(--accent-orange);
}

/* --- GESTION DU SCROLL (FOND BLANC) --- */

/* Quand le menu devient blanc, le texte devient vert */
header.scrolled .logo-text {
  color: var(--primary-green);
}

/* Quand le menu devient blanc, on remet les couleurs originales du logo */
header.scrolled .nav-logo-img {
  filter: none;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a:not(.nav-fb) {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
  color: var(--white);
  position: relative;
  /* Ajout d'un padding pour aligner verticalement avec l'icône */
  padding: 5px 0;
  display: inline-block;
}
header.scrolled .nav-links a { color: var(--text-dark); }
.nav-links li:nth-child(3) a {
  color: var(--accent-orange);
}
header.scrolled .nav-links li:nth-child(3) a {
  color: var(--accent-orange);
}
.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 3px;
  background: var(--accent-orange); bottom: -8px; left: 0;
  transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
header.scrolled .hamburger { color: var(--primary-green); }

/* --- STYLE DU LOGO FACEBOOK AVEC LIGNE ORANGE --- */
.nav-fb {
  position: relative; /* INDISPENSABLE : Empêche la ligne de partir n'importe où */
  display: inline-flex; /* S'assure que la boite fait juste la taille de l'icone */
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  padding: 5px; /* Un peu d'espace pour que la ligne ne colle pas trop */
  transition: color 0.3s ease;
}

.nav-fb::after {
  content: '';
  position: absolute; /* Se place par rapport au .nav-fb (grâce au relative au-dessus) */
  bottom: 0;          /* Tout en bas de l'icône */
  left: 0;
  width: 0%;          /* Invisible au départ */
  height: 3px;        /* Épaisseur */
  background: var(--accent-orange);
  transition: width 0.3s ease; /* Animation fluide */
}

/* Au survol : La ligne grandit */
.nav-fb:hover::after {
  width: 100%; /* Prend 100% de la taille de l'icône, pas de la page */
}

/* Au survol : L'icône devient bleue */
.nav-fb:hover {
  color: #1877F2 !important;
}

/* Header Scrollé (Fond blanc) : L'icône devient verte par défaut */
header.scrolled .nav-fb {
  color: var(--primary-green);
}

/* MOBILE : Ajustement pour le menu hamburger */
@media (max-width: 992px) {
  .nav-fb {
    font-size: 1.8rem;
    color: var(--primary-green);
    width: 100%; /* Sur mobile, on prend toute la largeur */
  }

  /* Sur mobile, on cache la ligne orange car c'est moins joli dans le menu vert */
  .nav-fb::after {
    display: none;
  }
}

/* ========================================================================= */
/* --- 4. HERO SECTION --- */
/* ========================================================================= */
.hero {
  height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 54, 31, 0.9), rgba(21, 101, 62, 0.8)), url('https://images.unsplash.com/photo-1558904541-efa843a96f01?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-content { position: relative; z-index: 2; color: var(--white); opacity: 0; transform: translateY(30px); animation: heroEnter 1s ease forwards 0.5s; }
@keyframes heroEnter { to { opacity: 1; transform: translateY(0); } }

.hero h1 {
  font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px;
  text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.hero h1 span { color: var(--accent-orange); }
.hero p {
  font-size: 1.5rem; margin-bottom: 50px; max-width: 800px; margin-left: auto; margin-right: auto;
  font-weight: 400;
}
.hero-badge {
  background: var(--accent-orange); padding: 8px 20px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px;
  display: inline-block; letter-spacing: 1px;
}
.hero-actions { margin-top: 30px; }

/* ========================================================================= */
/* --- 4.5 HISTOIRE & TIMELINE (VERSION FINALE : PULSE + FLIP + LISIBLE) --- */
/* ========================================================================= */
.history {
  padding: 120px 0 30px 0;
  background-color: var(--light-bg);
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* La ligne centrale */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 4px;
  margin-left: -2px;
  /* Dégradé subtil */
  background: linear-gradient(to bottom, transparent, #ddd 5%, var(--primary-green) 50%, #ddd 95%, transparent);
  border-radius: 2px;
  z-index: 1;
}

.timeline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  padding: 10px 0; /* Zone active pour le survol */
}

/* --- LE POINT CENTRAL (DOT) AVEC PULSE --- */
.timeline-dot {
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 5px solid var(--primary-green);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%); /* Centrage parfait */
  z-index: 5;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1); /* Contour blanc pour détacher */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* L'anneau qui pulse (Animation) */
.timeline-dot::after {
  content: '';
  position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  border-radius: 50%;
  border: 1px solid var(--primary-green);
  opacity: 0;
  z-index: -1;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* --- LA CARTE DE CONTENU --- */
.timeline-content {
  width: 44%;
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-soft);
  /* Relief : Ombre + Bordure haute */
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-top: 4px solid #eee;
  position: relative;
  transition: all 0.4s ease;
}

/* --- ICONES (FLIP & COULEUR) --- */
.icon-box-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 136, 0, 0.1); /* Fond orange léger */
  color: var(--accent-orange); /* Icône orange vif */
  border-radius: 50%;
  margin-bottom: 15px;
  font-size: 1.4rem;
  transition: all 0.6s ease; /* Transition fluide pour la rotation */
}

/* --- LA DATE (LISIBLE) --- */
.timeline-time {
  width: 44%;
  text-align: right;
  font-size: 2.2rem;
  font-weight: 900;
  color: #d1d5db; /* Gris clair mais bien visible */
  font-family: 'Montserrat', sans-serif;
  padding: 0 60px;
  transition: 0.4s;
}

/* --- CONNECTEUR (TRAIT) --- */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0px;
  height: 3px;
  background: var(--accent-orange);
  transition: width 0.4s ease;
  z-index: 4;
}

/* --- LOGIQUE ZIG-ZAG --- */
.timeline-row:nth-child(odd) { flex-direction: row-reverse; }
.timeline-row:nth-child(odd) .timeline-content { text-align: right; }
.timeline-row:nth-child(odd) .icon-box-small { margin-left: auto; margin-right: 0; } /* Icône à droite */
.timeline-row:nth-child(odd) .timeline-time { text-align: left; }

.timeline-row:nth-child(even) .timeline-content::before { left: -50px; }
.timeline-row:nth-child(odd) .timeline-content::before { right: -50px; }


/* ========================================================================= */
/* --- INTERACTIONS (HOVER EFFECTS) --- */
/* ========================================================================= */

/* 1. Carte : Monte + Bordure Orange */
.timeline-row:hover .timeline-content {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-top-color: var(--accent-orange);
}

/* 2. Icône : Rotation 360° (FLIP) + Fond Orange */
.timeline-row:hover .icon-box-small {
  transform: rotateY(360deg);
  background: var(--accent-orange);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(255, 136, 0, 0.4);
}

/* 3. Point : Arrêt du Pulse + Grossissement Orange */
.timeline-row:hover .timeline-dot {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateX(-50%) scale(1.3);
}
/* Stop l'animation pulse au survol pour nettoyer visuellement */
.timeline-row:hover .timeline-dot::after { animation: none; border: none; }

/* 4. Date : Devient Verte */
.timeline-row:hover .timeline-time {
  color: var(--primary-green);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* 5. Connecteur : Apparaît */
.timeline-row:hover .timeline-content::before {
  width: 50px;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
  .timeline::before { left: 30px; }

  .timeline-row, .timeline-row:nth-child(odd) {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .timeline-dot {
    left: 30px;
    transform: translateX(-50%);
    top: 0;
  }

  .timeline-time {
    width: 100%;
    text-align: left !important;
    padding-left: 70px;
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--accent-orange); /* Toujours orange sur mobile */
  }

  .timeline-content {
    width: calc(100% - 20px);
    margin-left: 20px;
    text-align: left !important;
    border-top: 4px solid var(--primary-green);
  }

  .timeline-row:nth-child(odd) .icon-box-small { margin-left: 0; }
  .timeline-content::before { display: none; }
}

/* ========================================================================= */
/* --- 5. SERVICES CARDS --- */
/* ========================================================================= */
.services { padding: 40px 0 30px 0; background: var(--light-bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
  background: var(--white); padding: 60px 30px; border-radius: var(--border-radius-soft);
  box-shadow: var(--shadow-soft); transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 6px; background: var(--accent-orange);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover::after { transform: scaleX(1); }

.icon-box {
  width: 90px; height: 90px; background: rgba(21, 101, 62, 0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 30px; color: var(--primary-green); font-size: 2.5rem;
  transition: all 0.6s ease; border: 3px solid rgba(21, 101, 62, 0.2);
}
.service-card:hover .icon-box { background: var(--primary-green); color: var(--white); transform: scale(1.05); }
.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }


/* ========================================================================= */
/* --- 6. TÉMOIGNAGES CAROUSEL (CORRECTION DÉFINITIVE) --- */
/* ========================================================================= */
.testimonials {
  padding: 120px 0 30px 0; background: var(--white); position: relative; overflow: hidden;
}
.testimonials::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 100px; background: linear-gradient(to bottom, var(--light-bg), var(--white));
}
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 50px;
  padding: 0 50px;
}
.testimonials-carousel {
  display: flex;
  /* La largeur totale sera définie par le JavaScript ! */
  justify-content: flex-start;
  transition: transform 0.5s ease-in-out;
}
.carousel-slide {
  /* CORRECTION CLÉ: Chaque slide doit prendre 1/N de la largeur totale */
  /* Puisque nous avons 3 slides, chaque slide prendra 33.3333% de la largeur totale du carrousel */
  width: calc(100% / 7);
  min-width: calc(100% / 7);

  box-sizing: border-box;
  background: var(--light-bg);
  border-top: 5px solid var(--accent-orange);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 40px;
  text-align: center;
  border-radius: var(--border-radius-soft);
  flex-shrink: 0;
}
.testimonial-card p.quote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 20px;
}
.quote-icon {
  color: var(--primary-green);
  font-size: 1.8rem;
  margin: 0 auto 15px;
}
.client-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  border-top: 1px dashed #ddd;
  padding-top: 15px;
}
.client-name { font-weight: 700; color: var(--primary-green); }
.rating { color: var(--accent-orange); font-size: 0.9rem; }

/* Boutons de navigation (Précédent/Suivant) */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--primary-green);
  border: 1px solid #ddd;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.carousel-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}
/* AJUSTEMENT : Retire le translate sur X pour éviter qu'il ne déborde du padding */
.carousel-btn.prev { left: 10px; transform: translateY(-50%); }
.carousel-btn.next { right: 10px; transform: translateY(-50%); }

/* Indicateurs (Points) */
.carousel-indicators {
  text-align: center;
  margin-top: -30px;
  margin-bottom: 30px;
}
.indicator-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.indicator-dot.active {
  background: var(--accent-orange);
}
.center-cta { text-align: center; }
.testimonials .btn-outline { border-color: var(--accent-orange); color: var(--accent-orange); background: transparent; }
.testimonials .btn-outline:hover { background: var(--accent-orange); color: var(--white); }

/* ========================================================================= */
/* --- 6.5 SECTION CATALOGUE PRODUITS --- */
/* ========================================================================= */
.products-section {
  padding: 120px 0 60px 0;
  background-color: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive auto */
  gap: 30px;
  margin-top: 40px;
}

.category-card {
  background: var(--light-bg);
  border: 1px solid #eee;
  border-radius: var(--border-radius-soft);
  padding: 35px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Effet de survol sur la carte */
.category-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-green);
  background: white;
}

/* Icône ronde au dessus */
.category-card .cat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: 0.4s;
}

.category-card:hover .cat-icon {
  background: var(--accent-orange);
  transform: rotateY(180deg);
}

.category-card h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.category-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Zone des liens marques */
.brand-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cat-link {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  border-radius: 20px;
  text-transform: uppercase;
  transition: 0.3s;
  background: transparent;
}

.cat-link:hover {
  background: var(--primary-green);
  color: white;
  text-decoration: none;
}

.cat-link.stihl-btn {
  background-color: #F27E00; /* Orange STIHL */
  border-color: #F27E00;
  color: white;
}

.cat-link.stihl-btn:hover {
  background-color: #d66e00;
  transform: translateY(-2px);
}

/* Pour que les boutons prennent toute la largeur sur mobile si besoin */
@media (max-width: 480px) {
  .brand-links {
    flex-direction: column;
  }
  .cat-link {
    width: 100%;
  }
}


/* ========================================================================= */
/* --- 7. PROMO SECTION --- */
/* ========================================================================= */
.promo {
  padding: 120px 0; background: linear-gradient(145deg, var(--dark-green), var(--primary-green));
  color: var(--white); overflow: hidden; position: relative;
}
.promo-content {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 40px; margin-top: 30px;
}
.pricing-container { flex: 1; min-width: 300px; }
.robot-image-container { display: flex; flex: 1; min-width: 300px; text-align: center; align-items: center; gap: 20px;}

.section-header.promo-header { color: var(--white); text-align: left; margin-bottom: 0; }
.promo-header h2 { color: var(--white); font-size: 3rem; margin-top: 10px; }
.promo-header h2 span { color: var(--accent-orange); }
.promo-header p { opacity: 0.9; max-width: 600px; color: var(--white); margin: 10px 0 0 0}
.promo-badge {
  background: var(--accent-orange); padding: 5px 15px; border-radius: 20px;
  font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; display: inline-block;
}

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.pricing-card {
  background: var(--glass-bg); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(15px);
  padding: 35px 25px; border-radius: var(--border-radius-soft); text-align: center;
  transition: 0.4s; position: relative;
}
.pricing-card:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.02); border-color: var(--accent-orange); }
.pricing-card.featured { border: 3px solid var(--accent-orange); background: rgba(255, 136, 0, 0.15); transform: scale(1.05); }

.price-old { text-decoration: line-through; opacity: 0.7; font-size: 1.1rem; }
.price-new { font-size: 3rem; font-weight: 900; color: var(--accent-orange); margin: 10px 0; }
.pricing-card p { font-size: 0.8rem; opacity: 0.8; }
.pricing-card .best-offer-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--accent-orange); color: white; padding: 5px 10px;
  border-radius: 10px; font-size: 0.7rem; font-weight: bold; z-index: 10;
}
.promo-robot-img {
  max-width: 90%; height: auto; animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
}
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
.promo-details { margin-top: 30px; }
.promo-list { margin-bottom: 25px; }
.promo-list li { margin-bottom: 10px; }
.promo-list li i { color: var(--accent-orange); margin-right: 10px; }

@media (max-width: 768px) {
  .robot-image-container {
    flex-direction: column; /* Les deux colonnes d'images s'empilent verticalement */
    gap: 40px;
  }
}


/* ========================================================================= */
/* --- 8. BRAND SECTION (CORRIGÉ MOBILE) --- */
/* ========================================================================= */
.brands {
  padding: 60px 0;
  background: var(--white);
  overflow: hidden; /* Masque ce qui dépasse */
  position: relative;
  z-index: 1;
}

.brands .container {
  text-align: center;
  margin-bottom: 10px;
}

.brands .container p {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #999;
  margin: 50px 0 ;
}

/* Conteneur de la zone de défilement */
.logo-carousel-container {
  overflow: hidden;
  width: 100%;
  position: relative;

  /* SYNTAXE ANCIENNE (Pour faire plaisir à VS Code et vieux Safari) */
  -webkit-mask-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(transparent),
    color-stop(10%, black),
    color-stop(90%, black),
    to(transparent)
  );

  /* SYNTAXE MODERNE STANDARD */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Piste de défilement */
.logo-carousel-track {
  display: flex;
  align-items: center;
  width: max-content; /* S'adapte au contenu total */
  white-space: nowrap; /* Empêche le retour à la ligne (CRUCIAL) */
  animation: scroll-logos 30s linear infinite; /* Ralenti un peu pour l'élégance */

  /* OPTIMISATION MOBILE (GPU) */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Styles des logos */
.brand-logo {
  height: 80px; /* Taille standard desktop ajustée */
  width: auto;
  margin: 0 40px; /* Espace Desktop */
  opacity: 0.6;
  filter: grayscale(100%); /* Optionnel: rend les logos gris par défaut */
  transition: all 0.4s ease;
  flex-shrink: 0; /* Empêche l'écrasement */

  /* Astuce pour éviter le flou sur certains écrans */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.brand-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Animation */
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Doit correspondre exactement à la moitié de la piste */
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .brand-logo {
    height: 60px; /* Plus petit sur mobile pour ne pas être envahissant */
    margin: 0 15px; /* CORRECTION: Espace réduit (30px total entre logos) */
  }

  .logo-carousel-track {
    animation-duration: 20s; /* Un peu plus rapide sur mobile */
  }
}

/* ========================================================================= */
/* --- 9. CONTACT SECTION (Grille 2 colonnes & Correction Map) --- */
/* ========================================================================= */
.contact {
  padding: 50px 0; background: var(--light-bg);
}

/* Conteneur principal: ombre et fond blanc */
.contact-info-wrapper {
  background: var(--white);
  border-radius: var(--border-radius-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 50px;
  margin-bottom: 25px;
  width: 100%;
}

/* NOUVEAU : Conteneur pour la grille 2 colonnes (Info + Horaires) */
.contact-grid-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 50px; /* Espace entre les deux colonnes */
  align-items: start;
}

/* COLONNE GAUCHE (Infos générales) */
.contact-main-info h3 {
  margin-bottom: 30px;
  color: var(--primary-green);
  font-size: 1.8rem;
}
.contact-main-info .intro-contact {
  margin-bottom: 30px;
  font-size: 1.1rem;
}
.info-item { display: flex; margin-bottom: 25px; }
.info-item .icon-wrapper {
  width: 40px; height: 40px; background: var(--accent-orange);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; margin-right: 15px; flex-shrink: 0;
}
.info-item a { font-weight: bold; }

/* COLONNE DROITE (Horaires) */
.contact-schedule {
  padding-left: 20px;
}
.schedule {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.schedule h4 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.schedule .schedule-list p {
  display: flex; /* Rend le conteneur flex */
  justify-content: space-between; /* Aligne le jour à gauche et les heures à droite */
  font-size: 0.95rem;
  line-height: 1.8;
  padding-right: 5px; /* Petit espace pour l'alignement */
}
.schedule .schedule-list strong {
  width: auto;
}
.schedule .schedule-list .closed { opacity: 0.7; }


/* CARTE GOOGLE MAPS */
.map-container {
  width: 100%;
  min-height: 450px;
  border-radius: var(--border-radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative; /* NÉCESSAIRE pour le positionnement absolu de l'iframe */
}

.map-container iframe {
  /* CORRECTION BUG REMPLISSAGE : Remplissage absolu du conteneur parent */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ========================================================================= */
/* --- 10. FOOTER SECTION (DESIGN PRO & CRÉDITS VISIBLES) --- */
/* ========================================================================= */
footer {
  background: var(--dark-green);
  color: #a0a0a0;
  padding: 40px 0 40px 0; /* Plus d'espace en haut, un peu moins en bas */
  text-align: center;
  position: relative;
}

footer h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 1px;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: #b0b0b0;
  font-size: 1.8rem;
  margin: 0 15px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent-orange);
  transform: translateY(-3px);
}

.copyright {
  margin-bottom: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- NOUVELLE ZONE DE CRÉDITS --- */
.footer-credits {
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Ligne de séparation subtile */
  padding-top: 30px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Style de votre nom "Conception" */
.credit-text {
  font-size: 1.1rem; /* Texte plus grand */
  color: #ddd;
}

.creator-name {
  color: var(--accent-orange); /* Votre nom en orange */
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-left: 5px;
}

/* Le bouton Mentions Légales */
.legal-btn {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Bordure visible */
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.legal-btn i {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

/* Effet au survol du bouton */
.legal-btn:hover {
  background: var(--white);
  color: var(--dark-green); /* Le texte devient vert foncé */
  border-color: var(--white);
  transform: translateY(-2px);
}

.legal-btn:hover i {
  transform: translateX(4px); /* La petite flèche bouge */
}

/* Responsive : Sur grand écran, on met les crédits côte à côte */
@media (min-width: 768px) {
  .footer-credits {
    flex-direction: row;
    justify-content: center;
    gap: 40px; /* Espace entre votre nom et le bouton */
  }
}

/* ========================================================================= */
/* --- 10.5 BACK TO TOP BUTTON --- */
/* ========================================================================= */
.back-to-top {
  position: fixed;
  bottom: 25px; /* Distance du bas */
  right: 25px; /* Distance de la droite */
  width: 50px;
  height: 50px;
  background: var(--accent-orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  z-index: 999;
  opacity: 0; /* Caché par défaut */
  visibility: hidden; /* Assure que le bouton n'est pas interactif quand il est caché */
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  font-size: 1.2rem;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bright-orange);
  box-shadow: var(--shadow-hover);
}

/* Ajustement pour les petits écrans */
@media (max-width: 600px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
    font-size: 1rem;
  }
}

/* ========================================================================= */
/* --- 11. RESPONSIVE --- */
/* ========================================================================= */
@media (max-width: 992px) {
  .container { padding: 0 20px; }

  /* CONTACT - Empilement des infos et horaires */
  .contact-grid-content {
    grid-template-columns: 1fr; /* Empilement en mobile */
    gap: 30px;
  }
  .contact-schedule {
    order: -1; /* Place les horaires au-dessus des infos de contact */
    padding-left: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; /* Ajoute une ligne de séparation */
  }
  .contact-info-wrapper { padding: 30px; margin-bottom: 30px; }
  .map-container { min-height: 300px; }

  /* Général */
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.2rem; }
  .section-header h2 { font-size: 2rem; }
  .section-header { margin-bottom: 50px; }

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

  /* Navigation Mobile */
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--light-bg); flex-direction: column; padding: 30px 20px; gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: 0.5s ease-in-out;
  }
  .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .nav-links a { color: var(--text-dark); }
  header.scrolled .nav-links a { color: var(--text-dark); }
  .hamburger { display: block; }

  /* Promo Mobile */
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 40px auto 0; }
  .promo-content { flex-direction: column-reverse; }
  .robot-image-container { margin-bottom: 40px; }
  .section-header.promo-header { text-align: center; }
  .promo-header h2 { font-size: 2.5rem; }
}

/* ========================================================================= */
/* --- STYLE SPÉCIFIQUE : PAGE MENTIONS LÉGALES --- */
/* ========================================================================= */

/* Force l'en-tête à être blanc (opaque) sur les pages internes */
.header-colored {
  background: var(--white) !important; /* Utiliser !important pour écraser "transparent" si nécessaire */
  padding: 15px 0;
  box-shadow: var(--shadow-soft);
}

/* Force les couleurs du logo et des liens à être sombres (comme si on avait scrollé) */
.header-colored .logo,
.header-colored .hamburger,
.header-colored .nav-links a {
  color: var(--primary-green) !important;
}

/* La couleur d'accent du lien "Promos Noël" doit rester orange */
.header-colored .nav-links li:nth-child(3) a {
  color: var(--accent-orange) !important;
}

/* ========================================================================= */
/* --- 12. SMART PROMO TOAST (Moderne & Discret) --- */
/* ========================================================================= */
.promo-toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); /* Effet verre dépoli moderne */
  padding: 10px 15px;
  border-radius: 50px; /* Forme de pilule */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 998; /* Juste en dessous du menu mobile si besoin */
  border: 1px solid rgba(255, 255, 255, 0.5);

  /* Animation d'état */
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.promo-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.toast-icon-box {
  background: var(--accent-orange);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  animation: pulse-orange 2s infinite;
}

.toast-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.toast-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-green);
  text-transform: uppercase;
}

.toast-sub {
  font-size: 0.75rem;
  color: #666;
}

.toast-action {
  background: var(--primary-green);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

.toast-action:hover {
  background: var(--dark-green);
  transform: translateY(-1px);
}

.toast-close {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  margin-left: 5px;
  transition: 0.3s;
  font-size: 0.9rem;
}

.toast-close:hover { color: var(--text-dark); }

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(255, 136, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 136, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 136, 0, 0); }
}

/* Responsive : On centre en bas sur mobile */
@media (max-width: 600px) {
  .promo-toast {
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: 350px;
    justify-content: space-between;
  }
  .promo-toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* --- FAQ SECTION --- */
.faq-section { padding: 80px 0; background: var(--white); }
.faq-grid { max-width: 800px; margin: 0 auto; }

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--light-bg);
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

.faq-question:hover { background: #f0f0f0; }
.faq-question i { transition: 0.3s; color: var(--accent-orange); }

/* Classe active ajoutée par JS */
.faq-question.active { background: var(--primary-green); color: white; }
.faq-question.active i { transform: rotate(45deg); color: white; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: white;
}

.faq-answer p { padding: 20px; color: #555; font-size: 0.95rem; }


