/* 
 * Fyri - Main Stylesheet
 * =======================
 */

/* Vibe crafted with enthusiasm. Respect the grind. — MCA */

/* Base Styles
   ========================================================================== */
   *, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #025648;
    --secondary-color: #025648;
    --text-color: #333333;
    --light-text-color: #666666;
    --lightest-text-color: #999999;
    --background-color: #ffffff;
    --light-background: #f5f5f5;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Bandeau promotionnel en haut */
.promo-banner-top {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFB669;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 90%;
    width: auto;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.promo-banner-top-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.promo-banner-top-text {
    color: #333333;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

.promo-banner-top-link {
    color: #025648;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.promo-banner-top-link:hover {
    color: #158752;
}

.promo-banner-top-close {
    background: none;
    border: none;
    color: #333333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
    line-height: 1;
}

.promo-banner-top-close:hover {
    color: #025648;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

section {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    margin-top: 0;
    line-height: 1.2;
}

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

a:hover {
    color: var(--secondary-color);
}

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

/* Container
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles
   ========================================================================== */

/* Section 1 : Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 40px;
    z-index: 10;
  }

.logo {
    display: block;
}

.logo img {
    height: 62px;
    width: auto;
    /* Pour s'assurer que l'image PNG reste nette lors du redimensionnement */
    image-rendering: -webkit-optimize-contrast;
}
  
  
   /* Section 2 : Hero propriétaires
   ========================================================================== */
.hero {
    position: relative;
    background: url('/assets/images/fyri-hero-background.webp') no-repeat center center;
    background-size: cover;
    overflow: visible;
    height: 800px;
    display: flex;
    align-items: center;
    z-index: 1;
    padding-bottom: 100px;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5); /* voile blanc */
    z-index: 0;
  }
  
  .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
  }
  
  .hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .hero-text {
    flex: 1;
    max-width: 520px;
    color: #1c1c1c;
  }
  
  .hero-text h1 {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 0.5em;
    line-height: 1.1;
  }

  @media (max-width: 768px) {
    .hero-text h1 {
      font-size: 2.5rem;
      line-height: 1.2;
    }
  }
  @media (max-width: 500px) {
    .hero-text h1 {
      font-size: 2rem;
    }
  }
  
  .hero-text p {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 480px;
  }

  @media (max-width: 768px) {
    .hero-text p {
      font-size: 1.1rem;
    }
  }
  
  .hero-button {
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
  }

  .hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
  }

  .hero-buttons-ing {
    justify-content: flex-start;
  }

  /* Espacement supplémentaire pour la page ingénieurs */
  body:has([href*="ingenieurs"]) .hero-text,
  .hero-text:has(.hero-buttons-ing) {
    padding-top: 30px;
  }

  /* Bouton principal = noir */
  .hero-button:not(.secondary) {
    background-color: #000;
    color: #fff;
  }
  
  /* Variante secondaire */
  .hero-button.secondary {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
  }
  
  .hero-button:hover {
    transform: translateY(-4px);
  }
  
  .hero-button.secondary {
    background-color: transparent;
    color: #000 !important;
    border: 1px solid #000;
  }
  
  .hero-button.secondary:hover {
    background-color: transparent;
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }

  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    transform: translate(40px, 120px);
    position: relative;
    z-index: 10;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Responsive mobile */
  @media (max-width: 768px) {
    .hero {
      height: auto;
      padding: 120px 20px 60px;
      display: block;
    }
  
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-text {
      max-width: 100%;
    }
  
    .hero-image {
      order: -1;
      margin-bottom: 30px;
      transform: none;
    }
  
    .hero-text h1 {
      font-size: 2rem;
    }
  
    .hero-text p {
      font-size: 1rem;
    }
  
    .hero-button {
      width: 100%;
      max-width: 300px;
    }
  }
  

/* Section 3: Texte Intro Propriétaires (déjà en HTML)
   ========================================================================== */
.fyri-section {
    background-color: #025648;
    color: white;
    padding: 150px 0 80px 0;
    width: 100%;
}

/* Variante pour la section ingénieurs forestiers */
.fyri-section-ing {
  background-color: var(--secondary-color);
  color: white;
  padding: 150px 0 80px 0;
  width: 100%;
}

/* Mise en évidence d'un item */
.list-items p.underlined {
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.fyri-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
}

