/* Page MadarAI · Rejoindre : complète css/style.css */

.rj-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); }
.rj-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Voile sombre : le texte reste lisible sur les images */
.rj-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(1, 17, 40, .55) 0%, rgba(1, 17, 40, .72) 55%, var(--navy) 100%),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(138, 108, 255, .35), rgba(1, 17, 40, 0) 70%);
}
.rj-hero h1, .rj-hero .lead { text-shadow: 0 2px 24px rgba(1, 3, 9, .5); }
.rj-logo { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--gray); text-decoration: none; }
.rj-top { display: flex; align-items: center; gap: 20px; }
.rj-fil { font-size: 14px; color: var(--text-dim); }
.rj-fil a { color: var(--text-dim); text-decoration: none; }
.rj-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.rj-lang button {
  min-width: 42px; min-height: 34px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-dim); font: 600 13px/1 var(--font); cursor: pointer;
}
.rj-lang button[aria-pressed="true"] { background: var(--gray); color: var(--navy); }
.rj-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 15px; letter-spacing: .01em; color: var(--text-dim); }
.rj-facts li + li::before { content: "·"; margin: 0 14px; color: rgba(239, 239, 239, .35); }
.rj-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.rj-link { color: var(--gray); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.rj-link:hover { color: var(--blue-light); border-color: var(--blue-light); }

/* Problème, guide */
.rj-problem { background: var(--black); }
.rj-guide { background: var(--navy); }
.rj-belief {
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; font-weight: 300; letter-spacing: -0.02em;
  max-width: 900px; color: var(--gray);
}
.rj-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px 64px; align-items: start; }
.rj-intro p { font-size: 19px; color: var(--text-dim); max-width: 60ch; }
.rj-card { padding: 28px 0 0; border-top: 1px solid var(--line); border-radius: 0; display: flex; flex-direction: column; gap: 10px; }
.rj-card h3 { font-size: 22px; font-weight: 600; }
.rj-card p { font-size: 16px; color: var(--text-dim); }

/* Équipe créative */
.rj-team { display: flex; flex-direction: column; gap: 24px; }
.rj-team__t { font-size: 22px; font-weight: 400; color: var(--text-dim); }
.rj-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
.rj-member { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rj-member img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--black);
  filter: grayscale(1) contrast(1.05); transition: filter .4s;
}
.rj-member:hover img { filter: none; }
.rj-member figcaption { display: flex; flex-direction: column; gap: 2px; }
.rj-member strong { font-size: 16px; font-weight: 600; }
.rj-member span { font-size: 13px; color: var(--text-dim); }

