/* Réinitialisation et Styles de Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* New Charter Palette & Variables */
  --primary-blue: #3d81fc;
  --dark-gray: #1e293b; /* Main text color */
  --neutral-gray: #64748b; /* Secondary text, borders */
  --light-gray-bg: #f8fafc; /* Light backgrounds, input fields */
  --light-gray-border: #e2e8f0; /* Borders */
  --white: #ffffff; /* General background */
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --error-red: #ef4444;

  /* New Charter Typography */
  --font-body: "Roboto", sans-serif;
  --font-heading: "Roboto", sans-serif; /* Using Roboto for headings too as per charter's examples */
  --font-code: "Source Code Pro", monospace;

  /* New Charter Spacing Units */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 0.5); /* 4px */
  --spacing-sm: var(--spacing-unit); /* 8px */
  --spacing-md: calc(var(--spacing-unit) * 2); /* 16px */
  --spacing-lg: calc(var(--spacing-unit) * 3); /* 24px */
  --spacing-xl: calc(var(--spacing-unit) * 4); /* 32px */

  /* New Charter Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Layout from old, potentially adapted */
  --container-width: 1200px; /* Adapted from new charter's .container */
  --header-height: 60px; /* Kept from old, adjust if needed */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray); /* Adapted */
  line-height: 1.7;
  background-color: var(--white); /* Adapted */
  overflow-x: hidden;
}

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

a {
  color: var(--primary-blue); /* Adapted */
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: #276fd9; /* Darker shade of primary blue for hover */
  opacity: 0.9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading); /* Adapted */
  color: var(--dark-gray); /* Adapted */
  margin-bottom: var(
    --spacing-md
  ); /* Adapted from new charter's general heading margin */
  line-height: 1.3;
}

h1 {
  font-size: 2.8em; /* Kept from old, charter uses 3rem. Adjust if desired. */
  font-weight: 700;
}
h2 {
  font-size: 2.2em; /* Kept from old, same as charter. */
  font-weight: 700; /* Charter uses Bold (700) for H2 */
}
h3 {
  font-size: 1.5em; /* Charter uses 1.5rem with weight 600 */
  font-weight: 600;
}
h4 {
  font-size: 1.1rem; /* Charter uses 1.1rem, uppercase, neutral gray */
  font-weight: 600; /* Or 500 if less emphasis */
  text-transform: uppercase;
  color: var(--neutral-gray);
}

p {
  margin-bottom: var(--spacing-md); /* Adapted */
}

ul {
  list-style: none;
  padding-left: 0; /* Resetting default padding for custom list styling */
}

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-lg); /* Adapted */
  padding-right: var(--spacing-lg); /* Adapted */
}

.section-padding {
  padding-top: calc(
    var(--spacing-xl) * 2
  ); /* Approx 64px, old was 80px. (32px * 2) */
  padding-bottom: calc(var(--spacing-xl) * 2);
}

.bg-light {
  background-color: var(--light-gray-bg); /* Adapted */
}

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

/* Header - Adapted */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-gray-border); /* Adapted */
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background-color 0.3s ease;
}

.header-container {
  display: flex;
  gap: var(--spacing-md); /* Adapted */
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6em; /* Slightly larger if it's the main brand */
  font-weight: 700;
  color: var(--primary-blue); /* Adapted */
  letter-spacing: -0.5px;

  /* --- AJOUTS POUR L'ALIGNEMENT --- */
  display: flex; /* Active Flexbox */
  align-items: center; /* Centre les éléments verticalement */
  gap: var(
    --spacing-sm
  ); /* Ajoute un petit espace (ex: 8px) entre l'image et le texte. Ajustez si besoin. */
}

/* Optionnel : Si vous souhaitez retirer les styles en ligne de l'image et les gérer ici */
.logo img {
  height: 40px;
  width: auto;
  /* vertical-align: middle; n'est plus nécessaire avec align-items: center sur le parent flex */
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-lg); /* Adapted */
}

.main-nav a {
  font-weight: 500; /* Roboto Medium */
  font-size: 0.95em;
  color: var(--neutral-gray); /* Adapted */
  padding: var(--spacing-xs) 0; /* 4px top/bottom */
  position: relative;
  letter-spacing: 0.5px;
  border-bottom: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue); /* Adapted */
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-blue); /* Adapted for active/hover state */
  border-bottom: none;
}

