/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5f 40%, #275d8f 100%);
  background-attachment: fixed;
}
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: 64px;
  background: rgba(11, 28, 44, 0.95); z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { height: 40px; width: auto; display: block; }

.main-nav { display: flex; gap: 28px; }
.nav-link {
  color: #e8f2ff; text-decoration: none; font-weight: 500; position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: #22ccff; transition: width .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; }
#particles-js { position: absolute; inset: 0; z-index: 0; }
.hero-inner { position: relative; z-index: 1; text-align: center; margin-top: 40px; }
.site-title {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 800;
  text-shadow: 0 0 12px rgba(255,255,255,.4), 0 0 24px rgba(255,255,255,.2);
  margin-bottom: 10px;
}
.site-subtitle { font-size: clamp(16px, 2.4vw, 20px); opacity: .9; margin-bottom: 24px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font-weight: 700;
  background: #ffffff; color: #0e47b3; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.btn:hover { transform: translateY(-2px); background: #22ccff; color: #002b5c; }

/* ===== Sections ===== */
.section { padding: 90px 0; scroll-margin-top: 84px; }
.section-title { text-align: center; font-size: clamp(24px, 4vw, 32px); margin-bottom: 40px; }

/* ===== Services (glow cards) ===== */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

.card {
  padding: 28px; border-radius: 18px; backdrop-filter: blur(2px);
  color: #fff; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .25s ease, filter .2s ease;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p  { color: rgba(255,255,255,.9); }

.card1 { background: linear-gradient(135deg, #5a0fc0, #2360d9); box-shadow: 0 0 14px rgba(37,117,252,.35); }
.card2 { background: linear-gradient(135deg, #00a7dd, #005fa3); box-shadow: 0 0 14px rgba(0,198,255,.35); }
.card3 { background: linear-gradient(135deg, #e17009, #d9a825); box-shadow: 0 0 14px rgba(225,128,9,.35); }
.card4 { background: linear-gradient(135deg, #009b85, #6aa84f); box-shadow: 0 0 14px rgba(0,176,155,.35); }

.card:hover { transform: translateY(-6px); filter: saturate(1.05); }

/* ===== Pourquoi RSAK ===== */
.why-list {
  list-style: none; display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr);
  align-items: start; text-align: center;
}
@media (max-width: 900px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }

.why-item h3 { margin-top: 8px; font-size: 18px; }
.why-item p  { color: rgba(255,255,255,.9); }
.why-emoji {
  font-size: 40px; display: inline-block; transition: transform .2s ease, text-shadow .2s ease;
  color: #d8f0ff; text-shadow: 0 0 0 transparent;
}
.why-item:hover .why-emoji { transform: translateY(-4px); text-shadow: 0 0 12px rgba(255,255,255,.35); }

/* ===== Contact ===== */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-box {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 18px 20px;
  border-radius: 14px; text-decoration: none; color: #ffffff; background: rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-box:hover {
  transform: translateY(-3px); background: rgba(255,255,255,.15); box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.contact-emoji { font-size: 22px; }
.contact-title { font-weight: 700; }
.contact-text { opacity: .9; }

.map-wrap { margin-top: 10px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer {
  background: #0b1c2c; padding: 24px 0; color: #cfd8e3;
  text-align: center; font-size: 14px;
  box-shadow: 0 -2px 14px rgba(0,198,255,.2);
}

/* ===== Fade-in animation ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Back to top button ===== */
#backToTop {
  position: fixed; bottom: 20px; right: 20px;
  background: #22ccff; color: #002b5c;
  border: none; border-radius: 50%;
  width: 44px; height: 44px; font-size: 20px; font-weight: bold;
  cursor: pointer; display: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: background .3s, transform .2s;
  z-index: 1100;
}
#backToTop:hover { background: #00a7dd; transform: translateY(-3px); }

/* ===== Utilities ===== */
:root { --header-h: 64px; }
.section { scroll-margin-top: calc(var(--header-h) + 12px); }
body { scroll-behavior: smooth; }
/* ===== Nos Tarifs (patch autonome) ===== */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #fff;
  color: #222;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.pricing-card h3 { margin-bottom: 10px; font-size: 18px; }
.pricing-card p  { margin-bottom: 12px; font-size: 15px; }
.pricing-card .price { font-weight: 700; margin-bottom: 14px; color: #0d47a1; }

/* Couleurs de repère en haut de carte */
.pricing-card.blue   { border-top: 5px solid #2196f3; }
.pricing-card.green  { border-top: 5px solid #4caf50; }
.pricing-card.yellow { border-top: 5px solid #ffc107; }
.pricing-card.cyan   { border-top: 5px solid #00bcd4; }
.pricing-card.violet { border-top: 5px solid #9c27b0; }

/* ===== Formulaire de contact ===== */
.contact-form {
  margin-top: 40px;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.contact-form h3 {
  margin-bottom: 16px;
  text-align: center;
  color: #fff;
}

.contact-form form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  margin-top: 6px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 2px #22ccff;
}

.contact-form button {
  background: #22ccff;
  color: #002b5c;
  border: none;
  padding: 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #00a7dd;
  transform: translateY(-2px);
}
#formulaire { scroll-margin-top: calc(var(--header-h) + 12px); }
/* ===========================
   BURGER MENU (mobile)
   =========================== */

/* ===== Bouton Burger ===== */
.burger {
  display: none; /* caché en desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;   /* largeur du bouton */
  height: 22px;  /* hauteur totale */
  cursor: pointer;
  z-index: 1001;
  background: none;  /* enlève tout fond */
  border: none;      /* enlève bordure */
  padding: 0;        /* enlève espace interne */
  margin: 0;         /* enlève marge externe */
}


.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff; /* couleur des traits */
  border-radius: 2px;     /* arrondi des coins */
  transition: all 0.3s ease;
}

/* Responsive : version mobile */
@media (max-width: 768px) {
  /* Cache le menu par défaut */
  nav.main-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: #111827; /* fond du menu mobile */
    width: 220px;
    padding: 15px;
    z-index: 1000;
  }

  /* Quand JS ajoute "active", le menu s’affiche */
  nav.main-nav.active {
    display: flex;
  }

  /* Affiche le bouton burger */
  .burger {
    display: flex;
  }

  /* Style des liens dans le menu mobile */
  nav.main-nav a {
    padding: 10px;
    color: white;
    text-decoration: none;
  }

  nav.main-nav a:hover {
    color: #38bdf8; /* bleu clair au survol */
  }
}
