/* =========================================
   devenir-francais.net — Feuille de style
   ========================================= */

/* ---- Variables ---- */
:root {
  --blue-900: #0d2d6b;
  --blue-700: #1a4fa8;
  --blue-500: #3b74d4;
  --blue-100: #e8f0fd;
  --blue-50:  #f0f5ff;

  --accent-green: #22c55e;
  --accent-pink:  #ec4899;
  --accent-amber: #f59e0b;
  --accent-teal:  #14b8a6;
  --accent-red:   #ef4444;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --white: #ffffff;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);

  --container: 1120px;
  --gap: clamp(16px, 2vw, 24px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--blue-700);
  color: var(--white);
  border: 1.5px solid var(--blue-700);
}
.btn--primary:hover { background: var(--blue-900); border-color: var(--blue-900); }
.btn--white {
  background: var(--white);
  color: var(--blue-700);
  border: 1.5px solid var(--white);
}
.btn--white:hover { background: var(--blue-50); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); }
.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--ghost-white:hover { border-color: var(--white); }

/* =========================================
   EYEBROW / BADGE
   ========================================= */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.eyebrow--dark {
  color: var(--blue-700);
  background: var(--blue-100);
  border-color: transparent;
}

/* =========================================
   SECTION DEFAULTS
   ========================================= */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt { background: var(--gray-50); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.25;
}
.section__lead {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 40px;
  max-width: 560px;
}

/* =========================================
   HEADER / NAV
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.logo__main  { color: var(--gray-900); }
.logo__accent{ color: var(--blue-700); }
.logo__tld   { color: var(--gray-500); font-size: 16px; font-weight: 400; }
.logo--footer .logo__main { color: var(--white); }
.logo--footer .logo__tld  { color: rgba(255,255,255,0.5); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link--btn:hover { background: var(--gray-100); }
.nav__link--btn {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
}
.nav__cta { margin-left: 12px; }

/* Dropdown */
.nav__item--dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 240px;
  padding: 6px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s;
}
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.dropdown a:hover { background: var(--gray-100); color: var(--blue-700); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.2s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: clamp(48px, 7vw, 96px) 0;
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}
.hero__content { max-width: 580px; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--white);
}
.hero__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}
.hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 500px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }

/* Hero visual / cards */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.hero__card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  width: 100%;
  color: var(--white);
}
.hero__card--small { width: 85%; }
.hero__card-icon { font-size: 28px; margin-bottom: 8px; }
.hero__card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.6; margin-bottom: 4px; }
.hero__card-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.hero__card-meta { font-size: 13px; opacity: 0.75; }

/* =========================================
   STATS
   ========================================= */
.stats {
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}
.stats__item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stats__item:last-child { border-right: none; }
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  color: var(--blue-700);
  line-height: 1;
  margin-bottom: 6px;
}
.stats__label {
  font-size: 13px;
  color: var(--gray-500);
}

/* =========================================
   SERVICES GRID
   ========================================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-card__icon--blue  { background: var(--blue-100); color: var(--blue-700); }
.service-card__icon--pink  { background: #fce7f3; color: #be185d; }
.service-card__icon--green { background: #dcfce7; color: #15803d; }
.service-card__icon--amber { background: #fef3c7; color: #b45309; }
.service-card__icon--teal  { background: #ccfbf1; color: #0f766e; }
.service-card__icon--red   { background: #fee2e2; color: #dc2626; }
.service-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.service-card__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 14px;
}
.service-card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-700);
  text-decoration: none;
  transition: gap 0.15s;
}
.service-card__link:hover { text-decoration: underline; }

/* =========================================
   PROCESS / STEPS
   ========================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  counter-reset: steps;
  list-style: none;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}
.step { position: relative; text-align: center; padding: 0 8px; }
.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.step__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.process__cta { text-align: center; margin-top: 48px; }

/* =========================================
   REVIEWS
   ========================================= */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card__stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.review-card__text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__avatar--green { background: #dcfce7; color: #15803d; }
.review-card__avatar--pink  { background: #fce7f3; color: #be185d; }
.review-card__name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.review-card__meta { font-size: 12px; color: var(--gray-500); }

/* =========================================
   CTA BAND
   ========================================= */
.cta-band {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  padding: clamp(48px, 6vw, 72px) 0;
  color: var(--white);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 8px;
}
.cta-band__lead {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(40px, 5vw, 64px);
}
.footer__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  line-height: 1.6;
}
.footer__notice {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
  line-height: 1.5;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--white); }
.footer__hours { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer__bottom {
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 0;
    overflow-y: auto;
    z-index: 99;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; width: 100%; align-items: flex-start; }
  .nav__item { width: 100%; }
  .nav__link, .nav__link--btn { width: 100%; padding: 12px 0; }
  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gray-200);
    border-radius: 0;
    margin-left: 12px;
    padding: 4px 0;
    background: transparent;
  }
  .nav__cta { margin: 16px 0 0; width: 100%; justify-content: center; }
  .stats__list { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .footer__nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================
   FOCUS / ACCESSIBILITY
   ========================================= */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
