/* Outils gratuits : calculateur, tâche repensée, charte IA.
   Variables propres à la section ; le mode sombre est défini ici, à la suite. */
.ot-page {
  --ot-navy: #0e2c53;
  --ot-ink: #152f4f;
  --ot-muted: #4d647c;
  --ot-line: #d7e5f0;
  --ot-wash: #f3f7fb;
  --ot-card: #ffffff;
  --ot-porcelain: #fbfcfe;
  --ot-glass: #2b5fd9;
  --ot-glass-soft: #e6eefc;
  --ot-ok: #1f7a55;
  --ot-ko: #9e3428;
  --ot-shadow:
    0 1px 2px rgba(14, 44, 83, 0.06), 0 12px 32px -12px rgba(14, 44, 83, 0.18);
  --ot-night-1: #0e2c53;
  --ot-night-2: #081a31;
  --ot-night-text: #e9f0fa;
  --ot-night-muted: #a9bdd8;
  --ot-night-glass: #8fb2ec;
  --ot-input-line: #bacfe1;
}
html.dark .ot-page {
  --ot-navy: #dce7f5;
  --ot-ink: #c2d2e6;
  --ot-muted: #93a6bf;
  --ot-line: #22354d;
  --ot-wash: #0f1e33;
  --ot-card: #12243b;
  --ot-porcelain: #12243b;
  --ot-glass: #8fb2ec;
  --ot-glass-soft: #16304f;
  --ot-ok: #5cc497;
  --ot-ko: #f08a80;
  --ot-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -16px rgba(0, 0, 0, 0.6);
  --ot-night-1: #10294a;
  --ot-night-2: #06111f;
  --ot-input-line: #2c4563;
}

.ot-page {
  color: var(--ot-ink);
}
.ot-page [hidden] {
  display: none !important;
}

/* ---------- Hero ---------- */
.ot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 32px;
  align-items: center;
  padding-bottom: 8px;
}
.ot-hero-art {
  position: relative;
  justify-self: center;
  width: min(340px, 100%);
  aspect-ratio: 1;
}
.ot-hero-art::before {
  content: '';
  position: absolute;
  inset: 14% 8% 4%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(43, 95, 217, 0.16),
    transparent 72%
  );
  filter: blur(6px);
}
.ot-hero-art img {
  position: relative;
  width: 100%;
  height: auto;
  animation: ot-float 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 28px rgba(14, 44, 83, 0.18));
}
html.dark .ot-hero-art img {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55));
}
@keyframes ot-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}
.ot-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ot-glass);
  margin: 0 0 14px;
}
.ot-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.ot-facts li {
  font-size: 13px;
  font-weight: 650;
  color: var(--ot-ink);
  background: var(--ot-wash);
  border: 1px solid var(--ot-line);
  border-radius: 99px;
  padding: 6px 12px;
}

/* ---------- Mise en page ---------- */
.ot-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 28px 40px;
}
.ot-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px;
}
.ot-section h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ot-navy);
  margin: 0 0 14px;
}
.ot-section > p,
.ot-prose p,
.ot-prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ot-muted);
  max-width: 760px;
  margin: 0 0 14px;
}
.ot-prose h3 {
  font-size: 18px;
  color: var(--ot-navy);
  margin: 26px 0 6px;
}
.ot-prose a:not(.ot-btn),
.ot-section a:not(.ot-btn) {
  color: var(--ot-glass);
}
.ot-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ot-card {
  background: var(--ot-card);
  border: 1px solid var(--ot-line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--ot-shadow);
}
.ot-card h3 {
  font-size: 16px;
  color: var(--ot-navy);
  margin: 0 0 6px;
}
.ot-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ot-muted);
  margin: 0;
}
.ot-num {
  font-variant-numeric: tabular-nums;
}
.ot-sources {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ot-muted);
}
.ot-sources a {
  color: inherit;
}

