/* === Variables globales === */
:root {
  /* Palette de couleurs principale */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --eco-color: #27ae60;
  
  /* Nuances de gris */
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  
  /* Couleurs fonctionnelles */
  --text-color: #2d3436;
  --text-light: #636e72;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --danger-color: #e74c3c;
  
  /* Typographie */
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  
  /* Éléments d'interface */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  
  /* Espacement */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  
  /* Animations */
  --transition-fast: all 0.2s ease;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* === Base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Pour les ancres, compense la hauteur du header fixe */
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--light-gray);
  overflow-x: hidden;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

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

ul, ol {
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* === Conteneur général === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* === Header === */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 1.8rem;
  color: var(--secondary-color);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

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

/* === Navigation === */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.nav-link {
  color: white;
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
  opacity: 0.85;
}

.nav-link:hover {
  color: white;
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Menu mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 3px;
  transition: var(--transition);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Vagues d'animation pour le hero */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23f8f9fa" fill-opacity="1" d="M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,90.7C672,85,768,107,864,112C960,117,1056,107,1152,101.3C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-repeat: no-repeat;
}

/* === Boutons === */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-eco {
  background-color: var(--eco-color);
}

.btn-eco:hover {
  background-color: #219653;
  color: white;
}

.btn-calculate {
  background-color: var(--secondary-color);
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.btn-calculate:hover {
  background-color: #2980b9;
}

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* === Sections === */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* === Grilles === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

/* === Cards === */
.feature-card, .material-card, .info-card, .values-card {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover, .material-card:hover, .info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon, .material-icon, .info-card-icon, .values-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
}

.info-card-icon {
  color: var(--info-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.values-icon {
  color: var(--eco-color);
  background-color: rgba(39, 174, 96, 0.1);
}

.demo-card {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-lg);
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.step {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border-top: 4px solid var(--secondary-color);
}

.step:nth-child(2) {
  border-top-color: var(--accent-color);
}

.step:nth-child(3) {
  border-top-color: var(--eco-color);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.35rem;
}

/* === Alertes === */
.alert {
  padding: var(--spacing-md);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid transparent;
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  border-left-color: var(--info-color);
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  border-left-color: var(--success-color);
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-left-color: var(--warning-color);
}

/* === Tableaux === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--spacing-md);
  overflow-x: auto;
  display: block;
}

.comparison-table thead {
  background-color: var(--primary-color);
  color: white;
}

.comparison-table th {
  padding: var(--spacing-sm);
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--medium-gray);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

.comparison-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.comparison-highlight td {
  background-color: rgba(231, 76, 60, 0.1);
  font-weight: 500;
}

/* Style spécifique pour la section "Signaux d'alerte courants" */
.signals-section {
  max-width: 900px;
  margin: var(--spacing-md) auto;
  background-color: white;
  border-radius: var(--radius);
  padding: var(--spacing-md);
  box-shadow: var(--shadow);
}

.signals-section h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 1.4rem;
}

.signals-section .comparison-table {
  width: 100%;
}

.approach-notice {
  background-color: rgba(52, 152, 219, 0.08);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.approach-notice strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* === Badges et indicateurs === */
.trust-indicator {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-low {
  background-color: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.trust-medium {
  background-color: rgba(243, 156, 18, 0.15);
  color: #d35400;
}

.trust-high {
  background-color: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: rgba(39, 174, 96, 0.1);
  border-radius: 20px;
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  gap: 0.5rem;
}

.eco-badge-icon {
  font-size: 1rem;
}

.impact-meter {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.impact-level {
  height: 100%;
  border-radius: 4px;
}

.impact-low {
  width: 30%;
  background-color: var(--success-color);
}

.impact-medium {
  width: 60%;
  background-color: var(--warning-color);
}

.impact-high {
  width: 90%;
  background-color: var(--danger-color);
}

/* === Tabs === */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--medium-gray);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.tab {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: var(--text-light);
}

.tab.active {
  border-bottom-color: var(--secondary-color);
  color: var(--secondary-color);
}

.tab:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.02);
  color: var(--text-color);
}

.tab-content {
  display: none;
  padding: var(--spacing-sm) 0;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Section de vérification === */
#verification {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

#verification .section-title {
  text-align: center;
  margin-bottom: 2rem;
}

#verification .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

#verification .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
}

/* Grille de cartes d'information */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Carte d'information */
.info-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.info-card p {
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Carte de démonstration */
.demo-card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  overflow: hidden;
}

/* Section des signaux */
.signals-section {
  width: 100%;
}

.signals-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid var(--secondary-color);
}

/* Tableau de comparaison */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.4;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

.comparison-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.comparison-table tr:hover {
  background-color: #edf2f7;
}

.comparison-table tr.comparison-highlight {
  background-color: rgba(231, 76, 60, 0.1);
}

/* Responsivité du tableau */
@media (max-width: 768px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.8rem;
  }
}

/* Indicateurs de confiance */
.trust-indicator {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.trust-low {
  background-color: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.trust-medium {
  background-color: rgba(243, 156, 18, 0.15);
  color: #d35400;
}

.trust-high {
  background-color: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

/* Notice d'approche */
.approach-notice {
  background-color: #edf2f7;
  border-left: 4px solid var(--secondary-color);
  padding: 1.2rem;
  margin-top: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.approach-notice strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

/* Carte d'étude de cas */
.analysis-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--light-color);
  border-bottom: 1px solid #e0e0e0;
}

.card-icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--primary-color);
}

.card-title h3 {
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.card-title p {
  margin: 0;
  color: #666;
}

/* Système d'onglets */
.tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tab {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  background-color: #f8f9fa;
}

.tab.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.tab-content {
  display: none;
  padding: 1.5rem;
}

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

/* Alertes */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid;
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-left-color: var(--warning-color);
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  border-left-color: var(--success-color);
}

/* Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.step {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.step h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.step h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary-color);
}

/* Conversation */
.conversation-container {
  margin-bottom: 1rem;
}

.message {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
}

.message-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.client-message {
  background-color: #f0f7ff;
  border-left: 3px solid var(--secondary-color);
}

.entreprise-message {
  background-color: #f5f5f5;
  border-left: 3px solid var(--primary-color);
}

.annotation {
  margin-top: 0.8rem;
  padding: 0.8rem;
  background-color: rgba(231, 76, 60, 0.05);
  border-radius: 4px;
  border-left: 3px solid var(--accent-color);
  font-size: 0.9rem;
}

.annotation strong {
  color: var(--accent-color);
}

/* Pros et Cons */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros, .cons {
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: #f8f9fa;
}

.pros {
  border-left: 4px solid var(--success-color);
}

.cons {
  border-left: 4px solid var(--accent-color);
}

.pros h4, .cons h4 {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.pros h4 span, .cons h4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 0.8rem;
  font-size: 0.9rem;
}

.pros h4 span {
  background-color: var(--success-color);
  color: white;
}

.cons h4 span {
  background-color: var(--accent-color);
  color: white;
}

.pros-cons-list {
  list-style: none;
  padding-left: 2rem;
}

.pros-cons-list li {
  position: relative;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.pros-cons-list li::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pros .pros-cons-list li::before {
  background-color: var(--success-color);
}

.cons .pros-cons-list li::before {
  background-color: var(--accent-color);
}

/* Responsivité */
@media (max-width: 992px) {
  #verification .section-title h2 {
    font-size: 2rem;
  }
  
  .analysis-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab {
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  
  .tab.active {
    border-bottom: none;
    border-left-color: var(--secondary-color);
  }
  
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  #verification {
    padding: 3rem 0;
  }
  
  .card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .card-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .step h3 {
    text-align: center;
  }
  
  .step h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.info-card, .demo-card, .step {
  animation: fadeIn 0.5s ease-out forwards;
}

.info-card:nth-child(2) {
  animation-delay: 0.1s;
}

.info-card:nth-child(3) {
  animation-delay: 0.2s;
}

/* === Formulaires === */
.input-group {
  margin-bottom: var(--spacing-sm);
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.input-group input:focus, .input-group select:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* === Résultats === */
.result {
  background-color: rgba(52, 152, 219, 0.05);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.result-title {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-item:last-child {
  border-bottom: none;
}

/* === Avantages/Inconvénients === */
.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.pros, .cons {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pros h4, .cons h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.pros h4 span {
  color: var(--success-color);
}

.cons h4 span {
  color: var(--danger-color);
}

.pros-cons-list {
  list-style: none;
  margin-left: 0;
}

.pros-cons-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.pros-cons-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* === Section À propos === */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === CTA section === */
.cta {
  background: linear-gradient(135deg, #2c3e50, #2980b9);
  color: white;
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-lg);
}

.cta h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

/* === Footer === */
.footer {
  background-color: var(--dark-gray);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-column h3 {
  color: white;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  margin-left: 0;
}

.footer-link {
  margin-bottom: 0.5rem;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-link a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* === Media Queries === */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    justify-content: space-between;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav {
    position: absolute;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    left: 0;
    top: 100%;
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-link {
    width: 100%;
    padding: var(--spacing-xs) 0;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .btn-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .features-grid, .card-grid, .materials-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    font-size: 0.9rem;
  }
  
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .feature-card, .material-card, .info-card, .values-card, .step {
    padding: var(--spacing-md);
  }
  
  .feature-icon, .material-icon, .info-card-icon, .values-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
}

/* === Ajout du JavaScript pour le menu mobile === */
/* 
  Ajouter ce JavaScript dans le fichier principal ou dans une balise script :

  document.addEventListener('DOMContentLoaded', function() {
    const menuToggle = document.querySelector('.menu-toggle');
    const nav = document.querySelector('.nav');
    
    if (menuToggle && nav) {
      menuToggle.addEventListener('click', function() {
        nav.classList.toggle('active');
        // Animer les barres du hamburger
        const spans = menuToggle.querySelectorAll('span');
        spans[0].classList.toggle('rotate-down');
        spans[1].classList.toggle('fade-out');
        spans[2].classList.toggle('rotate-up');
      });
    }
    
    // Fermer le menu au clic en dehors
    document.addEventListener('click', function(event) {
      if (!nav.contains(event.target) && !menuToggle.contains(event.target) && nav.classList.contains('active')) {
        nav.classList.remove('active');
        const spans = menuToggle.querySelectorAll('span');
        spans[0].classList.remove('rotate-down');
        spans[1].classList.remove('fade-out');
        spans[2].classList.remove('rotate-up');
      }
    });
  });
*/

/* Styles pour l'animation du menu hamburger */
.rotate-down {
  transform: translateY(9px) rotate(45deg);
}

.fade-out {
  opacity: 0;
}


/* Layout à deux colonnes pour la calculatrice */
.calculator-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.calculator-column {
  flex: 1;
  min-width: 300px;
}

.calculator-inputs {
  padding: 0;
  border-right: 1px solid var(--medium-gray);
}

.calculator-results {
  padding: 0;
  background-color: rgba(52, 152, 219, 0.05);
}

/* Styles des onglets verticaux */
.calculator-tabs {
  display: flex;
  flex-direction: column;
  border-bottom: none;
  border-right: 1px solid var(--medium-gray);
  width: 100%;
  overflow-x: visible;
}

.calculator-tabs .tab {
  text-align: left;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--medium-gray);
  border-left: 3px solid transparent;
  border-radius: 0;
}

.calculator-tabs .tab.active {
  border-bottom: 1px solid var(--medium-gray);
  border-left: 3px solid var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

.calculator-tabs .tab:hover:not(.active) {
  border-left: 3px solid rgba(52, 152, 219, 0.3);
}

/* Contenus des onglets */
.calculator-inputs .tab-content {
  padding: 1.5rem;
}

.calculator-inputs .tab-content h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

/* Résultats */
.results-container {
  padding: 1.5rem;
}

.results-container h3 {
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  font-size: 1.3rem;
}

.result-panel {
  display: none;
}

.result-panel.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.result {
  border-radius: var(--radius);
  background-color: white;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.impact-container {
  width: 30%;
  margin-top: 0.5rem;
}

.calculator-info {
  background-color: rgba(52, 152, 219, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}

.calculator-info p {
  margin-bottom: 0.5rem;
}

.calculator-info p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .calculator-layout {
    flex-direction: column;
  }
  
  .calculator-inputs {
    border-right: none;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .calculator-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .calculator-tabs .tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }
  
  .calculator-tabs .tab.active {
    border-left: none;
    border-bottom: 3px solid var(--secondary-color);
  }
  
  .calculator-tabs .tab:hover:not(.active) {
    border-left: none;
    border-bottom: 3px solid rgba(52, 152, 219, 0.3);
  }
  /* Styles pour les onglets horizontaux de la calculatrice */
.horizontal-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 2rem;
    background-color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
    overflow-x: auto;
}

.horizontal-tabs .tab {
    padding: 0.9rem 1.5rem;
    text-align: center;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: -1px;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 200px;
    background-color: rgba(0, 0, 0, 0.02);
    transition: var(--transition-fast);
}

.horizontal-tabs .tab.active {
    color: var(--secondary-color);
    background-color: white;
    border-bottom: 2px solid var(--secondary-color);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.horizontal-tabs .tab:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.04);
    color: var(--text-color);
}

.calculator-content {
    background-color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0 1rem 1rem 1rem;
}

.calculator-info {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 2rem;
}

/* Responsive pour les onglets horizontaux */
@media (max-width: 768px) {
    .horizontal-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .horizontal-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }
    
    .horizontal-tabs .tab {
        flex: 0 0 auto;
        min-width: 80px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}
.secret-link {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.9rem;
  z-index: 9999;
}

.secret-link a {
  color: var(--text-light);
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: var(--transition-fast);
}

.secret-link a:hover {
  background-color: var(--secondary-color);
  color: white;
}

}
