/* ========================================
   GENEAPORTAIL - STYLES PRINCIPAUX
======================================== */

/* Container global */
.geneaportail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   SECTION INTRODUCTION
======================================== */

.geneaportail-intro {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  padding: 4rem 0 3rem 0;
}

.intro-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.25rem;
  text-align: left;
}

.intro-text strong {
  color: #a76107;
  font-weight: 600;
}

/* ========================================
   SECTION TUTORIELS
======================================== */

.geneaportail-tutorials {
  background: #ffffff;
  padding: 4rem 0;
}

.geneaportail-tutorials h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tutorial-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tutorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #d4822a;
  text-decoration: none;
}

.tutorial-card.coming-soon {
  opacity: 0.85;
  cursor: default;
}

.tutorial-card.tutorial-available {
  cursor: pointer;
  border-color: #10b981;
}

.tutorial-card.tutorial-available:hover {
  border-color: #059669;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.tutorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.tutorial-icon {
  font-size: 3rem;
  line-height: 1;
}

.tutorial-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coming-soon-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.available-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.tutorial-card h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tutorial-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

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

.tutorial-topics li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: #6b7280;
  position: relative;
}

.tutorial-topics li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* ========================================
   SECTION AVANTAGES
======================================== */

.geneaportail-benefits {
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  padding: 4rem 0;
}

.geneaportail-benefits h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 3rem;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #a76107;
}

.benefit-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.benefit-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
}

/* ========================================
   SECTION OUTILS
======================================== */

.geneaportail-tools {
  background: #ffffff;
  padding: 4rem 0;
}

.geneaportail-tools h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem 0;
}

.tool-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(167, 97, 7, 0.15);
  border-color: #d4822a;
  text-decoration: none;
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.tool-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
}

.tools-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary-large {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #a76107, #d4822a);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(167, 97, 7, 0.3);
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 97, 7, 0.4);
  text-decoration: none;
  color: white;
}

/* ========================================
   SECTION CTA FINAL
======================================== */

