/* ============================================
   Naturalisation France Facile — Global Styles
   Palette: #0a0f2c (navy), #002395 (bleu), #ED2939 (rouge), #fff
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: #0a0f2c;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 15, 44, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 16px; font-weight: 800; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 6px;
}
.nav-logo span { color: #ED2939; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: #ED2939 !important; color: #fff !important;
  padding: 7px 18px; border-radius: 8px;
  font-weight: 600 !important; font-size: 13px !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: none; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(10,15,44,0.98);
    backdrop-filter: blur(20px);
    padding: 20px; gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(160deg, #002395 0%, #0a0f2c 50%, #ED2939 100%);
  position: relative;
}
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, #0a0f2c);
  pointer-events: none;
}
.hero-mascot {
  width: 140px; height: 140px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900; letter-spacing: -2.5px;
  line-height: 1; margin-bottom: 20px;
}
.hero h1 span { color: #ED2939; }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.65);
  max-width: 480px; margin: 0 auto 36px;
  line-height: 1.7;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #0a0f2c;
  padding: 14px 32px; border-radius: 12px;
  font-size: 16px; font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(0,0,0,0.3); }
.cta-btn svg { width: 22px; height: 22px; }

.badge-line {
  display: inline-block; margin-top: 16px;
  color: rgba(255,255,255,0.4); font-size: 12px;
  position: relative; z-index: 1;
  letter-spacing: 0.3px;
}

/* --- Section base --- */
.section { padding: 60px 24px; max-width: 1120px; margin: 0 auto; }
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800; letter-spacing: -0.8px;
  text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: rgba(255,255,255,0.5);
  max-width: 500px; margin: 0 auto 44px;
  font-size: 16px; line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; max-width: 1060px; margin: 0 auto;
}
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  --accent: #3B82F6;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
  opacity: 0; transition: opacity 0.25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background 0.25s;
}
.feature-card:hover .feature-icon-wrap {
  background: rgba(255,255,255,0.12);
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.55; margin-bottom: 12px; }
.feature-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(255,255,255,0.06);
  padding: 4px 10px; border-radius: 6px;
}

/* --- Story --- */
.story-mascot {
  width: 80px; height: 80px; margin: 0 auto 16px;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.2));
}
.story { max-width: 600px; margin: 0 auto; text-align: center; }
.story p {
  font-size: 17px; color: rgba(255,255,255,0.6);
  line-height: 1.8;
}
.story strong { color: #fff; }

/* --- FAQ --- */
.faq { max-width: 640px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
}
.faq-q {
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.9);
}
.faq-q::after {
  content: '+'; font-size: 20px; font-weight: 300;
  color: rgba(255,255,255,0.3); transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); color: #ED2939; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7;
}
.faq-a a { color: #ED2939; }
.faq-item.open .faq-a { max-height: 300px; padding-top: 14px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #002395, #ED2939);
  padding: 72px 24px; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800; margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px; color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}

/* --- Blog grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 960px; margin: 0 auto;
}
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.blog-card-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: #ED2939; margin-bottom: 10px;
}
.blog-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.blog-card p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 14px; }
.blog-card-link { font-size: 13px; font-weight: 600; color: #ED2939; }
.blog-card-link:hover { text-decoration: underline; }

/* --- Article --- */
.article { max-width: 680px; margin: 0 auto; padding: 100px 24px 40px; }
.article-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 28px;
}
.article-back:hover { color: #fff; }
.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -0.8px;
  line-height: 1.15; margin-bottom: 12px;
}
.article-meta { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 36px; }
.article-body h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.article-body p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; }
.article-body li { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 6px; }
.article-body strong { color: #fff; }
.article-body a { color: #ED2939; text-decoration: underline; }

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 36px 24px; text-align: center;
}
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }

/* --- Legal pages --- */
.legal { max-width: 680px; margin: 0 auto; padding: 100px 24px 40px; }
.legal h1 { font-size: 30px; font-weight: 800; margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.legal p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 14px; }

/* --- 404 --- */
.four-oh-four { text-align: center; padding: 180px 24px 80px; }
.four-oh-four h1 { font-size: 72px; font-weight: 900; margin-bottom: 12px; color: rgba(255,255,255,0.15); }
.four-oh-four p { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 28px; }
