/* =============================================
   XHOVEMONT — Feuille de style
   Thème : Fintech sombre, sobre et professionnel
   ============================================= */

/* Police Inter auto-hébergée (variable, graisses 400 à 800) —
   évite de charger la police depuis le CDN Google Fonts, qui enverrait
   l'IP de chaque visiteur à Google avant même le choix de consentement. */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-var.woff') format('woff');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de base */
  --bg: #070B14;
  --bg-elevated: #0E1420;
  --bg-elevated-2: #131A28;
  --border: #1F2937;
  --text: #E8ECF3;
  --text-muted: #92A0B5;

  /* Accent (dégradé teal -> bleu, typique fintech) */
  --accent: #2DD8C0;
  --accent-2: #4C8DFF;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));

  /* Danger (section "pourquoi agir" uniquement) */
  --danger: #FF6B6B;

  /* Divers */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 0 1px rgba(45, 216, 192, 0.15), 0 10px 30px -10px rgba(45, 216, 192, 0.25);
  --max-width: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset minimal ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-accent {
  background: var(--accent-grad);
  color: #06110F;
  box-shadow: var(--shadow-glow);
}
.btn-accent:hover { box-shadow: 0 0 0 1px rgba(45,216,192,0.3), 0 14px 34px -10px rgba(45,216,192,0.4); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-list {
  display: flex;
  gap: 28px;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text); }

/* ---------- Sous-menu déroulant "Services" (nav) ---------- */
.nav-item-services { position: relative; }
.nav-item-services > .nav-link { display: inline-flex; align-items: center; gap: 4px; }
.nav-item-services > .nav-link::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.services-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 240px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  gap: 2px;
  z-index: 60;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.55);
}
.nav-item-services:hover .services-dropdown,
.nav-item-services:focus-within .services-dropdown {
  display: flex;
  flex-direction: column;
}
.nav-item-services:hover > .nav-link::after {
  transform: rotate(225deg) translateY(2px);
}
.services-dropdown a {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.services-dropdown a:hover { background: rgba(45,216,192,0.1); color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.burger span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sélecteur de langue (nav) ---------- */
.lang-switch { position: relative; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-current:hover { border-color: var(--accent); color: var(--accent); }
.lang-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.55);
}
.lang-options.open { display: flex; }
.lang-options li {
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-options li:hover { background: rgba(45,216,192,0.1); color: var(--text); }
.lang-options li.is-active { color: var(--accent); font-weight: 600; }

/* ---------- Modale de choix de langue (première visite) ---------- */
.lang-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3,6,12,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lang-modal-overlay[hidden] { display: none; }
.lang-modal {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lang-modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 22px; }
.lang-modal-options { display: grid; gap: 10px; margin-bottom: 18px; }
.lang-modal-btn {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-modal-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-modal-note { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(45,216,192,0.14), transparent 60%),
    radial-gradient(500px circle at 85% 0%, rgba(76,141,255,0.14), transparent 60%),
    linear-gradient(180deg, #070B14, #070B14);
  z-index: -1;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections génériques ---------- */
section { padding: 96px 0; }
.section-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 640px;
}
.section-lead {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ---------- Services ---------- */
.services { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(45,216,192,0.4); }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(45, 216, 192, 0.1);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.number { font-size: 1.15rem; font-weight: 800; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card h3 small { color: var(--text-muted); font-size: 0.7rem; font-weight: 500; }
.card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Paliers (accompagnement) ---------- */
.paliers .cards.steps { grid-template-columns: repeat(3, 1fr); }

/* ---------- Pourquoi agir (pain points) ---------- */
.pain { border-top: 1px solid var(--border); }
.pain .cards.pain-cards { grid-template-columns: repeat(4, 1fr); }
.card.danger:hover { border-color: rgba(255,107,107,0.4); }
.card-icon.danger { color: var(--danger); background: rgba(255,107,107,0.1); }

/* ---------- À propos ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-text .section-title { color: var(--text); }
.about-stats {
  display: grid;
  gap: 24px;
}
.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat-label { color: var(--text-muted); font-size: 0.88rem; }
.stat-label small { color: #5C6B80; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-elevated); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-details { display: grid; gap: 20px; margin-top: 32px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-details a { color: var(--text); font-weight: 600; }
.contact-details a:hover { color: var(--accent); }
.placeholder-note { color: #5C6B80; font-size: 0.78rem; }

.contact-form {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.85rem; color: var(--text-muted); }
.form-row input,
.form-row textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,216,192,0.15);
}
.form-submit { justify-self: start; margin-top: 4px; }
.form-note { font-size: 0.85rem; color: var(--accent); min-height: 1.2em; }

/* ---------- Bandeau cookies (consentement Google Analytics) ---------- */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.55);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { color: var(--text-muted); font-size: 0.88rem; flex: 1 1 320px; margin: 0; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Cards de service cliquables (accueil) ---------- */
a.card { display: block; }
.card-readmore {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-readmore svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
a.card:hover .card-readmore svg { transform: translateX(3px); }

/* ---------- Pages dédiées (NIS2, DORA, AI Act, RGPD, CER, CRA) ---------- */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color 0.15s ease;
}
.page-back:hover { color: var(--accent); }

.page-hero {
  position: relative;
  padding: 100px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(45,216,192,0.14), transparent 60%),
    radial-gradient(500px circle at 85% 0%, rgba(76,141,255,0.14), transparent 60%),
    linear-gradient(180deg, #070B14, #070B14);
}
.page-hero-inner { max-width: 760px; }
.page-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45,216,192,0.35);
  background: rgba(45,216,192,0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.page-hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.page-context p { color: var(--text-muted); margin-bottom: 16px; max-width: 760px; }
.page-context p:last-child { margin-bottom: 0; }

.obligations .cards { grid-template-columns: repeat(3, 1fr); }
.risks-section { border-top: 1px solid var(--border); background: var(--bg-elevated); }
.risks-section .cards { grid-template-columns: repeat(4, 1fr); }

.page-cta {
  text-align: center;
  padding: 88px 0;
}
.page-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}
.page-cta .section-title { max-width: none; }
.page-cta .section-lead { max-width: none; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner a:hover { color: var(--accent); }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .obligations .cards { grid-template-columns: repeat(2, 1fr); }
  .risks-section .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-top: 1px solid var(--border);
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 20px; }
  .nav-link { font-size: 1.05rem; }
  .burger { display: flex; }
  .hero { padding: 80px 0 64px; }
  section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .lang-options { left: 0; right: auto; }
  .lang-modal { padding: 28px 22px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; flex-direction: column; align-items: flex-start; }

  /* Sous-menu Services : toujours déplié dans le menu mobile plein écran,
     pas de survol sur tactile. */
  .nav-item-services > .nav-link::after { display: none; }
  .services-dropdown {
    display: flex;
    flex-direction: column;
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 4px 0 0 16px;
    min-width: 0;
  }
  .services-dropdown a { font-size: 0.98rem; padding: 8px 0; color: var(--text-muted); }

  .page-hero { padding: 72px 0 56px; }
  .obligations .cards { grid-template-columns: 1fr; }
  .risks-section .cards { grid-template-columns: 1fr; }
}