/* ---------- Boutons ---------- */
.ot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s;
}
.ot-btn:hover {
  transform: translateY(-1px);
}
.ot-btn:focus-visible {
  outline: 3px solid var(--ot-glass);
  outline-offset: 2px;
}
.ot-btn-primary {
  background: var(--ot-night-1);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(14, 44, 83, 0.7);
}
html.dark .ot-btn-primary {
  background: #dce7f5;
  color: #0b1726;
}
.ot-btn-light {
  background: #f7f9fd;
  color: #0e2c53;
  box-shadow: 0 14px 30px -12px rgba(143, 178, 236, 0.55);
}
.ot-btn-ghost {
  background: transparent;
  color: var(--ot-ink);
  border-color: var(--ot-line);
  font-weight: 650;
  font-size: 14px;
  min-height: 42px;
  padding: 9px 16px;
}
.ot-btn-ghost:hover {
  border-color: var(--ot-glass);
  color: var(--ot-glass);
}
.ot-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.ot-linkbtn {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--ot-night-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ot-linkbtn:hover {
  color: #fff;
}

/* ---------- Champs ---------- */
.ot-page input[type='text'],
.ot-page input[type='email'],
.ot-page input[type='number'],
.ot-page textarea,
.ot-page select {
  font: inherit;
  font-size: 15px;
  color: var(--ot-ink);
  background: var(--ot-card);
  border: 1px solid var(--ot-input-line);
  border-radius: 8px;
  padding: 9px 11px;
  width: 100%;
  min-height: 44px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ot-page input:focus,
.ot-page textarea:focus,
.ot-page select:focus {
  outline: none;
  border-color: var(--ot-glass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ot-glass) 22%, transparent);
}
.ot-page textarea {
  resize: vertical;
  line-height: 1.6;
}
.ot-label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ot-ink);
  margin: 0 0 7px;
}
.ot-label em {
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--ot-muted);
}
.ot-hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ot-muted);
  margin: 6px 0 0;
}
.ot-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ot-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--ot-ink);
  background: var(--ot-card);
  border: 1px solid var(--ot-line);
  border-radius: 99px;
  padding: 7px 13px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.ot-chip:hover,
.ot-chip[aria-pressed='true'] {
  border-color: var(--ot-glass);
  color: var(--ot-glass);
  background: var(--ot-glass-soft);
}
.ot-chip:focus-visible {
  outline: 2px solid var(--ot-glass);
  outline-offset: 2px;
}

/* ---------- Panneau nuit (résultats) ---------- */
.ot-night {
  position: relative;
  color: var(--ot-night-text);
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      rgba(143, 178, 236, 0.22),
      transparent 55%
    ),
    radial-gradient(
      90% 70% at 0% 100%,
      rgba(43, 95, 217, 0.25),
      transparent 60%
    ),
    linear-gradient(160deg, var(--ot-night-1), var(--ot-night-2));
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 30px 60px -30px rgba(8, 26, 49, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ot-night::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(169, 199, 245, 0.18);
  pointer-events: none;
}
.ot-glass {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(169, 199, 245, 0.2);
  border-radius: 14px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.ot-night-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ot-night-glass);
  margin: 0 0 8px;
}
.ot-night p {
  color: var(--ot-night-muted);
}
.ot-night a:not(.ot-btn) {
  color: #fff;
}

/* =========================================================
   Outil 1 : calculateur des tâches répétitives
   ========================================================= */
.cx-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}
.cx-editor {
  background: var(--ot-porcelain);
  border: 1px solid var(--ot-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--ot-shadow);
  min-width: 0;
}
.cx-editor h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ot-navy);
  margin: 0 0 4px;
}
.cx-sub {
  font-size: 14px;
  color: var(--ot-muted);
  margin: 0 0 18px;
}
.cx-catalog {
  border-top: 1px solid var(--ot-line);
  margin-top: 18px;
  padding-top: 16px;
}
.cx-catalog-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ot-muted);
  margin: 0 0 10px;
}
.cx-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cx-domain {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--ot-muted);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.cx-domain[aria-selected='true'] {
  background: var(--ot-navy);
  color: var(--ot-card);
}
html.dark .cx-domain[aria-selected='true'] {
  color: #0b1726;
}
.cx-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 100px minmax(0, 1.55fr) 36px;
  gap: 8px 10px;
  align-items: end;
}
.cx-row .cx-field-name {
  grid-column: 1 / 5;
}
.cx-row .cx-del {
  grid-column: 5;
  grid-row: 1;
  align-self: center;
}
.cx-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cx-row {
  background: var(--ot-card);
  border: 1px solid var(--ot-line);
  border-radius: 12px;
  padding: 10px 12px 12px;
  animation: cx-in 0.35s var(--ease);
}
@keyframes cx-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.cx-row input,
.cx-row select {
  min-height: 40px !important;
  font-size: 14px !important;
  padding: 7px 9px !important;
}
.cx-row .cx-name {
  font-weight: 650;
}
.cx-field {
  position: relative;
  min-width: 0;
}
.cx-field .cx-mlabel {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ot-muted);
  margin-bottom: 4px;
}
.cx-field-name .cx-mlabel {
  display: none;
}
.cx-row .cx-name {
  border-color: transparent !important;
  background: transparent !important;
  font-size: 15.5px !important;
  padding-left: 2px !important;
}
.cx-row .cx-name:hover,
.cx-row .cx-name:focus {
  border-color: var(--ot-input-line) !important;
  background: var(--ot-card) !important;
  padding-left: 9px !important;
}
.cx-unit {
  position: absolute;
  right: 9px;
  bottom: 12px;
  font-size: 12px;
  color: var(--ot-muted);
  pointer-events: none;
}
.cx-field input[type='number'] {
  padding-right: 30px !important;
  -moz-appearance: textfield;
}
.cx-field input[type='number']::-webkit-inner-spin-button,
.cx-field input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.cx-del {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: none;
  color: var(--ot-muted);
  font-size: 18px;
  cursor: pointer;
}
.cx-del:hover {
  border-color: var(--ot-line);
  color: var(--ot-ko);
}
.cx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cx-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ot-line);
}
.cx-empty {
  text-align: center;
  padding: 26px 12px;
  border: 1px dashed var(--ot-line);
  border-radius: 12px;
  color: var(--ot-muted);
  font-size: 14px;
}