.geneaportail-cta {
  background: linear-gradient(135deg, #fef5e7, #fff8f0);
  padding: 4rem 0;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-style: italic;
  color: #92400e;
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.cta-note strong {
  font-weight: 700;
  color: #78350f;
}

.cta-buttons {
  margin-top: 2rem;
}

.btn-secondary-large {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: #a76107;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid #a76107;
  transition: all 0.3s ease;
}

.btn-secondary-large:hover {
  background: #a76107;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 97, 7, 0.3);
  text-decoration: none;
}

/* ========================================
   RESPONSIVE - TABLETTES
======================================== */

@media (max-width: 768px) {
  .geneaportail-container {
    padding: 0 1.5rem;
  }

  .intro-content h2,
  .geneaportail-tutorials h2,
  .geneaportail-benefits h2,
  .geneaportail-tools h2,
  .cta-content h2 {
    font-size: 1.8rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .tutorials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tutorial-card {
    padding: 1.5rem;
  }

  .tutorial-card h3 {
    font-size: 1.3rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .btn-primary-large,
  .btn-secondary-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* ========================================
   RESPONSIVE - MOBILES
======================================== */

@media (max-width: 480px) {
  .geneaportail-container {
    padding: 0 1rem;
  }

  .geneaportail-intro,
  .geneaportail-tutorials,
  .geneaportail-benefits,
  .geneaportail-tools,
  .geneaportail-cta {
    padding: 2.5rem 0;
  }

  .intro-content h2,
  .geneaportail-tutorials h2,
  .geneaportail-benefits h2,
  .geneaportail-tools h2,
  .cta-content h2 {
    font-size: 1.5rem;
  }

  .intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .tutorial-card {
    padding: 1.25rem;
  }

  .tutorial-icon {
    font-size: 2.5rem;
  }

  .tutorial-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .tutorial-card h3 {
    font-size: 1.2rem;
  }

  .tutorial-description {
    font-size: 0.95rem;
  }

  .tutorial-topics li {
    font-size: 0.9rem;
  }

  .benefit-icon {
    font-size: 2.5rem;
  }

  .benefit-item h3 {
    font-size: 1.1rem;
  }

  .benefit-item p {
    font-size: 0.95rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-icon {
    font-size: 2.5rem;
  }

  .tool-card h3 {
    font-size: 1.1rem;
  }

  .tool-card p {
    font-size: 0.9rem;
  }

  .btn-primary-large,
  .btn-secondary-large {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-note {
    font-size: 0.9rem;
  }
}

/* ========================================
   THÈME SOMBRE
======================================== */

:root.theme-dark .geneaportail-intro {
  background: linear-gradient(180deg, var(--bg-color) 0%, #1a1a1a 100%);
}

:root.theme-dark .intro-content h2 {
  color: var(--text-color);
}

:root.theme-dark .intro-text {
  color: var(--text-secondary);
}

:root.theme-dark .intro-text strong {
  color: #d4822a;
}

:root.theme-dark .geneaportail-tutorials {
  background: #121212;
}

:root.theme-dark .geneaportail-tutorials h2 {
  color: var(--text-color);
}

:root.theme-dark .section-subtitle {
  color: var(--text-secondary);
}

:root.theme-dark .tutorial-card {
  background: #2a2a2a;
  border-color: var(--border-color);
}

:root.theme-dark .tutorial-card:hover {
  border-color: #d4822a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

:root.theme-dark .tutorial-card.tutorial-available {
  border-color: #10b981;
}

:root.theme-dark .tutorial-card.tutorial-available:hover {
  border-color: #34d399;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

:root.theme-dark .tutorial-card h3 {
  color: var(--text-color);
}

:root.theme-dark .tutorial-description {
  color: var(--text-secondary);
}

:root.theme-dark .tutorial-topics li {
  color: var(--text-secondary);
}

:root.theme-dark .geneaportail-benefits {
  background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

:root.theme-dark .geneaportail-benefits h2 {
  color: var(--text-color);
}

:root.theme-dark .benefit-item {
  background: #2a2a2a;
  border-color: var(--border-color);
}

:root.theme-dark .benefit-item:hover {
  border-color: #a76107;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

:root.theme-dark .benefit-item h3 {
  color: var(--text-color);
}

:root.theme-dark .benefit-item p {
  color: var(--text-secondary);
}

:root.theme-dark .geneaportail-tools {
  background: #121212;
}

:root.theme-dark .geneaportail-tools h2 {
  color: var(--text-color);
}

:root.theme-dark .tool-card {
  background: #2a2a2a;
  border-color: var(--border-color);
}

:root.theme-dark .tool-card:hover {
  border-color: #d4822a;
  box-shadow: 0 8px 20px rgba(167, 97, 7, 0.3);
}

:root.theme-dark .tool-card h3 {
  color: var(--text-color);
}

:root.theme-dark .tool-card p {
  color: var(--text-secondary);
}

:root.theme-dark .geneaportail-cta {
  background: linear-gradient(135deg, #2a2015, #1f1a15);
}

:root.theme-dark .cta-content h2 {
  color: var(--text-color);
}

:root.theme-dark .cta-content p {
  color: var(--text-secondary);
}

:root.theme-dark .cta-note {
  background: rgba(42, 32, 21, 0.7);
  color: #d4822a;
  border: 1px solid rgba(212, 130, 42, 0.3);
}

:root.theme-dark .cta-note strong {
  color: #f59e0b;
}

:root.theme-dark .btn-secondary-large {
  background: #2a2a2a;
  color: #d4822a;
  border-color: #a76107;
}

:root.theme-dark .btn-secondary-large:hover {
  background: #a76107;
  color: white;
}

/* ========================================
   ANIMATIONS ET TRANSITIONS
======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-card,
.benefit-item,
.tool-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Animation échelonnée pour les cartes */
.tutorial-card:nth-child(1) { animation-delay: 0.1s; }
.tutorial-card:nth-child(2) { animation-delay: 0.2s; }
.tutorial-card:nth-child(3) { animation-delay: 0.3s; }
.tutorial-card:nth-child(4) { animation-delay: 0.4s; }
.tutorial-card:nth-child(5) { animation-delay: 0.5s; }
.tutorial-card:nth-child(6) { animation-delay: 0.6s; }

/* Focus pour l'accessibilité */
.tool-card:focus,
.btn-primary-large:focus,
.btn-secondary-large:focus {
  outline: 2px solid #d4822a;
  outline-offset: 2px;
}

:root.theme-dark .tool-card:focus,
:root.theme-dark .btn-primary-large:focus,
:root.theme-dark .btn-secondary-large:focus {
  outline-color: #f59e0b;
}
