/* 
 * STYLES POUR LES SECTIONS PERSONNALISÉES
 * Organisation par sections:
 * 1. Styles généraux
 * 2. Section en-tête de page
 * 3. Section Hero
 * 4. Section Étapes
 * 5. Section Évaluation
 * 6. Section Chiffres clés
 * 7. Section Ressources
 * 8. Section Contenu libre
 * 9. Section Grille de cartes
 * 10. Styles des boutons
 * 11. Media queries pour responsive
 */

/* -----------------------------------------------------
    1. Styles généraux
    ----------------------------------------------------- */
.custom-sections-page {
  background-color: var(--white);
}

.custom-sections-page section {
  margin-bottom: 0;
}

.custom-sections-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -----------------------------------------------------
    2. Section en-tête de page
    ----------------------------------------------------- */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header .page-title {
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
}

.page-header .page-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* -----------------------------------------------------
    3. Section Hero
    ----------------------------------------------------- */
.custom-hero-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.custom-hero-section .hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  min-height: 400px;
}

.custom-hero-section .hero-text {
  flex: 0 0 60%;
}

.custom-hero-section .hero-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.custom-hero-section .hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.custom-hero-section .hero-image {
  flex: 0 0 40%;
  text-align: center;
}

.custom-hero-section .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------------------
    4. Section Étapes
    ----------------------------------------------------- */
.custom-steps-section {
  padding: 80px 0;
  background-color: var(--white);
}

.custom-steps-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.custom-steps-section .steps-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-steps-section .steps-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.custom-steps-section .step-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
}

.custom-steps-section .step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.custom-steps-section .step-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.custom-steps-section .step-content p {
  margin: 0;
  line-height: 1.6;
}

/* -----------------------------------------------------
    5. Section Évaluation
    ----------------------------------------------------- */
.custom-evaluation-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.custom-evaluation-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.custom-evaluation-section .evaluation-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-evaluation-section .evaluation-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.custom-evaluation-section .evaluation-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--accent-color);
}

.custom-evaluation-section .evaluation-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.custom-evaluation-section .evaluation-item p {
  margin: 0;
  line-height: 1.6;
}

/* -----------------------------------------------------
    6. Section Chiffres clés
    ----------------------------------------------------- */
.custom-key-figures-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.custom-key-figures-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--white);
}

