/* Connectis Partners — refonte 2026
   Palette dérivée du monogramme CP : ivoire, encre, dégradé orange→magenta */

:root {
  --ivory: #F7F4EE;
  --ivory-deep: #EFEAE0;
  --ink: #141417;
  --ink-soft: #4A4A52;
  --line: rgba(20, 20, 23, 0.14);
  --g-orange: #FF5C1F;
  --g-rose: #FF2D78;
  --g-magenta: #D619A8;
  --gradient: linear-gradient(100deg, var(--g-orange) 0%, var(--g-rose) 55%, var(--g-magenta) 100%);
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--g-rose); color: #fff; }

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

a { color: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- utilitaires typographiques ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  flex: none;
}

/* accent display : rose plein (grands corps uniquement — contraste 3:1) */
.accent-text { color: var(--g-rose); }

/* filet de section : la ligne corridor en miniature, sans texte */
.section-tick {
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--gradient);
  margin-bottom: 22px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.25; }

.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }

/* lien d'évitement clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--g-rose);
  outline-offset: 3px;
}
.btn-primary {
  color: #fff;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 8px -4px rgba(214, 25, 168, 0.4); }
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--line);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav-logo img {
  height: 40px;
  width: auto;
  /* brightness pousse le fond ivoire du PNG vers le blanc, neutre en multiply */
  filter: brightness(1.07);
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn { padding: 10px 20px; font-size: 15px; }

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

/* ---------- hero ---------- */

.hero { padding: clamp(64px, 10vw, 130px) 0 clamp(48px, 7vw, 90px); }
.hero h1 {
  font-size: clamp(42px, 7.2vw, 96px);
  margin: 26px 0 28px;
  max-width: 14ch;
}
.hero .lede { margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* la ligne corridor — signature du site */
.corridor {
  margin-top: clamp(56px, 8vw, 100px);
  position: relative;
}
.corridor-line {
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
  transform-origin: left center;
  animation: corridor-draw 1.4s cubic-bezier(0.6, 0, 0.2, 1) 0.3s both;
}
@keyframes corridor-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.corridor-cities {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.corridor-city {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-top: 14px;
  animation: city-in 0.5s ease both;
}
.corridor-city:nth-child(1) { animation-delay: 0.5s; }
.corridor-city:nth-child(2) { animation-delay: 0.9s; text-align: center; }
.corridor-city:nth-child(3) { animation-delay: 1.3s; text-align: right; }
@keyframes city-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.corridor-city::before {
  content: "";
  position: absolute;
  top: -19px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
  border: 3px solid var(--ink);
}
.corridor-city:nth-child(1)::before { left: 0; border-color: var(--g-orange); }
.corridor-city:nth-child(2)::before { left: 50%; transform: translateX(-50%); border-color: var(--g-rose); }
.corridor-city:nth-child(3)::before { right: 0; border-color: var(--g-magenta); }
.corridor-city small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-top: 2px;
}
@media (max-width: 700px) {
  .corridor-city small { display: none; }
  .corridor-city { font-size: 11px; }
}

/* ---------- bandeau logos ---------- */

.trust { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 22px;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}
.trust-logos img {
  height: 30px;
  width: auto;
  filter: grayscale(1) contrast(0.6);
  opacity: 0.75;
  mix-blend-mode: multiply;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.trust-logos img:hover { filter: none; opacity: 1; }

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin: 22px 0 18px; max-width: 22ch; }

/* ---------- services ---------- */

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

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.service:hover { transform: translateY(-4px); border-color: var(--ink); }
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}
.service .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.service p { color: var(--ink-soft); font-size: 15.5px; }
.service ul { list-style: none; margin-top: auto; display: grid; gap: 10px; }
.service li {
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}

/* ---------- méthode ---------- */

.method { background: var(--ink); color: var(--ivory); line-height: 1.68; }
.method .lede { color: rgba(247, 244, 238, 0.72); }
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
@media (max-width: 900px) { .method-steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; border-top: 1px solid rgba(247, 244, 238, 0.2); padding-top: 24px; }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--g-orange);
  display: block;
  margin-bottom: 14px;
}
.step:nth-child(2)::before { color: var(--g-rose); }
.step:nth-child(3)::before { color: #E96BD1; }
.step h3 { margin-bottom: 10px; }
.step p { color: rgba(247, 244, 238, 0.72); font-size: 15.5px; text-wrap: pretty; }

/* ---------- cas clients ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

.case {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 34px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.case-metrics { display: flex; gap: 36px; }
.case-metric strong {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.03em;
  display: block;
  color: var(--g-rose);
}
.case-metric span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case blockquote {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.case figcaption { font-weight: 600; font-size: 15px; }
.case figcaption em { display: block; font-style: normal; font-weight: 400; color: var(--ink-soft); font-size: 14px; }
.case-client {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- équipe ---------- */

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

.member { text-align: left; }
.member-photo {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--ivory-deep);
  position: relative;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 0.35s var(--ease-out);
}
.member:hover .member-photo img { transform: scale(1.03); }
.member-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 64px;
  letter-spacing: -0.02em;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 92, 31, 0.16), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(214, 25, 168, 0.16), transparent 55%),
    var(--ivory-deep);
}
.member-monogram span { color: var(--g-rose); }
.member h3 { margin-bottom: 4px; }
.member .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 10px;
}
.member p { font-size: 15px; color: var(--ink-soft); }

