/* Variables */
:root {
  --primary-color: #94ca02;
  --secondary-color: #454449;
  --text-color: var(
    --secondary-color
  ); /* For light mode, primary text is dark */
  --background-color: #fff;
  --header-bg: #fff;
  --header-shadow: rgba(0, 0, 0, 0.1);
  --dropdown-bg: #fff;
  --dropdown-hover-bg: var(--primary-color);
  --dropdown-hover-text: #fff;
  --border-color: #eee; /* Light border for elements */
  --button-text-color: #fff;

  /* Dark Mode Variables (Default to light, override in .dark-mode) */
  --dark-text-color: #f8f9fa; /* Light text for dark mode, used consistently for light text on dark backgrounds */
  --dark-background-color: #343a40;
  --dark-header-bg: #3c4249;
  --dark-header-shadow: rgba(0, 0, 0, 0.3);
  --dark-dropdown-bg: #4a525a;
  --dark-dropdown-hover-bg: var(--primary-color);
  --dark-dropdown-hover-text: #fff;
  --dark-border-color: #555;
  --dark-button-text-color: var(--dark-background-color);

  --accent-color: #99d202;
  --default-color: #444444;
  --heading-color: #4b4a50;
  --contrast-color: #ffffff;
  --smooth-color: #D3D3D3;

  /* Font Family */
  --font-raleway: "Raleway", sans-serif;

  /* Transitions */
  --transition-speed: 0.3s ease;

  /* New variables for Webinars & Use Cases section */
  --webinar-card-bg: var(
    --dark-header-bg
  ); /* Using existing dark header bg for cards */
  --webinar-badge-color: var(--primary-color);
  --webinar-badge-text-color: var(--dark-bg); /* Dark text on green badge */
  --webinar-meta-text-color: var(
    --muted-text
  ); /* Specific muted text for meta info */
  --use-case-badge-bg: #17a2b8; /* Specific color for use case badge */
}

html,
body {
  max-width: 100%;
  overflow-x: hidden; /* empêche le scroll horizontal */
}

/* Dark Mode State */
body.dark-mode {
  --text-color: var(--dark-text-color);
  --background-color: var(--dark-background-color);
  --header-bg: var(--dark-header-bg);
  --header-shadow: var(--dark-header-shadow);
  --dropdown-bg: var(--dark-dropdown-bg);
  --dropdown-hover-bg: var(--dark-dropdown-hover-bg);
  --dropdown-hover-text: var(--dark-dropdown-hover-text);
  --border-color: var(--dark-border-color);
  --button-text-color: var(--dark-text-color);
}

/* Global Styles */
body {
  font-family: var(--font-raleway);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-raleway);
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--primary-color);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-index {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-webinaire {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container-webinaire {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Buttons (basic styling for primary-btn if needed elsewhere) */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background-color var(--transition-speed),
    color var(--transition-speed), border-color var(--transition-speed);
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  border-radius: 50rem;
}
.primary-btn:hover {
  background-color: #84b702;
  color: var(--text-color);
  border-radius: 50rem;
}

/* Secondary Outline Button */
.secondary-outline-btn {
  background-color: transparent;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  border-radius: 50rem;
}

body.dark-mode .secondary-outline-btn {
  color: var(--dark-text-color);
  border-radius: 50rem;
}

.secondary-outline-btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Primary Outline Button (for "En savoir plus") */
.primary-outline-btn {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  border-radius: 50rem;
}
.primary-outline-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Header */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--header-bg);
  box-shadow: 0 2px 5px var(--header-shadow);
  z-index: 1000;
  transition: background-color var(--transition-speed),
    box-shadow var(--transition-speed);
}

.main-nav {
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo Styling (Header) */
.logo {
  display: flex; /* Ensures images are treated as flex items */
  align-items: center;
  height: 60px; /* Constrain parent height */
}

.theme-logo {
  height: 60px; /* Use the height from HTML */
  width: auto; /* Maintain aspect ratio */
  display: block; /* Ensures they don't have extra space below */
  transition: opacity var(--transition-speed); /* Smooth fade between logos */
}

#logo-dark {
  display: none; /* Hide dark logo by default */
}

body.dark-mode #logo-light {
  display: none; /* Hide light logo in dark mode */
}

body.dark-mode #logo-dark {
  display: block; /* Show dark logo in dark mode */
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  margin: 0rem 1rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.sub-menu-right {
  margin-left: auto;
}

.nav-item {
  position: relative;
  margin: 0 15px;
}

.nav-link {
  display: block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary-color);
}

/* Dropdown specific styles (Desktop) */
.has-dropdown .nav-link {
  padding-right: 20px; /* Space for the icon */
  position: relative;
}

.has-dropdown .arrow-down {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em; /* Adjust icon size */
  color: var(--text-color);
  transition: transform var(--transition-speed);
}

/* Rotate arrow when dropdown is open */
.has-dropdown.open .arrow-down {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute; /* Desktop: positioned relative to parent */
  top: 100%;
  left: 0;
  background-color: var(--dropdown-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-speed),
    visibility var(--transition-speed), transform var(--transition-speed);
  z-index: 100;
  border-radius: 5px;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown.open > .dropdown-menu {
  /* .open for JS-driven mobile/click dropdowns */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 8px 20px;
  color: var(--text-color);
  font-weight: bold;
  white-space: nowrap;
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
}
.dropdown-item:hover {
  background-color: var(--dropdown-hover-bg);
  color: var(--dropdown-hover-text);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.nav-toggle .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px auto;
  transition: background-color var(--transition-speed);
}
body.dark-mode .nav-toggle .bar {
  background-color: var(--dark-text-color);
}
/* Optional: Hamburger animation */
.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  font-size: 1.2em; /* Adjust Font Awesome icon size */
  padding: 10px;
  border-radius: 50rem;
  cursor: pointer;
  transition: background-color var(--transition-speed),
    color var(--transition-speed), border-color var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.theme-toggle-btn:hover {
  background-color: var(--secondary-color);
  color: #fff;
}
body.dark-mode .theme-toggle-btn {
  border-color: var(--dark-text-color);
  color: var(--dark-text-color);
  background-color: transparent;
}
body.dark-mode .theme-toggle-btn:hover {
  background-color: var(--dark-text-color);
  color: var(--dark-background-color);
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    margin: 20px 0 0 20px;
  }
}

/* Back to Top Button */
.back-to-top-btn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.8em;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color var(--transition-speed),
    transform var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top-btn:hover {
  background-color: #84b702;
  transform: translateY(-3px);
}
body.dark-mode .back-to-top-btn {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* --- Hero Section Styles --- */
#hero-section {
  margin-top: 80px; /* Offset for fixed header */
  background-color: var(--background-color); /* Matches body background */
  padding: 80px 20px; /* Adjust padding as needed */
  border-bottom: 1px solid var(--border-color); /* Subtle line at the bottom */
  transition: background-color var(--transition-speed),
    border-color var(--transition-speed);
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: center;
}

.hero-content-wrapper {
  max-width: 1400px; /* Match header width */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* Space between left and right columns */
}

.hero-left {
  flex: 1; /* Take up available space */
  min-width: 300px; /* Ensure it doesn't get too small */
}

