/* Home Page (Index) Specific Styles */

/* Hero Video Section */
.hero-video {
  width: 100%;
  background-color: #1a1a1a;
}

.video-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-overlay {
  position: absolute;
  top: 80%;
  left: 35%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-overlay h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.video-overlay p {
  color: #e6c830;
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  margin: 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.video-overlay p::before,
.video-overlay p::after {
  content: "—";
  margin: 0 0.5rem;
  color: #e6c830;
}

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

/* Director Welcome Section */
.director-welcome {
  background-color: #f9f9f9;
  padding: 3rem 2rem;
}

.director-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.director-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e6c830;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.director-message {
  flex: 1;
}

.director-message h2 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.6rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.director-message h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #e6c830;
}

.director-message p {
  color: #555;
  line-height: 1.7;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.director-signature {
  margin-top: 1.5rem;
  color: #2c3e50;
}

.director-signature span {
  font-style: italic;
  color: #777;
}

/* Petites Annonces Section */
.annonces {
  padding: 3rem 2rem;
  background-color: #fff;
}

.annonces h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 1.8rem;
  margin: 0 0 2rem 0;
  position: relative;
  padding-bottom: 0.75rem;
}

.annonces h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #e6c830;
}

.btn-voir-plus {
  display: block;
  margin: 0 auto 2rem auto;
  padding: 0.7rem 2rem;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

.btn-voir-plus:hover {
  background-color: #e6c830;
  color: #2c3e50;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 200, 48, 0.4);
}

.btn-voir-plus:active {
  transform: translateY(0);
}

.btn-voir-plus:focus {
  outline: 2px solid #e6c830;
  outline-offset: 3px;
}

.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.annonce-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #e6c830;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.annonce-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.annonce-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.annonce-card h3 {
  margin: 0 0 0.75rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.annonce-card p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Presentation Section */
.presentation {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.presentation h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2rem;
  margin: 0 0 3rem 0;
  position: relative;
  padding-bottom: 0.75rem;
}

.presentation h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #e6c830;
}

.presentation-block {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
}

.presentation-block:last-child {
  margin-bottom: 0;
}

.presentation-block.reverse {
  flex-direction: row-reverse;
}

.presentation-image {
  flex: 1;
  min-width: 0;
}

.presentation-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

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

.presentation-text {
  flex: 1;
  min-width: 0;
}

.presentation-text h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  position: relative;
  padding-left: 1rem;
  border-left: 4px solid #e6c830;
}

.presentation-text p {
  color: #555;
  line-height: 1.8;
  margin: 0 0 1rem 0;
  font-size: 1rem;
}

.valeurs-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.valeurs-list li {
  padding: 0.75rem 0;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.valeurs-list li strong {
  color: #2c3e50;
}

/* Personnel Section */
.personnel {
  padding: 4rem 2rem;
  background-color: #fff;
}

.personnel h2 {
  text-align: center;
  color: #2c3e50;
  font-size: 2rem;
  margin: 0 0 3rem 0;
  position: relative;
  padding-bottom: 0.75rem;
}

.personnel h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #e6c830;
}

.personnel-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.personnel-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

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

.personnel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.personnel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    transparent 100%
  );
  padding: 3rem 2rem 2rem 2rem;
  color: #fff;
  transform: translateY(calc(100% - 80px));
  transition: transform 0.4s ease;
}

.personnel-card:hover .personnel-overlay {
  transform: translateY(0);
}

.personnel-overlay h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.personnel-overlay h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #e6c830;
  margin-top: 0.5rem;
}

.personnel-overlay p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.personnel-card:hover .personnel-overlay p {
  opacity: 1;
}

/* Responsive - Page specific styles */
@media (max-width: 768px) {
  /* Director Welcome Section - Mobile */
  .director-welcome {
    padding: 2rem 1.25rem;
  }

  .director-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .director-photo img {
    width: 140px;
    height: 140px;
  }

  .director-message h2 {
    font-size: 1.4rem;
  }

  .director-message h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .director-message p {
    font-size: 0.95rem;
    text-align: justify;
  }

  .director-signature {
    text-align: center;
  }

  .video-container {
    height: 350px;
  }

  .video-overlay {
    padding: 1.5rem 2rem;
    width: 90%;
    max-width: 350px;
  }

  .video-overlay h2 {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }

  .video-overlay p {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .video-overlay p::before,
  .video-overlay p::after {
    margin: 0 0.4rem;
  }

  .presentation-block,
  .presentation-block.reverse {
    flex-direction: column;
    gap: 1.5rem;
  }

  .presentation-image,
  .presentation-text {
    width: 100%;
  }

  .personnel-card {
    display: flex;
    flex-direction: column;
  }

  .personnel-image {
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .personnel-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
  }

  .personnel-overlay {
    position: static;
    transform: none;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 1.5rem;
    border-radius: 0 0 16px 16px;
  }

  .personnel-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .personnel-overlay h3::after {
    margin-top: 0.5rem;
  }

  .personnel-overlay p {
    opacity: 1;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .personnel-card:hover .personnel-overlay {
    transform: none;
  }

  .personnel-card:hover .personnel-image img {
    transform: none;
  }
}

/* Footer */
/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #e6c830 0%, #d4a017 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-content h2 {
  color: #3e2723;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: #5d4037;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #5d4037;
  color: #fff;
}

.btn-primary:hover {
  background: #3e2723;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #fff;
  color: #5d4037;
  border: 2px solid #5d4037;
}

.btn-secondary:hover {
  background: #5d4037;
  color: #fff;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-content h3 {
  margin: 0 0 1rem 0;
  font-size: 1.4rem;
  color: #e6c830;
  letter-spacing: 1px;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #e6c830;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
