/* ====== RESET SIMPLE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===========================
   THEME TOKENS (GLOBAL)
   Dark par défaut + Light doux
   =========================== */
:root{
  /* Dark (identique à ton design actuel) */
  --bg-gradient: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  --text: #e5e7eb;
  --muted: #9ca3af;

  --header-bg: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.7),
      transparent
  );
  --header-border: rgba(15, 23, 42, 0.95);

  --nav-link: #e5e7eb;
  --nav-active: #f97316;

  --card-border: rgba(15, 23, 42, 0.95);

  --btn-home-border: rgba(56, 189, 248, 0.9);
  --btn-home-bg: rgba(15, 23, 42, 0.96);
  --btn-home-text: #e0f2fe;

  --btn-secondary-border: rgba(148, 163, 184, 0.7);
  --btn-secondary-bg: rgba(15, 23, 42, 0.9);
  --btn-secondary-text: #e5e7eb;

  --footer-border: rgba(15, 23, 42, 0.95);
  --footer-text: #9ca3af;
  --footer-muted: #6b7280;

  --pill-bg: rgba(15, 23, 42, 0.8);
}

/* Light mode moins éclatant (global) */
body.light-mode{
  /* ✅ CHANGÉ : fond beaucoup plus soft (gris crème), pas blanc */
  --bg-gradient: radial-gradient(circle at top, #eef1f4 0, #e9edf2 55%, #dde3ea 100%);
  --text: #111827;      /* pas noir pur */
  --muted: #475569;

  --header-bg: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.78),
      rgba(238, 241, 244, 0.62),
      transparent
  );
  --header-border: rgba(15, 23, 42, 0.10);

  --nav-link: #111827;
  --nav-active: #ea580c; /* orange un poil moins "flash" */

  --card-border: rgba(15, 23, 42, 0.10);

  --btn-home-border: rgba(15, 23, 42, 0.14);
  --btn-home-bg: rgba(255, 255, 255, 0.82);
  --btn-home-text: #111827;

  --btn-secondary-border: rgba(15, 23, 42, 0.14);
  --btn-secondary-bg: rgba(255, 255, 255, 0.82);
  --btn-secondary-text: #111827;

  --footer-border: rgba(15, 23, 42, 0.10);
  --footer-text: #475569;
  --footer-muted: #64748b;

  --pill-bg: rgba(255, 255, 255, 0.70);

  /* Option "mat" (doux) */
  filter: saturate(0.92) contrast(0.97);
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

/* ====== LAYOUT GLOBAL ====== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====== HEADER / NAVBAR ====== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 0, rgba(249, 115, 22, 0.7), transparent 55%),
    radial-gradient(circle at 70% 100%, rgba(56, 189, 248, 0.5), transparent 55%);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.7);
}

.nav-logo span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-title-main {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-title-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Bloc contenant les liens + boutons */
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--nav-link);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.16s ease-out, color 0.16s ease-out;
}

.nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--nav-active);
}

.nav-link:hover {
  opacity: 1;
  color: var(--nav-active);
}

/* ====== BOUTON ACCUEIL (GLOBAL) ====== */
.btn-home {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--btn-home-border);
  background: var(--btn-home-bg);
  font-size: 0.9rem;
  color: var(--btn-home-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  transition: 0.2s ease-out;
}
body.light-mode .btn-home{
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}
.btn-home:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Ligne des 3 boutons partenaires */
.nav-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Style commun aux 3 CTA */
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px; /* même largeur */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid transparent;
}
body.light-mode .nav-cta{
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Espace partenaire (crédits) */
.nav-cta--outline {
  border-color: rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
}
body.light-mode .nav-cta--outline{
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.82);
  color: #111827;
}

/* Partenaire réseau (facturation) */
.nav-cta--network {
  border-color: rgba(56, 189, 248, 0.9);
  background: rgba(15, 23, 42, 0.96);
  color: #e0f2fe;
}
body.light-mode .nav-cta--network{
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.82);
  color: #111827;
}

/* Inscription */
.nav-cta--filled {
  border-color: rgba(249, 115, 22, 0.9);
  background:
    radial-gradient(circle at 30% 0, rgba(249, 115, 22, 0.7), transparent 55%),
    #0b1120;
  color: #fff7ed;
}
body.light-mode .nav-cta--filled{
  background:
    radial-gradient(circle at 30% 0, rgba(249, 115, 22, 0.18), transparent 55%),
    rgba(255,255,255,0.86);
  color: #111827;
  border-color: rgba(234, 88, 12, 0.52);
}

.nav-cta:hover {
  filter: brightness(1.08);
}

/* ====== HERO / SECTIONS ====== */