.hero-brand {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color); /* Inherits body text color */
}

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

.hero-left h1 {
  font-size: 3.5em; /* Large font size for headings */
  line-height: 1.1;
  margin: 0 0 10px 0; /* Adjust spacing between h1s */
  font-weight: 700;
  color: var(--secondary-color); /* Make base h1 dark */
}

#hero-section-specific {
  margin-top: 80px;
}

/* Hero Section Styling */
.hero-section-specific-1,
.hero-section-specific-2,
.hero-section-specific-3,
.hero-section-specific-4,
.hero-section-specific-5,
.hero-section-specific-6,
.hero-section-specific-7,
.hero-section-specific-8 {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align content to the left */
  height: 56vh; /* Full viewport height */
  background-size: cover; /* Image covers the entire area */
  background-position: center; /* Center the image */
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
  font-weight: 700;
  color: #ffff; /* Inherits body text color */
  padding: 40px; /* Padding on sides for content */
}

.hero-section-specific-1 {
  background-image: url("../img/solutions/smart-home/solutions-smart-home-hero.webp"); /* image hero smart-home */
}
.hero-section-specific-2 {
  background-image: url("../img/solutions/smart-city/solutions-smart-city-hero.webp"); /* image hero smart-city */
}
.hero-section-specific-3 {
  background-image: url("../img/solutions/smart-building/solutions-smart-building-hero.webp"); /* image hero smart-building */
}
.hero-section-specific-4 {
  background-image: url("../img/solutions/smart-industry/solutions-smart-industry-hero.webp"); /* image hero smart-industry */
}
.hero-section-specific-5 {
  background-image: url("../img/solutions/qualite-air/solutions-qualite-air-hero.webp"); /* image hero qualite-air */
}
.hero-section-specific-6 {
  background-image: url("../img/produits/framework-jeedom/solutions-smart-building-hero.webp"); /* image hero produits framework jeedom */
}
.hero-section-specific-7 {
  background-image: url("../img/produits/hypervision-pro/produits-hypervision-pro.webp"); /* image hero produits framework jeedom */
}
.hero-section-specific-8 {
  background-image: url("../img/ressources/webinaires/webinaires-jeedom-hero.webp"); /* image hero webinaires jeedom */
}
/* Overlay for better text readability */
.hero-section-specific::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content-specific {
  position: relative;
  z-index: 2; /* Ensure content is above the overlay */
  max-width: 1300px; /* Adjust max width as needed */
  text-align: left; /* Align text to the left */
  margin: 0 auto;
  background-color: rgb(0 0 0 / 50%);
  padding: 40px;
  border-radius: 18px;
}

.hero-brand {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content-specific h1 {
  font-size: 3.5em;
  font-weight: 700;
  margin-bottom: 30px;
  font-weight: 700;
  color: #ffff;
  line-height: 1.2;
}

.hero-content-specific h3 {
  color: #ffff;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap; /* Allow stats to wrap on smaller screens */
  gap: 50px; /* Space between stat items */
  margin-top: 40px;
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 5px;
}

.hero-stat-description {
  font-size: 1.25em;
  color: var(--text-color-light);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-section-specific {
    padding: 0 30px;
  }
  .hero-content-specific h1 {
    font-size: 3em;
  }
  .hero-stats {
    gap: 30px;
  }
  .hero-stat-number {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .hero-section-specific {
    padding: 0 20px;
    justify-content: center; /* Center content on smaller screens */
    text-align: center; /* Center text on smaller screens */
  }
  .hero-content-specific {
    text-align: center; /* Center text within content block */
  }
  .hero-content-specific h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffff; /* Inherits body text color */
  }
  .hero-stats {
    flex-direction: column; /* Stack stats vertically */
    align-items: center; /* Center stacked stats */
    gap: 20px;
  }
  .hero-stat-item {
    text-align: center; /* Center text for stacked items */
  }
  .hero-stat-number {
    font-size: 1.8em;
  }
  .hero-stat-description {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .hero-content-specific h1 {
    font-size: 2em;
  }

  .hero-section-specific-1,
  .hero-section-specific-2,
  .hero-section-specific-3,
  .hero-section-specific-4,
  .hero-section-specific-5,
  .hero-section-specific-6,
  .hero-section-specific-7,
  .hero-section-specific-8 {
    height: auto !important;
    /* Full viewport height */
  }

  .hero-brand {
    font-size: 0.9em;
  }
}

body.dark-mode .hero-left h1 {
  color: var(--dark-text-color); /* Light color in dark mode */
}

.hero-left h1 .highlight {
  color: var(--primary-color); /* Green highlight */
}

.hero-tagline {
  font-size: 1.25em;
  margin-top: 20px;
  margin-bottom: 40px;
  color: var(--text-color);
}

.hero-buttons {
  display: flex;
  gap: 20px; /* Space between buttons */
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.hero-right {
  flex: 1; /* Take up available space */
  display: flex; /* Use flex to center image */
  justify-content: center; /* Center image horizontally */
  align-items: center; /* Center image vertically */
  padding-left: 20px; /* Small padding if needed */
  min-width: 400px; /* Ensure image area doesn't get too small */
}

.hero-right img {
  max-width: 100%; /* Ensure image scales down */
  height: auto;
  border-radius: 14px;
  display: block; /* Remove extra space below image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- Solutions Section Styles --- */
#solutions-section {
  background-color: #f8f9fa; /* Light grey background for the section */
  padding: 80px 20px; /* Adjust padding as needed */
  text-align: center;
  transition: background-color var(--transition-speed);
}

@media (max-width: 768px) {
  #solutions-section {
    padding: 5px 5px; /* Reduce padding on smaller screens */
  }

  #produits-modulables-section {
    padding: 5px 5px; /* Reduce padding on smaller screens */
  }
}

body.dark-mode #solutions-section {
  background-color: var(
    --dark-background-color
  ); /* Match dark mode background */
}

.solutions-container {
  max-width: 1400px; /* Max width to match other sections */
  margin: 0 auto;
}

.section-title {
  font-size: 2.8em; /* Large title size */
  font-weight: 700;
  color: var(--secondary-color); /* Dark text color */
  margin-bottom: 50px;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5em; /* Large title size */
  }
}

.section-title-index {
  font-size: 2.8em; /* Large title size */
  font-weight: 700;
  color: var(--secondary-color); /* Dark text color */
  margin-bottom: 50px;
  line-height: 1.2;
  text-align: center;
}

body.dark-mode .section-title {
  color: var(--dark-text-color);
}

.solutions-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
  margin-bottom: 40px;
}

.solution-tab {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-color); /* Default dark text */
  padding: 0 15px; /* Adjust padding for spacing */
  transition: color var(--transition-speed);
}
.solution-tab:hover {
  color: var(--primary-color);
}
.solution-tab.active {
  color: var(--primary-color); /* Active tab is green */
}

.tab-separator {
  color: var(--border-color); /* Subtle separator color */
  margin: 0 5px; /* Space around separator */
}
body.dark-mode .tab-separator {
  color: var(--dark-border-color);
}

/* Content Area for Solutions */
.solutions-content {
  margin-top: 40px;
  text-align: left; /* Align content text to left */
}