/* Buttons - Adapted from new charter's .btn-primary & .btn-secondary */
.cta-button,
.cta-button-secondary,
.header-cta {
  /* Apply base button styles to header-cta too */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md); /* e.g., 8px 16px */
  border-radius: var(--border-radius-md); /* e.g., 8px */
  font-family: var(--font-body);
  font-weight: 600; /* Charter uses 600 for buttons */
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  font-size: 1em;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cta-button,
.header-cta {
  /* Specifics for primary button */
  background-color: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.cta-button:hover,
.header-cta:hover {
  background-color: #276fd9; /* Darker primary blue */
  border-color: #276fd9;
  color: var(--white);
  transform: translateY(-2px);
}

.cta-button-secondary {
  background-color: var(--white);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.cta-button-secondary:hover {
  background-color: var(
    --light-gray-bg
  ); /* From charter's btn-secondary hover */
  color: var(--primary-blue);
  border-color: var(
    --primary-blue
  ); /* Ensure border color remains on hover if needed */
  transform: translateY(-2px);
}

.header-cta {
  /* Specific adjustments for header button if any */
  padding: var(--spacing-xs) var(--spacing-md); /* 4px 16px - slightly smaller padding for header */
  font-size: 0.9em;
  margin-left: var(--spacing-md);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: var(--dark-gray); /* Adapted */
}

/* Hero Section - Adapted */
.hero {
  padding-top: calc(var(--spacing-xl) * 2); /* ~64px */
  padding-bottom: calc(var(--spacing-xl) * 2);
  background-color: var(--white);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  gap: var(--spacing-xl); /* 32px */
}

.hero-content h1 {
  font-size: 3em; /* Slightly adjusted from original 3.2em for balance */
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: var(--spacing-lg); /* 24px */
  max-width: 550px;
  color: var(--neutral-gray); /* Softer text for hero description */
}

.hero-visual-placeholder {
  background-color: var(--light-gray-bg); /* Adapted */
  border: 1px solid var(--light-gray-border); /* Adapted */
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-gray); /* Adapted */
  font-style: italic;
  border-radius: var(--border-radius-lg); /* Adapted */
}

/* Alternating Sections - Adapted */
.alternating-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--spacing-xl); /* 32px */
}

.alternating-section.reverse .container {
  grid-template-areas: "image text";
}
.alternating-section.reverse .section-image {
  grid-area: image;
}
.alternating-section.reverse .section-text {
  grid-area: text;
}

@media (min-width: 992px) {
  .alternating-section .container {
    grid-template-columns: 2fr 3fr;
    grid-template-areas: "image text";
  }
  .alternating-section.reverse .container {
    grid-template-columns: 3fr 2fr;
    grid-template-areas: "text image";
  }
  .alternating-section .section-image {
    grid-area: image;
  }
  .alternating-section .section-text {
    grid-area: text;
  }
}

.section-image {
  background-color: var(--light-gray-bg); /* Adapted */
  border: 1px solid var(--light-gray-border); /* Adapted */
  min-height: 300px;
  border-radius: var(--border-radius-lg); /* Adapted */
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  color: var(--neutral-gray);
}
.section-text h2 {
  margin-bottom: var(--spacing-sm); /* 8px */
}
.section-text p {
  margin-bottom: var(--spacing-md); /* 16px */
  color: var(--neutral-gray);
}

/* Features Overview - Adapted */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg); /* 24px */
  margin-top: var(--spacing-xl); /* 32px */
}

.feature-item {
  padding: var(--spacing-lg); /* 24px */
  background-color: var(--white); /* Adapted */
  border-radius: var(--border-radius-lg); /* Adapted */
  border: 1px solid var(--light-gray-border); /* Adapted */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05); /* Softer shadow */
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(61, 129, 252, 0.1); /* Shadow with primary blue tint */
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: var(--spacing-md); /* 16px */
  display: inline-block;
  color: var(--primary-blue); /* Adapted */
}
.feature-icon.large {
  /* Used on fonctionnalites.php */
  font-size: 3em;
  margin-right: var(--spacing-md); /* Added for spacing with text */
  margin-bottom: var(--spacing-sm);
  color: var(--primary-blue);
}

