/* Vidéo de démo, boucles muettes, mini-écrans de la maquette, associés et Notre accompagnement (repris de la proposition du 15/11/2026). */


/* ---------- 1. Vidéo de démonstration sur l'accueil ---------- */
.demo { padding-top: 10px; }
.demo .tete-demo { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.demo .tete-demo .titre-section { margin: 0 auto; }
.demo .tete-demo p { color: var(--doux); margin: 12px auto 0; max-width: 600px; }
.ecran-demo { position: relative; display: block; width: 100%; max-width: 980px; margin: 0 auto; padding: 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--bord); background: #110B35; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02); cursor: pointer; font: inherit; color: #FFFFFF; }
.ecran-demo video, .ecran-demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ecran-demo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17, 11, 53, .55)); pointer-events: none; }
.lire-demo { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--bouton-degrade); box-shadow: 0 14px 40px -12px var(--accent-ombre); font-weight: 700; font-size: 17px; white-space: nowrap; transition: transform .25s var(--sortie), filter .2s; }
.lire-demo .rond { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.lire-demo .duree { font-weight: 500; opacity: .85; }
@media (hover: hover) and (pointer: fine) { .ecran-demo:hover .lire-demo { transform: translateX(-50%) translateY(-2px); filter: brightness(1.06); } }
.ecran-demo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sous-demo { text-align: center; margin-top: 14px; font-size: 14px; color: var(--doux); }

.fenetre-video { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.fenetre-video::backdrop { background: rgba(8, 5, 28, .82); backdrop-filter: blur(4px); }
.fenetre-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.fenetre-video video::cue { font-family: "Jakarta", sans-serif; font-size: .9em; background: rgba(17, 11, 53, .78); }
.fenetre-video .fermer-video { position: absolute; top: -48px; right: 0; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(17, 11, 53, .7); color: #FFFFFF; font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- 2. Boucles muettes sur Analyser, Prévoir, Simuler ---------- */
.boucle-section { position: relative; z-index: 2; padding: 10px 0 30px; }
.boucle { margin: 0 auto; max-width: 900px; }
.boucle-cadre { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--bord); background: #110B35; box-shadow: 0 34px 80px -40px rgba(0, 0, 0, .65); }
.boucle-cadre video, .boucle-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.boucle figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; text-align: center; }
.boucle figcaption strong { font-family: "Serif", Georgia, serif; font-weight: 500; font-size: 20px; color: var(--titre-haut); }
.boucle figcaption .fictif { font-size: 13px; color: var(--doux); }

/* ---------- 3. Haut de l'accueil : identique au site actuel, plein écran (Johan 15/11). Les photos qui défilent sont écartées,
   et la démo n'apparaît pas dans le premier écran : elle ne se charge qu'en descendant. ---------- */

/* ---------- Cartes de l'accueil : mini-écrans tirés de la maquette (mêmes chiffres que la démo et les boucles) ----------
   Le mini-écran reste clair dans les deux affichages, comme l'espace en ligne. Sur téléphone, la carte est trop étroite :
   on garde le dessin d'origine. */
.carte .vis-maquette { padding: 0; border: 0; background: none; overflow: visible; }
.mq-ecran { height: 196px; display: flex; flex-direction: column; padding: 12px 14px 10px; border-radius: 10px; background: #FFFFFF; color: #110B35; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); font-size: 11px; line-height: 1.35; overflow: hidden; }
[data-theme="clair"] .mq-ecran { background: #F6F9FE; border: 1px solid #DCE5F3; box-shadow: none; }
.mq-etiquette { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #135CC0; }
.mq-titre { display: block; margin-top: 2px; font-family: "Serif", Georgia, serif; font-weight: 500; font-size: 15px; line-height: 1.2; color: #110B35; }
.mq-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.mq-liste li { display: grid; grid-template-columns: 1fr 70px 46px; align-items: center; gap: 8px; }
.mq-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-liste i { height: 7px; border-radius: 4px; background: linear-gradient(#135CC0, #135CC0) 0 0 / var(--l) 100% no-repeat, #E3EAF6; }
.mq-liste b { text-align: right; font-weight: 600; }
.mq-reste { margin-top: auto; color: #5B6285; }
.mq-ecran svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.mq-t { font: 500 8.5px "Jakarta", sans-serif; fill: #5B6285; paint-order: stroke; stroke: #FFFFFF; stroke-width: 3px; stroke-linejoin: round; }
[data-theme="clair"] .mq-t { stroke: #F6F9FE; }
.mq-fort { font-weight: 700; fill: #110B35; }
.mq-pivot { stroke: #9AA3C7; stroke-width: 1; stroke-dasharray: 2 3; }
.mq-obj { stroke: #110B35; stroke-width: 1; stroke-dasharray: 4 3; opacity: .55; }
.mq-four { fill: #2F7CEA; opacity: .16; }
.mq-reel { fill: none; stroke: #135CC0; stroke-width: 2; stroke-linejoin: round; }
.mq-prevu { fill: none; stroke: #135CC0; stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.mq-rien { fill: none; stroke: #6F7698; stroke-width: 1.6; stroke-dasharray: 4 3; stroke-linejoin: round; }
.mq-avec { fill: none; stroke: #E37E12; stroke-width: 2.4; stroke-linejoin: round; }
.mq-point { fill: #E37E12; stroke: #FFFFFF; stroke-width: 1.5; }
.mq-point-gris { fill: #6F7698; }
.mq-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: auto; color: #5B6285; font-size: 9.5px; }
.mq-legende i { display: inline-block; width: 14px; height: 0; border-top: 2px solid #135CC0; margin-left: 4px; }
.mq-legende i:first-child { margin-left: 0; }
.mq-legende i.p { border-top-style: dashed; }
.mq-legende i.f { height: 8px; border: 0; border-radius: 2px; background: rgba(47, 124, 234, .2); }
.mq-legende i.g { border-top: 2px dashed #6F7698; }
.mq-legende i.o { border-top-color: #E37E12; }
@media (max-width: 600px) {
  /* téléphone : les cartes s'empilent en pleine largeur pour que le mini-écran reste lisible (Johan, 15/11) */
  .carte { display: flex; flex-direction: column; align-items: stretch; padding: 14px 14px 16px; }
  .carte .vis-maquette { margin: 0 0 14px; }
  .carte h3, .carte p, .carte .l { align-self: auto; text-align: left; }
  .carte h3 { margin: 0 0 4px; }
  .carte p { margin: 0; flex: none; }
  .carte .l { margin-top: 10px; }
  .mq-ecran { height: auto; min-height: 188px; }
}

/* ---------- Illustrations de l'outil en « écran clair », comme l'espace en ligne et les cartes de l'accueil (Johan, 15/11) ----------
   Le bloc reprend les couleurs de l'affichage clair, dans les deux affichages du site. L'orange reste la couleur de mise en avant
   (point bas, chiffre choisi), comme dans la maquette. */
:is(.carte-service, #fourchette, .carte-graphique.ecran-clair, .chiffres-cles.ecran-clair .chiffre-cle, .avant-apres .tableau, .atelier) {
  --fond2: #FFFFFF; --ligne: rgba(17, 11, 53, .09); --bord: rgba(17, 11, 53, .14); --txt: #110B35; --doux: #5B6177;
  --titre-haut: #110B35; --titre-bas: #3A3F6B; --nav-b: #110B35; --nav-b-txt: #FFFFFF; --voile: #F3F6FC; --bouton: #F3F6FC;
  --accent: #E37E12; --accent-degrade: linear-gradient(135deg, #E37E12, #C05918); --accent-ombre: rgba(227, 126, 18, .45);
  --chiffre: linear-gradient(90deg, #E37E12, #C05918); --bleu-ui: #135CC0; --halo-graph: transparent;
  --g-bleu: #135CC0; --g-encre: #110B35; --g-grille: rgba(17, 11, 53, .08); --g-rien: rgba(17, 11, 53, .40); --g-essai: rgba(91, 97, 119, .45);
  --hausse: #0E7C7B; --baisse: #B4402B;
  color: var(--txt); background: #FFFFFF; border: 1px solid rgba(17, 11, 53, .08); box-shadow: 0 30px 70px -38px rgba(0, 0, 0, .75);
  color-scheme: light;
}
[data-theme="clair"] :is(.carte-service, #fourchette, .carte-graphique.ecran-clair, .chiffres-cles.ecran-clair .chiffre-cle, .avant-apres .tableau, .atelier) {
  border-color: #DCE5F3; box-shadow: 0 24px 60px -36px rgba(17, 11, 53, .35);
}
/* Prévoir, « Une fourchette » : la prévision en bleu comme dans la maquette (l'orange reste réservé au simulé) ;
   le réel en points pleins, hors de la fourchette en points creux */
#fourchette .bande { fill: #2F7CEA; fill-opacity: .16; stroke: #2F7CEA; stroke-opacity: .55; }
#fourchette .trace { stroke: #135CC0; }
#fourchette .points circle { fill: #110B35; stroke: #FFFFFF; }
#fourchette .points circle.dehors { fill: #FFFFFF; stroke: #110B35; stroke-width: 2; }
#fourchette .compteur i { background: #110B35; }

/* ---------- Associés : noms seuls, sans titre (Johan, 15/11), avec les nouvelles descriptions ---------- */
.associe h3 { margin-top: 18px; }

/* ---------- Page « Notre accompagnement » ---------- */
.tete-centree { text-align: center; }
.tete-centree .titre-section { margin: 0 auto; }
.tete-centree .chapeau { margin: 16px auto 0; }
.accompagnement-entre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .accompagnement-entre { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 4. Les mots du dirigeant ---------- */
.sans-ressaisie { display: inline-flex; align-items: center; gap: 10px; margin: 26px auto 0; padding: 9px 16px 9px 12px; border: 1px solid var(--bord); border-radius: 999px; background: var(--voile); font-size: 14.5px; font-weight: 500; }
.sans-ressaisie svg { flex: none; color: var(--hausse); }
.centre { text-align: center; }


/* ---------- Tablette et téléphone ---------- */
@media (max-width: 600px) {
  .demo .tete-demo { margin-bottom: 20px; }
  .ecran-demo { border-radius: 16px; }
  /* téléphone : bouton compact en haut à droite, avec son verbe (Gemini, 15/11) ; en bas, il cacherait le texte écrit dans la vidéo */
  .lire-demo { left: auto; right: 10px; top: 10px; bottom: auto; transform: none; font-size: 14px; padding: 6px 12px 6px 6px; gap: 8px; }
  .lire-demo { font-size: 13px; gap: 7px; padding-right: 11px; }
  .lire-demo .rond { width: 30px; height: 30px; }
  @media (hover: hover) and (pointer: fine) { .ecran-demo:hover .lire-demo { transform: translateY(-2px); } }
  .boucle-cadre { border-radius: 14px; }
  .boucle figcaption strong { font-size: 17px; }
  .fenetre-video .fermer-video { top: -44px; }
}
@media (prefers-reduced-motion: reduce) {
  .lire-demo { transition: none; }
}