.solution-item {
  display: none; /* Hidden by default */
  justify-content: space-between;
  align-items: center;
  gap: 60px; /* Space between text and image */
  padding: 40px 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.solution-item.active {
  display: flex; /* Show active item */
  opacity: 1;
}

.solution-text-block {
  flex: 1;
  min-width: 300px; /* Prevent text block from becoming too narrow */
}

.solution-heading {
  font-size: 2.8em; /* Large heading like in Hero section */
  line-height: 1.1;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: var(--secondary-color); /* Dark text for heading */
}
body.dark-mode .solution-heading {
  color: var(--dark-text-color);
}

.solution-heading .highlight {
  color: var(--primary-color); /* Green highlight */
}

.solution-description {
  font-size: 1.2em; /* Readable text size */
  margin-bottom: 30px;
  color: var(--text-color);
}

.solution-image-block {
  flex: 1;
  display: flex;
  justify-content: center; /* Center image within its block */
  align-items: center;
  border-radius: 18px; /* Rounded corners for the image card */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Subtle shadow */
  max-width: 100%;
  height: auto;
}

body.dark-mode .solution-image-block {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for image card in dark mode */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.solution-image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px; /* Slightly rounded corners for the image itself */
}

/* --- Framework Section Styles --- */
#framework-section {
  background-color: var(--background-color); /* White background */
  padding: 80px 20px;
}

body.dark-mode #framework-section {
  background-color: var(--dark-background-color);
}

.framework-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px; /* Space between cards grid and image */
  align-items: center; /* Vertically align content */
}

.framework-cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Two columns, responsive */
  gap: 25px; /* Space between cards */
  padding-right: 20px; /* Space from the image block */
}

.framework-card {
  background-color: var(--background-color); /* White background for cards */
  border: 1px solid var(--border-color); /* Light border */
  border-radius: 10px; /* Rounded corners */
  padding: 30px; /* Padding inside cards */
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align content to the left */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed), background-color var(--transition-speed),
    border-color var(--transition-speed);
}

body.dark-mode .framework-card {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for cards in dark mode */
  border-color: var(--dark-border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Hover effect for cards */
.framework-card:hover {
  transform: translateY(-5px); /* Lift effect [new] */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Increased shadow [new] */
}
body.dark-mode .framework-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-icon {
  margin-bottom: 20px; /* Space below icon */
  width: 60px; /* Icon container size, adjust as needed */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  max-width: 100%; /* Adjust icon size within circle */
  height: auto;
  display: block;
}

.card-title {
  font-size: 1.5em; /* Card title size */
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color); /* Dark text */
}
body.dark-mode .card-title {
  color: var(--dark-text-color);
}

.card-description {
  font-size: 1em;
  color: var(--text-color);
  line-height: 1.5;
}

.protocol-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between protocol icons */
  margin-top: 20px; /* Space below title */
  margin-bottom: 20px;
}

.protocol-icons-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 25px;
  padding-right: 20px;
}

.protocol-icons img {
  height: 30px; /* Size of protocol logos */
  width: auto;
}

.framework-image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 20px; /* Space from the cards grid */
  min-width: 500px; /* Ensure image block has enough space */
}

.framework-image-block img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Chiffres Section Styles --- */
#chiffres-section {
  background-color: #f8f9fa; /* Light grey background */
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color); /* Optional: subtle line to separate from previous section */
  border-bottom: 1px solid var(--border-color); /* Optional: subtle line to separate from next section */
  transition: background-color var(--transition-speed),
    border-color var(--transition-speed);
}
body.dark-mode #chiffres-section {
  background-color: var(--dark-background-color);
}

.chiffres-container {
  max-width: 1200px; /* Max width for the content */
  margin: 0 auto;
  display: flex;
  justify-content: space-around; /* Distribute items evenly */
  align-items: center;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  gap: 40px; /* Space between items */
}

.chiffre-item {
  flex: 1 1 250px; /* Allow items to grow/shrink, with a base width of 250px */
  text-align: center;
}

.chiffre-number {
  font-size: 4.5em; /* Large, bold numbers */
  font-weight: 700;
  color: var(--secondary-color); /* Dark text for numbers */
  margin: 0;
  line-height: 1;
  white-space: nowrap; /* Prevent numbers from breaking */
}
body.dark-mode .chiffre-number {
  color: var(--dark-text-color);
}

.chiffre-text {
  font-size: 1.2em; /* Descriptive text size */
  color: var(--text-color);
  margin-top: 10px;
  font-weight: 600;
}

/* --- Jeedom Community Section Styles --- */
#community-section {
  background-color: var(--background-color); /* White background */
  padding: 80px 20px;
}

body.dark-mode #community-section {
  background-color: var(--dark-background-color);
}

.community-container {
  max-width: 1400px; /* Max width for the content */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px; /* Space between image and text */
}

.community-container-legal {
  max-width: 1400px; /* Max width for the content */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px; /* Space between image and text */
}
.community-image-block {
  flex: 1;
  display: flex;
  justify-content: flex-start; /* Align image to the left within its block */
  align-items: center;
  /* min-width: 500px; */ /* OLEG => Ensure image block has enough space */
  border-radius: 10px; /* Rounded corners for the image block */
  overflow: hidden; /* Ensure image corners respect parent radius */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Subtle shadow */
}

body.dark-mode .community-image-block {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.community-image-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area while maintaining aspect ratio */
}

.community-text-block {
  flex: 1;
  min-width: 300px; /* Prevent text block from getting too narrow */
  text-align: left;
}

.community-heading {
  font-size: 2.8em; /* Large heading size */
  line-height: 1.1;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: var(--secondary-color); /* Dark text for heading */
}
body.dark-mode .community-heading {
  color: var(--dark-text-color);
}

.community-heading-2 {
  font-size: 2em;
  line-height: 1.4;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: var(--secondary-color); /* Dark text for heading */
}

body.dark-mode .community-heading-2 {
  color: var(--dark-text-color);
}

.community-heading-2 .highlight {
  color: var(--primary-color); /* Green highlight */
}

.community-heading .highlight {
  color: var(--primary-color); /* Green highlight */
}

.community-description {
  font-size: 1.2em; /* Readable text size */
  margin-bottom: 30px;
  color: var(--text-color);
}

/* --- Open Source Section Styles --- */
#open-source-section {
  background-color: #f8f9fa; /* Light grey background */
  padding: 80px 20px;
  text-align: center;
  transition: background-color var(--transition-speed);
}

body.dark-mode #open-source-section {
  background-color: var(--dark-background-color);
}

.open-source-container {
  max-width: 1200px; /* Content max-width */
  margin: 0 auto;
}
.open-source-container-features {
  max-width: 1400px; /* Content max-width */
  margin: 0 auto;
}

.os-section-title {
  font-size: 2.8em; /* Large title like other sections */
  font-weight: 700;
  color: var(--secondary-color); /* Dark text */
  margin-bottom: 20px;
  line-height: 1.2;
}

body.dark-mode .os-section-title {
  color: var(--dark-text-color);
}

.os-intro-text {
  font-size: 1.2em; /* Intro text size */
  color: var(--text-color);
  margin-bottom: 50px;
  max-width: 800px; /* Max width for intro text */
  margin-left: auto;
  margin-right: auto;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(400px, 1fr)
  ); /* Two columns, responsive */
  gap: 25px; /* Space between cards */
  margin-bottom: 25px;
}

