/* ============================================================
   AddiPass — feuille de style partagee des pages internes
   (legal, about, press, blog, 404). Reprend l'identite du site
   vitrine : theme navy/cyan, police Inter.
   ============================================================ */

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

:root {
  --cyan: #06D6FF;
  --cyan-dark: #0099CC;
  --purple: #7C3AED;
  --green: #10B981;
  --amber: #F59E0B;
  --dark: #070D1A;
  --dark-2: #0B1428;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --grad-main: linear-gradient(135deg, #06D6FF 0%, #7C3AED 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ═══════ NAVBAR ═══════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 0;
  background: rgba(7,13,26,.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.nav-logo span {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.7); transition: color .2s; }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-size: .9375rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .25s ease;
}
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 8px 24px rgba(6,214,255,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(6,214,255,.4); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: .875rem; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ═══════ PAGE HERO ═══════ */
.page-hero {
  background: var(--dark);
  padding: 150px 0 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute;
  top: -45%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(6,214,255,.13) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 14px;
}
.page-hero .lead { color: rgba(255,255,255,.62); font-size: 1.075rem; max-width: 620px; margin: 0 auto; }
.page-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(6,214,255,.12);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* ═══════ PROSE (pages legales / texte) ═══════ */
.prose { padding: 56px 0 84px; }
.prose .updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 28px; }
.prose h2 {
  font-size: 1.35rem; font-weight: 800; color: var(--dark-2);
  margin: 40px 0 14px; padding-top: 8px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.075rem; font-weight: 700; color: var(--dark-2); margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--cyan-dark); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose strong { font-weight: 700; color: var(--dark-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 700; }

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .92rem; color: var(--text-muted);
  margin: 22px 0;
}

.toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 36px;
}
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 12px; }
.toc ul { list-style: none; margin: 0; columns: 2; }
.toc li { margin-bottom: 8px; }
.toc a { font-size: .9rem; color: var(--text); font-weight: 500; }
.toc a:hover { color: var(--cyan-dark); }
@media (max-width: 600px) { .toc ul { columns: 1; } }

/* ═══════ SECTIONS GENERIQUES ═══════ */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--dark-2); margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin-bottom: 40px; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark-2); margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: rgba(6,214,255,.1);
}

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-grid .stat { text-align: center; }
.value-grid .num { font-size: 2.2rem; font-weight: 900; }
.value-grid .lbl { font-size: .85rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@media (max-width: 820px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

/* ═══════ CTA BANNER ═══════ */
.cta-banner { background: var(--grad-main); padding: 64px 0; text-align: center; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.cta-banner .btn-white { background: #fff; color: var(--dark-2); }
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.2); }

/* ═══════ FOOTER ═══════ */
.site-footer { background: var(--dark); padding: 58px 0 30px; color: rgba(255,255,255,.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .nav-logo { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: .875rem; line-height: 1.65; max-width: 260px; }
.footer-col h4 { font-size: .875rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8125rem; }
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.6);
  font-size: .95rem; transition: all .2s;
}
.social-btn:hover { background: var(--cyan); color: var(--dark); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════ COOKIE BANNER (utilise aussi par index.html) ═══════ */
#cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000;
  max-width: 920px; margin: 0 auto;
  background: var(--dark-2); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  padding: 18px 22px;
  display: none;
  align-items: center; gap: 18px; flex-wrap: wrap;
}
#cookie-banner.show { display: flex; }
#cookie-banner p { font-size: .875rem; flex: 1; min-width: 240px; line-height: 1.55; }
#cookie-banner a { color: var(--cyan); }
#cookie-banner .cookie-actions { display: flex; gap: 10px; }
#cookie-banner button {
  padding: 9px 18px; border-radius: 9px; font-size: .85rem; font-weight: 600;
  cursor: pointer; border: none; font-family: inherit;
}
.cookie-accept { background: var(--grad-main); color: #fff; }
.cookie-decline { background: rgba(255,255,255,.1); color: #fff; }

/* ═══════ 404 ═══════ */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: var(--dark); padding: 40px 24px;
}
.notfound .code {
  font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.notfound h1 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 8px 0 10px; }
.notfound p { color: rgba(255,255,255,.55); margin-bottom: 28px; max-width: 420px; }

/* ═══════ R2 : logo image ═══════ */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: 40px; display: block; border-radius: 50%; }
.footer-brand .nav-logo img { height: 52px; }
.social-btn svg { display: block; }