/* Réalisations */
.rj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 16px; align-items: start; }
.rj-grid .tile { padding-bottom: 0; }
.rj-grid .media { border-radius: 18px; background: linear-gradient(160deg, #2A1457, #8A6CFF); }
.rj-grid video { object-fit: cover; }
.rj-grid:empty::before { content: ""; display: block; min-height: 200px; }

/* Étapes */
.rj-steps { background: var(--black); }

.rj-cta-center { align-self: flex-start; }

/* Réussite et échec */
.rj-future { background: var(--navy); }
.rj-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rj-compare__col { padding: 28px; border-radius: 18px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.rj-compare__col h3 { font-size: 22px; font-weight: 600; color: var(--text-dim); }
.rj-compare__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rj-compare__col li { padding-left: 28px; position: relative; color: var(--text-dim); font-size: 17px; }
.rj-compare__col li::before { content: "–"; position: absolute; left: 4px; color: var(--text-dim); }
.rj-compare__col--yes { border-color: rgba(185, 168, 255, .45); }
.rj-compare__col--yes h3 { color: var(--gray); }
.rj-compare__col--yes li { color: var(--gray); }
.rj-compare__col--yes li::before { content: "✓"; color: #B9A8FF; }

/* Questions */
.rj-faq { background: var(--navy); }
.rj-faq__list { border-bottom: 1px solid var(--line); }
.rj-faq__list details { border-top: 1px solid var(--line); }
.rj-faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 24px 0; font-size: 21px; font-weight: 500;
}
.rj-faq__list summary::-webkit-details-marker { display: none; }
.rj-faq__list summary::after { content: "+"; color: var(--blue-light); font-size: 28px; font-weight: 300; line-height: 1; }
.rj-faq__list details[open] summary::after { content: "−"; }
.rj-faq__list p { max-width: 820px; padding-bottom: 28px; font-size: 16px; color: var(--text-dim); }

/* Formulaire façon Typeform */
.tf {
  width: 100%; text-align: left; position: relative; overflow: hidden;
  background: rgba(1, 17, 40, .55); border: 1px solid rgba(239, 239, 239, .08); border-radius: 20px; padding: 44px 40px 28px;
  display: flex; flex-direction: column; gap: 32px;
}
.tf [hidden] { display: none !important; }
.tf__progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: rgba(239, 239, 239, .06); }
.tf__progress span { display: block; height: 100%; width: 0; background: #B9A8FF; transition: width .35s ease; }
.tf-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.tf--js .tf-step { display: none; }
.tf--js .tf-step.is-active { display: flex; animation: tf-in .35s ease both; min-height: 160px; }
@keyframes tf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tf-q { padding: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; font-weight: 300; letter-spacing: -0.015em; color: var(--gray); }
.tf-n { font-size: .5em; font-weight: 500; color: #B9A8FF; vertical-align: .3em; margin-right: 6px; }
.tf-help { margin-top: -8px; font-size: 16px; color: var(--text-dim); }
.tf-hello { font-size: 16px; color: var(--text-dim); }
.tf-input {
  width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(239, 239, 239, .2); border-radius: 0;
  background: transparent; color: var(--gray); font: 300 clamp(20px, 2.6vw, 28px)/1.3 var(--font);
}
.tf-input::placeholder { color: rgba(239, 239, 239, .25); }
.tf-input:focus { outline: none; border-color: #B9A8FF; }
.tf-choices { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.tf-choice {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(239, 239, 239, .12); background: transparent; font-size: 17px; font-weight: 300; color: var(--gray);
  transition: background .15s, border-color .15s;
}
.tf-choice:hover { border-color: rgba(239, 239, 239, .3); background: rgba(239, 239, 239, .03); }
.tf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tf-choice kbd {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  border: 1px solid rgba(239, 239, 239, .2); font: 500 12px/1 var(--font); color: var(--text-dim); background: transparent;
}
.tf-choice:has(input:checked) { border-color: #B9A8FF; background: rgba(185, 168, 255, .08); }
.tf-choice:has(input:checked) kbd { background: #B9A8FF; border-color: #B9A8FF; color: var(--navy); }
.tf-choice:has(input:focus-visible) { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.tf-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--text-dim); cursor: pointer; max-width: 600px; }
.tf-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: #B9A8FF; }
.tf-send { align-self: flex-start; }
.tf-nav { display: none; align-items: center; gap: 14px; flex-wrap: wrap; }
.tf--js .tf-nav { display: flex; }
.tf-key { font-size: 13px; color: var(--text-dim); }
.tf-error { flex-basis: 100%; order: -1; padding: 8px 12px; border-radius: 8px; background: rgba(255, 90, 90, .12); color: #FF9A9A; font-size: 15px; }
.tf-arrows { margin-left: auto; display: inline-flex; gap: 2px; }
.tf-arrows button {
  width: 38px; height: 34px; border: 1px solid rgba(239, 239, 239, .12); background: transparent; color: var(--gray); font-size: 15px; cursor: pointer;
}
.tf-arrows button:first-child { border-radius: 8px 0 0 8px; }
.tf-arrows button:last-child { border-radius: 0 8px 8px 0; }
.tf-arrows button:hover:not(:disabled) { border-color: rgba(239, 239, 239, .35); }
.tf-arrows button:disabled { opacity: .3; cursor: default; }
.tf-ok { min-height: 42px; padding: 10px 22px; font-size: 15px; }
.rj-sent[hidden], .rj-error[hidden] { display: none; }
.rj-sent { width: 100%; padding: 32px; border-radius: 24px; background: var(--navy); border: 1px solid rgba(61, 220, 151, .5); display: flex; flex-direction: column; gap: 10px; }
.rj-sent h3 { font-size: 24px; font-weight: 600; color: #3DDC97; }
.rj-sent p { color: var(--text-dim); }
.rj-error { width: 100%; padding: 14px 18px; border-radius: 14px; background: rgba(255, 90, 90, .12); color: #FF9A9A; font-size: 15px; }

@media (max-width: 760px) {
  .rj-top { gap: 12px; }
  .rj-fil { display: none; }
  .rj-intro { grid-template-columns: 1fr; }
  .rj-compare { grid-template-columns: 1fr; }
  .rj-cta-center { align-self: stretch; }
  .tf { padding: 34px 20px 20px; }
  .tf--js .tf-step.is-active { min-height: 150px; }
  .tf-key { display: none; }
  .tf-send { align-self: stretch; }
  .rj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .rj-team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .rj-grid .tile--large { grid-column: span 2; }
}