/* Version desktop */
.fyri-desktop {
    display: flex;
    width: 100%;
    max-width: 1000px;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.fyri-desktop .column-left {
    flex: 1;
    padding-right: 40px;
    padding-top: 0;
    padding-left: 0;
    margin-top: 0;
    margin-left: 0;
}

.fyri-desktop .column-right {
    flex: 2;
    padding-left: 40px;
    padding-top: 0;
    margin-top: 0;
}

.fyri-desktop .title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: white;
}

.fyri-desktop .subtitle {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: white;
}

.fyri-desktop .subtitle p {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
}

/* Version mobile */
.fyri-mobile {
    display: none;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.fyri-mobile .title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
}

.fyri-mobile .subtitle {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: white;
}

.fyri-mobile .subtitle p {
    margin-bottom: 5px !important;
    padding-bottom: 0 !important;
    line-height: 1.2 !important;
}

.list-items {
    margin: 0 !important;
    padding: 0 !important;
}

.list-items p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

/* Section 4: Features - Nouveau design
   ========================================================================== */

/* Propriétaires - Liste + Screenshot */
.features-section-new {
  padding: 80px 0;
  background-color: #ffffff;
}

.features-main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--primary-color);
  font-family: 'Red Hat Display', sans-serif;
  text-align: center;
  line-height: 1.2;
}

.features-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Liste des features à gauche */
.features-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon-container {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-family: 'Red Hat Display', sans-serif;
  line-height: 1.3;
}

.feature-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--light-text-color);
  margin: 0;
}

.badge-dev {
  font-style: italic;
  color: var(--lightest-text-color);
  font-size: 0.9rem;
}

/* Grid layout for proprietaires features */
.features-section-grid {
  padding: 80px 0;
  background: white;
}

.features-grid-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.features-grid-title {
  position: sticky;
  top: 100px;
}

.features-grid-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: 'Red Hat Display', sans-serif;
  line-height: 1.2;
  margin: 0;
}

.features-grid-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 40px;
}

.feature-grid-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.feature-grid-icon {
  width: 64px;
  height: 64px;
}

.feature-grid-content {
  width: 100%;
}

.feature-grid-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-family: 'Red Hat Display', sans-serif;
  line-height: 1.3;
}

.feature-grid-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light-text-color);
  margin: 0;
}

/* Screenshot à droite (old layout) */
.features-screenshot {
  flex: 0 0 600px;
  position: sticky;
  top: 100px;
}

/* New alternate layout - full width screenshot at top, grid below */
.features-section-new-alt {
  padding: 80px 0;
}

.features-section-new-alt .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.features-screenshot-full {
  width: 50%;
  margin: 60px auto 80px auto;
  position: relative;
}

.screenshot-image-full {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.expand-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.expand-icon:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.expand-icon svg {
  color: var(--primary-color);
}

/* Modale pour l'image agrandie */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  overflow: auto;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-modal-content {
  max-width: 65vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  animation: imageZoom 0.3s;
  cursor: default;
  display: block;
}

@keyframes imageZoom {
  from {transform: scale(0.8)}
  to {transform: scale(1)}
}

.image-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
  color: #bbb;
}

.features-grid-alt {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
  margin-bottom: 60px;
  padding: 0 40px;
}

.screenshot-placeholder {
  width: 100%;
  height: 600px;
  background-color: #e0e0e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #999999;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Mobile */
@media (max-width: 968px) {
  .features-layout {
    flex-direction: column;
    gap: 40px;
  }

  .features-screenshot {
    position: relative;
    top: 0;
    flex: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .screenshot-placeholder {
    height: 400px;
  }

  .features-main-title {
    font-size: 2rem;
  }

  /* Alternate layout responsive */
  .features-section-new-alt .container {
    padding: 0 20px;
  }

  .features-screenshot-full {
    margin: 40px 0 60px 0;
  }

  .features-grid-alt {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.95rem;
  }
}
  
/* Ingénieurs forestiers
   ========================================================================== */
   #features-ingenieurs .features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
  }
  
  #features-ingenieurs .features-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 80px;
    color: #025648;
    font-family: 'Red Hat Display', sans-serif;
    text-align: center;
  }
  
  #features-ingenieurs .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  #features-ingenieurs .feature-box {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: left;
    width: 100%;
    max-width: 300px;
  }
  
  #features-ingenieurs .feature-box img {
    width: 64px;
    display: block;
    margin: 0 auto 20px auto;
  }
  
  #features-ingenieurs .feature-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-family: 'Red Hat Display', sans-serif;
  }
  
  #features-ingenieurs .feature-box p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--light-text-color);
    margin: 0;
  }
  
  @media (min-width: 769px) {
    #features-ingenieurs .feature-box {
      min-height: 440px; /* hauteur fixe de la boîte, à ajuster si nécessaire */
    }
  }
  
  @media (max-width: 768px) {
    #features-ingenieurs .features-grid {
      flex-direction: column;
      align-items: center;
    }
  
    #features-ingenieurs .feature-box {
      max-width: 100%;
      min-height: auto;
    }
  }

