/* ===========================================================================
   « Connecter mon IA » — direction artistique du site vitrine.
   Refonte du 2026-11-18, à la demande de l'utilisateur. AUCUN changement de
   contenu : le HTML n'a pas bougé, seules les règles ci-dessous ont été
   réécrites. Chaque sélecteur correspond donc à un crochet qui existe déjà
   dans la page.

   La page portait sa propre charte : police système, vert #bafb96 (celui de
   l'app), coins à 12-24 px. Le site, lui, est en League Spartan / Poppins,
   vert pomme #BBFB96, pastilles complètement arrondies et cartes à 24 px avec
   une ombre très diffuse.

   TOKENS REPRIS DE LA CONFIG TAILWIND DU SITE, qui est recopiée en ligne dans
   chaque page (index, nos-tarifs, validation-moe, qui-sommes-nous — les quatre
   donnent les mêmes valeurs) :
     text/dark #1C244B · highlight #BBFB96 · greenLight #e4fadb
     secondary #C4C8DF · purple #e2ddfa · grayBg #f9f9f9
   À noter pour une prochaine passe : CLAUDE.md annonce `brand.dark` à
   #062D2B. C'est faux sur les pages réelles, qui portent toutes #1c244b.
   =========================================================================== */

:root {
  color-scheme: light;
  --ink: #1C244B;          /* brand.text — texte et titres */
  --muted: #5B6485;        /* navy désaturé, pour le texte secondaire */
  --line: #F1F2F6;         /* gray-100 du site */
  --highlight: #BBFB96;    /* brand.highlight — CTA principal, surbrillance */
  --highlight-dark: #A6EC81; /* survol du CTA, repris du site */
  --green-light: #E4FADB;  /* brand.greenLight — fonds doux */
  --purple: #E2DDFA;       /* brand.purple — accent */
  --gray-bg: #F9F9F9;      /* brand.grayBg */
  /* Ombre des cartes du site : très large, très douce, presque pas d'offset. */
  --shadow-card: 0 10px 40px -15px rgba(0, 0, 0, .1);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 28px }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 400 16px/1.7 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 3px }
button, input { font: inherit }

/* Les titres du site sont en League Spartan, avec un interlettrage resserré. */
h1, h2, h3 {
  font-family: 'League Spartan', 'Poppins', sans-serif;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.wrap { width: min(1160px, calc(100% - 48px)); margin: auto }

/* ---------------------------------------------------------------- en-tête -- */
.header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* Le logo officiel, celui des six en-têtes du site et de `app.html`. La page
   portait jusqu'au 2026-11-18 un wordmark bricolé en HTML (une pastille « R• »
   suivie du nom en texte) qui ne ressemblait à aucune autre page.
   Chemin absolu et non l'URL www : le même déploiement sert www et app, donc
   l'image est servie par l'hôte courant — une requête de moins vers un autre
   domaine, et le logo s'affiche aussi en local. */
.brand { display: flex; align-items: center; text-decoration: none }
/* 80 px dans un en-tête de 96 px : les mesures exactes du site (h-20
   dans h-24), relevées sur /validation-moe/. */
.brand img { height: 80px; width: auto; display: block }

nav { display: flex; align-items: center; gap: 24px }