.feature-item h3 {
  font-size: 1.3em;
  margin-bottom: var(--spacing-sm); /* 8px */
  color: var(--dark-gray);
  font-weight: 600;
}
.feature-item p {
  color: var(--neutral-gray);
}

/* How it Works - Adapted */
.how-it-works {
  background-color: var(--light-gray-bg);
}
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl); /* 32px */
  text-align: center;
  margin-top: var(--spacing-xl); /* 32px */
}

.step {
  position: relative;
  padding-top: calc(
    var(--spacing-xl) + var(--spacing-md)
  ); /* Space for number: 32px + 16px */
}

.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background-color: var(--primary-blue); /* Adapted */
  color: var(--white); /* Adapted */
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 700;
  border: 3px solid var(--light-gray-bg); /* To match section BG if step is on light BG */
  box-shadow: 0 0 0 3px var(--primary-blue);
}
.step h3 {
  font-size: 1.2em;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}
.step p {
  color: var(--neutral-gray);
}

/* Pricing Page - Adapted */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg); /* 24px */
}

.pricing-plan {
  border: 1px solid var(--light-gray-border); /* Adapted */
  border-radius: var(--border-radius-lg); /* Adapted */
  padding: var(--spacing-lg); /* 24px */
  text-align: center;
  background-color: var(--white); /* Adapted */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
}

.pricing-plan.popular {
  border-color: var(--primary-blue); /* Adapted */
  box-shadow: 0 8px 20px rgba(61, 129, 252, 0.1); /* Shadow for popular plan */
}

.pricing-plan h2 {
  font-size: 1.6em;
  margin-bottom: var(--spacing-sm); /* 8px */
  font-weight: 600;
}

.price {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--dark-gray); /* Adapted */
  margin-bottom: var(--spacing-xs); /* 4px */
}

.period {
  font-size: 0.5em; /* Adjusted for Roboto */
  font-weight: 500; /* Medium */
  color: var(--neutral-gray); /* Adapted */
  text-transform: uppercase;
}

.pricing-plan ul {
  margin: var(--spacing-lg) 0; /* 24px */
  text-align: left;
  padding-left: var(--spacing-sm); /* 8px */
  flex-grow: 1;
}

.pricing-plan li {
  margin-bottom: var(--spacing-sm); /* 8px */
  padding-left: var(--spacing-lg); /* 24px, space for icon */
  position: relative;
  color: var(--neutral-gray); /* Adapted */
}

.pricing-plan li::before {
  content: "✓";
  color: var(--primary-blue); /* Adapted */
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1em;
}

.pricing-plan .cta-button,
.pricing-plan .cta-button-secondary {
  width: 100%;
  margin-top: var(--spacing-md); /* 16px */
}

.popular-badge {
  display: inline-block;
  background-color: rgba(61, 129, 252, 0.1); /* Light primary blue */
  color: var(--primary-blue); /* Adapted */
  padding: var(--spacing-xs) var(--spacing-sm); /* 4px 8px */
  font-size: 0.8em;
  font-weight: 700;
  border-radius: var(--border-radius-md); /* Rounded badge */
  margin-bottom: var(--spacing-md); /* 16px */
  text-transform: uppercase;
}

.pricing-notes {
  margin-top: var(--spacing-xl); /* 32px */
  font-size: 0.9em;
  color: var(--neutral-gray); /* Adapted */
}

/* Forms - Adapted from new charter */
.form-container {
  max-width: 600px; /* Kept from old */
}
.contact-info {
  /* For contact.php */
  margin-bottom: var(--spacing-lg); /* 24px */
  font-size: 1em;
}
.contact-info p {
  margin-bottom: var(--spacing-sm); /* 8px */
  color: var(--neutral-gray);
}
.contact-info p strong {
  color: var(--dark-gray);
}
.contact-info a {
  font-weight: 500; /* Medium */
}

.form-group {
  margin-bottom: var(--spacing-md); /* 16px */
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs); /* 4px */
  font-weight: 500; /* Medium */
  color: var(--dark-gray); /* Adapted */
  font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md); /* 8px 16px */
  border: 1px solid var(--light-gray-border); /* Adapted */
  border-radius: var(--border-radius-md); /* Adapted (8px) */
  font-size: 1rem;
  font-family: var(--font-body);
  background-color: var(--white); /* Form inputs on white bg */
  color: var(--dark-gray); /* Text color inside input */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--neutral-gray); /* Softer placeholder */
  opacity: 0.7;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue); /* Adapted */
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(61, 129, 252, 0.2); /* Focus shadow from charter */
}

