@keyframes cf-border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.cf-shell {
  border-radius: 1.75rem;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(34,211,238,0.65),
    rgba(99,102,241,0.35),
    rgba(34,211,238,0.22),
    rgba(167,139,250,0.5));
  background-size: 260% 260%;
  animation: cf-border-flow 14s ease infinite;
  box-shadow: 0 32px 80px rgba(0,0,0,0.42), 0 0 48px rgba(34,211,238,0.1);
}
.cf-inner {
  border-radius: calc(1.75rem - 1px);
  background: linear-gradient(168deg, rgba(10,18,32,0.94) 0%, rgba(15,23,42,0.9) 55%, rgba(18,32,52,0.88) 100%);
  backdrop-filter: blur(36px) saturate(1.45);
  -webkit-backdrop-filter: blur(36px) saturate(1.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  overflow: hidden;
}
.cf-field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(7,13,24,0.72);
  padding: 0.875rem 1.05rem;
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.625;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.cf-field::placeholder {
  color: rgb(148 163 184);
  font-size: 1rem;
  line-height: 1.625;
  opacity: 1;
}
.cf-field:hover { border-color: rgba(34,211,238,0.28); }
.cf-field:focus {
  outline: none;
  border-color: rgba(34,211,238,0.55);
  background: rgba(8,16,30,0.88);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.14), 0 0 24px rgba(34,211,238,0.08);
}
.cf-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #e2e8f0;
}
.cf-select {
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-image:
    linear-gradient(45deg, transparent 50%, rgb(34 211 238) 50%),
    linear-gradient(135deg, rgb(34 211 238) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.18rem),
    calc(100% - 0.85rem) calc(50% - 0.18rem),
    0 0;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
  cursor: pointer;
}
.cf-select option,
.cf-select optgroup {
  background-color: #0b1220;
  color: #e2e8f0;
  font-size: 1rem;
}
.cf-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(165deg, rgba(15,23,42,0.75), rgba(7,13,24,0.85));
  color: rgb(226 232 240);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cf-chip-label {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.cf-chip-mark {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgb(34 211 238);
  color: #0f172a;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(34,211,238,0.45);
}
.group:hover .cf-chip {
  border-color: rgba(34,211,238,0.35);
  color: #fff;
  transform: translateY(-1px);
}
.peer:checked ~ .cf-chip {
  border-color: rgba(34,211,238,0.7);
  background: linear-gradient(165deg, rgba(34,211,238,0.18), rgba(99,102,241,0.12));
  color: #ecfeff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(34,211,238,0.2),
    0 10px 28px rgba(34,211,238,0.12);
}
.peer:checked ~ .cf-chip .cf-chip-mark { display: inline-flex; }
.peer:focus-visible ~ .cf-chip {
  outline: 2px solid rgb(34 211 238);
  outline-offset: 2px;
}
.cf-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(165deg, rgba(15,23,42,0.72), rgba(7,13,24,0.78));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 40px rgba(0,0,0,0.28);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.cf-side-card:hover {
  border-color: rgba(34,211,238,0.28);
  transform: translateY(-2px);
}

/* Colonne contacts : s’aligne en hauteur sur le formulaire (desktop) */
.cf-contacts {
  min-height: 0;
}
.cf-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cf-person {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.78), rgba(7, 13, 24, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.cf-person:hover {
  border-color: rgba(34, 211, 238, 0.28);
  background: linear-gradient(165deg, rgba(17, 28, 48, 0.88), rgba(8, 15, 28, 0.9));
}
.cf-person__avatar {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background:
    radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  overflow: hidden;
}
.cf-person__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cf-person__initials {
  font-family: "Genos", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(186, 230, 253, 0.92);
  line-height: 1;
  user-select: none;
}
.cf-person__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.1rem;
}
.cf-person__name {
  margin: 0;
  font-family: var(--font-subtitle, "Exo 2", sans-serif);
  font-size: 1.0625rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f8fafc;
  line-height: 1.25;
}
.cf-person__coords {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.cf-person__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 100%;
  color: rgb(165 243 252);
  text-decoration: none;
  border-radius: 0.35rem;
  outline: none;
  transition: color 0.15s ease;
}
.cf-person__link:hover {
  color: #ecfeff;
}
.cf-person__link:focus-visible {
  outline: 2px solid rgb(34 211 238);
  outline-offset: 3px;
}
.cf-person__icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.2rem;
  color: rgba(34, 211, 238, 0.85);
}
.cf-person__value {
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cf-location {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 13, 24, 0.55);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cf-location__title {
  margin: 0;
  font-family: var(--font-subtitle, "Exo 2", sans-serif);
  font-size: 0.8125rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  flex: 0 0 auto;
}
.cf-location__text {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(203 213 225);
  flex: 0 0 auto;
}
.cf-location__map {
  margin-top: 0.75rem;
  width: 100%;
  height: clamp(18rem, 55vw, 24rem);
  min-height: 18rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(7, 13, 24, 0.98));
  z-index: 0;
}
@media (min-width: 1024px) {
  .cf-contacts {
    align-self: stretch;
    height: 100%;
  }
  .cf-location {
    flex: 1 1 auto;
  }
  .cf-location__map {
    flex: 1 1 auto;
    height: auto;
    min-height: 20rem;
  }
}
.cf-location__map.is-ready {
  background: #0b1220;
}
.cf-location__map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0b1220;
  font: inherit;
}
.cf-location__map:not(.cf-location__map--light) .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.92) saturate(0.85);
}
.cf-location__map:not(.cf-location__map--light) .leaflet-container {
  background: #070d18;
}
.cf-location__map .leaflet-control-zoom a {
  width: 1.7rem;
  height: 1.7rem;
  line-height: 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(7, 13, 24, 0.92) !important;
  color: #e2e8f0 !important;
}
.cf-location__map .leaflet-control-zoom a:hover {
  background: rgba(15, 23, 42, 0.98) !important;
  color: #67e8f9 !important;
}
.light .cf-location__map {
  border-color: rgba(15, 23, 42, 0.12);
  background: #e2e8f0;
}
.light .cf-location__map.is-ready,
.light .cf-location__map .leaflet-container {
  background: #e2e8f0;
}
.light .cf-location__map .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

