/* =========================================================
   RETICEO — Design System
   Operator of sovereign educational digital infrastructures
   ========================================================= */

:root {
  /* Brand palette — inspired by the logo (deep navy + gold accent) */
  --navy-900: #0a1a3a;
  --navy-800: #102648;
  --navy-700: #1a3563;
  --navy-600: #234680;
  --navy-500: #2f5aa3;
  --navy-50:  #f4f7fc;

  --gold-600: #b8893a;
  --gold-500: #d4a24a;
  --gold-400: #e4ba6d;
  --gold-100: #faf1de;

  --terracotta: #e09956;   /* SVT banner echo from hero */
  --teal-500: #2b8a8a;
  --teal-100: #d7ecec;

  --ink-900: #0e1726;
  --ink-700: #2a3548;
  --ink-500: #5a6577;
  --ink-300: #98a0b0;
  --ink-100: #e6e9ef;
  --bg:      #ffffff;
  --bg-soft: #f7f9fc;

  --success: #1e8a55;
  --danger:  #c43c3c;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10,26,58,.06);
  --shadow:    0 10px 30px rgba(10,26,58,.08);
  --shadow-lg: 0 24px 60px rgba(10,26,58,.14);

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --container: 1200px;
}

/* ----------  Reset & base  ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a   { color: var(--navy-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
ul  { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .8rem; }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-700); }

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

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font-weight: 600; font-size: .95rem;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); color: var(--navy-900); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--ink-100); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* ----------  Navigation  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy-900); letter-spacing: .04em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: grid; place-items: center; color: var(--gold-400);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.brand span.accent { color: var(--gold-600); }

/* ---- Logo image (fichier SVG) ---- */
.brand-logo { gap: 0; }
.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
/* Version footer : le logo SVG est sur fond navy → on applique un filtre pour le rendre blanc/or */
.logo-img-footer {
  filter: brightness(0) invert(1);
  opacity: .92;
}
@media (max-width: 480px) {
  .logo-img { height: 32px; max-width: 140px; }
}

.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--navy-900); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -8px; left: 0; right: 0;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}
.nav-cta { display: flex; gap: .6rem; align-items: center; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--navy-900); cursor: pointer; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; min-width: 260px; padding: .8rem;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .22s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: .65rem .8rem; border-radius: 8px; font-size: .92rem; color: var(--ink-700); }
.dropdown a:hover { background: var(--bg-soft); color: var(--navy-900); }
.dropdown a small { display: block; color: var(--ink-500); font-size: .78rem; font-weight: 400; }

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(212,162,74,.18), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(43,138,138,.12), transparent 60%),
    linear-gradient(180deg, #0a1a3a 0%, #102648 60%, #1a3563 100%);
  color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 3rem; align-items: center;
  padding: 5rem 1.5rem 6rem; max-width: var(--container); margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); padding: .35rem .9rem;
  background: rgba(212,162,74,.12); border: 1px solid rgba(212,162,74,.3);
  border-radius: 999px;
}
.hero h1 { color: #fff; margin: 1.2rem 0 1.2rem; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero-lede { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 580px; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.kpi .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold-400); font-weight: 700; }
.kpi .lbl { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
  display: grid; place-items: center;
  backdrop-filter: blur(10px);
}
.hero-visual::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold-500), transparent 40%, var(--teal-500));
  z-index: -1; opacity: .35; filter: blur(20px);
}
.floating-card {
  position: absolute; background: #fff; color: var(--ink-900);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 500;
  display: flex; align-items: center; gap: .7rem;
}
.floating-card i { color: var(--gold-600); font-size: 1.3rem; }
.fc-1 { top: 8%; left: -6%; }
.fc-2 { bottom: 12%; right: -8%; }
.fc-3 { bottom: 35%; left: -10%; }

/* ----------  Sections  ---------- */
section { padding: 5rem 0; }
.section-eyebrow {
  color: var(--gold-600); font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem;
  display: block;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; margin-top: .6rem; }

.bg-soft  { background: var(--bg-soft); }
.bg-navy  { background: var(--navy-900); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,.78); }

/* ----------  Cards grid  ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; border: 1px solid var(--ink-100);
  transition: all .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-400); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400); display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--navy-700); font-size: .9rem; }
.card .card-link::after { content: " →"; transition: transform .2s; display: inline-block; }
.card:hover .card-link::after { transform: translateX(4px); }

/* Pillar / feature card (with number) */
.pillar {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 2rem; border: 1px solid var(--ink-100);
  overflow: hidden;
}
.pillar::before {
  content: attr(data-num);
  position: absolute; top: -10px; right: 12px;
  font-family: var(--font-display); font-size: 5rem;
  color: var(--gold-100); font-weight: 900;
  line-height: 1; pointer-events: none;
}
.pillar h3 { color: var(--navy-900); }

