/* ─── MODULE D'ANALYSE DE L'ACCUEIL ────────────────────────────────────────
   « Ce que Claude peut faire pour votre entreprise » (#ai-demo)
   Reprend les variables de css/main.css. Fond clair, pas d'aplat noir.
   Textes ≥ 13 px, zones tactiles ≥ 44 px.                                   */

.section-analyse {
  background: var(--bg-alt);
  border-top: 1px solid rgba(28,126,128,0.18);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 5.5rem 2rem;
  color: var(--ink);
  scroll-margin-top: 70px;
}
.an-wrap { max-width: 880px; margin: 0 auto; }
.an-head { text-align: center; max-width: 680px; margin: 0 auto 2.25rem; }
.section-analyse .section-eyebrow { font-size: 0.8125rem; color: var(--orange-text); }
.an-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.15; color: var(--ink); margin-bottom: 1rem;
}
.an-title em { font-style: italic; color: var(--orange-text); }
.an-sub { font-size: 1rem; color: var(--mid); line-height: 1.7; }
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Formulaire */
.an-form { max-width: 640px; margin: 0 auto; }
.an-row {
  display: flex; background: var(--white);
  border: 1px solid rgba(28,126,128,0.45); border-radius: var(--rad);
  overflow: hidden; box-shadow: 0 6px 24px rgba(26,26,26,0.06);
}
.an-row:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(28,126,128,0.15); }
.an-input {
  flex: 1; min-width: 0; min-height: 54px; border: none; outline: none; background: transparent;
  padding: 0 1.1rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.an-input::placeholder { color: var(--grey); }
.an-btn {
  background: var(--orange); color: var(--dark); border: none; cursor: pointer;
  min-height: 54px; padding: 0 1.6rem;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: background var(--transition);
}
.an-btn:hover { background: var(--orange2); }
.an-btn:disabled { opacity: 0.55; cursor: wait; }
.an-btn:focus-visible, .an-cta-btn:focus-visible, .an-again:focus-visible, .an-more summary:focus-visible {
  outline: 2px solid var(--orange-dim); outline-offset: 2px;
}

.an-more { margin-top: 0.75rem; }
.an-more summary {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px;
  cursor: pointer; list-style: none; font-size: 0.875rem; font-weight: 500; color: var(--orange-text);
}
.an-more summary::-webkit-details-marker { display: none; }
.an-more summary::before {
  content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--transition); margin-right: 2px;
}
.an-more[open] summary::before { transform: rotate(45deg); }
.an-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: var(--white); border: 1px solid var(--light2); border-radius: 10px;
  padding: 1.25rem; margin-top: 0.25rem;
}
.an-span2 { grid-column: 1 / -1; }
.an-field { display: flex; flex-direction: column; gap: 0.4rem; border: none; min-width: 0; }
.an-field-l { font-size: 0.8125rem; font-weight: 600; color: var(--ink); padding: 0; }
.an-req { font-weight: 400; color: var(--mid); }
.an-field input, .an-field select, .an-field textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--grey2); border-radius: var(--rad);
  padding: 0.6rem 0.75rem; font-family: var(--font-body); font-size: 0.9375rem; color: var(--ink); background: var(--white);
}
.an-field textarea { resize: vertical; min-height: 150px; line-height: 1.5; }
.an-field input:focus, .an-field select:focus, .an-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(28,126,128,0.12); }
.an-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.an-chip { position: relative; cursor: pointer; }
.an-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.an-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.95rem;
  border: 1px solid var(--grey2); border-radius: 999px; font-size: 0.875rem; color: var(--ink);
  background: var(--white); transition: all var(--transition);
}
.an-chip input:checked + span { border-color: var(--orange); background: rgba(28,126,128,0.1); color: var(--orange-dim); font-weight: 600; }
.an-chip input:focus-visible + span { outline: 2px solid var(--orange-dim); outline-offset: 2px; }

.an-error {
  margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: var(--rad);
  background: #fdf1ee; border: 1px solid rgba(192,57,43,0.25); color: #9b2c20; font-size: 0.9rem;
}