/* ---------- contact ---------- */

.contact-box {
  background: var(--ink);
  color: var(--ivory);
  border-radius: 20px;
  padding: clamp(48px, 7vw, 90px) clamp(28px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 92, 31, 0.22), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(214, 25, 168, 0.22), transparent 40%);
  pointer-events: none;
}
.contact-box > * { position: relative; }
.contact-box h2 { margin-bottom: 16px; }
.contact-box .section-tick { margin-left: auto; margin-right: auto; }
.contact-box p { color: rgba(247, 244, 238, 0.75); max-width: 52ch; margin: 0 auto 36px; text-wrap: pretty; }
.contact-box .btn-primary { background: var(--ivory); color: var(--ink); }
.contact-box .btn-primary:hover { color: #fff; }
.contact-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 22px;
  color: rgba(247, 244, 238, 0.72) !important;
}

/* ---------- footer ---------- */

.footer { padding: 44px 0 54px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer img { height: 34px; width: auto; filter: brightness(1.07); mix-blend-mode: multiply; }
.footer p { font-size: 13.5px; color: var(--ink-soft); }
.footer a { color: var(--ink-soft); }

/* ---------- pages intérieures (blog, services, portfolio) ---------- */

.page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(36px, 5vw, 60px); }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  margin: 0 0 18px;
  max-width: 20ch;
}
.page-hero .lede { margin-bottom: 0; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  padding-bottom: clamp(72px, 10vw, 120px);
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ivory-deep);
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-out);
}
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card h3 { transition: color 0.15s ease; }
.post-card:hover h3 { color: var(--g-rose); }
.post-card p { font-size: 15px; color: var(--ink-soft); }
.post-card .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.article { max-width: 760px; margin: 0 auto; padding-bottom: clamp(72px, 10vw, 120px); }
.article-hero {
  border-radius: 14px;
  overflow: hidden;
  margin: 34px 0 44px;
}
.article-hero img { width: 100%; max-height: 440px; object-fit: cover; }
.article-body { font-size: 17.5px; line-height: 1.75; }
.article-body p { margin: 0 0 22px; text-wrap: pretty; }
.article-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 44px 0 18px;
}
.article-body h3 { font-size: 20px; margin: 34px 0 14px; }
.article-body h4 { font-family: var(--font-display); font-size: 17.5px; margin: 28px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 26px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--g-rose); }
.article-body a { color: var(--g-rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body strong { font-weight: 640; }
.article-body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--g-rose);
  color: var(--ink-soft);
  font-style: italic;
}
.article-body figure { margin: 34px 0; }
.article-body figure img { border-radius: 14px; width: 100%; }
.article-body figcaption {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}
.article-footer {
  border-top: 1px solid var(--line);
  margin-top: 54px;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 560;
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--ink);
}
.back-link:hover { color: var(--g-rose); }

/* portfolio */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: clamp(72px, 10vw, 120px);
}
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.work::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}
.work .result {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 18px;
  color: var(--g-rose);
}
.work p { color: var(--ink-soft); font-size: 15.5px; }
.work ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.work li { font-size: 15px; padding-left: 24px; position: relative; }
.work li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient);
}

/* détail services */
.svc-detail { display: grid; gap: 22px; padding-bottom: clamp(72px, 10vw, 120px); }
.svc-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 38px 34px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 30px;
}
@media (max-width: 800px) { .svc-block { grid-template-columns: 1fr; } }
.svc-block .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 12px;
}
.svc-block p { color: var(--ink-soft); font-size: 15.5px; margin-top: 10px; text-wrap: pretty; }
.svc-items { display: grid; gap: 18px; }
.svc-items h4 { font-family: var(--font-display); font-size: 16.5px; margin-bottom: 4px; }
.svc-items p { margin: 0; font-size: 15px; }

/* ---------- reveal au scroll ---------- */

/* le masquage ne s'applique que si JS est présent (classe .js posée dans <head>) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