/* Grid Use-Cases */

.open-source-container-use-cases {
  max-width: 1400px;
  margin: 0 auto;
}
.use-case-bullets {
  padding: 20px;
}

.use-case-bullets li {
  padding: 4px;
}

.use-case-img {
  border-radius: 10px;
  width: 100%;
  margin-top: 10px;
}

.use-case-img-thumb {
  border-radius: 10px;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 20px;
}

.os-grid-use-cases {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(400px, 1fr)
  ); /* Two columns, responsive */
  gap: 25px; /* Space between cards */
  margin-bottom: 25px;
}

.os-grid-logiciel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px; /* Space between cards */
  margin-bottom: 25px;
}

.os-card {
  background-color: var(--background-color); /* White background for cards */
  border-radius: 10px; /* Rounded corners */
  padding: 30px; /* Padding inside cards */
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed), background-color var(--transition-speed);
}

body.dark-mode .os-card {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for cards in dark mode */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.os-card:hover {
  transform: translateY(-5px); /* Lift effect */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Increased shadow */
}
body.dark-mode .os-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.os-card-title {
  font-size: 1.5em; /* Card title size */
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color); /* Dark text */
}
body.dark-mode .os-card-title {
  color: var(--dark-text-color);
}

.os-card-description {
  font-size: 1em;
  color: var(--text-color);
  line-height: 1.5;
}

.os-card-img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.os-summary {
  background-color: var(
    --background-color
  ); /* White background for summary block */
  border-radius: 10px; /* Rounded corners */
  padding: 40px; /* Padding inside summary */
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  margin: 0 auto;
  transition: background-color var(--transition-speed);
}

.os-summary:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Increased shadow */
  transform: translateY(-5px);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed), background-color var(--transition-speed);
}

body.dark-mode .os-summary {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for summary block in dark mode */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed), background-color var(--transition-speed);
}

body.dark-mode .os-summary:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

.os-summary-title {
  font-size: 1.5em; /* Summary title size */
  font-weight: 700;
  color: var(--secondary-color); /* Dark text */
  margin-bottom: 15px;
}
body.dark-mode .os-summary-title {
  color: var(--dark-text-color);
}

.os-summary-text {
  font-size: 1em;
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 10px;
}
.os-summary-text:last-child {
  margin-bottom: 0;
}

/* --- Footer Styles --- */
#main-footer {
  background-color: #222327; /* Footer background color changed as requested */
  color: var(
    --dark-text-color
  ); /* Light text on dark background, always #f8f9fa */
  padding: 40px 20px 20px;
  font-size: 0.9em;
}

#main-footer a {
  color: var(--dark-text-color); /* Footer links also use light text */
}

#main-footer a:hover {
  color: var(--primary-color);
}

.footer-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
  justify-content: space-between;
  gap: 20px; /* Space between columns */
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.footer-column {
  flex: 1; /* Allows columns to grow and shrink */
  min-width: 150px; /* Minimum width before wrapping */
  margin-bottom: 20px; /* Space for wrapped columns */
}

.branding-column {
  flex-basis: 200px; /* A bit wider for the logo and intro text */
  min-width: 180px; /* Ensure it doesn't get too small */
}

.footer-column h3 {
  color: var(--primary-color); /* Or white, depending on design preference */
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1em;
  white-space: nowrap; /* Keep headings on one line */
}

.footer-column p {
  margin: 5px 0;
  line-height: 1.4;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  display: inline-block; /* Allows padding and hover effects */
  padding: 2px 0;
}

.footer-logo img {
  height: 60px; /* Match height of header logo */
  width: auto;
  margin-bottom: 15px;
  display: block; /* Ensure it's not inline */
}

/* Social Icons */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Space between icons */
  margin-top: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5); /* White border with transparency */
  border-radius: 4px;
  color: var(
    --dark-text-color
  ); /* Ensures the icon itself is always light (#f8f9fa) */
  font-size: 1.2em;
  transition: background-color var(--transition-speed),
    border-color var(--transition-speed);
}

.social-icon:hover {
  border-color: var(--primary-color);
  color: #fff; /* Ensure icon is white on hover */
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  width: 100%;
}

.footer-bottom p {
  margin: 0;
  flex: 1 1 auto; /* Allow copyright text to grow */
  min-width: 250px; /* Prevent it from getting too narrow */
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Space between legal links */
}

.footer-legal-links li {
  white-space: nowrap;
}

.footer-legal-links li:not(:last-child)::after {
  content: "|";
  margin-left: 15px;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Produits modulables Section Styles OLEG --- */
#produits-modulables-section {
  background-color: #f8f9fa; /* Light grey background for this section */
  padding: 80px 20px;
  text-align: center;
  transition: background-color var(--transition-speed);
}

@media (max-width: 768px) {
  #produits-modulables-section {
    padding: 5px 5px; /* Reduce padding on smaller screens */
  }
}

body.dark-mode #produits-modulables-section {
  background-color: var(--dark-background-color);
}

#produits-modulables-section .section-title {
  margin-bottom: 40px; /* Space below title */
}

/* --- Produits modulables Section Styles --- */
#produits-modulables-section-index {
  background-color: #f8f9fa; /* Light grey background for this section */
  padding: 80px 20px;
  text-align: center;
  transition: background-color var(--transition-speed);
}

body.dark-mode #produits-modulables-section-index {
  background-color: var(--dark-background-color);
}

#produits-modulables-section-index .section-title-index {
  margin-bottom: 40px; /* Space below title */
}

.produits-modulables-content {
  display: flex;
  flex-direction: column; /* Stack text and cards vertically */
  align-items: center;
  gap: 50px; /* Space between text block and cards grid */
  max-width: 1400px;
  margin: 0 auto;
}

.produits-modulables-content-index {
  display: flex;
  flex-direction: column; /* Stack text and cards vertically */
  align-items: center;
  gap: 50px; /* Space between text block and cards grid */
  max-width: 1400px;
  margin: 0 auto;
}

.produits-modulables-text {
  max-width: 800px;
  margin: 0 auto;
}

