/* ============ TOKENS (palette issue du logo LCI) ============ */
:root {
  --navy: #0E2A5C;        /* bleu profond pour fonds sombres */
  --navy-light: #163B78;
  --paper: #F7F8FA;       /* blanc cassé neutre */
  --blue: #4070C0;        /* bleu exact du logo (L, C) */
  --blue-dark: #2E5494;
  --red: #F00010;         /* rouge exact du logo (i, barre) */
  --red-dark: #C5000D;
  --pink: #F0B0B0;        /* rose du dégradé du losange */
  --slate: #5A6B85;
  --ink: #16213A;

  /* alias de compatibilité (anciennes références dans le fichier) */
  --green: var(--blue);
  --green-dark: var(--blue-dark);
  --amber: var(--red);
  --amber-dark: var(--red-dark);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --container-w: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

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

:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 3px;
}

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

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 30, 45, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.footer-logo-wrap {
  background: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
}
.footer-logo {
  height: 26px;
  width: auto;
  display: block;
}

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--green-dark); }
.main-nav a.active { color: var(--green-dark); font-weight: 600; }
.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 7px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 120px 0 80px;
}
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: block;
}
.eyebrow-green { color: var(--green); }
.eyebrow-light { color: var(--amber); }

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 600;
  max-width: 760px;
  color: var(--paper);
}
.text-accent-green { color: var(--green); }

.hero-lead {
  margin-top: 24px;
  max-width: 560px;
  font-size: 1.08rem;
  color: rgba(244, 247, 245, 0.78);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #f0b25c; }
.btn-primary-green { background: var(--green); color: var(--paper); }
.btn-primary-green:hover { background: var(--green-dark); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(244, 247, 245, 0.35);
}
.btn-ghost:hover { border-color: var(--paper); }
.btn-full { width: 100%; text-align: center; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--paper);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(244, 247, 245, 0.6);
}

/* ============ PAGE HERO (sous-pages) ============ */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0 48px;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--paper);
  max-width: 720px;
}
.breadcrumb {
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(244, 247, 245, 0.6);
}
.breadcrumb a { color: rgba(244, 247, 245, 0.85); }
.breadcrumb a:hover { color: var(--amber); }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; overflow-x: hidden; }
.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  max-width: 680px;
}
.section-lead {
  margin-top: 20px;
  max-width: 620px;
  font-size: 1.05rem;
  color: var(--slate);
}

/* ----- pole grid (page d'accueil) ----- */
.pole-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pole-card {
  background: #fff;
  border: 1px solid rgba(11, 30, 45, 0.08);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pole-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(11, 30, 45, 0.18);
}
.pole-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(232, 163, 61, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pole-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.pole-card p {
  font-size: 0.94rem;
  color: var(--slate);
  flex-grow: 1;
}
.pole-link {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ----- service grid ----- */
.service-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(11, 30, 45, 0.08);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(232, 163, 61, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--slate);
}

/* ----- sante section ----- */
.section-sante { background: #EEF4F1; overflow-x: hidden; }
.sante-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.sante-content { min-width: 0; }
.feature-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink);
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 7px;
  flex-shrink: 0;
}
.sante-content .btn { margin-top: 32px; }

.sante-visual { display: flex; justify-content: center; }
.mock-screen {
  width: 100%;
  max-width: 340px;
  background: var(--navy);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 30px 60px -20px rgba(11, 30, 45, 0.4);
  position: relative;
}
.mock-header { display: flex; gap: 6px; margin-bottom: 18px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,247,245,0.25); }
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(244, 247, 245, 0.05);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 500;
}
.mock-row-active { background: rgba(30, 142, 110, 0.18); }
.mock-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
}
.mock-tag-wait { background: rgba(244, 247, 245, 0.12); color: rgba(244,247,245,0.6); }
.mock-pulse {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(30, 142, 110, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 142, 110, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(30, 142, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 142, 110, 0); }
}

/* ----- apropos (dark) ----- */
.section-dark { background: var(--navy); overflow-x: hidden; }
.apropos-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
}
.apropos-grid > div { min-width: 0; }
.text-light { color: var(--paper); }
.text-light-muted { color: rgba(244, 247, 245, 0.7); }
.apropos-values {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.value-item h3 {
  font-size: 1.05rem;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 8px;
}
.value-item p {
  color: rgba(244, 247, 245, 0.68);
  font-size: 0.92rem;
}

/* ----- contact ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-grid > div { min-width: 0; }
.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-item { display: flex; flex-direction: column; gap: 2px; }
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  font-weight: 600;
}
.contact-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
}

.contact-form {
  background: #fff;
  border: 1px solid rgba(11, 30, 45, 0.08);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(11, 30, 45, 0.14);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  outline: none;
}
.form-note {
  font-size: 0.88rem;
  color: var(--green-dark);
  min-height: 1.2em;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(244, 247, 245, 0.08);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(244, 247, 245, 0.55);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .service-grid, .pole-grid { grid-template-columns: repeat(2, 1fr); }
  .sante-grid, .apropos-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sante-visual { order: -1; }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(11,30,45,0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .service-grid, .pole-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 64px; }
  .hero-stats { gap: 32px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 48px 0 36px; }
}

/* ============ GALERIE / CARROUSEL ============ */
.gallery-block {
  margin-top: 48px;
}
.gallery-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img {
  flex: 0 0 auto;
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  border: 1px solid rgba(11, 30, 45, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #e6e9ec;
}
.gallery-track img:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(11, 30, 45, 0.25);
}
/* gradient fade on edges to suggest more content */
.gallery-carousel::before,
.gallery-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 36px;
  pointer-events: none;
  z-index: 2;
}
.gallery-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--paper), transparent);
}
.gallery-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--paper), transparent);
}
.section-sante .gallery-carousel::before,
.section-sante .gallery-carousel::after {
  background: none;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 45, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(244, 247, 245, 0.12);
  color: var(--paper);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(244, 247, 245, 0.22); }
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 700px) {
  .gallery-track img { width: 200px; height: 140px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
