/* ===================================================
   TOOLS PAGE — Minimal, professional
=================================================== */
body {
  background: var(--bg-base);
}

.features-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-section);
}

.features-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.features-hero h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.features-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.features-hero .hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 100px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-section);
}

.tool-section:first-of-type {
  border-top: 1px solid var(--border-section);
}

.tool-section .text {
  flex: 1 1 400px;
}

.tool-section .visual {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.tool-section .tool-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.tool-section .tool-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tool-section .tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tool-section ul {
  list-style: none;
  margin-bottom: 16px;
}

.tool-section ul li {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-section ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 600;
}

.tool-section .technical {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 16px;
}

.tool-section .technical a {
  color: var(--accent-gold);
  transition: color var(--transition);
}

.tool-section .technical a:hover {
  color: var(--accent-gold-light);
}

.tool-section .visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.tool-section .visual img:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.tool-section.alt {
  flex-direction: row-reverse;
}

/* ----- Variantes de style pour les tool-sections ----- */

/* Variant: card — fond type carte, coins arrondis */
.tool-section.variant-card {
  margin: 0 16px 24px;
  padding: 56px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-bottom: none;
}

.tool-section.variant-card .visual img {
  box-shadow: var(--shadow-soft);
}

/* Variant: accent — bordure gauche colorée (accent gold) */
.tool-section.variant-accent {
  padding-left: 32px;
  border-left: 4px solid var(--accent-gold);
  background: linear-gradient(90deg, var(--accent-subtle) 0%, transparent 30%);
}

.tool-section.variant-accent.alt {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
  padding-left: 0;
  padding-right: 32px;
  background: linear-gradient(270deg, var(--accent-subtle) 0%, transparent 30%);
}

/* Variant: compact — moins d’espace vertical */
.tool-section.variant-compact {
  padding: 56px 0;
}

.tool-section.variant-compact .tool-name {
  font-size: clamp(28px, 3.5vw, 40px);
}

.tool-section.variant-compact .tagline {
  margin-bottom: 14px;
}

.tool-section.variant-compact ul li {
  margin-bottom: 6px;
}

/* Variant: frame — image dans un cadre marqué */
.tool-section.variant-frame .visual {
  padding: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tool-section.variant-frame .visual img {
  border: none;
  box-shadow: none;
}

/* Variant: highlight — fond légèrement mis en avant */
.tool-section.variant-highlight {
  background: rgba(255, 255, 255, 0.02);
}

.tool-section.variant-highlight .tool-name {
  color: var(--text-primary);
}

.tool-section.variant-highlight .tool-icon {
  opacity: 1;
}

/* Variant: minimal — pas de bordure de section, séparation visuelle légère */
.tool-section.variant-minimal {
  border-bottom: none;
}

.tool-section.variant-minimal + .tool-section {
  border-top: 1px dashed var(--border);
}

.comparison {
  padding: 80px 0;
}

.comparison h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.comparison table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 16px;
  text-align: center;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

.comparison th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.comparison .check {
  color: var(--green);
}

.comparison .cross {
  color: var(--text-muted);
}

.final-cta {
  padding: 120px 0 80px;
  text-align: center;
  background: var(--bg-base);
  border-top: 1px solid var(--border-section);
}

.final-cta h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.final-cta .hero-cta {
  justify-content: center;
  gap: 16px;
  display: flex;
  flex-wrap: wrap;
}

.final-cta p {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

@media (max-width: 900px) {
  .tool-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 0;
  }

  .tool-section.alt {
    flex-direction: column;
  }

  .tool-section.variant-card {
    margin: 0 12px 20px;
    padding: 40px 24px;
  }

  .tool-section.variant-accent {
    padding-left: 20px;
    padding-right: 20px;
    border-left: 4px solid var(--accent-gold);
    border-right: none;
    background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 40%);
  }

  .tool-section.variant-accent.alt {
    border-right: none;
    border-left: 4px solid var(--accent-gold);
    padding-right: 20px;
    background: linear-gradient(180deg, var(--accent-subtle) 0%, transparent 40%);
  }

  .tool-section .visual {
    width: 100%;
    max-width: 100%;
  }

  .tool-section .visual img {
    max-width: 100%;
    width: 100%;
  }

  .tool-section .tool-name {
    font-size: 36px;
  }

  .tool-section .tagline {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .comparison-table-wrap {
    overflow-x: visible;
    min-width: 0;
  }

  .comparison table {
    min-width: 0;
    display: block;
  }

  .comparison thead {
    display: none;
  }

  .comparison tbody {
    display: block;
  }

  .comparison tr {
    display: block;
    margin-bottom: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .comparison tr:last-child {
    margin-bottom: 0;
  }

  .comparison td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  .comparison td:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .comparison td:first-child {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    padding-top: 0;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .comparison td::before {
    content: attr(data-label);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 12px;
    flex-shrink: 0;
  }

  .comparison td:first-child::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .features-hero {
    min-height: auto;
    padding: 100px 16px 60px;
  }

  .features-hero h1 {
    font-size: 36px;
  }

  .features-hero h2 {
    font-size: 14px;
  }

  .features-hero p {
    font-size: 16px;
  }

  .tool-section {
    padding: 60px 16px;
  }

  .tool-section.variant-card {
    margin: 0 8px 16px;
    padding: 32px 16px;
  }

  .tool-section.variant-accent,
  .tool-section.variant-accent.alt {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tool-section .visual {
    padding: 0 4px;
  }

  .tool-section .visual img {
    width: 100%;
    max-width: 100%;
  }

  .tool-section .tool-icon {
    font-size: 40px;
  }

  .tool-section .tool-name {
    font-size: 28px;
  }

  .tool-section ul li {
    font-size: 15px;
  }

  .comparison {
    padding: 60px 0;
  }

  .comparison h2 {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .final-cta {
    padding: 80px 0 60px;
  }

  .final-cta h2 {
    font-size: 28px;
  }

  .final-cta .hero-cta {
    flex-direction: column;
  }
}