/* Résultats */
.cx-result {
  position: sticky;
  top: 18px;
}
.cx-big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2px 0 2px;
}
.cx-big b {
  font-size: clamp(46px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cx-big span {
  font-size: 16px;
  font-weight: 700;
  color: var(--ot-night-glass);
}
.cx-big-sub {
  margin: 6px 0 18px;
  font-size: 14px;
  line-height: 1.55;
}
.cx-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cx-kpi b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cx-kpi span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ot-night-muted);
}
.cx-week {
  margin-top: 18px;
}
.cx-week-grid {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.cx-week-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.cx-day {
  position: relative;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(169, 199, 245, 0.16);
  overflow: hidden;
}
.cx-day i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(
    180deg,
    rgba(160, 196, 255, 0.85),
    rgba(83, 132, 233, 0.75)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: width 0.6s var(--ease);
}
.cx-day-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ot-night-muted);
  text-align: center;
  margin-top: 4px;
}
.cx-bars {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cx-bar-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--ot-night-text);
}
.cx-bar-top span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cx-bar-top span:last-child {
  color: var(--ot-night-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cx-bar-track {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  margin-top: 5px;
  display: flex;
  overflow: hidden;
}
.cx-bar-track i {
  display: block;
  height: 100%;
  transition: width 0.6s var(--ease);
}
.cx-bar-track .p {
  background: linear-gradient(90deg, #8fb2ec, #5d8ff0);
}
.cx-bar-track .j {
  background: rgba(233, 240, 250, 0.28);
}
.cx-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--ot-night-muted);
  margin-top: 10px;
}
.cx-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.cx-first {
  margin-top: 18px;
}
.cx-first strong {
  color: #fff;
}
.cx-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cx-cta .ot-btn {
  width: 100%;
}
.cx-utils {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.cx-note {
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
}
.cx-mobilebar {
  display: none;
}

/* =========================================================
   Outil 2 : tâche repensée
   ========================================================= */
.rp-form {
  background: var(--ot-porcelain);
  border: 1px solid var(--ot-line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--ot-shadow);
  display: grid;
  gap: 18px;
}
.rp-form textarea[name='description'] {
  min-height: 150px;
  font-size: 16px;
}
.rp-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.rp-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.rp-count {
  font-size: 12px;
  color: var(--ot-muted);
  text-align: right;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.rp-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.rp-submit p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ot-muted);
  max-width: 520px;
}
.rp-error {
  color: var(--ot-ko);
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}
.rp-out {
  margin-top: 26px;
  scroll-margin-top: 20px;
}
.rp-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ot-night-glass);
  margin: 0 0 18px;
}
.rp-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ot-night-glass);
  box-shadow: 0 0 0 0 rgba(143, 178, 236, 0.6);
  animation: rp-pulse 1.4s infinite;
}
.rp-status.done .rp-pulse {
  animation: none;
  background: #5cc497;
}
@keyframes rp-pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(143, 178, 236, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 178, 236, 0);
  }
}
.rp-title {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}
.rp-constat {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 820px;
}
.rp-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}
.rp-col h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ot-night-glass);
  margin: 0 0 12px;
}
.rp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(169, 199, 245, 0.14);
  animation: rp-in 0.45s var(--ease) both;
}
@keyframes rp-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}
.rp-step > b {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ot-night-muted);
  background: rgba(255, 255, 255, 0.06);
}
.rp-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ot-night-text);
}
.rp-step small {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ot-night-muted);
  margin-top: 3px;
}
.rp-weight {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  overflow: hidden;
}
.rp-weight i {
  display: block;
  height: 100%;
  background: rgba(233, 240, 250, 0.45);
  width: 0;
  transition: width 0.6s var(--ease);
}
.rp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 3px 7px;
  margin-bottom: 5px;
}
.rp-step.is-supprimee {
  border-style: dashed;
}
.rp-step.is-supprimee p {
  text-decoration: line-through;
  text-decoration-color: rgba(233, 240, 250, 0.5);
  color: var(--ot-night-muted);
}
.rp-step.is-supprimee .rp-tag {
  background: rgba(240, 138, 128, 0.16);
  color: #ffb4ab;
}
.rp-step.is-ia_prepare {
  background: linear-gradient(
    160deg,
    rgba(143, 178, 236, 0.16),
    rgba(83, 132, 233, 0.08)
  );
  border-color: rgba(143, 178, 236, 0.38);
}
.rp-step.is-ia_prepare .rp-tag {
  background: rgba(143, 178, 236, 0.22);
  color: #cfe0fb;
}
.rp-step.is-equipe_valide .rp-tag {
  background: rgba(92, 196, 151, 0.18);
  color: #9fe3c4;
}
.rp-step.is-equipe .rp-tag {
  background: rgba(233, 240, 250, 0.12);
  color: var(--ot-night-text);
}
.rp-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.rp-blocks ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-blocks li {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ot-night-text);
  padding-left: 16px;
  position: relative;
  animation: rp-in 0.45s var(--ease) both;
}
.rp-blocks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ot-night-glass);
}
.rp-delay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px 18px;
  align-items: end;
  margin-top: 18px;
}
.rp-delay b {
  display: block;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.rp-delay > div:first-child b {
  color: rgba(255, 255, 255, 0.62);
}
.rp-delay-arrow {
  font-size: 26px;
  color: #a9c7f5;
  padding-bottom: 2px;
}
.rp-delay-text {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
}
.rp-gauge {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.rp-ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.rp-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.rp-ring circle {
  fill: none;
  stroke-width: 10;
}
.rp-ring .bg {
  stroke: rgba(255, 255, 255, 0.08);
}
.rp-ring .fg {
  stroke: url(#rp-grad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.rp-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.rp-gauge h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #fff;
}
.rp-gauge p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.rp-hours {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}
.rp-trial {
  margin-top: 18px;
}
.rp-trial ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rp-trial li {
  animation: rp-in 0.45s var(--ease) both;
}
.rp-trial li b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ot-night-glass);
  margin-bottom: 4px;
}
.rp-trial li span {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ot-night-text);
}
.rp-end {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.rp-end p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.rp-send {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(169, 199, 245, 0.16);
}
.rp-send form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.rp-send label span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ot-night-text);
  margin-bottom: 6px;
}
.rp-send input[type='email'] {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(169, 199, 245, 0.3) !important;
  color: #fff !important;
}
.rp-send input::placeholder {
  color: var(--ot-night-muted);
}
.rp-send .ot-btn {
  min-height: 44px;
}
.rp-send-done {
  color: #9fe3c4 !important;
  font-weight: 650;
  margin: 0;
}
.rp-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rp-skeleton i {
  display: block;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 75%
  );
  background-size: 200% 100%;
  animation: rp-shimmer 1.4s infinite linear;
}
@keyframes rp-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* =========================================================
   Outil 3 : charte IA
   ========================================================= */