/* Section 5: Tarification Propriétaires
   ========================================================================== */
.pricing {
    padding: 49px 0;
    background-color: #f8f8f8;

}

/* Conteneur principal qui force l'affichage en colonne sur mobile */
.pricing-container {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Titre de la section */
.pricing-title {
    text-align: center;
    margin-bottom: 70px;
}

.pricing-title h2 {
    color: var(--primary-color);
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-title p {
    color: var(--light-text-color);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Sur desktop, affichage en ligne */
.pricing-row {
    display: block;
    margin-bottom: 30px;
}

/* Conteneur individuel pour chaque plan */
.pricing-plan {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pricing-plan.highlighted {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pricing-plan.disabled {
    opacity: 0.7;
    filter: grayscale(40%);
}

/* En-tête du plan */
.plan-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.plan-icon {
    height: 48px;
    margin-bottom: 10px;
}

.plan-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.disabled .plan-title {
    color: #6c757d;
}

.plan-price {
    font-size: 24px;
    font-weight: bold;
}

.promo-banner {
    background-color: #158752;
    color: white;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* Promo banner full width for proprietaires page */
#tarification .promo-banner {
    width: 100%;
}

/* Promo banner 50% width for ingenieurs page */
#tarification-ingenieurs .promo-banner {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.promo-banner-title {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.promo-banner strong {
    font-weight: 700;
}

.plan-period {
    font-size: 16px;
}

.plan-limit {
    font-size: 14px;
    color: var(--light-text-color);
    margin-top: 5px;
}

/* Corps du plan avec les fonctionnalités */
.plan-body {
    padding: 20px;
    flex: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.feature-list li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.disabled .feature-list li:before {
    color: #6c757d;
}

.feature-list .includes-all {
    font-weight: 600;
    color: var(--text-color);
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
}

/* Pied du plan avec le CTA */
.plan-footer {
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

/* Boutons */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #0e6e40;
    color: white;
}

.disabled-button {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
    display: inline-block;
    text-decoration: none;
    cursor: not-allowed;
}

/* Bannière en diagonale */
.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    top: -10px;
    right: -10px;
}

.ribbon-content {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 4;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
    top: 30px;
    right: -50px;
}

/* Style des infobulles */
.tooltip {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.tooltip::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyZW0iIGhlaWdodD0iMmVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzE1ODc1MiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNMTIgOGguMDA4TTEyIDE2di01bTEwIDFjMCA1LjUyMy00LjQ3NyAxMC0xMCAxMFMyIDE3LjUyMyAyIDEyUzYuNDc3IDIgMTIgMnMxMCA0LjQ3NyAxMCAxMCIvPjwvc3ZnPg==');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Section 5: Tarification ingénieurs forestiers (nouvelle version unifiée) */

#tarification-ingenieurs {
  padding-top: 80px;
}

#tarification-ingenieurs .pricing-title h2 {
  color: #025648;
}

#tarification-ingenieurs .pricing-title {
  margin-bottom: 60px;
}

#tarification-ingenieurs .pricing-container {
  margin-top: 0;
}

#tarification-ingenieurs .pricing-plan {
  max-width: 595px;
  margin: 0 auto;
  border: 1px solid #025648;
}

#tarification-ingenieurs .plan-title {
  color: var(--secondary-color); /* vert ingénieur */
  font-size: 1.5rem;
}

#tarification-ingenieurs .plan-price {
  font-size: 2rem;
  font-weight: bold;
  color: #000;
  margin-top: 10px;
}

#tarification-ingenieurs .plan-icon {
  display: block;
  margin: 0 auto 10px auto;
}

#tarification-ingenieurs .plan-price.strikethrough {
  position: relative;
  display: inline-block;
}

#tarification-ingenieurs .plan-price.strikethrough::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5%;
  width: 110%;
  height: 3px;
  background-color: #4a9d2e;
  transform: translateY(-50%);
}

#tarification-ingenieurs .pricing-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 30px 0;
}

#tarification-ingenieurs .plan-subsection-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
  margin-top: 10px;
  text-align: left;
}

