/**
 * Styles pour la page CCI du Var
 * Couleurs spécifiques : Bleu #003399, Vert pour les titres, Cards blanches
 */

/* =======================
   Page CCI - Styles généraux
   ======================= */

.cci-page {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* =======================
   Section Hero CCI
   ======================= */

.cci-hero-section {
  padding: 60px 0;
  background-color: white;
}

.cci-hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.cci-hero-content {
  flex: 1;
  width: 50%;
}

.cci-hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cci-hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0;
}

.cci-hero-description p {
  margin-bottom: 15px;
}

.cci-hero-logo {
  flex: 1;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =======================
   Section Missions CCI (fond bleu #003399)
   ======================= */

.cci-missions-section {
  padding: 60px 0;
  background-color: #003399;
  color: white;
}

.cci-missions-title {
  font-size: 37px;
  font-weight: 700;
  color: white;
  text-align: left;
  margin-bottom: 40px;
  line-height: 1.2;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Style pour les deux premiers mots en vert */
.cci-title-first-words {
  color: #9aca3c;
}

.cci-missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cci-mission-card {
  background-color: white;
  color: #333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.cci-mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.mission-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.3;
  text-transform: uppercase;
  padding-bottom: 8px;
  max-width: fit-content;
}

.cci-mission-card h3 {
  position: relative;
}

.cci-mission-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 2px;
  background-color: var(--primary-color);
}

.mission-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  flex: 1;
}

.mission-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-content li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #333;
}

.mission-content li:before {
  content: "•";
  color: #333;
  font-weight: normal;
  position: absolute;
  left: 0;
  top: 0;
}

.mission-content li:last-child {
  margin-bottom: 0;
}

/* =======================
   Sections dynamiques CCI
   ======================= */

.cci-info-section {
  padding: 60px 0;
  background-color: white;
}

.cci-info-section .section-title {
  font-size: 2rem;
  color: #28a745; /* Vert pour les titres de sections */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.cci-info-section .section-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.cci-key-figures-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.cci-key-figures-section .section-title {
  font-size: 2rem;
  color: #28a745; /* Vert pour les titres de sections */
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.figure-item {
  background-color: white;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease;
}

.figure-item:hover {
  transform: translateY(-3px);
}

.figure-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #003399;
  margin-bottom: 10px;
  line-height: 1;
}

.figure-label {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

/* =======================
   Responsive Design
   ======================= */

@media (max-width: 768px) {
  .cci-hero-container {
    flex-direction: column;
    text-align: left;
    gap: 30px;
  }

  .cci-hero-content {
    width: 100%;
  }

  .cci-hero-logo {
    width: 100%;
  }

  .cci-hero-title {
    font-size: 2rem;
    text-align: left;
  }

  .cci-hero-description {
    text-align: left;
  }

  .cci-missions-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: left;
    padding: 0 15px;
  }

  .cci-missions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .cci-mission-card {
    padding: 20px;
    min-height: auto;
  }

  .mission-title {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .mission-content {
    font-size: 0.9rem;
  }

  .mission-content li {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .figures-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .figure-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .cci-hero-section {
    padding: 40px 0;
  }

  .cci-missions-section {
    padding: 60px 0;
  }

  .cci-hero-title {
    font-size: 1.8rem;
  }

  .cci-missions-title {
    font-size: 1.6rem;
  }

  .cci-mission-card {
    padding: 20px;
  }

  .cci-info-section,
  .cci-key-figures-section {
    padding: 40px 0;
  }
}