.required-notice {
  font-size: 0.85em;
  color: var(--neutral-gray); /* Adapted */
  margin-top: var(--spacing-md); /* 16px */
}

/* Footer - Adapted */
.site-footer {
  background-color: var(--dark-gray); /* Adapted - Dark background */
  color: var(--light-gray-bg); /* Light text on dark background */
  padding: var(--spacing-xl) 0; /* 32px top/bottom */
  margin-top: calc(var(--spacing-xl) * 2); /* 64px */
  font-size: 0.9em;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg); /* 24px */
  margin-bottom: var(--spacing-lg); /* 24px */
}

.footer-column h4 {
  color: var(--white); /* White headings in footer */
  font-weight: 600;
  margin-bottom: var(--spacing-md); /* 16px */
  font-size: 1.1em;
}
.footer-column p {
  /* Paragraphs in footer */
  color: var(--neutral-gray); /* Lighter gray for P text in footer */
  line-height: 1.6;
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm); /* 8px */
}

.footer-column a {
  color: var(--neutral-gray); /* Lighter gray links */
}

.footer-column a:hover {
  color: var(--primary-blue); /* Primary blue on hover */
  opacity: 1;
}
.footer-column p a {
  /* Specifically target links within paragraphs in footer */
  color: var(--primary-blue);
}
.footer-column p a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--neutral-gray); /* Adapted, using neutral gray as separator */
  padding-top: var(--spacing-lg); /* 24px */
  margin-top: var(--spacing-lg); /* 24px */
  color: var(--neutral-gray); /* Text color for copyright */
}

/* Specific to fonctionnalites.php */
.features-list .feature-detail-item {
  display: flex;
  align-items: flex-start; /* Align icon and text block at the top */
  gap: var(--spacing-lg); /* Space between icon and text */
  margin-bottom: var(--spacing-xl); /* Space between feature items */
}
.features-list .feature-detail-item .feature-icon.large {
  margin-right: 0; /* Resetting margin from general .feature-icon.large if needed */
  flex-shrink: 0; /* Prevent icon from shrinking */
}
.features-list .feature-detail-item h3 {
  margin-top: 0; /* Remove top margin if icon aligns with H3 start */
  margin-bottom: var(--spacing-xs);
}
.features-list .feature-detail-item p {
  color: var(--neutral-gray);
  line-height: 1.6;
}
/* Page Title Section - used on subpages */
.page-title {
  background-color: var(--light-gray-bg);
}
.page-title h1 {
  color: var(--dark-gray); /* Titles on light bg can be dark gray */
  border-bottom: none; /* No border for page titles like in charter H1 */
  margin-bottom: var(--spacing-sm);
}
.page-title p {
  font-size: 1.2rem;
  color: var(--neutral-gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design - Kept from old, adapted styles will cascade */
@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5em;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual-placeholder {
    margin-top: var(--spacing-lg); /* 24px */
    min-height: 250px;
  }

  .alternating-section .container,
  .alternating-section.reverse .container {
    grid-template-columns: 1fr;
    grid-template-areas: unset;
    gap: var(--spacing-lg); /* 24px */
  }
  .alternating-section.reverse .section-image {
    grid-row: 1;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg); /* 24px */
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2em;
  }
  .hero-content h1 {
    /* Specific hero h1 on mobile */
    font-size: 2.4em;
  }
  h2 {
    font-size: 1.8em;
  }
  .section-padding {
    padding-top: var(--spacing-xl); /* 32px */
    padding-bottom: var(--spacing-xl);
  }

  .header-container {
    position: relative;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--white); /* Adapted */
    border-bottom: 1px solid var(--light-gray-border); /* Adapted */
    padding: var(--spacing-md) 0; /* 16px */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .main-nav a {
    padding: var(--spacing-sm) var(--spacing-md); /* 8px 16px */
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--light-gray-border); /* Separator */
  }
  .main-nav ul li:last-child a {
    border-bottom: none;
  }
  .main-nav a::after {
    display: none; /* Hide underline effect in mobile nav */
  }
  .main-nav a:hover,
  .main-nav a.active {
    color: var(--primary-blue); /* Adapted */
    background-color: var(
      --light-gray-bg
    ); /* Slight background on hover/active for mobile */
  }

  .mobile-menu-toggle {
    display: block;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .steps-container {
    grid-template-columns: 1fr;
  }
}