/* Étapes pendant l'analyse */
.an-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  max-width: 760px; margin: 2rem auto 0; padding: 0; list-style: none; counter-reset: an;
}
.an-steps li {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem;
  background: var(--white); border: 1px solid var(--light2); border-radius: 10px;
  font-size: 0.875rem; color: var(--grey); transition: all var(--transition);
}
.an-step-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--grey2); position: relative;
}
.an-steps li.is-active { color: var(--ink); border-color: rgba(28,126,128,0.45); }
.an-steps li.is-active .an-step-dot { border-color: rgba(28,126,128,0.25); border-top-color: var(--orange); animation: an-spin 0.9s linear infinite; }
.an-steps li.is-done { color: var(--ink); }
.an-steps li.is-done .an-step-dot { border-color: var(--forest); background: var(--forest); }
.an-steps li.is-done .an-step-dot::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}
.an-steps li.is-error { color: #9b2c20; border-color: rgba(192,57,43,0.3); }
.an-steps li.is-error .an-step-dot { border-color: var(--red); }
@keyframes an-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .an-steps li.is-active .an-step-dot { animation: none; border-color: var(--orange); } }

/* Résultat */
.an-result { margin-top: 2.5rem; text-align: left; animation: fadeInUp 0.4s ease both; }
.an-card {
  background: var(--white); border: 1px solid var(--light2); border-radius: 12px;
  padding: 1.6rem 1.75rem; margin-bottom: 1.25rem;
}
.an-notice {
  background: var(--white); border: 1px solid rgba(28,126,128,0.35); border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; font-size: 0.95rem; line-height: 1.6;
}
.an-kicker { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); font-weight: 600; margin-bottom: 0.4rem; }
.an-company-name { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.6rem; }
.an-company-resume { font-size: 0.975rem; color: var(--ink); line-height: 1.65; margin-bottom: 1rem; }
.an-company-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.5rem; }
.an-company-facts dt, .an-meta dt { font-size: 0.8125rem; font-weight: 600; color: var(--mid); text-transform: uppercase; letter-spacing: 0.06em; }
.an-company-facts dd { font-size: 0.9375rem; line-height: 1.55; }
.an-poor { margin-top: 1rem; font-size: 0.875rem; color: var(--terra-text); background: var(--terra-bg); border-radius: var(--rad); padding: 0.7rem 0.9rem; }

.an-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin: 2rem 0 1rem; }
.an-block-title { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.an-summary { font-size: 0.875rem; color: var(--mid); }
.an-group { margin-bottom: 1.5rem; }
.an-group-title {
  font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text);
  font-weight: 700; padding-bottom: 0.5rem; margin-bottom: 0.75rem; border-bottom: 1px solid rgba(28,126,128,0.2);
}
.an-tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.an-task {
  background: var(--white); border: 1px solid var(--light2); border-radius: 10px;
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem;
}
.an-task-top { display: flex; flex-direction: column; gap: 0.5rem; }
.an-task-title { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.an-badge {
  align-self: flex-start; display: inline-block; font-size: 0.8125rem; font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 999px; line-height: 1.5;
}
.an-badge--total   { background: var(--forest-light); color: var(--forest); border: 1px solid rgba(45,80,22,0.25); }
.an-badge--partiel { background: var(--terra-bg); color: var(--terra-text); border: 1px solid rgba(194,112,62,0.3); }
.an-tool { font-size: 0.875rem; color: var(--ink); }
.an-tool-k { color: var(--mid); }
.an-how { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }
.an-meta { display: grid; gap: 0.45rem; margin-top: auto; padding-top: 0.55rem; border-top: 1px dashed var(--light2); }
.an-meta div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem; align-items: baseline; }
.an-meta dd { font-size: 0.875rem; line-height: 1.5; }

