/* ============================================================
   NGE Consulting Immigration — Portail d'accès
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red:        #cc1f2d;
  --red-light:  #e8333f;
  --red-dark:   #a01520;
  --brown:      #3d2b1f;
  --brown-mid:  #5c4033;
  --gold:       #3e44e1;
  --gold-light: blue; 
  --white:      #ffffff;
  --off-white:  #f8f6f3;
  --gray-100:   #f2ede8;
  --gray-200:   #e4ddd5;
  --gray-400:   #b0a090;
  --gray-600:   #7a6b5e;
  --text:       #2a1e16;
  --text-soft:  #6b5c50;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-card: 0 8px 40px rgba(61,43,31,0.13), 0 2px 8px rgba(61,43,31,0.07);
  --shadow-card-hover: 0 20px 64px rgba(61,43,31,0.2), 0 4px 16px rgba(61,43,31,0.1);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Background gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(204,31,45,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(200,146,42,0.06) 0%, transparent 60%),
    linear-gradient(160deg, #fdf9f5 0%, #f4ece3 50%, #ede3d6 100%);
  z-index: 0;
}

/* ── Floating particles ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0;
  animation: float-up 12s infinite ease-in;
}

.particles span:nth-child(1)  { width: 6px;  height: 6px;  left: 10%; background: rgba(204,31,45,0.2);  animation-delay: 0s;    animation-duration: 14s; }
.particles span:nth-child(2)  { width: 4px;  height: 4px;  left: 25%; background: rgba(200,146,42,0.25); animation-delay: 2s;    animation-duration: 11s; }
.particles span:nth-child(3)  { width: 8px;  height: 8px;  left: 40%; background: rgba(204,31,45,0.15);  animation-delay: 4s;    animation-duration: 16s; }
.particles span:nth-child(4)  { width: 5px;  height: 5px;  left: 55%; background: rgba(200,146,42,0.2);  animation-delay: 1s;    animation-duration: 13s; }
.particles span:nth-child(5)  { width: 6px;  height: 6px;  left: 70%; background: rgba(204,31,45,0.18);  animation-delay: 3s;    animation-duration: 15s; }
.particles span:nth-child(6)  { width: 4px;  height: 4px;  left: 82%; background: rgba(200,146,42,0.22); animation-delay: 5s;    animation-duration: 12s; }
.particles span:nth-child(7)  { width: 7px;  height: 7px;  left: 15%; background: rgba(204,31,45,0.12);  animation-delay: 6s;    animation-duration: 17s; }
.particles span:nth-child(8)  { width: 5px;  height: 5px;  left: 90%; background: rgba(200,146,42,0.18); animation-delay: 0.5s;  animation-duration: 14s; }
.particles span:nth-child(9)  { width: 3px;  height: 3px;  left: 60%; background: rgba(204,31,45,0.2);   animation-delay: 7s;    animation-duration: 11s; }
.particles span:nth-child(10) { width: 6px;  height: 6px;  left: 35%; background: rgba(200,146,42,0.15); animation-delay: 2.5s;  animation-duration: 18s; }

@keyframes float-up {
  0%   { bottom: -10%;  opacity: 0;   transform: translateX(0) scale(1); }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { bottom: 110%;  opacity: 0;   transform: translateX(30px) scale(0.5); }
}

/* ── Page wrapper ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  padding: 32px 24px 0;
  display: flex;
  justify-content: center;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 640px;
  text-align: center;
}

.logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(61,43,31,0.15));
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.03);
}

.tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 48px 24px 0;
  display: flex;
  justify-content: center;
}

.hero-inner {
  text-align: center;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(204,31,45,0.09);
  border: 1px solid rgba(204,31,45,0.2);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--red);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ============================================================
   CARDS SECTION
   ============================================================ */
.cards-section {
  padding: 52px 24px 48px;
  flex: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* ── Single card ── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 32px 32px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid rgba(61,43,31,0.07);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card--primary::before {
  background: linear-gradient(90deg, var(--red), var(--red-light));
}

.card--secondary::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(61,43,31,0.12);
}

/* Glow effect */
.card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.card--primary .card-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(204,31,45,0.06) 0%, transparent 70%);
}

.card--secondary .card-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(200,146,42,0.07) 0%, transparent 70%);
}

.card:hover .card-glow {
  opacity: 1;
}

/* ── Card icon ── */
.card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card--primary .card-icon-wrap {
  background: linear-gradient(135deg, rgba(204,31,45,0.12), rgba(204,31,45,0.06));
  color: var(--red);
}

.card--secondary .card-icon-wrap {
  background: linear-gradient(135deg, rgba(200,146,42,0.14), rgba(200,146,42,0.06));
  color: var(--gold);
}

.card-icon {
  width: 28px;
  height: 28px;
}

/* ── Card content ── */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card--primary .card-label { color: var(--red); }
.card--secondary .card-label { color: var(--gold); }

.card-title {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--brown);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-top: 2px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.card-features li {
  font-size: 0.85rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card--primary .card-features li::before { background: var(--red); }
.card--secondary .card-features li::before { background: var(--gold); }

/* ── Card CTA ── */
.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 4px;
  transition: filter var(--transition), transform var(--transition);
}

.card--primary .card-cta {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  box-shadow: 0 4px 20px rgba(204,31,45,0.3);
}

.card--secondary .card-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 4px 20px rgba(200,146,42,0.3);
}

.card:hover .card-cta {
  filter: brightness(1.05);
  transform: none;
}

.card-cta svg {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.card:hover .card-cta svg {
  transform: translateX(4px);
}

/* ============================================================
   INFO STRIP
   ============================================================ */
.info-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 22px 24px;
}

.info-strip-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
}

.info-item svg {
  color: var(--red);
  flex-shrink: 0;
}

.info-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 24px;
  background: var(--brown);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.footer-url {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .header {
    padding: 24px 16px 0;
  }

  .logo {
    height: 56px;
  }

  .hero {
    padding: 36px 16px 0;
  }

  .cards-section {
    padding: 36px 16px 36px;
  }

  .cards-grid {
    gap: 20px;
  }

  .card {
    padding: 28px 22px 24px;
  }

  .info-strip-inner {
    flex-direction: column;
    gap: 4px;
  }

  .info-divider {
    display: none;
  }

  .info-item {
    padding: 4px 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .card-title {
    font-size: 1.15rem;
  }
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-inner {
  animation: fade-up 0.6s ease both;
}

.hero-inner {
  animation: fade-up 0.6s 0.1s ease both;
}

.card:nth-child(1) {
  animation: fade-up 0.6s 0.2s ease both;
}

.card:nth-child(2) {
  animation: fade-up 0.6s 0.32s ease both;
}

.info-strip {
  animation: fade-up 0.6s 0.45s ease both;
}
