
/* =====================================================================
   ACCUEIL V2 — « Votre entreprise est notre salle de formation »
   ===================================================================== */

/* Héros métier */
.v2-heros {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100vh - var(--entete)); min-height: calc(100svh - var(--entete));
  display: flex; align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  color: var(--texte-clair);
  background:
    radial-gradient(1000px 600px at 90% 10%, rgba(201, 154, 61, .20), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(169, 175, 182, .10), transparent 60%),
    var(--encre);
}
.v2-filigrane {
  position: absolute; z-index: -1; right: -2vw; bottom: -3vw;
  font: 700 clamp(6rem, 19vw, 17rem)/.8 var(--titre); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(226, 194, 122, .16);
  white-space: nowrap; pointer-events: none; user-select: none;
  transition: opacity .45s ease, transform .6s ease;
}
.v2-filigrane.change { opacity: 0; transform: translateX(40px); }
.v2-heros .tresse { opacity: .35; }
.v2-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid rgba(226, 194, 122, .3); background: rgba(255, 255, 255, .03);
  font-size: .86rem; font-weight: 500; color: var(--or-clair);
}
.point-vivant { width: 8px; height: 8px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 0 0 rgba(226, 194, 122, .6); animation: pouls 2.2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(226, 194, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 194, 122, 0); } }
.v2-titre { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em; color: #fff; margin-bottom: 40px; }
.v2-titre span { display: block; }
.v2-mot {
  display: inline-block; font-style: italic; font-weight: 500;
  background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em; transition: opacity .3s ease, transform .35s ease, filter .35s ease;
}
.v2-mot.change { opacity: 0; transform: translateY(.25em); filter: blur(6px); }

.v2-metiers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.v2-metiers button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; cursor: pointer; font: 500 .95rem/1 var(--corps);
  color: var(--texte-clair-2); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.v2-metiers button svg { width: 20px; height: 20px; }
.v2-metiers button:hover { color: #fff; border-color: rgba(226, 194, 122, .5); }
.v2-metiers button[aria-selected="true"] { color: #1b1407; background: var(--degrade-or); border-color: transparent; box-shadow: 0 6px 20px rgba(184, 137, 47, .3); }

.v2-panneau { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: stretch; }
.v2-phrase { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--texte-clair-2); max-width: 560px; min-height: 3.3em; margin-bottom: 28px; transition: opacity .3s; }
.v2-phrase.change, .v2-deja.change { opacity: 0; }
.v2-deja {
  border-radius: 18px; padding: 24px 26px; transition: opacity .3s;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid rgba(226, 194, 122, .22);
}
.v2-deja-titre { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 14px; }
.v2-deja ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v2-deja li { padding: 8px 14px; border-radius: 10px; font-size: .92rem; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }

/* Manifeste */
.v2-manifeste-bloc { background: var(--encre); padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--ligne-sombre); }
.v2-manifeste { font: 500 clamp(1.8rem, 4.2vw, 3.4rem)/1.2 var(--titre); letter-spacing: -.015em; margin: 0; max-width: 1000px; color: #fff; }
.v2-manifeste .mot { color: rgba(255, 255, 255, .16); transition: color .35s ease; }
.v2-manifeste .mot.allume { color: #fff; }
.v2-manifeste .mot.allume.fort { color: var(--or-clair); }

/* Pourquoi petit */
.v2-petit-grille { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ligne); }
.v2-petit-grille article { padding: 40px 32px 8px 0; border-right: 1px solid var(--ligne); }
.v2-petit-grille article + article { padding-left: 32px; }
.v2-petit-grille article:last-child { border-right: 0; }
.v2-grand {
  display: block; font: 600 clamp(3rem, 6vw, 4.6rem)/1.05 var(--titre); letter-spacing: -.03em; font-style: italic;
  background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px; padding-right: .1em;
}
.v2-petit-grille h3 { font-size: 1.5rem; margin-bottom: 14px; }
.v2-petit-grille p { color: var(--texte-2); }

/* Frise matinée AFEST (défilement horizontal) */
.v2-matinee .titre-section { margin-bottom: 40px; }
.v2-frise {
  list-style: none; margin: 0; padding: 8px max(24px, calc((100vw - var(--largeur)) / 2 + 24px)) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--or) transparent;
}
.v2-frise li {
  scroll-snap-align: start; position: relative;
  padding: 28px; border-radius: 18px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--ligne-sombre);
  transition: border-color .3s, transform .3s;
}
.v2-frise li:hover { border-color: rgba(226, 194, 122, .45); transform: translateY(-3px); }
.v2-frise time { display: block; font: 600 2.2rem/1 var(--titre); color: var(--or-clair); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.v2-frise li::before { content: ""; position: absolute; top: 44px; right: -21px; width: 21px; height: 1px; background: rgba(226, 194, 122, .4); }
.v2-frise li:last-child::before { display: none; }
.v2-frise h3 { font-size: 1.3rem; }
.v2-frise p { font-size: .95rem; margin: 0; }

/* Paperasse */
.v2-papiers-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.v2-coches { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.v2-coches li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.v2-coches li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--degrade-or); color: #1b1407; font-size: .8rem; font-weight: 700; }
.v2-pile { position: relative; height: 440px; }
.v2-doc {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 330px; padding: 26px 24px;
  background: #fff; border-radius: 10px; border: 1px solid var(--ligne);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 20px 40px rgba(18, 21, 25, .12);
  display: flex; flex-direction: column; gap: 12px;
  transform: translate(-50%, -50%);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.v2-doc b { font: 600 1.05rem/1.25 var(--titre); color: var(--texte); padding-bottom: 12px; border-bottom: 2px solid var(--sable); margin-bottom: 6px; }
.v2-doc i { display: block; height: 8px; border-radius: 4px; background: var(--sable); }
.v2-doc i.court { width: 60%; }
.v2-signature { margin-top: auto; align-self: flex-end; font: italic 500 1.4rem/1 var(--titre); color: var(--or-fonce); transform: rotate(-6deg); }
.v2-sceau {
  margin-top: auto; align-self: flex-end; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  background: var(--degrade-or); color: #1b1407; font: 700 1.1rem/1 var(--titre); letter-spacing: .06em;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .35), 0 6px 16px rgba(184, 137, 47, .4);
}
.v2-doc-cdr { border-color: #dccb9f; }
.v2-pile.visible .v2-doc:nth-child(1) { transform: translate(-112%, -56%) rotate(-12deg); }
.v2-pile.visible .v2-doc:nth-child(2) { transform: translate(-82%, -52%) rotate(-6deg); }
.v2-pile.visible .v2-doc:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg); }
.v2-pile.visible .v2-doc:nth-child(4) { transform: translate(-18%, -48%) rotate(6deg); }
.v2-pile.visible .v2-doc:nth-child(5) { transform: translate(12%, -44%) rotate(11deg); }
.v2-pile .v2-doc:nth-child(2) { transition-delay: .08s; }
.v2-pile .v2-doc:nth-child(3) { transition-delay: .16s; }
.v2-pile .v2-doc:nth-child(4) { transition-delay: .24s; }
.v2-pile .v2-doc:nth-child(5) { transition-delay: .32s; }

/* Diagnostic */
.v2-diag { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.v2-diag-questions { display: grid; gap: 22px; background: var(--papier); border: 1px solid var(--ligne); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--ombre); }
.v2-diag fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.v2-diag legend { display: flex; align-items: center; gap: 10px; font: 600 1.1rem/1.2 var(--titre); margin-bottom: 12px; padding: 0; }
.v2-diag legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: var(--or-clair); font-size: .85rem; }
.v2-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-choix button {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ligne); background: #fff; color: var(--texte); font: 500 .92rem/1.2 var(--corps);
  transition: all .2s;
}
.v2-choix button:hover { border-color: #cdbf9f; }
.v2-choix button[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.v2-diag-resultat {
  position: relative; overflow: hidden; border-radius: 20px; padding: clamp(24px, 3vw, 34px); color: var(--texte-clair);
  background: radial-gradient(500px 300px at 100% 0%, rgba(201, 154, 61, .3), transparent 70%), var(--encre);
  display: flex; flex-direction: column; justify-content: center;
}
.v2-diag-attente { text-align: center; color: var(--texte-clair-2); }
.v2-diag-attente img { width: 120px; margin: 0 auto 20px; opacity: .85; animation: flotter 7s ease-in-out infinite; }
.v2-diag-reponse { animation: apparaitre .5s ease; }
@keyframes apparaitre { from { opacity: 0; transform: translateY(10px); } }
.v2-diag-reponse .etiquette { color: var(--or-clair); }
.v2-diag-reponse h3 { color: #fff; font-size: 1.5rem; }
.v2-diag-reponse p { color: var(--texte-clair-2); font-size: .95rem; }
.v2-diag-reponse ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.v2-diag-reponse li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; color: #fff; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.v2-diag-reponse li::before { content: "→"; color: var(--or-clair); }
.v2-diag-reponse .v2-diag-note { font-size: .8rem; margin: 14px 0 0; }

/* Chiffres & final */
.v2-chiffres { background: var(--encre-2); color: var(--texte-clair); }
.v2-final {
  text-align: center; color: var(--texte-clair); padding: clamp(88px, 12vw, 150px) 0;
  background: radial-gradient(700px 400px at 50% 110%, rgba(201, 154, 61, .28), transparent 70%), var(--encre);
  border-top: 1px solid var(--ligne-sombre);
}
.v2-final .surtitre { color: var(--or-clair); }
.v2-final h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); margin-bottom: 28px; }
.v2-tel { display: inline-block; font: 600 clamp(2rem, 5vw, 3.4rem)/1 var(--titre); color: var(--or-clair); text-decoration: none; margin-bottom: 36px; letter-spacing: .02em; }
.v2-tel:hover { color: #fff; }
.v2-final .actions { justify-content: center; }

@media (max-width: 980px) {
  .v2-heros { min-height: 0; }
  .v2-panneau, .v2-papiers-grille, .v2-diag { grid-template-columns: 1fr; }
  .v2-petit-grille { grid-template-columns: 1fr; }
  .v2-petit-grille article, .v2-petit-grille article + article { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--ligne); }
  .v2-pile { height: 380px; }
  .v2-doc { width: 200px; height: 270px; }
  .v2-frise { grid-auto-columns: minmax(260px, 320px); }
}
@media (max-width: 640px) {
  .v2-metiers { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .v2-metiers::-webkit-scrollbar { display: none; }
  .v2-metiers button { flex: none; }
  .v2-pile { height: 320px; }
  .v2-doc { width: 150px; height: 210px; padding: 16px 14px; gap: 9px; }
  .v2-doc b { font-size: .8rem; }
  .v2-sceau { width: 48px; height: 48px; font-size: .8rem; }
  .v2-frise { grid-auto-columns: 82%; padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .v2-pile .v2-doc { transition: none; }
}

/* Badge Qualiopi (texte ; le logo officiel sera ajouté tel que fourni par le certificateur) */
.v2-kicker-sep { width: 1px; height: 14px; background: rgba(226, 194, 122, .4); }
.badge-qualiopi {
  display: inline-flex; gap: 14px; align-items: flex-start; margin: 28px 0 0; max-width: 620px;
  padding: 16px 20px; border-radius: 14px; font-size: .86rem; line-height: 1.5; color: var(--texte-clair-2);
  border: 1px solid rgba(226, 194, 122, .35); background: rgba(255, 255, 255, .04);
}
.badge-qualiopi svg { width: 28px; height: 28px; flex: none; color: var(--or-clair); }
.badge-qualiopi strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.badge-pied { margin-top: 4px; padding: 12px 14px; font-size: .78rem; }
.badge-pied strong { font-size: .9rem; }
@media (max-width: 640px) { .v2-kicker { flex-wrap: wrap; row-gap: 4px; } }

/* Manifeste suivi directement de la frise (section « Pourquoi petit » retirée) */
.v2-manifeste-bloc + .v2-matinee { border-top: 1px solid var(--ligne-sombre); }

/* Diagnostic enrichi (30/09/2026) */
.v2-diag legend small { font: 400 .85rem/1 var(--corps); color: var(--texte-2); }
.v2-choix-second { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ligne); }
.v2-diag-resultat { position: sticky; top: calc(var(--entete) + 20px); min-height: 360px; }
.v2-diag-progression { margin: 12px 0 0; font-size: .88rem; color: var(--or-clair); }
.v2-diag-consigne { margin: 4px 0 10px; font-size: .85rem !important; }
.v2-diag-reponse .v2-suggestions { gap: 8px; }
.v2-diag-reponse .v2-suggestions li { display: block; padding: 0; background: none; }
.v2-diag-reponse .v2-suggestions li::before { content: none; }
.v2-suggestions button {
  width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; font: inherit; color: #fff;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .2s, border-color .2s;
}
.v2-suggestions button:hover { border-color: rgba(226, 194, 122, .45); }
.v2-suggestions button[aria-pressed="true"] { background: rgba(226, 194, 122, .1); border-color: rgba(226, 194, 122, .55); }
.v2-suggestions .coche { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .35); position: relative; }
.v2-suggestions button[aria-pressed="true"] .coche { background: var(--degrade-or); border-color: transparent; }
.v2-suggestions button[aria-pressed="true"] .coche::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #1b1407; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.v2-suggestions .texte strong { display: block; font-weight: 600; font-size: .93rem; line-height: 1.35; }
.v2-suggestions .texte small { display: block; margin-top: 3px; font-size: .8rem; color: var(--or-clair); }
.v2-diag-reponse .btn.inactif { opacity: .45; pointer-events: none; }
@media (max-width: 980px) { .v2-diag-resultat { position: static; min-height: 0; } }