/* style.css - AJOUTS ET MODIFICATIONS POUR LA NOUVELLE PRÉSENTATION DES FONCTIONNALITÉS */

/* Sous-titre de section (optionnel, pour structurer) */
.section-subtitle {
  font-size: 1.1em;
  color: var(--neutral-gray);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-top: calc(var(--spacing-xs) * -1); /* Pour rapprocher du titre h2 */
  margin-bottom: var(--spacing-xl); /* Espace avant la grille de cards */
}

/* Grille pour les fonctionnalités clés (avancées) */
.features-grid-advanced {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 320px), 1fr)
  ); /* S'adapte mieux */
  gap: var(--spacing-lg); /* 24px */
}

.feature-card-advanced {
  background-color: var(--white);
  border-radius: var(--border-radius-lg); /* 12px */
  padding: var(--spacing-lg); /* 24px */
  border: 1px solid var(--light-gray-border);
  box-shadow: 0 6px 12px rgba(61, 129, 252, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04); /* Ombre subtile bleue */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-advanced:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(61, 129, 252, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.06);
}

.feature-card-advanced .feature-icon {
  /* Utilise .feature-icon existant mais on peut le surcharger si besoin */
  font-size: 2.8em; /* Icône plus grande pour les cards avancées */
  margin-bottom: var(--spacing-md);
  color: var(--primary-blue);
}

.feature-card-advanced h3 {
  font-size: 1.4em; /* Titre de la card */
  margin-bottom: var(--spacing-sm);
  color: var(--dark-gray);
}

.feature-card-advanced p {
  color: var(--neutral-gray);
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1; /* Pour que le bouton reste en bas si les textes varient */
  margin-bottom: var(--spacing-md); /* Espace avant le bouton */
}

.feature-card-advanced .cta-button {
  /* Style pour le bouton dans la card */
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md); /* Bouton un peu plus petit */
  font-size: 0.95em;
}
.feature-card-advanced .cta-button-secondary {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.95em;
}

.features-list-basic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--spacing-md); /* 16px */
  margin-top: var(--spacing-lg);
}

.feature-item-basic {
  background-color: var(
    --white
  ); /* Ou --light-gray-bg si la section n'a pas de fond */
  border-radius: var(--border-radius-md); /* 8px */
  padding: var(--spacing-md); /* 16px */
  border: 1px solid var(--light-gray-border);
  display: flex;
  align-items: flex-start; /* Aligne icône et texte en haut */
  gap: var(--spacing-sm); /* Espace entre icône et texte */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item-basic:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.feature-item-basic .feature-icon-small {
  font-size: 1.8em; /* Ajustez si nécessaire */
  color: var(--primary-blue); /* Ou --neutral-gray pour moins d'emphase */
  margin-top: 2px; /* Petit ajustement vertical */
  flex-shrink: 0;
}

.feature-item-basic div h4 {
  /* Titre pour l'item de base */
  font-size: 1.1em;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs); /* 4px */
  text-transform: none; /* Annule le uppercase de .h4 général si vous l'aviez */
}

.feature-item-basic div p {
  font-size: 0.9em;
  color: var(--neutral-gray);
  line-height: 1.5;
  margin-bottom: 0; /* Pas de marge en bas pour les descriptions courtes */
}

/* Pour la flèche sur les boutons (si vous la gardez) */
.cta-button .arrow,
.cta-button-secondary .arrow {
  display: inline-block;
  margin-left: var(--spacing-xs);
  transition: transform 0.2s ease;
}
.cta-button:hover .arrow,
.cta-button-secondary:hover .arrow {
  transform: translateX(3px);
}

/* style.css - AJOUTS POUR LA PAGE DE FONCTIONNALITÉ DÉTAILLÉE MODERNISÉE */