.an-next-list { counter-reset: step; list-style: none; padding: 0; margin-top: 0.9rem; display: grid; gap: 0.75rem; }
.an-next-list li { counter-increment: step; display: flex; gap: 0.8rem; font-size: 0.95rem; line-height: 1.55; }
.an-next-list li::before {
  content: counter(step); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: var(--dark); font-weight: 700; font-size: 0.875rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Visibilité IA */
.an-vis-note { font-size: 0.875rem; color: var(--mid); margin: 0.2rem 0 0.9rem; }
.an-vis-list { list-style: none; padding: 0; }
.an-vis-row {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 0.85rem; align-items: start;
  padding: 0.85rem 0; border-top: 1px solid var(--light);
}
.an-vis-row:first-child { border-top: none; }
.an-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 0.3rem; }
.an-dot--vert   { background: var(--green); }
.an-dot--orange { background: var(--orange-web); }
.an-dot--rouge  { background: var(--red); }
.an-vis-label { font-size: 0.9375rem; font-weight: 600; }
.an-vis-detail { font-size: 0.875rem; color: var(--mid); line-height: 1.5; word-break: break-word; }
.an-vis-state { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; margin-top: 0.1rem; }
.an-vis-state--vert   { color: #1e7d46; }
.an-vis-state--orange { color: #a8560c; }
.an-vis-state--rouge  { color: #9b2c20; }
.an-bots { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.an-bot { font-size: 0.8125rem; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--light2); background: var(--bg-alt); }
.an-bot--bloque  { border-color: rgba(192,57,43,0.35); color: #9b2c20; background: #fdf1ee; }
.an-bot--partiel { border-color: rgba(230,126,34,0.4); color: #a8560c; }

.an-mention { font-size: 0.8125rem; color: var(--mid); font-style: italic; margin: 0.5rem 0 1.5rem; line-height: 1.6; }

/* Appel à l'action */
.an-cta {
  background: var(--white); border: 1px solid rgba(28,126,128,0.4); border-radius: 12px;
  padding: 1.4rem 1.5rem; text-align: center;
}
.an-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  background: var(--orange); color: var(--dark); border: none; border-radius: var(--rad); cursor: pointer;
  padding: 0.75rem 1.5rem; font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1.35; transition: all var(--transition);
}
.an-cta-btn:hover { background: var(--orange2); box-shadow: 0 8px 24px rgba(28,126,128,0.25); }
.an-contact { text-align: left; margin-top: 1.25rem; }
.an-contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9rem; margin-bottom: 1rem; }
.an-contact .an-send { border-radius: var(--rad); min-height: 48px; }
.an-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.an-rgpd { font-size: 0.8125rem; color: var(--mid); margin-top: 0.75rem; line-height: 1.5; }
.an-contact-msg { font-size: 0.9rem; margin-top: 0.6rem; }
.an-contact-msg.is-ok  { color: var(--forest); font-weight: 600; }
.an-contact-msg.is-err { color: #9b2c20; }
.an-again {
  display: block; margin: 1.25rem auto 0; min-height: 44px; padding: 0 1rem;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 0.875rem; color: var(--mid); transition: color var(--transition);
}
.an-again:hover { color: var(--orange-text); }

/* Responsive */
@media (max-width: 760px) {
  .an-tasks, .an-company-facts, .an-contact-grid { grid-template-columns: 1fr; }
  .an-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section-analyse { padding: 3.5rem 16px; }
  .an-sub { font-size: 0.9375rem; }
  .an-row { flex-direction: column; }
  .an-input { min-height: 52px; border-bottom: 1px solid var(--light2); }
  .an-btn { width: 100%; }
  .an-grid { grid-template-columns: 1fr; padding: 1rem; }
  .an-card { padding: 1.2rem 1.1rem; }
  .an-meta div { grid-template-columns: 1fr; gap: 0.1rem; }
  .an-vis-row { grid-template-columns: 12px 1fr; }
  .an-vis-state { grid-column: 2; }
  .an-cta { padding: 1.2rem 1rem; }
  .an-cta-btn { width: 100%; }
}

/* 27/09/2026 : durée de l'analyse annoncée */
.an-time { margin: 10px 0 0; font-size: 13px; color: #5C5043; }
.an-wait { margin: 18px 0 8px; padding: 12px 14px; border-left: 3px solid #1C7E80; background: #EEF6F6; font-size: 14px; color: #26190F; }

/* 27/09/2026 : formulaire complet, tous les champs obligatoires */
.an-url-l { display: block; font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.an-form-note { margin: 18px 0 10px; font-size: 14px; }
.an-submit { margin-top: 18px; }
.an-submit .an-btn { width: 100%; min-height: 52px; }


/* Module en vert canard A&S, comme le bandeau (JPR, 28/09/2026) : les variables orange sont redéfinies dans la section seulement.
   Les voyants de visibilité (--orange-web, « À améliorer ») et les badges « partiel » gardent leur couleur : elle a un sens. */
.section-analyse { --orange:#1C7E80; --orange2:#239496; --orange-dim:#0E5E60; --orange-text:#156A6C; }
.section-analyse .an-btn, .section-analyse .an-cta-btn { color:#fff; }
.section-analyse .an-next-list li::before { color:#fff; }
/* Bandeau d'accès au module, sous la barre de menu de l'accueil, fixe avec elle (JPR, 28/09/2026, v2 « plus original, mais pro », en vert canard A&S pour trancher avec l'orange du site).
   La phrase s'écrit lettre par lettre comme une réponse de Claude, un point « en direct » pulse, un liseré orange et vert glisse.
   Ce fichier n'est chargé que par les deux accueils : ces règles ne touchent pas les autres pages. */
.nav-bandeau{position:relative;display:flex;align-items:center;justify-content:center;gap:.9rem;padding:.45rem 1rem;background:#F3F8F8;color:#14393A!important;text-decoration:none;border-top:1px solid rgba(0,0,0,.05);overflow:hidden}
.nav-bandeau::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#0E5E60,#1C7E80,#3FB8AE,#1C7E80,#0E5E60);background-size:300% 100%;animation:nbLiseré 6s linear infinite}
@keyframes nbLiseré{0%{background-position:0 0}100%{background-position:300% 0}}
.nb-live{position:relative;flex-shrink:0;width:8px;height:8px;border-radius:50%;background:#1C7E80}
.nb-live::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid rgba(28,126,128,.45);animation:nbOnde 1.8s ease-out infinite}
@keyframes nbOnde{0%{transform:scale(.4);opacity:1}100%{transform:scale(1.5);opacity:0}}
.nb-ecran{display:inline-flex;align-items:center;min-width:0;font-family:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;font-size:.8rem;letter-spacing:-.01em;color:#14393A;white-space:nowrap;overflow:hidden}
.nb-texte{overflow:hidden;text-overflow:ellipsis}
/* Largeur fixe de la zone de texte : le bouton ne bouge pas pendant que la phrase s'écrit */
.nb-ecran{width:min(40rem,calc(100vw - 300px))}
@media (max-width:1023px){.nb-ecran{width:min(21rem,calc(100vw - 260px))}}
.nb-curseur{display:inline-block;width:7px;height:1em;margin-left:2px;background:#1C7E80;animation:nbCurseur 1s steps(1) infinite}
@keyframes nbCurseur{50%{opacity:0}}
.nb-btn{flex-shrink:0;display:inline-flex;align-items:center;gap:.3rem;padding:.32rem .85rem;border-radius:999px;background:#1C7E80;color:#fff;font-size:.74rem;font-weight:600;letter-spacing:.02em;white-space:nowrap;box-shadow:0 0 0 0 rgba(28,126,128,.5);animation:nbAppel 3s ease-in-out infinite;transition:background .2s}
.nav-bandeau:hover .nb-btn{background:#0E5E60}
@keyframes nbAppel{0%,70%,100%{box-shadow:0 0 0 0 rgba(28,126,128,0)}80%{box-shadow:0 0 0 6px rgba(28,126,128,.25)}}
.nb-fleche{display:inline-block;animation:nbFleche 1.4s ease-in-out infinite}
@keyframes nbFleche{0%,100%{transform:translateX(0)}50%{transform:translateX(4px)}}
.nb-btn-court{display:none}
.hero{padding-top:10.5rem}
@media (max-width:1260px){.nav-links.open{top:100%}}
@media (max-width:600px){.nb-ecran{width:auto;flex:1}.nav-bandeau{gap:.55rem;padding:.42rem .7rem;justify-content:space-between}.nb-ecran{font-size:.72rem}.nb-btn{padding:.3rem .65rem;font-size:.7rem}.nb-btn-long{display:none}.nb-btn-court{display:inline}.hero{padding-top:8.5rem}}
@media (prefers-reduced-motion:reduce){.nav-bandeau::after,.nb-live::after,.nb-curseur,.nb-btn,.nb-fleche{animation:none}}
#ai-demo{scroll-margin-top:118px}

/* Cartes de cas clients à 320-380 px (JPR, 28/09/2026) : les libellés en capitales (« PLATEFORMES CITANT ») empêchaient la carte
   de rétrécir et la page FR débordait de 20 px. Accueils seulement ; au-dessus de 380 px, rien ne change. */
.cases-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:900px){.cases-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:380px){.case-card{padding:1.25rem;min-width:0}.case-metric{gap:.7rem}.case-label{letter-spacing:.03em;overflow-wrap:anywhere}.case-score{font-size:2.3rem}}