#tarification-ingenieurs .cta-button {
  background-color: #025648;
}

#tarification-ingenieurs .cta-button:hover {
  background-color: #014537;
}


/* Section 6: Calculateur propriétaires
   ========================================================================== */
.calculator {
    padding: 50px 0;
    background-color: #f8f8f8;
}

.calculator-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
}

.pricing-calculator {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.slider-container {
    margin-bottom: 30px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--light-text-color);
}

.slider {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 5px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.hectares-display {
    text-align: center;
    margin-top: 15px;
}

#hectaresValue {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-weight: bold;
}

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

.monthly-price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 5px;
}

#monthlyPrice {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.per-month {
    font-size: 16px;
    color: var(--lightest-text-color);
    margin-left: 4px;
}

.plan-type {
    font-size: 14px;
    color: var(--light-text-color);
    margin-bottom: 20px;
}

.price-explanation {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin: 0 auto;
    max-width: 400px;
}

/* FAQ Section Styles
   ========================================================================== */

   .faq {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.faq-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 2.8em;
    font-weight: 700;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    width: 100%;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: transparent;
}

.faq-question {
    background-color: #ffffff;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    transition: border-color 0.3s ease;
}

.faq-question:hover {
    border-color: #000000;
}

.faq-item.active .faq-question {
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    border-color: #000000;
}

.faq-question h3 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-icon:before,
.faq-icon:after {
    content: '';
    position: absolute;
    background-color: #333333;
    transition: transform 0.3s ease;
}

.faq-icon:before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.faq-icon:after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.faq-item.active .faq-icon:after {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0 20px;
    margin-top: -2px;
    position: relative;
    z-index: -1;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 20px;
    border-color: #000000;
    z-index: 1;
}

.faq-answer p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 15px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 2.2em;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-question,
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}

/* Section Formulaire
   ========================================================================== */

   .form-section {
    background-color: #025648;
    padding: 60px 20px;
  }
  
  .form-container {
    background-color: #ffffff;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: var(--box-shadow);
  }
  
  .form-title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
  }
  
  .form-subtitle {
    font-size: 1rem;
    color: #5c5c5c;
    margin-bottom: 30px;
    line-height: 1.4;
  }
  
  form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    margin-top: 20px;
  }
  
  form input,
  form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
    font-size: 1rem;
  }
  
  form input::placeholder {
    color: #999999;
  }
  
  .cta-button {
    margin-top: 30px;
  }
  
  .form-note {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 15px;
    line-height: 1.4;
  }
  
  .form-section-ing {
    background-color: #025648;
    padding: 60px 20px;
  }
  
  .form-section-ing .cta-button {
    background-color: #025648;
  }
  
  .form-section-ing .cta-button:hover {
    background-color: #014537;
  }

  /* Message de confirmation */
  .form-confirmation {
    text-align: center;
    font-size: 1rem;
    color: #1d1d1f;
  }
  
  .form-confirmation h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .form-confirmation a {
    color: #025648;
    text-decoration: underline;
  }

/* Modal Calculateur
   ========================================================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #666666;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  z-index: 1;
}

.modal-close:hover {
  color: #333333;
}

.modal-body {
  padding: 35px 40px 25px 40px;
}

.modal-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 20px 0;
  font-family: 'Red Hat Display', sans-serif;
  text-align: center;
}

/* Réutilisation des styles du calculateur */
.modal .slider-container {
  margin-bottom: 15px;
}

.modal .slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--light-text-color);
}

.modal .slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 10px;
}

.modal .slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  transition: transform 0.2s;
}

.modal .slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.modal .slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.modal .slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.modal .hectares-display {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
}

.modal .price-display {
  text-align: center;
  margin-bottom: 10px;
}

.modal .monthly-price-container {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
  font-family: 'Red Hat Display', sans-serif;
  line-height: 1.2;
}

