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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

/* Variables CSS */
:root {
  --primary-color: #8b7355; /* Beige chaud */
  --secondary-color: #6b8e9b; /* Bleu doux */
  --accent-color: #7a9b7a; /* Vert doux */
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4f8 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #7a6248;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections générales */
.section {
  padding: 80px 0;
}

.bg-light {
  background: var(--bg-light);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 60px;
}

/* Section À propos */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  margin-top: 40px;
}

.about-text h3:first-child {
  margin-top: 0;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-principles {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  height: fit-content;
}

.about-principles h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.principles-list {
  list-style: none;
}

.principles-list li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  color: var(--text-light);
  position: relative;
  padding-left: 25px;
}

.principles-list li:last-child {
  border-bottom: none;
}

.principles-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Section Piliers */
.piliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.pilier-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border-top: 4px solid var(--primary-color);
}

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

.pilier-number {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.pilier-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  margin-top: 10px;
}

.pilier-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Section Teshuva */
.teshuva-steps {
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

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

.step-content h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.step-content p {
  color: var(--text-light);
  line-height: 1.6;
}

.teshuva-resources {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-top: 60px;
}

.teshuva-resources h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.resources-list {
  list-style: none;
}

.resources-list li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  color: var(--text-light);
  position: relative;
  padding-left: 25px;
}

.resources-list li:last-child {
  border-bottom: none;
}

.resources-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Section Textes */
.textes-content {
  margin-top: 40px;
}

.texte-category {
  margin-bottom: 50px;
}

.texte-category h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.texte-extrait {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  border-left: 4px solid var(--secondary-color);
}

.texte-extrait blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.6;
  position: relative;
}

.texte-extrait blockquote::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: -10px;
  opacity: 0.3;
}

.texte-extrait cite {
  display: block;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-style: normal;
}

.texte-commentaire {
  color: var(--text-light);
  line-height: 1.6;
}

.texte-extrait h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Section FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h3 {
  color: var(--text-dark);
  font-size: 1.2rem;
  margin: 0;
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px;
  max-height: 200px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Section Galerie */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.galerie-item {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.galerie-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.galerie-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) contrast(0.8);
  transition: var(--transition);
}

.galerie-item:hover .galerie-image img {
  filter: brightness(0.4) contrast(0.9);
}

.galerie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.galerie-overlay h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.galerie-overlay p {
  color: var(--white);
  font-size: 0.95rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  line-height: 1.4;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

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

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .piliers-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .galerie-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

  .hero {
    padding: 100px 0 60px;
  }

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

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

  .pilier-card,
  .texte-extrait,
  .faq-question {
    padding: 20px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

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

.pilier-card,
.step,
.texte-extrait,
.faq-item,
.galerie-item {
  animation: fadeInUp 0.6s ease-out;
}

/* Page Vision */
.vision-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f4f8 100%);
}

.vision-image-container {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.vision-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Valeurs */
.valeurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.valeur-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--secondary-color);
}

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

.valeur-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.valeur-card h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 600;
}

.valeur-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Vision Content */
.vision-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}

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

.vision-text h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  margin-top: 40px;
}

.vision-text h3:first-of-type {
  margin-top: 0;
}

.vision-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.vision-image {
  position: relative;
}

.vision-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.vision-quote {
  margin-top: 30px;
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
}

.vision-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.6;
}

.vision-quote cite {
  color: var(--secondary-color);
  font-weight: 600;
  font-style: normal;
}

/* Actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.action-item {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border-top: 4px solid var(--accent-color);
}

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

.action-number {
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--accent-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.action-item h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  margin-top: 10px;
}

.action-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Navigation active state */
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  width: 100%;
}

/* Responsive pour la page vision */
@media (max-width: 768px) {
  .vision-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .valeurs-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .vision-image-container {
    height: 300px;
  }

  .hero-image-container {
    height: 300px;
  }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a6248;
}