.ch-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: start;
}
.ch-form {
  background: var(--ot-porcelain);
  border: 1px solid var(--ot-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--ot-shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ch-group {
  border: 0;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--ot-line);
  min-width: 0;
}
.ch-group:last-child {
  border-bottom: 0;
}
.ch-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ot-navy);
  padding: 0;
  margin: 0 0 12px;
}
.ch-group legend b {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  background: var(--ot-glass-soft);
  color: var(--ot-glass);
}
.ch-fields {
  display: grid;
  gap: 12px;
}
.ch-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ch-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.ch-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ot-ink);
  padding: 8px 10px;
  border: 1px solid var(--ot-line);
  border-radius: 9px;
  background: var(--ot-card);
  cursor: pointer;
}
.ch-check input {
  margin-top: 2px;
  accent-color: var(--ot-glass);
  flex: none;
}
.ch-check:has(input:checked) {
  border-color: color-mix(in srgb, var(--ot-glass) 55%, var(--ot-line));
  background: var(--ot-glass-soft);
}
.ch-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--ot-line);
  border-radius: 9px;
  background: var(--ot-card);
}
.ch-data-row small {
  display: block;
  color: var(--ot-muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.ch-data-row select {
  min-height: 38px !important;
  font-size: 13.5px !important;
  padding: 6px 8px !important;
}
.ch-preview-wrap {
  position: sticky;
  top: 18px;
}
.ch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ch-toolbar > span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ot-muted);
}
.ch-toolbar div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-paper {
  position: relative;
  background: #fdfdfb;
  color: #1b2a3f;
  border-radius: 6px;
  padding: 44px 46px;
  max-height: 78vh;
  overflow: auto;
  box-shadow:
    0 1px 0 rgba(14, 44, 83, 0.04),
    0 2px 6px rgba(14, 44, 83, 0.06),
    0 28px 60px -24px rgba(14, 44, 83, 0.35);
  font-size: 14px;
  line-height: 1.65;
  overscroll-behavior: contain;
}
.ch-paper::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #0e2c53, #2b5fd9 60%, #8fb2ec);
}
.ch-paper h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0e2c53;
  margin: 0 0 4px;
}
.ch-paper .ch-meta {
  font-size: 12.5px;
  color: #5b6e86;
  margin: 0 0 22px;
}
.ch-paper h2 {
  font-size: 15.5px;
  color: #0e2c53;
  margin: 22px 0 6px;
}
.ch-paper p,
.ch-paper li {
  margin: 0 0 8px;
  color: #26364c;
}
.ch-paper ul {
  padding-left: 20px;
  margin: 0 0 8px;
}
.ch-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
  font-size: 13px;
}
.ch-paper th,
.ch-paper td {
  border: 1px solid #d9e2ec;
  padding: 7px 9px;
  text-align: left;
  vertical-align: top;
}
.ch-paper th {
  background: #f2f6fb;
  color: #0e2c53;
}
.ch-paper .ch-sign {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  font-size: 13px;
  color: #5b6e86;
}
.ch-paper .ch-sign div {
  border-top: 1px solid #c9d5e2;
  padding-top: 8px;
  min-height: 56px;
}
.ch-flash {
  animation: ch-flash 0.9s var(--ease);
}
@keyframes ch-flash {
  from {
    background: rgba(143, 178, 236, 0.35);
  }
}
.ch-cta {
  margin-top: 18px;
}
.ch-cta h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 6px;
}
.ch-cta p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
}
.ch-law {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.ch-law b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ot-glass);
  margin-bottom: 6px;
}