/* --- Section Héros de la Fonctionnalité --- */
.feature-hero {
  background-color: var(--light-gray-bg); /* Fond subtil */
  /* Ou utilisez un dégradé léger:
  background: linear-gradient(175deg, var(--light-gray-bg) 0%, var(--white) 100%);
  */
  padding-top: var(
    --spacing-xl
  ); /* Moins de padding si header fixe déjà présent */
  padding-bottom: var(--spacing-xl);
}

.feature-hero-icon {
  font-size: 3.5em; /* Grosse icône */
  display: block;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-blue);
  line-height: 1; /* Pour éviter un trop grand espace si l'emoji a une hauteur propre */
}

.feature-hero h1 {
  font-size: 3em; /* Ajustez selon la longueur de vos titres */
  font-weight: 700; /* S'assurer qu'il est bien en gras */
  color: var(--dark-gray);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

.feature-hero .lead {
  /* Pour le paragraphe d'accroche sous le H1 */
  font-size: 1.3em;
  color: var(--neutral-gray);
  max-width: 750px; /* Limiter la largeur pour une meilleure lisibilité */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.feature-hero-visual {
  margin-top: var(--spacing-lg); /* Espace entre texte et visuel */
  text-align: center; /* Centrer l'image */
}

.feature-hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg); /* Bords arrondis pour l'image */
  box-shadow: 0 12px 25px rgba(61, 129, 252, 0.1),
    0 5px 10px rgba(0, 0, 0, 0.05); /* Ombre plus prononcée */
}

/* --- Contenu Détaillé de la Fonctionnalité --- */
.feature-detail-content .feature-section {
  padding-top: calc(var(--spacing-xl) * 1.5);
  padding-bottom: calc(var(--spacing-xl) * 1.5);
  border-bottom: 1px solid var(--light-gray-border); /* Séparateur léger entre sections */
}
.feature-detail-content .feature-section:last-of-type {
  /* Pas de bordure pour la dernière section */
  border-bottom: none;
}

.feature-detail-content .section-heading {
  /* Pour H2/H3 des sections de contenu */
  font-size: 2.2em;
  font-weight: 700;
  color: var(--dark-gray);
  text-align: center;
  margin-bottom: var(--spacing-sm);
}
.feature-detail-content .section-subheading {
  /* Pour le paragraphe sous le H2/H3 */
  font-size: 1.1em;
  color: var(--neutral-gray);
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-xl); /* Espace avant le contenu effectif */
}

.feature-intro-text {
  /* Paragraphe d'introduction de la fonctionnalité */
  font-size: 1.2em;
  line-height: 1.8;
  color: var(--dark-gray); /* Un peu plus sombre pour l'intro */
  max-width: 800px;
  margin: 0 auto var(--spacing-xl) auto;
  text-align: left; /* Ou center si vous préférez */
}
.feature-intro-text strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Grille pour les bénéfices clés */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--spacing-lg);
}

.benefit-card {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--light-gray-border);
  /* text-align: center; */ /* Si vous préférez le texte centré */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligne à gauche */
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.benefit-icon {
  font-size: 2.5em; /* Taille de l'icône du bénéfice */
  display: block;
  margin-bottom: var(--spacing-md);
  color: var(--primary-blue); /* Couleur de l'icône */
  background-color: rgba(61, 129, 252, 0.1); /* Fond léger pour l'icône */
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-xs);
  line-height: 1;
  width: fit-content; /* S'adapte à la largeur de l'icône */
}

.benefit-card h4 {
  font-size: 1.25em;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-gray);
  font-weight: 600;
  text-transform: none; /* Assurez-vous qu'il n'est pas en majuscules */
}

.benefit-card p {
  font-size: 0.95em;
  color: var(--neutral-gray);
  line-height: 1.6;
  flex-grow: 1; /* Pour occuper l'espace si les cartes ont des hauteurs différentes */
}

