.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('PlayfairDisplay-Regular.ttf') format('truetype');
}

body {
  font-family: 'Playfair Display', serif;
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 10px;
  background: transparent;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1000;
}

.utility-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.utility-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.utility-button i {
  font-size: 16px;
}

#google_translate_element {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#google_translate_element:hover {
  transform: scale(1.05);
}

#google_translate_element.expanded {
  width: 300px;
  height: auto;
  background: white;
  padding: 20px;
}

.goog-te-menu-frame {
  max-width: 100% !important;
  max-height: 450px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

.goog-te-gadget {
  font-family: 'Montserrat', sans-serif !important;
  color: white !important;
}

.goog-te-gadget-simple {
  background: linear-gradient(45deg, #9400D3, #4B0082) !important;
  border: 2px solid white !important;
  padding: 10px 15px !important;
  border-radius: 8px !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
  transform: scale(1.1) !important;
}

.goog-te-gadget-simple span {
  color: white !important;
}

.goog-te-menu-value span {
  color: white !important;
}

.goog-te-menu-value:hover {
  text-decoration: none !important;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e6e6fa, #d8bfd8);
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
}

body.dyslexic {
  font-family: 'OpenDyslexic', 'Comic Sans MS', cursive;
  line-height: 1.8;
  word-spacing: 0.25em;
  letter-spacing: 0.05em;
}

.dyslexia-button {
  background: linear-gradient(45deg, #9400D3, #4B0082);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.dyslexia-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

p, span, a, button, input, div {
  font-family: 'Playfair Display', serif;
}

header {
  background: linear-gradient(45deg, #800080, #4B0082);
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0;
}

.header-top {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  width: 120px;
  height: 120px;
  margin-right: 30px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.6),
              0 0 40px rgba(75, 0, 130, 0.4),
              0 0 60px rgba(147, 112, 219, 0.3);
  transition: all 0.4s ease;
  animation: logoGlow 3s infinite alternate;
  filter: brightness(1.2) contrast(1.2) saturate(1.2);
}

.logo img:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 30px rgba(128, 0, 128, 0.8),
              0 0 50px rgba(75, 0, 130, 0.6),
              0 0 70px rgba(147, 112, 219, 0.5);
}

@keyframes logoGlow {
  0% {
    filter: brightness(1.1) contrast(1.1) saturate(1.1);
    box-shadow: 0 0 20px rgba(128, 0, 128, 0.6),
                0 0 40px rgba(75, 0, 130, 0.4);
  }
  50% {
    filter: brightness(1.3) contrast(1.2) saturate(1.3);
    box-shadow: 0 0 30px rgba(128, 0, 128, 0.7),
                0 0 50px rgba(75, 0, 130, 0.5),
                0 0 70px rgba(147, 112, 219, 0.4);
  }
  100% {
    filter: brightness(1.2) contrast(1.1) saturate(1.2);
    box-shadow: 0 0 25px rgba(128, 0, 128, 0.6),
                0 0 45px rgba(75, 0, 130, 0.4),
                0 0 65px rgba(147, 112, 219, 0.3);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropbtn::after {
  content: '❧';
  font-size: 14px;
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn::after {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(135deg, #800080, #4B0082);
  min-width: 250px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-radius: 8px;
  z-index: 1000;
  margin-top: 5px;
  border: 2px solid white;
}

.dropdown-content a {
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  padding-left: 25px;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

.dropdown:hover .dropbtn {
  background: linear-gradient(45deg, #4B0082, #800080);
  color: white;
}

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

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
}

.nav-menu a:hover {
  text-decoration: underline;
}

.donate-nav a {
  background: linear-gradient(45deg, #9400D3, #4B0082);
  color: white;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.donate-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #4B0082, #9400D3);
}

h1 {
  font-family: 'Cinzel Decorative', 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  margin: 0;
  color: white;
  animation: glowText 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
               0 0 40px rgba(128, 0, 128, 0.6),
               0 0 60px rgba(75, 0, 130, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

@keyframes glowText {
  0% { transform: scale(1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  50% { transform: scale(1.02); text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(128, 0, 128, 0.6); }
  100% { transform: scale(1); text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

.main-content {
  display: flex;
  margin: 20px auto;
  max-width: 1400px;
  gap: 30px;
  padding: 0 20px;
  position: relative;
}

.main-content::before,
.main-content::after {
  content: '🧬';
  position: absolute;
  font-size: 24px;
  opacity: 0.1;
}

.main-content::before {
  top: -10px;
  left: 10px;
  transform: rotate(-45deg);
}

.main-content::after {
  bottom: -10px;
  right: 10px;
  transform: rotate(45deg);
}

.left-section, .right-section {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(65, 105, 225, 0.15);
  transition: all 0.4s ease;
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
}

.left-section::after, .right-section::after {
  content: '🧬';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
  opacity: 0.5;
  transform: rotate(-10deg);
}

.left-section:hover, .right-section:hover {
  border-color: #4169E1;
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 40px rgba(128, 0, 128, 0.2);
}

.left-section {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.brain-comparison {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(128, 0, 128, 0.1);
  border-radius: 10px;
}

.brain-container {
  text-align: center;
}

.brain {
  width: 150px;
  height: 150px;
  margin: 10px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.brain:hover {
  transform: scale(1.1);
}

.brain.healthy {
  background: linear-gradient(45deg, #ff69b4, #e91e63);
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

.brain.affected {
  background: linear-gradient(45deg, #9c27b0, #673ab7);
  box-shadow: 0 0 15px rgba(156, 39, 176, 0.3);
}

.right-section {
  width: 300px;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.child-image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  transition: all 0.5s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.child-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(128, 0, 128, 0.3);
}

.child-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(128, 0, 128, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.child-image:hover::after {
  opacity: 1;
}

.quiz-section {
  margin-top: 20px;
  padding: 15px;
  background: #f0f0f0;
  border-radius: 5px;
}

@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.quiz-section button {
  margin: 5px;
  padding: 15px 25px;
  background: linear-gradient(45deg, #800080, #4B0082);
  transition: all 0.3s ease;
  animation: buttonPulse 2s infinite;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s;
}

.quiz-section button:hover {
  background: #800080;

.chatbot-hint {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-style: italic;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

}

.quiz-section input {
  display: block;
  margin: 10px 0;
  padding: 8px;
  width: 100%;
  border: 1px solid purple;
  border-radius: 3px;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.question {
  margin: 15px 0;
}

.answer-btn {
  display: block;
  width: 100%;
  margin: 5px 0;
  text-align: left;
}

#score-display {
  margin-top: 20px;
  padding: 15px;
  background: #e0e0e0;
  border-radius: 5px;
}

.stats-section {
  display: flex;
  justify-content: space-around;
  margin: 40px 20px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.15), rgba(128, 0, 128, 0.05));
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5em;
  color: purple;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-label {
  color: #666;
  font-size: 1.1em;
}

.help-section {
  margin: 20px;
  padding: 20px;
  background: linear-gradient(45deg, #800080, #4B0082);
  border-radius: 10px;
  color: white;
}

.help-section h2 {
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.help-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #800080, #4B0082);
  border-radius: 3px;
}

p {
  position: relative;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(45deg, rgba(128, 0, 128, 0.05), transparent);
}

.actions-section {
  margin: 20px;
  padding: 20px;
  background: white;
  border-radius: 10px;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.action-item {
  text-align: center;
}

.action-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.donation-section {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  margin: 20px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
}

.donation-section h2 {
  color: white;
  margin-bottom: 30px;
}

.donation-content {
  max-width: 800px;
  margin: 0 auto;
}

.donation-counter {
  margin: 30px 0;
}

.donation-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.amount-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.amount-btn:hover {
  background: white;
  color: #800080;
  transform: translateY(-2px);
}

.custom-amount {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.custom-amount input {
  padding: 10px;
  border: 2px solid white;
  border-radius: 25px;
  width: 150px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.custom-amount input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.donation-banner {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  text-align: center;
  padding: 30px;
  margin: 20px;
  border-radius: 10px;
}

.donation-comic {
  max-width: 600px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.comic-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  border: 4px solid #e6e6fa;
}

.comic-image:hover {
  transform: scale(1.02);
}



.donation-progress {
  max-width: 800px;
  margin: 20px auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 10px 0;
}

.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(45deg, #9400D3, #4B0082);
  transition: width 0.5s ease-in-out;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Styles de base (desktop) restent inchangés */

/* Tablettes */
@media (max-width: 1024px) {
  .main-content {
    padding: 0 15px;
  }

  .nav-menu {
    gap: 15px;
  }

  .stat-item {
    padding: 15px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.4;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 0;
  }

  .left-section, .right-section {
    width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  h1 {
    font-size: 28px;
    padding: 10px 0;
  }

  h2 {
    font-size: 24px;
    margin: 15px 0;
  }

  .nav-bar {
    padding: 10px;
  }

  .nav-menu {
    padding: 0;
    margin: 10px 0;
  }

  .nav-menu li {
    margin: 5px 0;
  }

  .nav-menu a {
    padding: 10px;
    font-size: 16px;
  }

  .logo {
    width: 80px;
    height: 80px;
    margin: 10px auto;
  }

  .stats-section {
    padding: 15px;
    margin: 15px 0;
  }

  .stat-item {
    padding: 15px 10px;
    margin: 5px 0;
  }

  .help-section, .actions-section, .donation-banner {
    margin: 15px 0;
    padding: 15px;
  }

  .testimonials-container {
    padding: 10px;
  }

  .testimonial {
    margin: 10px 0;
    padding: 15px;
  }

  .chat-toggle {
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    bottom: 80px;
  }

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

  #google_translate_element {
    top: 5px;
    right: 5px;
    transform: scale(0.9);
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  .nav-menu a {
    font-size: 14px;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }

  .stat-number {
    font-size: 2em;
  }

  .stat-label {
    font-size: 0.9em;
  }
}

#progress-text, #next-milestone {
  margin: 10px 0;
  font-size: 1.1em;
}

#next-milestone {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.fundraising-progress {
  max-width: 600px;
  margin: 20px auto;
}

.progress-bar {
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: white;
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 14px;
}

.milestone-text {
  text-align: center;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 0.9em;
}

.donation-form {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.milestone-message {
  background: rgba(255, 255, 255, 0.9);
  color: #800080;
  padding: 15px 25px;
  border-radius: 25px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: slideUp 0.5s ease-out;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  font-weight: bold;
}

@keyframes slideUp {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.milestone-message.fade-out {
  animation: fadeOut 1s ease-out;
}

.thank-you-message {
  background: rgba(255, 255, 255, 0.9);
  color: #800080;
  padding: 15px 25px;
  border-radius: 25px;
  margin: 20px auto;
  max-width: 80%;
  text-align: center;
  animation: slideUp 0.5s ease-out;
  boxshadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.amount-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.amount-input input {
  padding: 10px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  width: 150px;
}

.donate-button {
  background: linear-gradient(45deg, #9400D3, #4B0082);
  color: white;
  border: none;
  padding: 12px 35px;
  font-size: 18px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.donate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #4B0082, #9400D3);
}

.donate-button:hover {
  background-color: #f0f0f0;
}

.contact-section {
  background: white;
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
}

.social-links a {
  margin: 0 10px;
  color: purple;
  text-decoration: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.testimonials-section {
  background: white;
  padding: 40px 20px;
  margin: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonial {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
}

.testimonial span {
  color: purple;
  font-weight: bold;
}

.portraits-section {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  margin: 20px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.portraits-section h2 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.portraits-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

.portraits-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.portrait-item {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.portrait-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.portrait-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portrait-item h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.portrait-item p {
  color: white;
  line-height: 1.6;
  background: none;
}


.timeline-container {
  position: relative;
  margin: 30px 0;
  padding: 20px;
  background: rgba(128, 0, 128, 0.1);
  border-radius: 10px;
}

.timeline-point {
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.timeline-point:hover {
  transform: scale(1.05);
}

.timeline-point .age {
  font-weight: bold;
  color: purple;
  margin-right: 15px;
}

.timeline-point .event {
  flex: 1;
}
.stats-container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  gap: 20px;
}

.stat-box {  background: linear-gradient(135deg, #800080, #4B0082);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  min-width: 150px;
}

.stat-box span:first-child {
  font-size: 24px;
  display: block;
  margin-bottom: 5px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: linear-gradient(45deg, #4B0082, #800080);
}

.chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  max-height: calc(100vh - 100px);
  margin-top: 60px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 0, 128, 0.5) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(128, 0, 128, 0.5);
  border-radius: 3px;
}

.chatbot-header {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  padding: 15px;
  display: flex;
justify-content: space-between;
  align-items: center;
}

.chatbot-header button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-warning {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  font-size: 0.9em;
  text-align: center;
  border-bottom: 1px solid #ffeeba;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.chat-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.user-message {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  margin-left: auto;
}

.bot-message {
  background: #f0f0f0;
  margin-right: auto;
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

#send-message {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
}

.chat-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.chat-toggle:hover {
  transform: scale(1.1);
}

.read-button {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin: 10px;
  padding: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 20px;
}

.read-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background: linear-gradient(45deg, #4B0082, #800080);
}

.read-button.active {
  animation: pulse 1s infinite;
}

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

.text-section {
  position: relative;
  padding-right: 50px;
}

/* Animations pour les boutons et liens */
.nav-menu a, .donate-button, button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-menu a:hover, .donate-button:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #800080, #4B0082);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #800080, #4B0082);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
}

.timeline-content {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 0 20px;
  flex: 1;
  max-width: 400px;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
}

.timeline-content h3 {
  color: #800080;
  margin: 0 0 8px 0;
  font-size: 1em;
}

.timeline-content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.timeline-progress {
  position: absolute;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #800080, #4B0082);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 30px;
  }

  .timeline-icon {
    margin-bottom: 15px;
  }

  .timeline-content {
    margin: 0;
  }

  .timeline-progress {
    display: none;
  }
}


@media (max-width: 768px) {
  .horizontal-timeline {
    padding: 20px 10px;
  }

  .horizontal-timeline .timeline-item {
    flex: 0 0 250px;
    margin: 0 10px;
  }
}
.mini-timeline {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.evolution-section {
  background: white;
  margin: 20px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: 2px solid rgba(128, 0, 128, 0.1);
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-step {
  text-align: center;
  padding: 15px;
  background: rgba(128, 0, 128, 0.05);
  border-radius: 10px;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-step:first-child {
  background: rgba(128, 0, 128, 0.05);
  color: inherit;
}

.video-section {
  background: white;
  margin: 20px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
  border: 2px solid #800080;
}

.video-section h2 {
  color: black;
  margin-bottom: 20px;
}

.video-container {
  background: linear-gradient(45deg, #800080, #4B0082);
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-video {
  width: 100%;
  max-width: 800px;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  object-fit: contain;
}

.custom-video:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
}

.evolution-section {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
}

.evolution-section h2 {
  color: white;
}

.evolution-section h2::after {
  background: white;
}

.evolution-section::after {
  content: "Note : Cette chronologie représente une évolution générale. Chaque individu a son propre rythme de développement.";



  display: block;
  font-style: italic;
  text-align: center;
  margin-top: 20px;
  color: white;
  font-size: 0.9em;
  opacity: 0.9;
  padding: 10px;
}

.evolution-section h2 {
  color: black;
  text-align: center;
  font-family: 'Playfair Display', serif;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.evolution-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

.timeline-step:hover {
  transform: translateY(-5px);
}

.timeline-step:last-child {
  grid-column: 1 / 3;
  width: 50%;
  margin: 0 auto;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #800080, #4B0082);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  position: relative;
  z-index: 1;
  font-size: 20px;
}

.timeline-content {
  padding: 10px 5px;
}

.timeline-content h3 {
  font-size: 0.8em;
  color: black;
  margin: 0 0 5px;
}

.timeline-content p {
  font-size: 0.7em;
  color: black;
  margin: 0;
  line-height: 1.2;
}

#recherche-espoir {
  background: white;
  margin: 20px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  color: black;
}

#recherche-espoir h2 {
  color: black;
  text-align: center;
  margin-bottom: 30px;
}

#recherche-espoir h3 {
  color: black;
  margin: 20px 0 15px;
}

.recherche, .traitements, .defis {
  background: rgba(128, 0, 128, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin: 15px 0;
}

#recherche-espoir button {
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  margin: 10px 0;
  transition: all 0.3s ease;
}

#recherche-espoir button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-don {
  display: inline-block;
  background: linear-gradient(45deg, #800080, #4B0082);
  color: white;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 25px;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.btn-don:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .timeline-step {
    flex: 0 0 140px;
  }
}
.faq-section {
    background: linear-gradient(45deg, #800080, #4B0082);
    color: white;
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.faq-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.faq-item {
    flex: 0 1 300px;
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

.faq-item:nth-child(4) {
    margin-left: auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.faq-item h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.faq-item p {
    color: white;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }

    .faq-item {
        margin: 10px 0;
    }
}

.news-section {
    background: linear-gradient(45deg, #800080, #4B0082);
    color: white;
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.news-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.news-date {
    color: #e0e0e0;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-item h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.news-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.news-image {
    width: 70%;
    height: auto;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        margin: 10px 0;
    }
}

.volunteer-section {
    background: white;
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.volunteer-section h2 {
    color: black;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.volunteer-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #800080, #4B0082);
    border-radius: 3px;
}

.volunteer-content {
    max-width: 800px;
    margin: 0 auto;
}

.volunteer-opportunities {
    background: rgba(128, 0, 128, 0.05);
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.opportunity h3 {
    color: #800080;
    margin-bottom: 15px;
}

.opportunity ul {
    list-style: none;
    padding: 0;
}

.opportunity ul li {
    padding: 8px 0;
    padding-left: 5px;
    position: relative;
    color: black;
    list-style: none;
}

.volunteer-contact {
    text-align: center;
    margin-top: 30px;
}

.volunteer-contact .email {
    color: #800080;
    font-weight: bold;
    font-size: 1.1em;
}

.library-section {
    background: linear-gradient(45deg, #800080, #4B0082);
    color: white;
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.library-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.library-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: white;
    border-radius: 3px;
}

.video-resource {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 20px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.resource-link {
    text-align: center;
    margin: 20px 0;
}

.resource-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.resource-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.resource-list {
    color: white;
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.resource-list li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.resource-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}