@media (prefers-reduced-motion: reduce) {
  .cf-shell { animation: none; }
  .cf-chip, .cf-side-card, .cf-person { transition: none; }
}

/* Contact hero (React) */
@keyframes ch-scan {
          0% { transform: translateY(-20%); opacity: 0; }
          15% { opacity: 0.5; }
          85% { opacity: 0.5; }
          100% { transform: translateY(120%); opacity: 0; }
        }
        @keyframes ch-pulse {
          0%, 100% { opacity: 1; transform: scale(1); }
          50% { opacity: 0.45; transform: scale(0.85); }
        }
        @keyframes ch-orbit {
          from { transform: rotate(0deg); }
          to { transform: rotate(360deg); }
        }
        @keyframes ch-dash {
          to { stroke-dashoffset: -120; }
        }
        @keyframes ch-border-flow {
          0%, 100% { background-position: 0% 50%; }
          50% { background-position: 100% 50%; }
        }
        @keyframes ch-liquid-drift {
          0%, 100% { transform: translate(0, 0) scale(1); }
          50% { transform: translate(8px, -12px) scale(1.05); }
        }
        @keyframes ch-liquid-shine {
          0% { opacity: 0.35; transform: translateX(-140%) skewX(-14deg); }
          100% { opacity: 0; transform: translateX(240%) skewX(-14deg); }
        }
        .ch-pulse-dot { animation: ch-pulse 2.2s ease-in-out infinite; }
        .ch-orbit-ring { animation: ch-orbit 28s linear infinite; }
        .ch-orbit-ring-rev { animation: ch-orbit 40s linear infinite reverse; }
        .ch-path-dash { stroke-dasharray: 6 10; animation: ch-dash 8s linear infinite; }
        .ch-scanline { animation: ch-scan 5.5s ease-in-out infinite; }

        /* Grand shell liquid glass — toute la hero */
        .ch-hero-shell {
          position: relative;
          border-radius: 1.75rem;
          padding: 1px;
          background: linear-gradient(135deg,
            rgba(34,211,238,0.7),
            rgba(99,102,241,0.4),
            rgba(34,211,238,0.25),
            rgba(167,139,250,0.5),
            rgba(34,211,238,0.45));
          background-size: 280% 280%;
          animation: ch-border-flow 14s ease infinite;
          box-shadow:
            0 32px 80px rgba(0,0,0,0.45),
            0 0 56px rgba(34,211,238,0.14);
        }
        .ch-hero-inner {
          position: relative;
          overflow: hidden;
          border-radius: calc(1.75rem - 1px);
          background: linear-gradient(168deg,
            rgba(10, 18, 32, 0.88) 0%,
            rgba(15, 23, 42, 0.78) 48%,
            rgba(22, 40, 62, 0.7) 100%);
          backdrop-filter: blur(40px) saturate(1.55);
          -webkit-backdrop-filter: blur(40px) saturate(1.55);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.16),
            inset 0 -28px 56px rgba(0,0,0,0.22);
        }
        .ch-hero-grid {
          background-image:
            linear-gradient(rgba(34,211,238,0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
          background-size: 32px 32px;
          mask-image: radial-gradient(ellipse 85% 70% at 40% 20%, black 10%, transparent 75%);
        }
        .ch-console {
          background: linear-gradient(155deg,
            rgba(255,255,255,0.08) 0%,
            rgba(255,255,255,0.025) 50%,
            rgba(34,211,238,0.05) 100%);
          border: 1px solid rgba(34,211,238,0.18);
          box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.14),
            0 16px 40px rgba(0,0,0,0.25);
          backdrop-filter: blur(16px);
          -webkit-backdrop-filter: blur(16px);
        }
        @media (prefers-reduced-motion: reduce) {
          .ch-pulse-dot, .ch-orbit-ring, .ch-orbit-ring-rev, .ch-path-dash, .ch-scanline, .ch-hero-shell {
            animation: none;
          }
        }

/* Contact comprendre — fiches coulissantes (isolé sous .cc-fiches) */
.cc-fiches {
  --cc-ink: #0c1522;
  --cc-ink-muted: #3a4c63;
  --cc-light: #f2f4f8;
  --cc-indigo: #4f46e5;
  --cc-indigo-mid: #4338ca;
  --cc-indigo-deep: #312e81;
  --cc-indigo-text: #f5f3ff;
  --cc-indigo-muted: rgba(237, 233, 254, 0.88);
  --cc-radius: 1.5rem;
  --cc-shift-y: 28px;
  --cc-deck-h: 32rem;
  --cc-duration: 480ms;
  --cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cc-accent: var(--color-accent, #4f46e5);
}

.cc-fiches__kicker {
  color: var(--color-secondary, #f1894e);
  letter-spacing: 0.18em;
}

.cc-fiches__title {
  max-width: 18ch;
  line-height: 1.12;
}

.cc-fiches__intro {
  max-width: 38rem;
}

.cc-fiches__header {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .cc-fiches__header {
    margin-bottom: 2.65rem;
  }
}

.cc-fiches__sizer {
  position: absolute;
  left: -9999px;
  top: 0;
  width: max-content;
  max-width: none;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.cc-fiches__sizer-card {
  border-radius: var(--cc-radius);
}

.cc-fiches__sizer-card--light {
  background: var(--cc-light);
  color: var(--cc-ink);
}

.cc-fiches__sizer-card--indigo {
  background: var(--cc-indigo);
  color: var(--cc-indigo-text);
}

.cc-fiches__deck {
  position: relative;
  width: 100%;
}

/* SSR / noscript : empilement stable avant hydratation React */
.cc-fiches__deck--ssr {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cc-fiches__deck--ssr .cc-fiches__card {
  position: relative;
  width: 100%;
  height: auto;
  transform: none;
}

.cc-fiches__card {
  position: relative;
  border-radius: var(--cc-radius);
  overflow: hidden;
  transition:
    left var(--cc-duration) var(--cc-ease),
    right var(--cc-duration) var(--cc-ease),
    width var(--cc-duration) var(--cc-ease),
    top var(--cc-duration) var(--cc-ease),
    box-shadow var(--cc-duration) var(--cc-ease),
    filter var(--cc-duration) var(--cc-ease);
  will-change: left, width, top, box-shadow;
}

.cc-fiches__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.cc-fiches__card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.cc-fiches__card--light {
  background:
    linear-gradient(165deg, #fbfcfe 0%, var(--cc-light) 42%, #e6eaf1 100%);
  color: var(--cc-ink);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 40px rgba(2, 8, 23, 0.2);
}

.cc-fiches__card--light::after {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07), transparent 68%);
}

.cc-fiches__card--light .cc-fiches__badge-label,
.cc-fiches__card--light .cc-fiches__card-title {
  color: var(--cc-ink);
}

.cc-fiches__card--light .cc-fiches__body,
.cc-fiches__card--light .cc-fiches__foot-note,
.cc-fiches__card--light .cc-fiches__counter {
  color: var(--cc-ink-muted);
}

.cc-fiches__card--light .cc-fiches__icon,
.cc-fiches__card--light .cc-fiches__next,
.cc-fiches__card--light .cc-fiches__read {
  color: var(--cc-ink);
}

.cc-fiches__card--light .cc-fiches__icon-wrap {
  background: rgba(15, 23, 42, 0.045);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.cc-fiches__card--indigo {
  background:
    radial-gradient(110% 70% at 8% 0%, rgba(199, 210, 254, 0.28), transparent 52%),
    radial-gradient(80% 60% at 100% 100%, rgba(15, 23, 42, 0.28), transparent 55%),
    linear-gradient(158deg, var(--cc-indigo) 0%, var(--cc-indigo-mid) 48%, var(--cc-indigo-deep) 100%);
  color: var(--cc-indigo-text);
  border: 1px solid rgba(199, 210, 254, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 18px 44px rgba(49, 46, 129, 0.4);
}

.cc-fiches__card--indigo::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.7;
}

.cc-fiches__card--indigo::after {
  background: radial-gradient(circle, rgba(165, 180, 252, 0.2), transparent 70%);
}

.cc-fiches__card--indigo .cc-fiches__badge-label,
.cc-fiches__card--indigo .cc-fiches__card-title,
.cc-fiches__card--indigo .cc-fiches__next,
.cc-fiches__card--indigo .cc-fiches__read,
.cc-fiches__card--indigo .cc-fiches__icon {
  color: var(--cc-indigo-text);
}

.cc-fiches__card--indigo .cc-fiches__body,
.cc-fiches__card--indigo .cc-fiches__foot-note,
.cc-fiches__card--indigo .cc-fiches__counter {
  color: var(--cc-indigo-muted);
}

.cc-fiches__card--indigo .cc-fiches__icon-wrap {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.cc-fiches__card.is-open {
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 22px 52px rgba(2, 8, 23, 0.36),
    0 6px 18px rgba(2, 8, 23, 0.18);
}

.cc-fiches__card.is-closed {
  z-index: 1;
  filter: saturate(0.94) brightness(0.97);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 12px 30px rgba(2, 8, 23, 0.24);
}

.cc-fiches__card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  padding: 1.85rem 1.85rem 1.65rem;
}

@media (min-width: 1024px) {
  .cc-fiches__card-inner {
    padding: 2.25rem 2.35rem 1.95rem;
  }
}

.cc-fiches__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.cc-fiches__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.cc-fiches__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.cc-fiches__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.cc-fiches__badge-label {
  font-family: var(--font-title, inherit);
  font-size: var(--fs-label, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cc-fiches__counter {
  font-family: var(--font-code, ui-monospace, monospace);
  font-size: var(--fs-label, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0.88;
  transition: opacity var(--cc-duration) var(--cc-ease);
}

.cc-fiches__counter.is-dimmed {
  opacity: 0.28;
}

.cc-fiches__card-title {
  margin: 0;
  max-width: 24ch;
}

.cc-fiches__details {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  transition: opacity calc(var(--cc-duration) * 0.75) var(--cc-ease);
}

.cc-fiches__details.is-shown {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.cc-fiches__details.is-concealed {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.cc-fiches__body {
  margin: 1.25rem 0 0;
  max-width: 40rem;
  font-size: var(--fs-body);
  line-height: 1.75;
}

.cc-fiches__card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid currentColor;
  border-top-color: rgba(15, 27, 45, 0.1);
}

.cc-fiches__card--indigo .cc-fiches__card-foot {
  border-top-color: rgba(238, 242, 255, 0.22);
}

.cc-fiches__foot-note {
  font-size: var(--fs-small, 0.9375rem);
}

.cc-fiches__next,
.cc-fiches__read {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  margin: 0;
  font-family: var(--font-subtitle, inherit);
  font-size: var(--fs-small, 0.9375rem);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  text-underline-offset: 0.18em;
  transition: opacity 160ms ease, color 160ms ease;
}

.cc-fiches__read {
  margin-top: auto;
  padding-top: 1.75rem;
}

.cc-fiches__read.is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.cc-fiches__next:hover,
.cc-fiches__read:hover {
  text-decoration: underline;
}

.cc-fiches__next:focus-visible,
.cc-fiches__read:focus-visible,
.cc-fiches__tab:focus-visible,
.cc-fiches__cta:focus-visible {
  outline: 2px solid var(--color-cyan-300, #67e8f9);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.cc-fiches__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 1.85rem;
}

@media (min-width: 768px) {
  .cc-fiches__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.15rem;
  }
}

.cc-fiches__tabs {
  display: none;
  align-items: center;
  gap: 1.65rem;
  flex-wrap: wrap;
}

.cc-fiches__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.4rem 0.05rem 0.6rem;
  margin: 0;
  font-family: var(--font-subtitle, inherit);
  font-size: var(--fs-small, 0.9375rem);
  font-weight: 600;
  color: rgba(226, 232, 240, 0.68);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.cc-fiches__tab:hover {
  color: #f8fafc;
}

.cc-fiches__tab.is-active {
  color: #fff;
  border-bottom-color: var(--cc-accent);
}

/* CTA — même langage que les boutons primaires Contact (pilule cyan) */
.cc-fiches__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-end;
  border-radius: 9999px;
  background: rgb(103 232 249);
  color: #020617;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.28);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cc-fiches__cta:hover {
  background: rgb(165 243 252);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.38);
  transform: translateY(-1px);
}

/* —— Desktop / tablette : superposition, hauteur fixe —— */
@media (min-width: 768px) {
  .cc-fiches__tabs {
    display: flex;
  }

  .cc-fiches__deck {
    isolation: isolate;
    height: var(--cc-deck-h);
    min-height: var(--cc-deck-h);
  }

  .cc-fiches__card {
    position: absolute;
    /* Même hauteur pour les deux fiches — le deck absorbe le décalage vertical */
    height: calc(var(--cc-deck-h) - var(--cc-shift-y));
  }

  .cc-fiches[data-active="probleme"] .cc-fiches__card--probleme {
    left: 0;
    width: 68%;
    top: 0;
  }

  .cc-fiches[data-active="probleme"] .cc-fiches__card--contraintes {
    left: auto;
    right: 0;
    width: 46%;
    top: var(--cc-shift-y);
  }

  .cc-fiches[data-active="contraintes"] .cc-fiches__card--contraintes {
    left: auto;
    right: 0;
    width: 68%;
    top: 0;
  }

  .cc-fiches[data-active="contraintes"] .cc-fiches__card--probleme {
    left: 0;
    right: auto;
    width: 46%;
    top: var(--cc-shift-y);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cc-fiches {
    --cc-shift-y: 24px;
  }

  .cc-fiches[data-active="probleme"] .cc-fiches__card--probleme,
  .cc-fiches[data-active="contraintes"] .cc-fiches__card--contraintes {
    width: 64%;
  }

  .cc-fiches[data-active="probleme"] .cc-fiches__card--contraintes,
  .cc-fiches[data-active="contraintes"] .cc-fiches__card--probleme {
    width: 48%;
  }
}

/* —— Mobile : flux empilé, textes complets —— */
@media (max-width: 767px) {
  .cc-fiches__deck {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: auto;
    min-height: 0;
  }

  .cc-fiches__card {
    position: relative;
    width: 100%;
    height: auto;
    top: auto !important;
    filter: none;
  }

  .cc-fiches__tabs {
    display: none !important;
  }

  .cc-fiches__cta {
    align-self: stretch;
    width: 100%;
  }

  .cc-fiches__details.is-concealed {
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .cc-fiches__card .cc-fiches__next {
    display: none;
  }

  .cc-fiches__counter.is-dimmed {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-fiches {
    --cc-duration: 0ms;
  }

  .cc-fiches__card,
  .cc-fiches__tab,
  .cc-fiches__cta,
  .cc-fiches__next,
  .cc-fiches__read,
  .cc-fiches__details,
  .cc-fiches__counter {
    transition: none !important;
  }

  .cc-fiches__cta:hover {
    transform: none;
  }
}

/* Globe slot — sphère plein cadre, sans anneau décoratif */
.ch-globe-slot {
  position: relative;
  isolation: isolate;
}
.ch-globe-backdrop {
  display: none;
}
.ch-globe-slot > canvas.ch-globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  opacity: 0;
  transition: opacity 420ms ease;
}
.ch-globe-slot > canvas.ch-globe-canvas.is-live,
.ch-globe-slot[data-globe-live="1"] > canvas.ch-globe-canvas {
  opacity: 1;
}

/* Skeleton — même taille que le canvas (plein cadre) */
.ch-globe-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 9999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(56, 189, 248, 0.2), transparent 42%),
    radial-gradient(circle at 50% 50%, #0a3a7a 0%, #041c45 55%, #020617 100%);
  opacity: 1;
  transition: opacity 380ms ease;
  pointer-events: none;
}
.ch-globe-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    radial-gradient(rgba(103, 232, 249, 0.55) 0.85px, transparent 1px);
  background-size: 9px 9px;
  background-position: 10% 14%;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 45% 42%, black 0%, black 42%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 45% 42%, black 0%, black 42%, transparent 68%);
  animation: ch-globe-skel-drift 5.5s ease-in-out infinite;
}
.ch-globe-placeholder::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 9999px;
  background:
    conic-gradient(from 200deg, transparent 0%, rgba(34, 211, 238, 0.35) 18%, transparent 36%, transparent 58%, rgba(167, 139, 250, 0.28) 72%, transparent 90%);
  opacity: 0.45;
  filter: blur(12px);
  animation: ch-globe-skel-spin 3.2s linear infinite;
  z-index: 0;
}
.ch-globe-skel-ring {
  position: absolute;
  inset: 10%;
  z-index: 2;
  border-radius: 9999px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.08);
  animation: ch-globe-skel-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.ch-globe-skel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(103, 232, 249, 0.55);
  pointer-events: none;
  white-space: nowrap;
}
@keyframes ch-globe-skel-spin {
  to { transform: rotate(360deg); }
}
@keyframes ch-globe-skel-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes ch-globe-skel-drift {
  0%, 100% { opacity: 0.28; background-position: 10% 14%; }
  50% { opacity: 0.42; background-position: 18% 22%; }
}
.ch-globe-placeholder--done {
  opacity: 0;
  pointer-events: none;
}
.ch-globe-placeholder--done .ch-globe-skel-ring,
.ch-globe-placeholder--done .ch-globe-skel-label,
.ch-globe-placeholder--done::before,
.ch-globe-placeholder--done::after {
  animation: none;
}
.ch-globe-snapshot {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .ch-globe-placeholder::before,
  .ch-globe-placeholder::after,
  .ch-globe-skel-ring {
    animation: none;
  }
  .ch-globe-placeholder {
    transition: none;
  }
  .ch-globe-slot > canvas.ch-globe-canvas {
    transition: none;
  }
}

/* Proportions grand écran : cadre et rôles typographiques fluides. */

@media (min-width: 1600px) {
 .ch-hero-shell { gap: var(--vitrine-gap); }
 .ch-globe-slot { max-width: clamp(36rem, calc(12rem + 24vw), 70rem); }
 .cf-inner > .grid { padding: clamp(2.5rem, calc(1rem + 1.5vw), 5rem); gap: var(--vitrine-gap); }
 .cf-field { padding: 1em 1.1em; }
 .cf-label, .cf-note, .cf-upload, .cc-fiches__cta, .cc-fiches__tab { font-size: var(--fs-small); }
 .cc-fiches__body { max-width: 65ch; }
 .cf-side-card p { max-width: 55ch; }
 .cf-location__text { max-width: 55ch; }
 .cf-person__name { font-size: 1.125rem !important; }
 .cf-person__value { font-size: 1rem; }
}
