/* ============================
   ERASIIA - Site Vitrine
   Palette : #1a1a2e, #0066ff, #fff, #f5f5f7
   ============================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: #0066ff;
  color: #fff;
}

.btn--primary:hover {
  background: #0052cc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

/* --- Section titles --- */
.section__title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #1a1a2e;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0066ff;
  transition: width 0.3s;
}

.header__link:hover {
  color: #0066ff;
}

.header__link:hover::after {
  width: 100%;
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO
   ============================ */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(0, 102, 255, 0.2);
  border: 1px solid rgba(0, 102, 255, 0.4);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6db3ff;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__sep {
  color: #0066ff;
  margin: 0 4px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__cta {
  font-size: 1.05rem;
  padding: 16px 40px;
}

/* ============================
   SERVICES
   ============================ */
.services {
  padding: 100px 0;
  background: #f5f5f7;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.service-card--accent {
  background: #1a1a2e;
  color: #fff;
  border-color: transparent;
}

.service-card--accent .service-card__desc {
  color: rgba(255, 255, 255, 0.7);
}

.service-card--accent .service-card__list li {
  color: rgba(255, 255, 255, 0.8);
}

.service-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card__desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__list li {
  font-size: 0.9rem;
  color: #555;
}

/* ============================
   AVANTAGES
   ============================ */
.avantages {
  padding: 100px 0;
  background: #fff;
}

.avantages__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.avantage-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.avantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.avantage-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.avantage-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.avantage-card__desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================
   OFFRE DE LANCEMENT
   ============================ */
.offre {
  padding: 80px 0;
  background: #f5f5f7;
}

.offre__card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border-radius: 20px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.offre__card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.offre__badge {
  display: inline-block;
  padding: 6px 20px;
  background: #0066ff;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.offre__title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.offre__subtitle {
  font-size: 1.15rem;
  color: #6db3ff;
  margin-bottom: 20px;
  font-weight: 500;
}

.offre__desc {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ============================
   CONTACT
   ============================ */
.contact {
  padding: 100px 0;
  background: #fff;
}

.contact__form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a2e;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: #1a1a2e;
  background: #f9f9fb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.contact__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__submit {
  align-self: flex-start;
  font-family: inherit;
}

.contact__email {
  text-align: center;
  margin-top: 32px;
  color: #888;
  font-size: 0.95rem;
}

.contact__email a {
  color: #0066ff;
  font-weight: 600;
}

.contact__email a:hover {
  text-decoration: underline;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.footer__brand {
  text-align: center;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 12px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .avantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .section__title {
    font-size: 1.85rem;
  }

  .offre__title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav .header__link {
    font-size: 1.15rem;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    padding: 130px 0 70px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

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

  .offre__card {
    padding: 40px 24px;
  }

  .offre__title {
    font-size: 1.75rem;
  }

  .contact__submit {
    width: 100%;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.65rem;
  }

  .section__title {
    font-size: 1.5rem;
  }
}