.modal .monthly-price-container.custom-message {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal .per-month {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 400;
}

.modal .plan-type {
  display: none;
}

.modal .price-explanation {
  font-size: 0.85rem;
  color: var(--light-text-color);
  line-height: 1.4;
  font-style: italic;
  margin: 0 auto 10px auto;
  text-align: center;
  display: block;
  width: 100%;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.modal-cta {
  width: 100%;
  text-align: center;
  padding: 16px 32px;
  font-size: 1.1rem;
}

.secondary-button {
  width: 100%;
  padding: 14px 32px;
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Red Hat Display', sans-serif;
}

.secondary-button:hover {
  background-color: var(--light-background);
  border-color: var(--light-text-color);
  color: var(--text-color);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .modal-body {
    padding: 30px 20px 25px 20px;
  }

  .modal-body h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .modal .monthly-price-container {
    font-size: 2rem;
  }

  .modal .per-month {
    font-size: 1rem;
  }

  .modal .hectares-display {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    font-size: 28px;
  }
}

/* Section Footer
   ========================================================================== */

   .site-footer {
    background-color: #1d1d1f;
    color: #e0e0e0;
    font-size: 0.95rem;
    padding: 60px 20px 20px;
  }
  
  .footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .footer-column {
    flex: 1;
    min-width: 220px;
  }
  
  .footer-brand .footer-logo {
    height: 38px; /* Réduction de ~25% */
    margin-bottom: 8px;
  }
  
  .footer-address {
    margin: 0;
    line-height: 1.4;
    color: #cccccc;
  }
  
  .footer-rights {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #aaaaaa;
  }
  
  .footer-links h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Red Hat Display', sans-serif;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li {
    margin-bottom: 6px;
  }
  
  .footer-links a {
    color: #e0e0e0;
    text-decoration: none;
  }
  
  .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
  }
  
  .footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ALIGNE À GAUCHE */
  }

  .footer-social h4 {
    margin-bottom: 0px;
  }
  
  
  .linkedin-logo {
    height: 50px;
    margin-top: 0px;
    display: block;
  }
  
  
  .footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #b0b0b0;
  }
  
  .footer-bottom a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
  }
  
  .footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
  }

  .footer-cookies-note {
    font-size: 0.85rem;
    color: var(--light-text-color);
    max-width: 1000px;
    margin: 20px auto 0 auto;
    padding: 0 20px 40px;
    text-align: center;
    line-height: 1.5;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .footer-grid {
      flex-direction: column;
      gap: 30px;
    }
  
    .footer-column {
      min-width: 100%;
    }
  }

/* Page confidentialté
   ========================================================================== */
.privacy-container {
  background-color: transparent;
  padding: 80px 20px 60px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.privacy-content {
  border: 2px solid #f8f8f8;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 60px 40px;
  border-radius: var(--border-radius);
}

.back-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.privacy-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-color);
}

.privacy-content h2,
.privacy-content h3 {
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
}

.privacy-content p,
.privacy-content ul {
  color: var(--light-text-color);
  margin-bottom: 20px;
  line-height: 1.6;
}

.privacy-content ul {
  padding-left: 20px;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 20px;
  }

  .privacy-content h1 {
    font-size: 2rem;
  }
}


/* Page 404
   ========================================================================== */

   .not-found-section {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url("/assets/images/fyri-hero-background.webp");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
  }
  
  .not-found-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
  }
  
  .not-found-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 40px 20px;
  }
  
  .not-found-icon {
    width: 64px;
    margin-bottom: 20px;
  }
  
  .not-found-text {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.6;
  }
  
  .not-found-text a {
    color: white;
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
    .not-found-text {
      font-size: 1.2rem;
    }
  
    .not-found-icon {
      width: 48px;
      margin-bottom: 16px;
    }
  }


  /* Media Queries
   ========================================================================== */

/* Desktop : >= 769px */
@media (min-width: 769px) {
  
  .feature-box {
    min-height: 520px;
    justify-content: space-between;
  }


  .pricing-row {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .pricing-plan {
    flex: 1;
    max-width: 350px;
    margin-bottom: 0;
    height: auto;
  }

  .tooltip .tooltip-text {
    width: 200px;
    margin-left: -100px;
  }
}

/* Mobile : <= 768px */
@media (max-width: 768px) {
  /* Layout adaptatif */
  .fyri-desktop {
    display: none;
  }

  .fyri-mobile {
    display: block;
  }

  .container {
    padding: 0 15px;
  }

  .header-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-alt-link {
    align-self: flex-end;
    margin-top: 10px;
    margin-right: 0;
  }

  /* Section Hero mobile */
  .fyri-section {
    padding: 50px 20px;
  }

  /* Features grid responsive */
  .features-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .features-grid-title {
    position: static;
  }

  .features-grid-title h2 {
    font-size: 2rem;
  }

  .features-grid-items {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .feature-grid-item {
    flex-direction: column;
    gap: 15px;
  }

  .feature-grid-icon {
    width: 56px;
    height: 56px;
  }

  .feature-grid-title {
    font-size: 1.15rem;
  }

  .feature-grid-description {
    font-size: 0.95rem;
  }
}