.produits-modulables-text p {
  font-size: 1.2em;
  color: var(--text-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

.produits-modulables-text-index {
  max-width: 800px;
  margin: 0 auto;
}

.produits-modulables-text-index p {
  font-size: 1.2em;
  color: var(--text-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

.produits-modulables-cards-grid-2 {
  display: flex; /* utiliser grid au lieu de flex */
  flex-wrap: wrap; /* Allow items to wrap to next line */
  justify-content: center; /* optionnel : centrer les cartes dans chaque colonne */
  width: 85%;
  margin: 0 auto;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.produits-modulables-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.produits-modulables-cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px;
  width: 90%;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .produits-modulables-cards-grid-4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
  }

  .produits-modulables-cards-grid-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
  }
}

.produits-modulables-cards-grid-index {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to next line */
  justify-content: center; /* Center items when they wrap */
  gap: 30px; /* Space between cards */
  width: 85%; /* Take full width of parent */
}

.produits-modulables-cards-grid-box {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to next line */
  justify-content: center; /* Center items when they wrap */
  gap: 30px; /* Space between cards */
  width: 100%; /* Take full width of parent */
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  background-color: var(
    --background-color
  ); /* White background for product cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  flex-shrink: 0; /* Prevent shrinking */
  text-align: center;
  text-decoration: none; /* Remove underline from link */
  color: var(--text-color); /* Inherit text color */
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 220px; /* Fixed width for desktop, adjust as needed */
  flex-grow: 1; /* Allow cards to grow if space is available */
  max-width: calc(25% - 22.5px); /* 4 cards per row, accounting for gap */
}
.product-card-index {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  background-color: var(
    --background-color
  ); /* White background for product cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  flex-shrink: 0; /* Prevent shrinking */
  text-align: center;
  text-decoration: none; /* Remove underline from link */
  color: var(--text-color); /* Inherit text color */
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 220px; /* Fixed width for desktop, adjust as needed */
  flex-grow: 1; /* Allow cards to grow if space is available */
  max-width: calc(25% - 22.5px); /* 4 cards per row, accounting for gap */
}

.product-card p {
  text-align: left;
}
.product-card-index p {
  text-align: left;
}

body.dark-mode .product-card {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for product cards in dark mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
body.dark-mode .product-card-index {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for product cards in dark mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-card-index:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.dark-mode .product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
body.dark-mode .product-card-index:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.product-card img {
  width: 100%; /* Make image fill card width */
  height: 150px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, cropping if necessary */
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly rounded images */
  background-color: #f0f0f0; /* Light background for images */
}
.product-card-index img {
  width: 100%; /* Make image fill card width */
  height: 150px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, cropping if necessary */
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly rounded images */
  background-color: #f0f0f0; /* Light background for images */
}

body.dark-mode .product-card img {
  background-color: var(
    --dark-background-color
  ); /* Darker background for images in dark mode */
}
body.dark-mode .product-card-index img {
  background-color: var(
    --dark-background-color
  ); /* Darker background for images in dark mode */
}

.product-card h5 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 10px 0;
}
.product-card-index h5 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.product-card p {
  font-size: 0.9em;
  color: var(--text-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}
.product-card-index p {
  font-size: 0.9em;
  color: var(--text-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

.product-card .btn {
  margin-top: auto; /* Push button to the bottom */
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 50px;
}
.product-card-index .btn {
  margin-top: auto; /* Push button to the bottom */
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 50px;
}

/* Responsive adjustments for Produits modulables cards */
@media (max-width: 768px) {
  .produits-modulables-cards-grid {
    gap: 20px; /* Reduce gap on smaller screens */
  }
  .produits-modulables-cards-grid-index {
    gap: 20px; /* Reduce gap on smaller screens */
  }
  .produits-modulables-cards-grid-box {
    gap: 20px; /* Reduce gap on smaller screens */
  }
  .product-card {
    max-width: calc(
      50% - 15px
    ); /* Two cards per row on mobile, accounting for gap */
    width: 100%; /* Ensure it takes full available width within its max-width */
  }
  .product-card-index {
    max-width: calc(
      50% - 15px
    ); /* Two cards per row on mobile, accounting for gap */
    width: 100%; /* Ensure it takes full available width within its max-width */
  }

  .product-card img {
    height: 120px; /* Adjust image height for mobile */
  }
  .product-card-index img {
    height: 120px; /* Adjust image height for mobile */
  }
}

@media (max-width: 576px) {
  .produits-modulables-text p {
    font-size: 1em; /* Adjust text size for smaller screens */
  }
  .produits-modulables-text-index p {
    font-size: 1em; /* Adjust text size for smaller screens */
  }
  .product-card {
    max-width: 100%; /* One card per row on very small screens */
  }
  .product-card-index {
    max-width: 100%; /* One card per row on very small screens */
  }
}

/* --- Webinars & Use Cases Section Styles --- */
#webinars-usecases-section {
  background-color: var(--background-color); /* Matches body background */
  padding: 80px 20px;
  text-align: center;
  color: var(--dark-text-color); /* Light text for section title */
}
#webinars-archive-section {
  max-width: 1400px;
  margin: 0 auto;
}
body.dark-mode #webinars-usecases-section {
  background-color: var(--dark-background-color);
}

.tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-button {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  border-radius: 50rem;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 5px;
  outline: none;
  color: var(--text-color);
}

.tab-button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.tab-button.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--dark-bg); /* Dark text for active button */
}

.scroll-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.scroll-button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  padding: 0 15px;
  flex-shrink: 0;
  outline: none;
}

.scroll-button:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .scroll-button {
    display: none;
  }
}

.tab-content-wrapper {
  flex-grow: 1;
  overflow: hidden;
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: block;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.card-item {
  background-color: var(--background-color); /* White background for the card */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  margin: 20px;
  flex-shrink: 0;
  width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.2s ease;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .card-item {
    width: 65%; /* Full width on small screens */
    margin: 10px 10px; /* Reduce margin */
  }
}

.card-item-app {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin: 0 15px;
  flex-shrink: 0;
  width: 300px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
  color: var(--text-color);
}

.card-item-app-img {
  border-radius: 10px;
}

.download-jeedom-app {
  padding-top: 40px;
  padding-bottom: 40px;
}

.download-jeedom-app-img {
  display: inline-flex;
  gap: 34px;
}

.download-jeedom-app-img p:hover {
  transform: translateY(-1px); /* Lift effect */
}

body.dark-mode .card-item {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for card in dark mode */
}

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

.card-item .badge {
  border: solid 1px var(--primary-color);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 50rem;
  font-size: 0.8em;
  font-weight: 400;
  display: inline-block;
  margin-bottom: 10px;
}

.card-item h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.title-wrapper {
  min-height: 180px;      /* hauteur minimum pour toutes les cartes */
  max-height: 180px;      /* optionnel, ou juste min-height si tu veux que ça puisse s’adapter */
  overflow: hidden;
  display: flex;
  align-items: center;   /* centrer verticalement le texte */
}

@media (max-width: 768px) {
  .title-wrapper {
    min-height: 300px;      /* hauteur minimum pour toutes les cartes */
    max-height: 300px;      /* optionnel, ou juste min-height si tu veux que ça puisse s’adapter */
  }
}

.youtube-video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-top: auto; /* Push video to the bottom if space allows */
}

.card-item .meta-info .duration {
    margin-left: 1rem; /* espace entre date et durée */
}

.card-item .meta-info {
  font-size: 0.85rem;
  margin-bottom: 15px;
  min-height: 24px;
  align-items: center;
}

.card-item .meta-info i {
  margin-right: 5px;
}

.card-item p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-item .button {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--text-color);
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  width: fit-content; /* Adjust width to content */
  margin-top: 10px;
  align-self: flex-start;
}

.card-item .button:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
}

.webinaire-and-use-case-thumbs {
  margin-bottom: 20px;
}

.webinaire-and-use-case-thumbs img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.webinaire-and-use-case-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  padding-block: 10px;
}

.webinaires-page-container {
  display: flex;
  flex-wrap: wrap;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: center;
}

span.badge.use-case-badge {
  margin-bottom: 0px;
}

/* --- Webinaires Jeedom - archive --- */
.load-hidden {
  display: none;
}