/* --------------------------------------------------------------- boutons -- */
/* Pastilles entièrement arrondies : c'est la signature des CTA du site. */
.button {
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.primary { background: var(--highlight); color: var(--ink); font-weight: 700 }
.primary:hover { background: var(--highlight-dark) }
.secondary { border-color: var(--ink); background: #fff; color: var(--ink) }
.secondary:hover { background: var(--green-light) }
.small { font-size: 14px; min-height: 42px; padding: 10px 20px }

.text-button {
  border: 0; background: transparent;
  font-weight: 600; color: var(--ink);
  padding: 8px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 5px;
}
.text-button:hover { color: #38457f }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px }

/* ------------------------------------------------------------------ hero -- */
.hero {
  padding: 72px 0 64px;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 64px; align-items: center;
}

.eyebrow {
  font-size: 11px; letter-spacing: .16em; font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1 { font-size: clamp(38px, 4.2vw, 56px); line-height: 1.1; margin: 0 0 24px; font-weight: 800 }

/* `.text-highlight` du site, appliqué au mot surligné du titre : fond vert
   pomme, 8 px de rayon, et le léger relèvement qui le fait reposer sur la
   ligne de base. */
h1 span {
  background: var(--highlight);
  border-radius: 8px; padding: 0 10px;
  display: inline-block; transform: translateY(-2px);
}

.lead { font-size: 18px; color: var(--muted); line-height: 1.75; max-width: 550px; margin-bottom: 28px }

/* Les CTA de hero du site sont plus généreux que les boutons courants
   (px-8 py-4, texte en 18 px). On ne cible que celui-ci : appliqué partout,
   il écraserait les boutons de carte, qui sont volontairement discrets. */
.hero .button.primary { padding: 16px 34px; font-size: 18px; min-height: 56px }
.fine { font-size: 13px; color: var(--muted); line-height: 1.65; margin-top: 18px }

/* ------------------------------------------------- carte « le parcours » -- */
.journey {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 32px;
  box-shadow: var(--shadow-card);
}
.journey-head {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.dot { height: 9px; width: 9px; background: var(--highlight); border-radius: 50%; box-shadow: 0 0 0 3px var(--green-light) }

.journey ol { list-style: none; margin: 26px 0 22px; padding: 0; display: grid; gap: 26px }
.journey li { display: flex; gap: 16px }
/* Numéros en pastille ronde vert pomme : même traitement que les étapes
   numérotées de la page d'accueil. */
.step {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 999px;
  background: var(--highlight); color: var(--ink);
  display: grid; place-items: center;
  font-family: 'League Spartan', sans-serif; font-weight: 700;
}
.journey strong { font-size: 15px; font-weight: 600 }
.journey li p { font-size: 13px; color: var(--muted); margin: 4px 0 0; line-height: 1.6 }
.journey-note { font-size: 12px; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 18px }

/* --------------------------------------------------------- en-tête de bloc -- */
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px }
.section-head > p { font-size: 14px; color: var(--muted); margin: 0 }
h2 { font-size: 32px; line-height: 1.2; margin: 0; font-weight: 700 }
h3 { font-size: 22px; margin: 16px 0 8px; font-weight: 700 }

/* ----------------------------------------------------------- assistants -- */
.assistants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.assistant {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.assistant-top { display: flex; align-items: center; justify-content: space-between; gap: 10px }
/* Pastille porte-logo. Les trois assistants partagent la même forme, seule la
   teinte du fond change : c'est le logo qui identifie, pas le contenant.
   Les fichiers sont dans `connecteurs/assets/` — tracés officiels, couleur de
   marque figée dedans (voir l'en-tête de ces SVG). Même usage que
   `alternatives/assets/logos/` pour les concurrents. */
.app-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 14px;
  display: grid; place-items: center;
}
.app-icon img { width: 24px; height: 24px; display: block }
/* Fonds : une teinte très claire tirée de chaque marque, pour que les trois
   pastilles se distinguent sans qu'aucune ne crie plus fort que les autres. */
.chat { background: #F4F4F5; border-color: transparent }
.claude { background: #FBEDE6; border-color: transparent }
.gemini { background: #F2EEF9; border-color: transparent }

.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--highlight); color: var(--ink);
}
.badge.muted { color: var(--muted); background: var(--gray-bg) }

.assistant p { font-size: 14px; color: var(--muted); margin: 0 0 26px; line-height: 1.65 }
.assistant .button { margin-top: auto; font-size: 14px }
/* Le mauve de la charte signale la carte « pas encore disponible » sans
   employer un gris qui la ferait passer pour désactivée. */
.assistant.next { background: var(--purple); border-color: transparent; box-shadow: none }
.assistant.next .app-icon { background: #fff; border-color: transparent }
.assistant.next .badge.muted { background: #fff }

/* ----------------------------------------------- adresse du connecteur -- */
.endpoint {
  margin: 44px 0;
  background: var(--green-light);
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 34px;
}
.endpoint h2 { font-size: 26px }
.endpoint p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 10px 0 22px }
.endpoint .eyebrow { color: #4C6B52 }

.copy-row { display: flex; gap: 10px }
.copy-row input {
  min-width: 0; flex: 1;
  border: 1px solid #D3E3CA; border-radius: 999px;
  background: #fff; padding: 13px 20px;
  color: var(--ink);
  font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------------------------------------------------------------- guides -- */
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
.guide {
  border: 1px solid var(--line); border-radius: 24px;
  padding: 34px; background: #fff;
  box-shadow: var(--shadow-card);
}
.guide h2 { font-size: 27px }
.guide ol { padding-left: 22px; color: var(--muted); font-size: 14px }
.guide li { padding-left: 6px; margin: 16px 0; line-height: 1.7 }
.guide li::marker { color: var(--ink); font-weight: 700 }
.guide strong { color: var(--ink); font-weight: 600 }
.guide .button { margin-top: 8px }

/* -------------------------------------------------------------- exemples -- */
.examples { margin: 56px 0 44px }
.examples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px }
/* Filet vert pomme à gauche : le même procédé que les citations du site. */
.examples article { border-left: 4px solid var(--highlight); padding: 2px 24px }
.examples h3 { font-size: 19px; margin-top: 0 }
.examples article p { font-size: 14px; color: var(--muted); line-height: 1.7 }

/* ------------------------------------------------------------- questions -- */
.questions { padding: 10px 0 48px }
.questions h2 { margin-bottom: 22px }
.questions details { border-top: 1px solid var(--line); padding: 20px 0 }
/* Le site retire le marqueur natif et pose son propre signe. */
.questions summary {
  cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none;
  display: flex; align-items: baseline; gap: 12px;
}
.questions summary::-webkit-details-marker { display: none }
.questions summary::before {
  content: "+";
  font-family: 'League Spartan', sans-serif; font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform .2s;
}
.questions details[open] summary::before { transform: rotate(45deg) }
.questions details p { font-size: 14px; color: var(--muted); max-width: 850px; line-height: 1.75 }
.questions details code {
  background: var(--gray-bg); border-radius: 6px; padding: 2px 6px;
  font: 13px/1 ui-monospace, monospace; color: var(--ink);
}
.questions .copy-row { margin-top: 16px }

/* ----------------------------------------------------------------- pied -- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 12px; color: var(--muted);
}
.footer nav { gap: 22px }
.footer a:hover { color: var(--ink) }

/* ------------------------------------------------------- confirmation copie -- */
.copy-status {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 28px rgba(28, 36, 75, .28);
  font-size: 14px; font-weight: 500;
  z-index: 10; max-width: calc(100% - 32px); text-align: center;
}
.copy-status:empty { display: none }

/* --------------------------------------------------------------- écrans -- */
@media (max-width: 850px) {
  .hero { gap: 28px; padding-top: 48px }
  .assistants { grid-template-columns: 1fr 1fr }
  .assistant.next { grid-column: 1 / -1 }
  .assistant.next .button { align-self: flex-start }
  .header nav { gap: 15px }
  .header nav .text-button { font-size: 12px }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px) }
  .header { padding: 16px 0; gap: 12px }
  .brand img { height: 52px }
  .header nav .small { display: none }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 38px 0 }
  .hero h1 { font-size: 38px }
  .lead { font-size: 16px }
  .journey { padding: 24px }
  .section-head { display: block }
  .section-head > p { margin-top: 12px }
  .assistants, .guides, .examples-grid { grid-template-columns: 1fr }
  .assistant.next { grid-column: auto }
  h2 { font-size: 26px }
  .endpoint, .guide, .assistant { padding: 24px }
  .copy-row { flex-direction: column }
  /* Le champ en pastille deviendrait illisible sur une colonne : on le
     redresse en rectangle arrondi, et on le laisse prendre toute la largeur. */
  .copy-row input { font-size: 12px; min-height: 48px; width: 100%; border-radius: 14px }
  .examples-grid { gap: 30px }
  .examples article { padding-left: 18px }
  .footer { flex-direction: column }
  .footer nav { flex-wrap: wrap; gap: 15px }
  .copy-status { width: calc(100% - 32px) }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .button, .questions summary::before { transition: none }
}
