/* modern-global.css - Styles globaux pour toutes les pages modernisées du site Léonard */

/* Variables pour cohérence */
:root {
  --green-primary: #2e7d32;
  --green-secondary: #4caf50;
  --orange-primary: #ff9800;
  --orange-secondary: #f57c00;
  --salmon: #eb9a28;
  --blue-primary: #2196f3;
  --background-light: #e8f5e9;
  --background-white: #ffffff;
  --shadow-light: rgba(46, 125, 50, 0.1);
  --shadow-medium: rgba(46, 125, 50, 0.2);
  --shadow-strong: rgba(46, 125, 50, 0.3);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--background-light) 0%, #f1f8e9 100%);
  color: #333;
  min-height: 100vh;
  font-family: 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Header moderne */
.header {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-secondary) 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 4px 15px var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.header-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section de contenu principale */
.main-content {
  background: var(--background-white);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 25px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.main-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--green-secondary), var(--green-primary), var(--green-secondary));
  border-radius: 20px;
  z-index: -1;
  opacity: 0.1;
}

/* Contrôles audio */
.control-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(76, 175, 80, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.control-buttons button {
  background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-primary) 100%);
  color: white;
  border: none;
  padding: 12px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.control-buttons button:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 20px var(--shadow-strong);
}

/* Barre de progression */
#progressBarContainer {
  width: 100%;
  height: 8px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-primary) 100%);
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Titre principal */
.main-title {
  font-size: 2.5rem;
  color: var(--green-primary);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sous-titre */
.subtitle-section {
  text-align: center;
  margin-bottom: 2rem;
}

.subtitle-section h2 {
  font-size: 1.5rem;
  color: var(--green-primary);
}

.blue_text.bauhaus {
  color: var(--salmon);
  font-weight: bold;
}

/* Image d'introduction */
.image-container {
  text-align: center;
  margin: 2rem 0;
}

.image-container img {
  max-width: 100%;
  width: 60%;
  height: 120px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05);
}

/* Sections de contenu */
.content-section {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.02) 0%, rgba(76, 175, 80, 0.02) 100%);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--green-secondary);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.05);
}

.transformation-section {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.02) 0%, rgba(255, 193, 7, 0.02) 100%);
  border-left: 4px solid var(--orange-primary);
}

/* Section titre */
.section-title {
  font-size: 1.8rem;
  color: var(--green-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--green-secondary) 0%, var(--green-primary) 100%);
  border-radius: 2px;
}

.section-title.orange::after {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-secondary) 100%);
}

/* Titres de sections */
h3 {
  font-size: 1.4rem;
  color: var(--green-primary);
  margin-bottom: 1rem;
  font-weight: bold;
}

h4 {
  font-size: 1.2rem;
  color: var(--orange-primary);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

/* Textes colorés */
.orange_text {
  color: var(--orange-primary);
  font-weight: 600;
}

.green_text {
  color: var(--green-primary);
  font-weight: 600;
}

.blue_text {
  color: var(--blue-primary);
  font-weight: 600;
}

.bold {
  font-weight: 700;
}

.center {
  text-align: center;
}

/* Paragraphes */
p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Liens */
a {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--green-primary);
  border-bottom-color: var(--green-secondary);
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.no_style {
  font-style: italic;
}

/* Sections spéciales */
.resources-section {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.resources-section::before {
  content: '🔗';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--background-white);
  padding: 0 10px;
  font-size: 1.2rem;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.highlight-box::before {
  content: '💡';
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--background-white);
  padding: 0 10px;
  font-size: 1.2rem;
}

/* Images en bas de section */
.image-bottom {
  text-align: center;
  margin: 2rem 0;
}

.image-bottom img {
  max-width: 100%;
  width: 50%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-bottom img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Bouton retour avec flèches comme dans l'original */
.bubble_nav {
  position: fixed;
  top: 5%;
  right: 5%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
  box-shadow: 0 0 20px rgba(0, 0, 255, 0.5);
  animation: bulle 4s infinite alternate ease-in-out;
  cursor: pointer;
  z-index: 1000;
}

.bubble_nav::before,
.bubble_nav::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background-color: black;
  transform-origin: center;
}

.bubble_nav::before {
  top: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.bubble_nav::after {
  top: 20px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

@keyframes bulle {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Animation call-to-action */
.zoom-in-zoom-out {
  animation: zoom-in-zoom-out 3s ease infinite;
  text-align: center;
  background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--orange-primary);
  margin: 3rem 0;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.1);
}

.zoom-in-zoom-out.gradient {
  background: linear-gradient(135deg, var(--green-primary), var(--salmon));
  color: white;
  position: relative;
  overflow: hidden;
}

.zoom-in-zoom-out.gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes zoom-in-zoom-out {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Liste de processus stylisée */
.process-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.process-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  background: rgba(76, 175, 80, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.process-list li:hover {
  background: rgba(76, 175, 80, 0.1);
  transform: translateX(5px);
}

.process-number {
  background: linear-gradient(135deg, var(--green-secondary), var(--green-primary));
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .main-content {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .main-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .image-container img {
    width: 80%;
  }

  .image-bottom img {
    width: 70%;
  }

  .control-buttons {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .control-buttons button {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  p {
    font-size: 1rem;
  }

  .content-section, .transformation-section, .resources-section {
    padding: 1.5rem;
  }

  .process-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-number {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .image-container img {
    width: 90%;
    height: 100px;
  }

  .image-bottom img {
    width: 80%;
  }

  p {
    font-size: 0.95rem;
  }
}

/* Animation de révélation au scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}