/* Mise en page Deux Colonnes (Texte / Image) */
.feature-layout-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes égales */
  gap: var(--spacing-xl); /* Espace entre les colonnes */
  align-items: center; /* Centrer verticalement le contenu des colonnes */
}
.feature-layout-twocol.reverse .text-content {
  /* Pour inverser l'ordre */
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.feature-layout-twocol.reverse .visual-content {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.feature-layout-twocol .text-content h3 {
  /* Titre dans la colonne texte */
  font-size: 1.8em;
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
  font-weight: 600;
}

.feature-layout-twocol .text-content p,
.feature-layout-twocol .text-content ul {
  font-size: 1em; /* Taille de texte standard */
  line-height: 1.7;
  color: var(--neutral-gray);
  margin-bottom: var(--spacing-md);
}

.feature-layout-twocol .text-content ul {
  padding-left: var(--spacing-md); /* Indentation pour la liste */
  list-style: none; /* Enlever les puces par défaut */
}

.feature-layout-twocol .text-content ul li {
  position: relative;
  padding-left: var(--spacing-lg); /* Espace pour la puce personnalisée */
  margin-bottom: var(--spacing-sm);
}

.feature-layout-twocol .text-content ul li::before {
  content: "✓"; /* Puce personnalisée */
  color: var(--success-green);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 2px; /* Ajustement vertical */
  font-size: 1.1em;
}

.feature-layout-twocol .visual-content img {
  width: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.07);
}

/* Section des Cas d'Usage */
.use-cases-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.use-case-item {
  display: flex; /* Icône à gauche, texte à droite */
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--light-gray-border);
  /* border-left: 4px solid var(--primary-blue); /* Accent coloré à gauche */
}

.use-case-icon {
  font-size: 2em;
  color: var(--primary-blue);
  margin-top: var(--spacing-xs); /* Petit ajustement */
  flex-shrink: 0; /* Empêche l'icône de rétrécir */
  background-color: rgba(61, 129, 252, 0.08);
  padding: calc(var(--spacing-xs) * 1.5);
  border-radius: 50%; /* Cercle autour de l'icône */
  line-height: 1;
}

.use-case-item h4 {
  font-size: 1.15em;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
  text-transform: none;
}

.use-case-item p {
  font-size: 0.95em;
  color: var(--neutral-gray);
  line-height: 1.6;
  margin-bottom: 0; /* Pas de marge si c'est le dernier élément */
}
.coming-soon-badge {
  display: inline-block;
  background-color: var(
    --warning-orange
  ); /* Use a warning color from your palette */
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm); /* 4px 8px */
  font-size: 0.7em; /* Slightly smaller than other text */
  font-weight: 700;
  border-radius: var(--border-radius-md); /* Rounded badge */
  margin-left: var(--spacing-sm); /* Space from the title */
  text-transform: uppercase;
  vertical-align: middle; /* Align with the middle of the text */
  letter-spacing: 0.5px;
}

.new-badge {
  display: inline-block;
  background-color: var(
    --success-green
  ); /* Use a warning color from your palette */
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-sm); /* 4px 8px */
  font-size: 0.7em; /* Slightly smaller than other text */
  font-weight: 700;
  border-radius: var(--border-radius-md); /* Rounded badge */
  margin-left: var(--spacing-sm); /* Space from the title */
  text-transform: uppercase;
  vertical-align: middle; /* Align with the middle of the text */
  letter-spacing: 0.5px;
}

/* --- Responsive pour la page de détail --- */
@media (max-width: 991px) {
  /* Tablettes */
  .feature-hero h1 {
    font-size: 2.6em;
  }
  .feature-hero .lead {
    font-size: 1.2em;
  }
  .feature-detail-content .section-heading {
    font-size: 2em;
  }
  .feature-intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  /* Mobiles */
  .feature-hero h1 {
    font-size: 2.2em;
  }
  .coming-soon-badge .new-badge {
    display: block; /* Make it a block on small screens if it wraps awkwardly */
    margin-left: 0;
    margin-top: var(--spacing-xs);
    width: fit-content;
  }
  .feature-hero .lead {
    font-size: 1.1em;
  }
  .feature-detail-content .section-heading {
    font-size: 1.8em;
  }
  .feature-intro-text {
    font-size: 1em;
  }

  .feature-layout-twocol {
    grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  }
  .feature-layout-twocol.reverse .text-content,
  .feature-layout-twocol.reverse .visual-content {
    /* Reset pour mobile */
    grid-column: auto;
    grid-row: auto;
  }
  .feature-layout-twocol .visual-content {
    margin-top: var(--spacing-lg); /* Espace si l'image passe en dessous */
  }
  .feature-layout-twocol.reverse .visual-content {
    /* Si l'image doit être au-dessus en mobile */
    order: -1;
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
  }
}