.hidden {
  display: none;
}

/* Newsletter Section Styles */
#newsletter-section {
  background: #f8f9fa;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Ensure it takes up enough vertical space */
  transition: background-color var(--transition-speed);
}

body.dark-mode #newsletter-section {
  background-color: var(--dark-background-color);
}

.newsletter-container {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-card {
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  width: 100%;
  max-width: 600px; /* Max width for the card itself */
  transition: background-color var(--transition-speed),
    box-shadow var(--transition-speed);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .newsletter-card {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for card in dark mode */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.newsletter-icon {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.newsletter-card h3 {
  font-size: 2em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

body.dark-mode .newsletter-card h3 {
  color: var(--dark-text-color);
}

.newsletter-card p {
  font-size: 1.1em;
  color: var(--text-color);
  margin-bottom: 30px;
}

.newsletter-card .privacy-text {
  font-size: 0.75em;
  color: var(--text-color);
  margin: 20px;
  margin-left: 20px;
  text-align: left;
  line-height: 1.4;
}

/* Toggle Buttons (Particulier/Professionnel) */
.toggle-buttons {
  display: flex;
  margin-bottom: 25px;
  border-radius: 50px;
  padding: 5px;
  gap: 5px;
  transition: background-color var(--transition-speed);
}

.toggle-btn {
  background-color: transparent;
  border: none;
  color: var(--text-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

body.dark-mode .toggle-btn {
  color: var(--dark-text-color);
}

.toggle-btn.active {
  background-color: var(--primary-color);
  color: #fff; /* White text for active toggle button */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
  background-color: rgba(
    var(--primary-color-rgb),
    0.1
  ); /* Subtle hover for non-active */
  color: var(--primary-color);
}
body.dark-mode .toggle-btn:hover:not(.active) {
  background-color: rgba(148, 202, 2, 0.2); /* Dark mode subtle hover */
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  flex-grow: 1; /* Allows input to take available space */
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 1em;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: border-color var(--transition-speed);
  background-color: var(--transition-speed), color var(--transition-speed);
  min-width: 200px; /* Minimum width for input before wrapping */
}

/* Mode sombre */
body.dark-mode .newsletter-form input[type="text"],
body.dark-mode .newsletter-form input[type="email"] {
  background-color: var(--dark-background-color);
  border-color: var(--dark-border-color);
  color: var(--dark-text-color);
}

/* Placeholder */
.newsletter-form input[type="text"]::placeholder,
.newsletter-form input[type="email"]::placeholder {
  color: var(--text-color);
  opacity: 0.7;
}

body.dark-mode .newsletter-form input[type="text"]::placeholder,
body.dark-mode .newsletter-form input[type="email"]::placeholder {
  color: var(--dark-text-color);
}

/* Focus */
.newsletter-form input[type="text"]:focus,
.newsletter-form input[type="email"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

.newsletter-form .primary-btn {
  padding: 12px 30px; /* Slightly larger button */
  border-radius: 50px;
  font-size: 1em;
}

/* Message Box for Subscription Status */
.message-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.message-box.show {
  opacity: 1;
  transform: translateY(0);
}

.message-box.success {
  background-color: #28a745; /* Green for success */
}

.message-box.error {
  background-color: #dc3545; /* Red for error */
}

/* Responsive adjustments for Newsletter section */
@media (max-width: 768px) {
  .newsletter-card {
    padding: 30px 20px; /* Adjust padding for smaller screens */
  }
  .newsletter-card h3 {
    font-size: 1.7em;
  }
  .newsletter-card p {
    font-size: 1em;
  }
  .toggle-buttons {
    flex-direction: column; /* Stack buttons vertically */
    width: 80%; /* Make them a bit narrower */
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* Remove padding from container */
    background-color: transparent; /* No background for stacked buttons */
    gap: 10px; /* Space between stacked buttons */
  }
  body.dark-mode .toggle-buttons {
    background-color: transparent;
  }
  .toggle-btn {
    width: 100%; /* Full width when stacked */
    border: 1px solid var(--border-color); /* Add border to each button */
    background-color: var(
      --background-color
    ); /* Add background to each button */
  }
  body.dark-mode .toggle-btn {
    border-color: var(--dark-border-color);
    background-color: var(--dark-header-bg);
  }
  .toggle-btn.active {
    border-color: var(--primary-color); /* Active button border */
  }
  .newsletter-form {
    gap: 10px;
  }

  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"],
  .newsletter-form .primary-btn {
    width: 100%; /* Full width for input and button */
    max-width: 350px; /* Limit max width for better aesthetics */
  }
  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"] {
    margin-bottom: 0; /* Remove extra margin if stacked */
  }
}

@media (max-width: 480px) {
  .newsletter-card {
    padding: 25px 15px;
  }
  .newsletter-card h3 {
    font-size: 1.5em;
  }
  .toggle-btn {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .newsletter-form input[type="text"],
  .newsletter-form input[type="email"],
  .newsletter-form .primary-btn {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}

/* Responsive Design (already existing, but ensure no conflicts) */
@media (max-width: 992px) {
  /* This breakpoint defines "mobile" behavior for the menu */
  .nav-toggle {
    display: block; /* Show hamburger icon on smaller screens */
  }

  .nav-menu {
    display: none; /* Hide menu by default on mobile */
    flex-direction: column;
    align-items: flex-start; /* Align menu items to the left */
    width: 100%;
    position: absolute;
    top: 60px; /* Height of the header (adjust if header height changes) */
    left: 0;
    background-color: var(--header-bg);
    box-shadow: 0 5px 10px var(--header-shadow);
    padding: 20px 0;
    transition: background-color var(--transition-speed);
  }

  .nav-menu.active {
    display: flex; /* Show menu when active (toggled by JS) */
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .main-menu-left,
  .sub-menu-right {
    margin-left: 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color); /* Separator for sections */
    padding-bottom: 10px;
    margin-bottom: 10px;
  }
  .sub-menu-right:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .nav-item {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border-color); /* Separator between menu items */
  }
  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 12px 20px;
    width: 100%;
  }

  /* Mobile Dropdown specific styles: THIS IS KEY FOR RESPONSIVE SUBMENUS */
  .dropdown-menu {
    position: static; /* IMPORTANT: Makes dropdown flow naturally in the document */
    width: 100%; /* Takes full width of parent nav-item */
    border: none; /* Remove borders */
    box-shadow: none; /* Remove shadows */
    opacity: 1; /* Always visible when parent is 'open' */
    visibility: visible; /* Always visible when parent is 'open' */
    transform: translateY(0); /* Remove any transform */
    background-color: transparent; /* No background for nested dropdown */
    padding: 0 0 0 20px; /* Indent sub-items for hierarchy */
    max-height: 0; /* Initially hidden */
    overflow: hidden; /* Hide overflow content */
    transition: max-height 0.3s ease-out; /* Smooth transition for expansion */
  }

  /* When parent .has-dropdown has 'open' class, expand the submenu */
  .has-dropdown.open > .dropdown-menu {
    max-height: 500px; /* A value large enough to contain all dropdown items */
    transition: max-height 0.5s ease-in; /* Longer transition for expansion */
  }

  .dropdown-item {
    padding: 8px 30px; /* Further indent dropdown items */
  }

  /* For mobile, clicking on dropdown-toggle also toggles the 'open' class for visual feedback */
  .has-dropdown.open > .nav-link .arrow-down {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Hero section responsiveness */
  #hero-section .hero-content-wrapper {
    flex-direction: column; /* Stack columns vertically */
    text-align: center;
  }

  .hero-left,
  .hero-right {
    min-width: unset; /* Remove min-width to allow full flexibility */
    width: 100%;
    padding: 0; /* Remove side padding */
  }

  .hero-left h1 {
    font-size: 2.5em; /* Adjust font size for mobile */
  }

  .hero-tagline {
    font-size: 1em; /* Adjust font size for mobile */
  }

  .hero-buttons {
    justify-content: center; /* Center buttons on mobile */
  }

  /* Solutions Section Responsiveness */
  #solutions-section .section-title {
    font-size: 2em; /* Smaller title on mobile */
  }
  #solutions-section .solutions-tabs-nav {
    flex-direction: column; /* Stack tabs vertically on small screens */
    align-items: center;
  }
  #solutions-section .tab-separator {
    display: none; /* Hide separators when tabs stack */
  }
  #solutions-section .solution-tab {
    padding: 10px 0; /* Adjust padding for stacked tabs */
  }

  #solutions-section .solution-item {
    flex-direction: column-reverse; /* Stack content, image on top, text below */
    text-align: center;
    gap: 30px;
  }
  #solutions-section .solution-text-block,
  #solutions-section .solution-image-block {
    min-width: unset; /* Remove min-width constraints */
    width: 100%; /* Take full width */
  }
  #solutions-section .solution-heading {
    font-size: 2em; /* Adjust heading size for mobile */
  }

  /* Framework Section Responsiveness */
  #framework-section .framework-container {
    flex-direction: column; /* Stack cards grid and image vertically */
    gap: 40px;
  }
  #framework-section .framework-cards-grid {
    grid-template-columns: 1fr; /* Single column for cards on mobile */
    padding-right: 0; /* Remove right padding */
    width: 100%;
  }
  #framework-section .framework-card {
    padding: 25px; /* Slightly less padding on mobile */
    align-items: center; /* Center content within card on mobile */
    text-align: center;
  }
  #framework-section .card-icon {
    margin-bottom: 15px; /* Adjust margin */
  }
  #framework-section .card-title {
    font-size: 1.3em; /* Adjust font size */
  }
  #framework-section .card-description {
    font-size: 0.95em;
  }
  #framework-section .protocol-icons {
    justify-content: left;
    margin-top: 10px;
    width: 280px;
    display: grid;
  }
  #framework-section .framework-image-block {
    min-width: unset; /* Remove min-width constraint */
    width: 100%;
    padding-left: 0; /* Remove left padding */
  }

  /* Chiffres Section Responsiveness */
  #chiffres-section .chiffres-container {
    flex-direction: column; /* Stack items vertically on mobile */
    gap: 30px;
  }
  #chiffres-section .chiffre-item {
    flex: 1 1 100%; /* Each item takes full width */
  }
  #chiffres-section .chiffre-number {
    font-size: 3.5em; /* Smaller numbers on mobile */
  }
  #chiffres-section .chiffre-text {
    font-size: 1.1em;
  }

  /* Community Section Responsiveness */
  #community-section,
  .community-container,
  .community-container-legal {
    flex-direction: column; /* Stack image and text vertically */
    gap: 40px;
  }
  #community-section .community-image-block,
  #community-section .community-text-block {
    min-width: unset; /* Remove min-width constraints */
    width: 100%; /* Take full width */
  }

  #community-section .community-heading {
    font-size: 2em; /* Smaller heading on mobile */
  }
  #community-section .community-description {
    font-size: 1em;
  }

  /* Open Source Section Responsiveness */
  #open-source-section .os-section-title {
    font-size: 2em; /* Smaller title on mobile */
  }
  #open-source-section .os-intro-text {
    font-size: 1.1em; /* Adjust font size */
  }
  #open-source-section .os-grid {
    grid-template-columns: 1fr; /* Single column for cards on mobile */
  }
  #open-source-section .os-card {
    padding: 25px; /* Adjust padding for mobile */
  }
  #open-source-section .os-card-title {
    font-size: 1.3em; /* Adjust font size */
  }
  #open-source-section .os-card-description {
    font-size: 0.95em;
  }
  #open-source-section .os-summary {
    padding: 30px; /* Adjust padding for mobile */
  }
  #open-source-section .os-summary-title {
    font-size: 1.3em; /* Adjust font size */
  }
  #open-source-section .os-summary-text {
    font-size: 0.95em;
  }

  /* Footer responsiveness for smaller screens */
  #main-footer .footer-content-wrapper {
    flex-direction: column; /* Stack columns vertically on small screens */
    align-items: flex-start; /* Align text to the left */
  }

  #main-footer .footer-column {
    flex-basis: auto; /* Reset flex basis for stacking */
    width: 100%; /* Take full width */
    min-width: unset;
    margin-bottom: 25px;
  }

  #main-footer .footer-column:last-of-type {
    margin-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom p {
    text-align: center; /* Center copyright on mobile */
    width: 100%;
    margin-bottom: 10px;
  }

  .footer-legal-links {
    justify-content: center; /* Center legal links */
    width: 100%;
    margin-top: 10px;
  }
  .footer-legal-links li:not(:last-child)::after {
    content: none; /* Remove separator on mobile */
  }
  .footer-legal-links li {
    margin-bottom: 5px;
    flex: 1 1 auto; /* Allow them to wrap but align */
    text-align: center;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .social-icons {
    justify-content: center; /* Center social icons on very small screens */
  }
  .footer-legal-links {
    flex-direction: column; /* Stack legal links for very small screens */
    gap: 5px;
  }
  .hero-buttons {
    width: 100%; /* Make buttons take full width */
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* product-card-features */

.product-card-featuresOLD {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  background-color: var(
    --background-color
  ); /* White background for product cards */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  /*flex-shrink: 0;*/ /* Prevent shrinking */
  text-align: center;
  text-decoration: none; /* Remove underline from link */
  color: var(--text-color); /* Inherit text color */
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 400px; /* Fixed width for desktop, adjust as needed */
  flex-grow: 1; /* Allow cards to grow if space is available */
  padding-block-end: 50px;
}

.product-card-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px 20px 50px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 100%; /* prend toute la cellule */
  max-width: 400px; /* limite la taille */
}

body.dark-mode .product-card-features {
  background-color: var(
    --dark-header-bg
  ); /* Darker background for product cards in dark mode */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card-features:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
body.dark-mode .product-card-features:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.product-card-features > img {
  width: 100%;
  height: 250px; /* fixe la hauteur */
  object-fit: contain; /* garde toute l’image, sans crop */
  object-position: center;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: var(--background-color); /* fond */
}
.product-card-features .card-icon img {
  width: 100%; /* Make image fill card width */
  /* object-fit: cover; */ /* Cover the area, cropping if necessary */
  height: auto;
  display: block;
}
body.dark-mode .product-card-features > img {
  background-color: var(
    --dark-background-color
  ); /* Darker background for images in dark mode */
}

.card-icon-cb {
  width: 15%;
  height: 25%;
  background-color: var(--background-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon-cb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


@media (max-width: 768px) {
  .card-icon-cb {
    width: 50px;   /* ou une taille fixe adaptée au mobile */
    height: 50px;  /* idem */
  }

  .card-icon-cb img {
    max-width: 100%;  /* pour que l'image ne dépasse pas le container */
    max-height: 100%;
    object-fit: contain; /* pour que l'image garde ses proportions */
  }
}

.product-card-features h3 {
  font-size: 1.2em;
  font-weight: 600;
}

.product-card-features p {
  font-size: 0.9em;
  color: var(--text-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

.product-card-features .btn {
  margin-top: 20px; /* Push button to the bottom */
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 50px;
}

/* Responsive adjustments for Produits modulables cards */
@media (max-width: 768px) {
  .produits-modulables-cards-grid {
    gap: 20px; /* Reduce gap on smaller screens */
  }
  .produits-modulables-cards-grid-index {
    gap: 20px; /* Reduce gap on smaller screens */
  }
  .product-card-features {
    max-width: calc(
      50% - 15px
    ); /* Two cards per row on mobile, accounting for gap */
    width: 100%; /* Ensure it takes full available width within its max-width */
  }
  .product-card-features > img {
    height: 150px; /* Adjust image height for mobile */
  }
}

@media (max-width: 576px) {
  .produits-modulables-text p {
    font-size: 1em; /* Adjust text size for smaller screens */
  }
  .produits-modulables-text-index p {
    font-size: 1em; /* Adjust text size for smaller screens */
  }
  .product-card-features {
    max-width: 100%; /* One card per row on very small screens */
  }
}

.jeedom-compatibility-page-image-block {
  flex: 1;
  display: flex;
  justify-content: flex-start; /* Align image to the left within its block */
  align-items: center;
  border-radius: 10px; /* Rounded corners for the image block */
  overflow: hidden; /* Ensure image corners respect parent radius */
}

.jeedom-compatibility-page-image-block img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area while maintaining aspect ratio */
  margin: 0 auto;
  border-radius: 14px;
}

@media (max-width: 768px) {
  .youtube-iframe {
    width: 100%;
  }
}

.main {
  padding: 120px 0 60px;
}

/* --- Titre principal --- */
.main .pageTitle {
  margin: 60px 0;
  text-align: center;
  font-size: 36px;
  color: var(--accent-color);
}

/* --- Fil d’Ariane (Breadcrumbs) --- */
.main .breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  margin-bottom: 60px;
  gap: 30px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main .breadcrumbList {
  display: flex;
  gap: 20px;
}

.main .breadcrumbItem {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--default-color);
  cursor: pointer;
  transition: color 0.3s;
}

.main .breadcrumbItem.activeBreadcrumb {
  font-weight: bold;
  color: var(--accent-color);
}

.main .breadcrumbItem:hover {
  color: var(--accent-color);
}

.main .breadcrumbSeparator {
  font-size: 16px;
  color: var(--default-color);
}

/* --- Bouton retour arrière --- */
.main .backArrowContainer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 10px 0 0 260px;
}

.main .backArrow {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 20px;
  color: var(--default-color);
  background-color: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.main .backArrow:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  transform: translateX(-4px);
}

.main .backArrow i {
  font-size: 22px;
}

/* --- Sous-titre --- */
.main .subTitle {
  margin-bottom: 40px;
  text-align: center;
  font-size: 18px;
  color: var(--heading-color);
}

/* --- Cartes (sélection utilisateur / demande) --- */
.main .cardsContainer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Permet aux cartes de passer à la ligne si l'espace est trop petit */
    margin: 0 auto;

}

.main .cardsContainer .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px; /* Largeur par défaut */
    padding: 40px 20px;
    text-align: center;
    background-color: var(--contrast-color);
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .main .cardsContainer .card {
        width: 100%; /* Prend toute la largeur disponible */
        max-width: 300px; /* Optionnel : limite la largeur maximale */
        padding: 30px 15px;
    }
}

.main .cardsContainer .card:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

.main .cardsContainer .card i {
  margin-bottom: 15px;
  font-size: 36px;
  color: var(--accent-color);
}

.main .cardsContainer .card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--heading-color);
}