.custom-key-figures-section .key-figures-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-key-figures-section .key-figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.custom-key-figures-section .figure-item {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.custom-key-figures-section .figure-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

.custom-key-figures-section .figure-label {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

/* -----------------------------------------------------
    7. Section Ressources
    ----------------------------------------------------- */
.custom-resources-section {
  padding: 80px 0;
  background-color: var(--white);
}

.custom-resources-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.custom-resources-section .resources-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-resources-section .resources-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.custom-resources-section .resource-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
}

.custom-resources-section .resource-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.custom-resources-section .resource-item p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.custom-resources-section .resource-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* -----------------------------------------------------
    8. Section Contenu libre
    ----------------------------------------------------- */
.custom-content-section {
  padding: 80px 0;
}

.custom-content-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.custom-content-section .content-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.custom-content-section .content-text h3,
.custom-content-section .content-text h4 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.custom-content-section .content-text ul,
.custom-content-section .content-text ol {
  margin: 20px 0;
  padding-left: 30px;
}

.custom-content-section .content-text li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* -----------------------------------------------------
    9. Section Grille de cartes
    ----------------------------------------------------- */
.custom-cards-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.custom-cards-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.custom-cards-section .cards-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-cards-section .cards-grid {
  display: grid;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-cards-section .cards-grid[data-columns="2"] {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.custom-cards-section .cards-grid[data-columns="3"] {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.custom-cards-section .cards-grid[data-columns="4"] {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.custom-cards-section .card-item {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-cards-section .card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.custom-cards-section .card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.custom-cards-section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-cards-section .card-content {
  padding: 25px;
}

.custom-cards-section .card-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.custom-cards-section .card-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-color);
}

/* -----------------------------------------------------
    10. Styles des boutons
    ----------------------------------------------------- */
.btn-resource,
.btn-card {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-resource:hover,
.btn-card:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-resource:nth-child(even) {
  background-color: var(--accent-color);
}

.btn-resource:nth-child(even):hover {
  background-color: var(--primary-color);
}

/* -----------------------------------------------------
    11. Section Cartes de risques
    ----------------------------------------------------- */
.custom-risk-cards-section {
  padding: 80px 0;
  background-color: var(--white);
}

.custom-risk-cards-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.custom-risk-cards-section .risk-cards-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-risk-cards-section .risk-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.custom-risk-cards-section .risk-card-item {
  background-color: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-risk-cards-section .risk-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.custom-risk-cards-section .risk-card-item h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
}

.custom-risk-cards-section .card-description {
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-color);
}

.custom-risk-cards-section .card-example {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  font-style: italic;
  color: #666;
  border-left: 4px solid var(--accent-color);
}

/* -----------------------------------------------------
    12. Section Titre et texte simple
    ----------------------------------------------------- */
.custom-simple-text-section {
  padding: 80px 0;
  background-color: var(--white);
}

.custom-simple-text-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.custom-simple-text-section .simple-text-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
}

.custom-simple-text-section .simple-text-content h3,
.custom-simple-text-section .simple-text-content h4 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.custom-simple-text-section .simple-text-content ul,
.custom-simple-text-section .simple-text-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.custom-simple-text-section .simple-text-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* -----------------------------------------------------
    13. Media queries pour responsive
    ----------------------------------------------------- */
@media (max-width: 1024px) {
  .custom-hero-section .hero-content {
    gap: 40px;
  }

  .custom-hero-section .hero-text {
    flex: 0 0 55%;
  }

  .custom-hero-section .hero-image {
    flex: 0 0 45%;
  }
}

@media (max-width: 768px) {
  /* En-tête de page */
  .page-header {
    padding: 40px 0;
  }

  .page-header .page-title {
    font-size: 2rem;
  }

  /* Section Hero responsive */
  .custom-hero-section {
    padding: 60px 0;
  }

  .custom-hero-section .hero-content {
    flex-direction: column !important;
    gap: 30px;
    min-height: auto;
  }

  .custom-hero-section .hero-text,
  .custom-hero-section .hero-image {
    flex: 1 1 100%;
  }

  .custom-hero-section .hero-text h2 {
    font-size: 1.8rem;
    text-align: center;
  }


  /* Sections générales */
  .custom-steps-section,
  .custom-evaluation-section,
  .custom-key-figures-section,
  .custom-resources-section,
  .custom-content-section,
  .custom-cards-section {
    padding: 60px 0;
  }

  /* Étapes responsive */
  .custom-steps-section .step-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  /* Grilles responsive */
  .custom-evaluation-section .evaluation-items,
  .custom-resources-section .resources-list {
    grid-template-columns: 1fr;
  }

  .custom-key-figures-section .key-figures-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .custom-cards-section .cards-grid,
  .custom-cards-section .cards-grid[data-columns="2"],
  .custom-cards-section .cards-grid[data-columns="3"],
  .custom-cards-section .cards-grid[data-columns="4"] {
    grid-template-columns: 1fr;
  }

  /* Actions des ressources */
  .custom-resources-section .resource-actions {
    flex-direction: column;
  }

  .btn-resource,
  .btn-card {
    text-align: center;
    width: 100%;
  }

  /* Responsive pour les nouvelles sections */
  .custom-risk-cards-section .risk-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

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

  .page-header .page-title {
    font-size: 1.6rem;
  }

  .custom-hero-section .hero-text h2 {
    font-size: 1.5rem;
  }

  .custom-key-figures-section .key-figures-grid {
    grid-template-columns: 1fr;
  }

  .custom-key-figures-section .figure-number {
    font-size: 2.5rem;
  }
}