﻿/* ========== PAGE GUIDE ========== */
.guide-intro {
  margin-bottom: 3rem;
}

.guide-intro h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.parcours-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid transparent;
}

.parcours-card:hover,
.parcours-card.active {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.parcours-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #2c5282);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.parcours-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.timeline-professional {
  position: relative;
  padding: 2rem 0;
}

.timeline-professional::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--success), var(--accent), var(--danger));
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-year {
  width: 100px;
  height: 100px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  z-index: 1;
}

.timeline-item.positive .timeline-year {
  background: var(--primary);
}

.timeline-item.negative .timeline-year {
  background: var(--primary);
}

.timeline-item.critical .timeline-year {
  background: var(--primary);
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex: 1;
}

.timeline-content h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-content p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

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

.pack-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pack-card.featured {
  border: 3px solid var(--accent);
  transform: scale(1.05);
}

.pack-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  padding: 0.4rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
}

.pack-header h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.pack-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
}

.pack-price span {
  font-size: 1rem;
  color: var(--text-light);
}

.pack-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.pack-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pack-features li i {
  color: var(--success);
}

.btn-pack {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-pack:hover,
.btn-pack.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.pack-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========== GUIDE MOI - PARCOURS ========== */
.guide-intro {
  margin-bottom: 3rem;
}

.guide-intro h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.parcours-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid transparent;
  text-align: center;
}

.parcours-card:hover,
.parcours-card.active {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.parcours-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #2c5282);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

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

.parcours-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Sections de parcours */
.guide-parcours {
  display: none;
  animation: fadeIn 0.5s ease;
}

.guide-parcours.active {
  display: block;
}

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

.parcours-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary), #2c5282);
  border-radius: 16px;
  color: var(--white);
}

.parcours-icon-large {
  width: 100px;
  height: 100px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  color: var(--primary);
}

.parcours-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.parcours-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

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

.doc-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
  position: relative;
}

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

.doc-card.featured-doc {
  border-top-color: var(--danger);
  border: 2px solid var(--danger);
}

.doc-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--danger);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.doc-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #2c5282);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

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

.doc-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.doc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-doc {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-doc:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-doc-ar {
  background: var(--accent);
  color: var(--primary);
}

.btn-doc-ar:hover {
  background: var(--accent-dark);
}

.parcours-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }
  .doc-actions {
    flex-direction: column;
  }
  .btn-doc {
    width: 100%;
  }
}
/* PACKS PROFESSIONNELS */
.pack-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.pack-category {
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.pack-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  font-weight: 500;
}

.pack-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray);
}

.pack-card h4 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pack-features li {
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.badge-exclusif,
.badge-nouveau {
  background: var(--accent);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.badge-nouveau {
  background: var(--danger);
  color: var(--white);
}

.pack-card.featured .pack-category {
  background: var(--accent);
  color: var(--primary);
}

/* Responsive pour les packs */
@media (max-width: 968px) {
  .packs-grid-professional {
    grid-template-columns: 1fr;
  }
  
  .pack-card.featured {
    transform: none;
    order: -1;
  }
}

/* ===== MOBILE RESPONSIVE IMPROVEMENTS ===== */

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

html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .nav-menu,
html[dir="rtl"] .hero-content,
html[dir="rtl"] .container {
  text-align: right;
}

/* ===== ADS PANEL ===== */

.ads-panel {
  padding: 40px 20px;
  background: #f4f6f9;
}

.ad-box {
  background: linear-gradient(135deg, #1B3A6B, #0f2442);
  color: white;
  border-radius: 18px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.ad-label {
  display: inline-block;
  background: #f9c421;
  color: #000;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
}

.ad-btn {
  margin-top: 15px;
  background: #f9c421;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

  .nav-container {
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-content,
  .hero-text,
  .hero-image,
  .grid,
  .cards {
    width: 100%;
    flex-direction: column;
  }

  h1 {
    font-size: 2rem !important;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.6rem !important;
  }

  .container {
    padding: 0 15px;
  }

  .ad-box {
    padding: 25px 20px;
  }

  body {
    overflow-x: hidden;
  }
}
