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

body {
  background-color: #0A1F2D;
  color: #E0E7FF;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: #C0C0C0;
}

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

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  display: block;
  line-height: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: static;
  background-color: #0A1F2D;
  text-align: center;
  padding: 2.5rem 2rem;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-primary {
  background-color: #A3BFFA;
  color: #0A1F2D;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  animation: blink 1.5s infinite;
}

.btn-primary:hover {
  background-color: #7C9FE8;
  transform: scale(1.05);
}

@keyframes blink {
  50% { opacity: 0.6; }
}

/* Main Content */
.main-content {
  padding: 4rem 0;
  background-color: #0A1F2D;
}

.main-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #C0C0C0;
  margin-bottom: 2rem;
}

.main-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #A3BFFA;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.main-content p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #E0E7FF;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #C0C0C0;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Service Card */
.card {
  background: linear-gradient(135deg, #1A3C5D, #2A5D8D);
  border: 1px solid #A3BFFA;
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(163, 191, 250, 0.3);
  transition: top 0.4s ease;
  z-index: 1;
}

.card:hover::before {
  top: 0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(163, 191, 250, 0.5);
}

.card-content {
  position: relative;
  z-index: 2;
}

.card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #C0C0C0;
}

.card p {
  color: #E0E7FF;
}

/* Detail Sections - toujours visibles */
.detail-section {
  display: block;
  padding: 2.5rem 0;
  background-color: #1A3C5D;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .detail-content {
    flex-direction: row;
  }
}

.detail-text {
  flex: 2;
}

.detail-image {
  flex: 1;
}

.detail-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #C0C0C0;
}

.detail-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #A3BFFA;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.detail-section p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #E0E7FF;
}

.detail-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: #E0E7FF;
}

.detail-section li {
  margin-bottom: 0.5rem;
}

.detail-section img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.btn-back {
  background-color: #A3BFFA;
  color: #0A1F2D;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-back:hover {
  background-color: #7C9FE8;
}

/* Contact Section */
.contact-section {
  background-color: #1A3C5D;
  padding: 4rem 0;
  text-align: center;
}

.contact-content {
  max-width: 28rem;
  margin: 0 auto;
}

.contact-content p {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-content strong {
  color: #A3BFFA;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Back to Top */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #A3BFFA;
  color: #0A1F2D;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  text-decoration: none;
  line-height: 50px;
  text-align: center;
  font-weight: bold;
}

#back-to-top:hover {
  background-color: #7C9FE8;
}

#back-to-top.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .main-content h2 {
    font-size: 1.75rem;
  }

  .main-content h3 {
    font-size: 1.25rem;
  }

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