/* --- Formulaire --- */
.main .form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 90%; /* prend presque toute la largeur sur petits écrans */
    margin: 0 auto;
}

.main .form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 500;
    color: var(--heading-color);
}

.main .form label input,
.main .form label textarea {
    margin-top: 8px;
    padding: 18px 20px; /* plus de padding = champ plus grand */
    font-size: 18px;    /* texte plus lisible */
    color: var(--default-color);
    background-color: var(--background-color);
    border: 1px solid var(--smooth-color);
    border-radius: 10px; /* légèrement plus arrondi */
    transition: box-shadow 0.3s, border-color 0.3s;
    width: 100%;        /* prend toute la largeur disponible */
    box-sizing: border-box; /* évite que padding + border déborde */

}

.main .form label input:focus,
.main .form label textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(159, 218, 2, 0.5);
  outline: none;
}

.main .form label input:hover,
.main .form label textarea:hover {
  border-color: rgba(159, 218, 2, 0.7);
}

.main .form label textarea {
  height: 150px;
  resize: vertical;
}

.main .form .submitButton {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--contrast-color);
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.main .form .submitButton:hover {
  background-color: rgba(159, 218, 2, 0.9);
  color: var(--default-color);
  transform: translateY(-2px);
}

.main .form .submitButton:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(159, 218, 2, 0.5);
}