/* ----------  Programme RENAL banner  ---------- */
.renal-hero {
  background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--teal-500) 130%);
  color: #fff; padding: 5rem 0; position: relative; overflow: hidden;
}
.renal-hero .container { position: relative; z-index: 2; }
.renal-hero::after {
  content: "80/20"; position: absolute; right: -3rem; bottom: -3rem;
  font-family: var(--font-display); font-weight: 900;
  font-size: 22rem; color: rgba(255,255,255,.04);
  line-height: 1; pointer-events: none;
}
.renal-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.badge-offline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(212,162,74,.2); color: var(--gold-400);
  padding: .4rem 1rem; border-radius: 999px; font-weight: 600;
  font-size: .85rem; margin-bottom: 1.2rem; border: 1px solid rgba(212,162,74,.4);
}

/* ----------  Process / timeline  ---------- */
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--gold-500), var(--navy-600));
}
.tl-item { position: relative; padding-left: 80px; padding-bottom: 2.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute; left: 0; top: 0;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; border: 3px solid var(--gold-500);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  color: var(--navy-900); font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.tl-item h3 { margin-bottom: .4rem; }

/* ----------  Stakeholder tabs  ---------- */
.stakeholder-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  background: var(--navy-50); padding: .5rem;
  border-radius: 999px; margin: 0 auto 2.5rem; max-width: max-content;
}
.stakeholder-tabs button {
  background: transparent; border: none; cursor: pointer;
  padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 600; color: var(--ink-700); font-size: .92rem;
  transition: all .25s;
}
.stakeholder-tabs button.active {
  background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow-sm);
}
.stakeholder-panel { display: none; }
.stakeholder-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----------  Comparison table  ---------- */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 1rem 1.2rem; text-align: left;
  border-bottom: 1px solid var(--ink-100); font-size: .95rem;
}
.compare-table thead th {
  background: var(--navy-900); color: #fff; font-weight: 600;
  text-transform: uppercase; font-size: .8rem; letter-spacing: .06em;
}
.compare-table tbody tr:hover { background: var(--bg-soft); }
.compare-table .yes { color: var(--success); font-weight: 600; }
.compare-table .no  { color: var(--ink-300); }
.compare-table .star { color: var(--gold-600); font-weight: 700; }

/* ----------  Testimonials  ---------- */
.testimonial {
  background: #fff; border-radius: var(--radius-lg);
  padding: 2.2rem; border: 1px solid var(--ink-100);
  position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: var(--font-display);
  font-size: 5rem; color: var(--gold-400);
  position: absolute; top: -10px; left: 1rem; line-height: 1;
}
.testimonial blockquote { font-style: italic; color: var(--ink-700); margin: 1rem 0; }
.testimonial .author { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ink-100); }
.testimonial .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--gold-500));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.testimonial .author-info strong { display: block; color: var(--navy-900); }
.testimonial .author-info span   { font-size: .85rem; color: var(--ink-500); }

/* ----------  CTA band  ---------- */
.cta-band {
  background:
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 3.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(212,162,74,.18), transparent 60%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p  { color: rgba(255,255,255,.82); max-width: 640px; margin: 1rem auto 2rem; }
.cta-band-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ----------  Footer  ---------- */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem; font-size: .93rem;
}
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 1rem; margin-bottom: 1.2rem; letter-spacing: .04em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: .3rem 0; }
.site-footer a:hover { color: var(--gold-400); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem;
}
.footer-brand p { margin-top: 1rem; color: rgba(255,255,255,.65); }

/* ----------  Forms  ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem;
  background: #fff; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero {
  background: linear-gradient(110deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,74,.2), transparent 60%);
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 720px; margin-top: 1rem; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1.5rem; }
.crumbs a { color: var(--gold-400); }

/* ----------  Lists with check  ---------- */
.check-list { display: grid; gap: .8rem; margin: 1.2rem 0; }
.check-list li { padding-left: 1.8rem; position: relative; color: var(--ink-700); }
.check-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 2px;
  color: var(--success); font-size: .9rem;
}

/* ----------  Stat block  ---------- */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; padding: 2.5rem; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
.stat-item { text-align: center; }
.stat-item .v { font-family: var(--font-display); font-size: 2.4rem; color: var(--navy-900); font-weight: 700; }
.stat-item .l { color: var(--ink-500); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }

/* ----------  Two-column content  ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col.reverse > :first-child { order: 2; }

/* ----------  SLA badges  ---------- */
.sla-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-100); color: var(--teal-500);
  padding: .35rem .9rem; border-radius: 999px;
  font-weight: 600; font-size: .85rem;
}

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner, .two-col, .renal-hero-grid { grid-template-columns: 1fr; }
  .two-col.reverse > :first-child { order: 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 1rem; box-shadow: var(--shadow);
    border-top: 1px solid var(--ink-100);
  }
  .nav-links.open a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--ink-100); }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-strip { grid-template-columns: 1fr; }
  .hero { padding: 1rem 0; }
  .hero-kpis { grid-template-columns: 1fr; gap: 1rem; }
  .stakeholder-tabs { width: 100%; flex-direction: column; }
  .cta-band { padding: 2rem 1.2rem; }
  .compare-table { font-size: .82rem; }
  .compare-table th, .compare-table td { padding: .6rem; }
}