.hero {
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--muted));
  border-radius: 999px;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-highlight {
  background: linear-gradient(to right, #f97316, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-primary {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.9);
  background:
    radial-gradient(circle at 30% 0, rgba(249, 115, 22, 0.7), transparent 55%),
    #0b1120;
  font-size: 0.9rem;
  color: #fff7ed;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}
body.light-mode .btn-primary{
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--btn-secondary-border);
  background: var(--btn-secondary-bg);
  font-size: 0.9rem;
  color: var(--btn-secondary-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.badge-soft {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-panel {
  border-radius: 22px;
  padding: 18px 16px;
  border: 1px solid rgba(15, 23, 42, 0.96);
  background:
    radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), transparent 55%),
    rgba(2, 6, 23, 0.98);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset;
  font-size: 0.9rem;
}
body.light-mode .hero-panel{
  background:
    radial-gradient(circle at top left, rgba(2, 6, 23, 0.04), transparent 55%),
    rgba(255,255,255,0.86);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* ====== SECTIONS GÉNÉRIQUES ====== */

.section {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 20px;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 640px;
}

/* ====== FOOTER GÉNÉRAL ====== */

.site-footer {
  border-top: 1px solid var(--footer-border);
  padding: 18px 0 24px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--footer-text);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-brand-sub {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--footer-muted);
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-contact-line i {
  opacity: 0.85;
  font-size: 0.85rem;
}

.footer-sep {
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--footer-muted);
}

.footer-social-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-social-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 11px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at 30% 0, rgba(249, 115, 22, 0.45), transparent 55%),
    radial-gradient(circle at 70% 100%, rgba(56, 189, 248, 0.35), transparent 55%),
    rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  font-size: 1rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9) inset,
    0 10px 22px rgba(0, 0, 0, 0.75);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  animation: iconFade 0.4s ease-out forwards;
}
body.light-mode .social-icon{
  background: rgba(255,255,255,0.80);
  color: #111827;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.social-icon:nth-child(1) { animation-delay: .05s; }
social-icon:nth-child(2) { animation-delay: .12s; }
social-icon:nth-child(3) { animation-delay: .19s; }
social-icon:nth-child(4) { animation-delay: .26s; }

@keyframes iconFade {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: rgba(249, 115, 22, 1);
  color: #fed7aa;
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 1),
    0 0 22px rgba(249, 115, 22, 0.85);
}
body.light-mode .social-icon:hover{
  border-color: rgba(234, 88, 12, 0.55);
  color: #111827;
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

/* ====== SERVICES DE FICHIERS (PAGE services-fichiers.html) ====== */

.file-services-wrapper {
  padding: 32px 0 40px;
}

/* Bloc principal services */
.file-services {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 24px 22px 22px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(145deg, #020617, #020617 45%, #000 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9) inset;
}
body.light-mode .file-services{
  background:
    radial-gradient(circle at top left, rgba(234, 88, 12, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.08), transparent 55%),
    rgba(255,255,255,0.86);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.10);
}

/* ... (le reste de ton CSS page fichiers est inchangé) ... */

/* ===========================
   FIX LIGHT MODE (FORCE OVERRIDE)
   (nécessaire car certaines pages ont des styles inline qui écrasent style.css)
   =========================== */

/* ✅ CHANGÉ : on force le fond SOFT, pas le blanc éclatant */
body.light-mode {
  color: #111827 !important;
  background: radial-gradient(circle at top, #eef1f4 0, #e9edf2 55%, #dde3ea 100%) !important;
}

/* header */
body.light-mode .site-header {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.78),
    rgba(238, 241, 244, 0.62),
    transparent
  ) !important;
  border-bottom-color: rgba(15, 23, 42, 0.10) !important;
}

/* liens/menu */
body.light-mode .nav-link {
  color: #111827 !important;
}
body.light-mode .nav-link:hover,
body.light-mode .nav-link[aria-current="page"] {
  color: #ea580c !important;
}

/* cartes "auth" (inscription.php) + panels */
body.light-mode .auth-card,
body.light-mode .hero-panel,
body.light-mode .file-services,
body.light-mode .file-service-card {
  background: rgba(255,255,255,0.86) !important;
  border-color: rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.10) !important;
}

/* textes */
body.light-mode .auth-eyebrow,
body.light-mode .auth-card p,
body.light-mode .checkbox-row,
body.light-mode .muted {
  color: #475569 !important;
}
body.light-mode .auth-card h2 {
  color: #111827 !important;
}

/* forms (inscription.php a des styles inline, donc on force) */
body.light-mode .form-group label {
  color: #111827 !important;
}
body.light-mode .form-control,
body.light-mode .form-select,
body.light-mode .form-textarea {
  background: #eef1f4 !important; /* ✅ un peu moins blanc */
  color: #111827 !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}
body.light-mode .form-control:focus,
body.light-mode .form-select:focus,
body.light-mode .form-textarea:focus {
  border-color: rgba(59,130,246,0.65) !important;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.35) !important;
}

/* footer */
body.light-mode .site-footer {
  border-top-color: rgba(15, 23, 42, 0.10) !important;
  color: #475569 !important;
}
body.light-mode .footer-brand-sub,
body.light-mode .footer-copy,
body.light-mode .footer-social-label {
  color: #64748b !important;
}

/* bouton accueil */
body.light-mode .btn-home {
  background: rgba(255,255,255,0.82) !important;
  color: #111827 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10) !important;
}

/* ===========================
   PATCH: compat HTML actuel (nav-top-row / nav-right-extra)
   (sans changer ton HTML ni la présentation)
   =========================== */

.nav-top-row{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
}

.nav-right-extra{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  width: 100%;
}

.nav-burger{
  display: none;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

.nav-burger-icon{
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.nav-burger-icon span{
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 960px){
  .nav-burger{ display: inline-flex; }

  .nav-right-extra{
    display: none;
    align-items: flex-start;
    padding-top: 6px;
  }

  body.nav-open .nav-right-extra{ display: flex; }

  .nav-menu{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .nav-cta-row{
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .nav-cta{
    width: 100%;
    min-width: 0;
  }
}