.fade { transition: opacity 0.3s ease; }
.fade-in { opacity: 1; }

#formContent { 
  width: 40%;
  margin: 0 auto;
}

#formContent.fade-in { opacity: 1; }

.cardsContainer {
  display: flex;
  gap: 1rem;
}
.card {
  padding: 1rem;
  border-radius: .5rem;
  cursor: pointer;
  text-align: center;
  flex: 1;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: scale(1.05);
}

.activeBreadcrumb {
  font-weight: bold;
}

.optInContainer {
  display: flex;
  flex-direction: column;
  gap: 10px; /* espace entre les opt-ins */
}

.optIn {
  display: flex;
  align-items: center; /* centre verticalement la checkbox et le label */
  gap: 10px; /* espace entre checkbox et label */
}

.optIn input[type="checkbox"] {
  cursor: pointer;
}

.optIn label {
    display: inline-flex;       /* aligne texte et lien sur la même ligne */
    gap: 4px;                   /* espace entre texte et lien */
    cursor: pointer;
    font-size: 14px;
    color: var(--heading-color);
    white-space: nowrap;        /* empêche le texte de passer à la ligne */
}

.optIn label a {
    display: inline;            /* s'assure que le lien reste sur la même ligne */
    color: var(--accent-color); /* couleur du lien si besoin */
    text-decoration: underline;
}

.supportLink {
  font-weight: 700;
  font-size: 16px;
  color: #9fda02;
  text-decoration: none;
  transition: color .3s;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.4;
}

.privacy-consent input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 3px; /* pour aligner avec le texte */
}

.privacy-consent a {
  color: var(--primary-color);
  text-decoration: underline;
}
