/* --- 1. VARIABLES --- */
:root {
  --primary-orange: #ff6a00;
  --secondary-yellow: #FFE066;
  --bg-cream: #fff2be;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #555;
  --bg-right-clear: var(--secondary-yellow);

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-cream);
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #ff6a00, #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* --- 1. HERO --- */
.about-hero {
  padding: 40px 20px 20px;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  background: #fffbf0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Gauche */
.about-left {
  flex: 1.1;
  padding: 40px 35px;
  background: #fffbf0;
}

.badge-asso-large {
  display: inline-block;
  background: #fff0e6;
  color: #e65100;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 2px solid #ffdbc2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.about-left h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
  line-height: 1.15;
}

.about-subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 30px;
}

.about-content-highlight {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  background: var(--secondary-yellow);
  border: 1px solid rgba(255, 106, 0, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.highlight-box:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.section-icon {
  font-size: 1.6rem;
}

.section-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 700;
}

.section-text p {
  font-size: 0.95rem;
  margin: 0;
  color: #666;
}

/* Droite */
.about-right-clear {
  flex: 0.9;
  background: var(--bg-right-clear);
  padding: 40px 35px;
  color: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-left: 1px solid #f5f5f5;
}

.about-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: #fffbf0;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  font-size: 1.8rem;
  margin-right: 15px;
  width: 40px;
  text-align: center;
}

.stat-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-item p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

.about-cta {
  margin-top: 30px;
  text-align: center;
}

.btn-orange-fill {
  background: var(--primary-orange);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.2);
  transition: all 0.2s;
}

.btn-orange-fill:hover {
  transform: translateY(-2px);
  background: #e65100;
  box-shadow: 0 6px 15px rgba(255, 106, 0, 0.3);
}


/* --- 2. SECTION VALEURS (Restaurée & Compacte) --- */
.values-section {
  padding: 20px 20px 30px;
  /* Padding serré */
}

.section-header-compact {
  text-align: center;
  margin-bottom: 25px;
}

.section-header-compact h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.section-header-compact p {
  color: var(--text-gray);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--secondary-yellow);
  padding: 25px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s;
  border: 1px solid rgba(255, 106, 0, 0.15);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
}

.value-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}


/* --- 3. SECTION ÉQUIPE (Très serrée) --- */
.team-section {
  padding: 20px 20px 10px;
  /* Padding bas minime pour coller au process */
}

.team-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.team-container h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.team-subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 25px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.team-member {
  background: #FFE066;
  padding: 25px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(140, 110, 0, 0.1);
  border: 1px solid rgba(255, 238, 170, 0.3);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(140, 110, 0, 0.15);
}

.member-avatar {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.team-member h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.member-role {
  font-size: 0.85rem;
  color: #e65100;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
  line-height: 1.4;
}

/* Note Bénévoles */
.volunteers-note-compact {
  background: #fff0f0;
  border: 1px solid #ffcccc;
  padding: 12px 20px;
  border-radius: 12px;
  color: #c0392b;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 10px;
  /* Colle au Process */
}

.heart {
  font-size: 1.1rem;
}


/* --- 4. NOUVELLE SECTION PROCESS (Qualité) --- */
.process-section {
  padding: 20px 20px;
  /* Padding très léger */
  text-align: center;
}

.process-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.process-header h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  line-height: 1.3;
}

.process-header p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 25px;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.p-circle {
  width: 55px;
  height: 55px;
  background: var(--secondary-yellow);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.p-step strong {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.p-step span {
  font-size: 0.8rem;
  color: #666;
}

.p-line {
  width: 60px;
  height: 3px;
  background: #eee;
  margin: 0 15px;
  margin-bottom: 30px;
}

.process-badge {
  display: inline-block;
  background: #f9f9f9;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border: 1px solid #eee;
  font-weight: 500;
}


/* --- 5. SECTION ALLER PLUS LOIN (Padding Serré) --- */
.explore-section-new {
  padding: 20px 20px 60px;
}

.explore-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.explore-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.explore-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.explore-card-new {
  background: var(--secondary-yellow);
  padding: 30px 25px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 106, 0, 0.15);
}

.explore-card-new:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.simu-card .card-badge {
  background: #e3f2fd;
  color: #1565c0;
}

.article-card .card-badge {
  background: #f3e5f5;
  color: #7b1fa2;
}

.explore-icon-new {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.explore-card-new h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.explore-card-new p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.explore-link-new {
  font-weight: 700;
  color: var(--primary-orange);
  transition: translateX 0.2s;
  margin-top: auto;
}


/* Carte IA */
.ia-card-highlight {
  /* background removed to inherit yellow from explore-card-new */
  border: 2px solid var(--primary-orange);
}

.ia-badge {
  background: #fff0e6;
  color: #e65100;
}

.btn-ia-new {
  background: var(--primary-orange);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
  text-align: center;
  font-family: inherit;
  margin-top: auto;
}

.btn-ia-new:hover {
  background: #e65100;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
  }

  .about-left,
  .about-right-clear {
    padding: 30px;
    border-left: none;
  }

  .about-right-clear {
    border-top: 1px solid #f5f5f5;
  }

  .team-grid,
  .explore-grid-new,
  .values-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-steps {
    flex-direction: column;
    gap: 15px;
  }

  .p-line {
    width: 3px;
    height: 30px;
    margin: 0;
  }

  .team-section {
    margin-top: 0;
  }
}

/* --- 6. COMPTEUR DE VISITEURS MENSUEL --- */
.visitor-counter-section {
  padding: 30px 20px 40px;
  display: flex;
  justify-content: center;
}

.visitor-counter-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffe066 100%);
  padding: 20px 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.15);
  border: 2px solid var(--primary-orange);
  transition: transform 0.3s ease;
}

.visitor-counter-container:hover {
  transform: translateY(-3px);
}

.visitor-icon {
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.visitor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.visitor-count {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6a00, #e65100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.visitor-label {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}

.visitor-month {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 500px) {
  .visitor-counter-container {
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .visitor-count {
    font-size: 1.8rem;
  }
}