/* ============================================
   CK CONNECT — Feuille de style principale
   Charte : bleu marine #0D2B66 / bleu vif #1B9CE5
   ============================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #0D2B66;
  --navy-dark: #071F4D;
  --navy-deep: #051538;
  --blue: #1B9CE5;
  --blue-light: #4FB8F0;
  --blue-pale: #EAF5FC;
  --ink: #1C2434;
  --gray: #5A6478;
  --line: #E3E8F1;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --radius: 14px;
  --shadow: 0 6px 30px rgba(13, 43, 102, .10);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--navy); letter-spacing: .04em; }
.brand-tag { font-size: 10.5px; font-weight: 600; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--blue-pale); text-decoration: none; }
.main-nav a.active { color: var(--blue); }
.main-nav a.nav-cta {
  background: var(--blue);
  color: #fff;
  margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #114a8f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 156, 229, .35) 0%, rgba(27, 156, 229, 0) 70%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 0 100px;
  max-width: 780px;
}
.hero .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(27, 156, 229, .14);
  border: 1px solid rgba(27, 156, 229, .4);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--blue-light); }
.hero p.lead {
  font-size: 18px;
  color: #C9D6EC;
  margin-bottom: 36px;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero { text-align: left; }
.page-hero .hero-inner { padding: 64px 0 70px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .01em;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27, 156, 229, .35);
}
.btn-primary:hover { background: var(--blue-light); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .45);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section.navy .section-head h2 { color: #fff; }
.section-head p { color: var(--gray); font-size: 17px; }
.section.navy .section-head p { color: #C9D6EC; }

/* ---------- Chiffres clés ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat .label { font-weight: 600; color: var(--navy); font-size: 15px; }

/* ---------- Cartes ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(13, 43, 102, .16);
}
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--blue); }
.card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15px; }
.card .card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14.5px;
}

/* ---------- Split (texte + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  border-radius: var(--radius);
}
.split-media.framed img {
  box-shadow: var(--shadow);
}
.split-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 18px;
}
.split-content > p { color: var(--gray); margin-bottom: 18px; }

/* ---------- Listes à puce check ---------- */
.checklist { list-style: none; margin: 20px 0; }
.checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 15.5px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist li strong { color: var(--navy); }

/* ---------- Bandeau partenaires ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 28px;
  align-items: center;
}
.partners-grid .partner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
}
.partners-grid img {
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: .85;
  transition: filter .2s, opacity .2s;
}
.partners-grid .partner:hover img { filter: none; opacity: 1; }

/* ---------- CTA bandeau ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #114a8f 60%, var(--blue) 130%);
  border-radius: 20px;
  padding: 56px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: #CFE3F7; max-width: 520px; }

/* ---------- Page Services ---------- */
.service-block { padding: 72px 0; }
.service-block:nth-child(even) { background: var(--bg-soft); }
.service-anchor { scroll-margin-top: 100px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
}
.feature h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature h4::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.feature p { font-size: 13.5px; color: var(--gray); line-height: 1.5; }

.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tech-table th, .tech-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.tech-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tech-table tr:last-child td { border-bottom: none; }
.tech-table td strong { color: var(--navy); }
.table-wrap { overflow-x: auto; }

.badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 6px 8px 0;
}

/* ---------- Page À propos ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}
.team-card .team-body { padding: 26px 24px 30px; }
.team-card h3 { font-size: 21px; font-weight: 800; color: var(--navy); }
.team-card .role { color: var(--blue); font-weight: 600; font-size: 14.5px; margin: 6px 0 14px; }
.team-card .team-contact { font-size: 15px; color: var(--gray); }
.team-card .team-contact a { display: block; margin-top: 4px; font-weight: 600; }

.quote {
  border-left: 4px solid var(--blue);
  background: var(--blue-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin: 28px 0;
}

/* ---------- Page Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info .info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.contact-info .info-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info .info-icon svg { width: 24px; height: 24px; stroke: var(--blue); }
.contact-info h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.contact-info p, .contact-info a { font-size: 15px; color: var(--gray); }
.contact-info a { font-weight: 600; color: var(--blue); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); font-size: 20px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form-note { font-size: 12.5px; color: var(--gray); margin-top: 14px; }

.legal {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
}
.legal h3 { color: var(--navy); font-size: 16px; margin-bottom: 10px; }
.legal p { margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #AFBEDA;
  padding: 60px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #AFBEDA; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 60px; margin-bottom: 14px; }
.footer-brand p { max-width: 280px; font-size: 13.5px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7E90B5;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards, .cards.cols-4, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header-inner { height: 68px; }
  .brand img { height: 42px; }
  .brand-name { font-size: 16px; }
  .brand-tag { font-size: 9px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(13, 43, 102, .12);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
  .main-nav a.nav-cta { margin-left: 0; text-align: center; }
  .hero-inner { padding: 60px 0 68px; }
  .section { padding: 60px 0; }
  .cards, .cards.cols-4, .cards.cols-2, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