/* =========================================================
   Page /outils/
   ========================================================= */
.hub-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.hub-tool {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 14px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
  background: var(--ot-porcelain);
  border: 1px solid var(--ot-line);
  box-shadow: var(--ot-shadow);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s;
}
.hub-tool:hover {
  transform: translateY(-3px);
  border-color: var(--ot-glass);
}
.hub-tool img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0 14px 16px rgba(14, 44, 83, 0.16));
}
.hub-tool h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ot-navy);
  margin: 4px 0 8px;
}
.hub-tool p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ot-muted);
  margin: 0 0 12px;
}
.hub-tool span {
  font-size: 14px;
  font-weight: 750;
  color: var(--ot-glass);
}
.hub-tool .ot-kicker {
  margin: 0;
}

/* ---------- FAQ ---------- */
.ot-faq details {
  border-bottom: 1px solid var(--ot-line);
  padding: 14px 0;
  max-width: 820px;
}
.ot-faq summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 16px;
  color: var(--ot-navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.ot-faq summary::-webkit-details-marker {
  display: none;
}
.ot-faq summary::after {
  content: '+';
  font-weight: 500;
  color: var(--ot-glass);
}
.ot-faq details[open] summary::after {
  content: '−';
}
.ot-faq details p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ot-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cx-layout,
  .ch-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-result,
  .ch-preview-wrap {
    position: static;
  }
  .ch-paper {
    max-height: none;
  }
}
@media (max-width: 860px) {
  .ot-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .ot-hero-art {
    display: none;
  }
  .ot-grid-3,
  .rp-blocks,
  .rp-trial ol,
  .ch-law,
  .hub-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .rp-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .cx-mobilebar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(160deg, #0e2c53, #081a31);
    box-shadow: 0 18px 36px -12px rgba(8, 26, 49, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition:
      transform 0.3s var(--ease),
      opacity 0.3s;
  }
  .cx-mobilebar,
  .cx-mobilebar:hover {
    color: #fff !important;
  }
  .cx-mobilebar b {
    color: #fff;
    font-size: 18px;
    font-variant-numeric: tabular-nums;
  }
  .cx-mobilebar.is-hidden {
    transform: translateY(140%);
    opacity: 0;
  }
  .rp-row,
  .rp-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .rp-delay {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .rp-delay-arrow {
    transform: rotate(90deg);
    justify-self: start;
  }
  .rp-end,
  .rp-send form {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .cx-row {
    grid-template-columns:
      minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.95fr)
      36px;
  }
  .cx-row select {
    padding-right: 4px !important;
  }
  .cx-row .cx-field-name {
    grid-column: 1 / 4;
  }
  .cx-row .cx-del {
    grid-column: 4;
  }
  .cx-row .cx-field-prep {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .ot-wrap,
  .ot-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .cx-editor,
  .rp-form,
  .ch-form {
    padding: 16px;
    border-radius: 16px;
  }
  .ot-night {
    padding: 20px;
    border-radius: 16px;
  }
  .cx-settings,
  .ch-two,
  .ch-checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-data-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-paper {
    padding: 28px 20px;
  }
  .ch-paper .ch-sign {
    grid-template-columns: 1fr;
  }
  .rp-gauge {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .hub-tool {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub-tool img {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ot-hero-art img,
  .rp-pulse,
  .rp-skeleton i {
    animation: none;
  }
  .cx-row,
  .rp-step,
  .rp-blocks li,
  .rp-trial li,
  .ch-flash {
    animation: none;
  }
  .cx-day i,
  .cx-bar-track i,
  .rp-ring .fg,
  .rp-weight i {
    transition: none;
  }
}

/* ---------- Impression ---------- */
@media print {
  .editorial-header,
  .editorial-footer,
  .ot-no-print,
  .cx-mobilebar,
  .cx-catalog,
  .cx-actions,
  .cx-del,
  .ot-hero-art {
    display: none !important;
  }
  .ot-night {
    background: #fff !important;
    color: #0e2c53 !important;
    box-shadow: none !important;
    border: 1px solid #ccd;
  }
  .ot-night *,
  .ot-night p {
    color: #0e2c53 !important;
  }
  .cx-layout,
  .ch-layout {
    grid-template-columns: 1fr;
  }
  .cx-result,
  .ch-preview-wrap {
    position: static;
  }
  .ot-page.ch-printing main > *:not(.ch-print-root) {
    display: none !important;
  }
  .ot-page.ch-printing .ch-print-root > *:not(.ch-layout),
  .ot-page.ch-printing .ch-form,
  .ot-page.ch-printing .ch-toolbar,
  .ot-page.ch-printing .ch-cta {
    display: none !important;
  }
  .ot-page.ch-printing .ch-paper {
    max-height: none;
    overflow: visible;
    box-shadow: none;
    padding: 0;
  }
  .ot-page.ch-printing .ch-paper::before {
    display: none;
  }
}

/* Priorité sur les couleurs de liens et de paragraphes des pages éditoriales et du mode sombre */
.ot-page a.ot-btn-primary,
.ot-page a.ot-btn-primary:hover {
  color: #fff;
}
html.dark .ot-page a.ot-btn-primary,
html.dark .ot-page a.ot-btn-primary:hover {
  color: #0b1726;
}
.ot-page a.ot-btn-light,
.ot-page a.ot-btn-light:hover,
html.dark .ot-page a.ot-btn-light {
  color: #0e2c53;
}
.ot-page .ot-night a:not(.ot-btn),
html.dark .ot-page .ot-night a:not(.ot-btn) {
  color: #fff;
}
html.dark .ot-page .ot-night p {
  color: var(--ot-night-muted);
}
.ot-page a.hub-tool,
html.dark .ot-page a.hub-tool {
  color: inherit;
}
html.dark .ot-page .ch-paper p,
html.dark .ot-page .ch-paper li,
html.dark .ot-page .ch-paper td {
  color: #26364c;
}
html.dark .ot-page .ch-paper .ch-meta,
html.dark .ot-page .ch-paper .ch-sign {
  color: #5b6e86;
}
html.dark .ot-page .ch-paper th,
html.dark .ot-page .ch-paper h1,
html.dark .ot-page .ch-paper h2 {
  color: #0e2c53;
}
