/* SIKADI AI — (saas-40) L'ACCUEIL B « Scène vivante », l'en-tête commun et le menu. Téléphone d'abord (360 px), clair et sombre ;
   toute animation s'éteint sous « réduire les animations » (état final affiché). Aucune image : la scène est en HTML et CSS. */
.sombre-possible {
  --a-fond-2: #F7F9F8; --a-carte: #FFFFFF; --a-sauge: #EAF2EE; --a-sauge-2: #DCEBE4; --a-vert-doux: #2E7660; --a-plein: #1B4D3E;
  --a-ombre: 0 1px 2px rgba(23, 32, 29, .04), 0 18px 40px -24px rgba(23, 32, 29, .22);
  --a-ombre-forte: 0 2px 6px rgba(23, 32, 29, .05), 0 40px 80px -40px rgba(27, 77, 62, .35);
  --a-halo-1: rgba(147, 207, 181, .35); --a-halo-2: rgba(157, 146, 250, .22); --a-pdf: #F6E7E4; --a-pdf-texte: #B24A3B;
}
@media (prefers-color-scheme: dark) {
  body.sombre-possible {
    --a-fond-2: #121C18; --a-carte: #17211D; --a-sauge: #1A2A23; --a-sauge-2: #21392F; --a-vert-doux: #9AD3BA; --a-plein: #2E7660;
    --a-ombre: 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 40px -24px rgba(0, 0, 0, .7);
    --a-ombre-forte: 0 0 0 1px rgba(255, 255, 255, .04), 0 40px 80px -40px rgba(0, 0, 0, .8);
    --a-halo-1: rgba(46, 118, 96, .32); --a-halo-2: rgba(120, 108, 240, .16); --a-pdf: #3A2421; --a-pdf-texte: #F0B2A6;
  }
}

/* ------------------------------------------------ l'en-tête commun : deux ronds de 44 px ; le texte à partir de 760 px */
.e40 { position: relative; z-index: 20; }
.e40 .entete-rang { gap: 12px; }
.e40-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.e40-texte { display: none; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 14px; font-size: 15px; font-weight: 700; color: var(--vert); text-decoration: none; white-space: nowrap; }
.e40-texte:hover { background: var(--surface); }
.e40-commencer { background: var(--a-plein); color: #FFFFFF; }
.e40-commencer:hover { background: var(--vert-profond); color: #FFFFFF; }
.rond { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 15px; background: var(--surface); color: var(--vert); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s ease, transform .2s var(--doux); }
.rond:hover { background: var(--surface-2); color: var(--vert); }
.rond:active { transform: scale(.95); }
.rond[hidden] { display: none; }
.app-installee .rond-app[data-app-inviter] { display: none; }
@media (display-mode: standalone), (display-mode: minimal-ui) { .rond-app[data-app-inviter], .m40-ligne[data-app-masquer-installee], .a40-installer { display: none; } }
@media (min-width: 760px) { .e40-texte { display: inline-flex; } .e40 [data-menu-ouvrir] { display: none; } }

/* ------------------------------------------------ le menu : une feuille du bas (téléphone), un panneau (ordinateur) */
.m40-voile { position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 16, .38); animation: m40-fondu .25s ease both; }
.m40 { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; max-height: 86vh; overflow-y: auto; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--fond); box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .45); animation: m40-monte .32s var(--doux) both; }
.m40[hidden], .m40-voile[hidden] { display: none; }
.m40-poignee { justify-self: center; width: 40px; height: 4px; margin: 0 0 8px; border-radius: 2px; background: var(--trait); }
.m40-ligne { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px; border: 0; border-radius: 16px; background: transparent; color: var(--encre); font: inherit; font-size: 16px; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
.m40-ligne:hover { background: var(--surface); color: var(--encre); }
.m40-ligne .icone:first-child { color: var(--vert); }
.m40-ligne[hidden] { display: none; }
.m40-ligne span { flex: 1; min-width: 0; }
.m40-fin { color: var(--gris-3); }
.m40-commencer { margin-top: 10px; width: 100%; }
.m40-page { padding-top: 12px; padding-bottom: 48px; }
.m40-ouvert { position: static; max-height: none; padding: 8px 0; border-radius: 0; box-shadow: none; background: transparent; animation: none; }
@media (min-width: 760px) {
  .m40:not(.m40-ouvert) { left: auto; right: 24px; top: 76px; bottom: auto; width: 340px; padding: 12px; border-radius: 22px; animation-name: m40-fondu; }
  .m40-poignee { display: none; }
  .m40-ouvert { max-width: 420px; margin: 0 auto; }
}
@keyframes m40-monte { from { transform: translateY(100%); } to { transform: none; } }
@keyframes m40-fondu { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------ le héros : centré, le logo vivant, la démo qu'on touche */
.a40 { overflow-x: clip; }
.a40-heros { position: relative; padding-top: 28px; text-align: center; isolation: isolate; }
.a40-aurore { position: absolute; z-index: -1; left: 50%; top: -30px; width: 520px; height: 420px; margin-left: -260px; pointer-events: none; background: radial-gradient(40% 45% at 35% 40%, var(--a-halo-1), transparent 70%), radial-gradient(38% 40% at 68% 55%, var(--a-halo-2), transparent 70%); filter: blur(6px); animation: a40-aurore 16s ease-in-out infinite alternate; }
@keyframes a40-aurore { to { transform: translateY(18px) rotate(6deg) scale(1.06); } }
.a40-logo { position: relative; display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 28px; background: var(--a-carte); box-shadow: var(--a-ombre-forte); }
.a40-logo::after { content: ""; position: absolute; inset: -8px; border-radius: 34px; border: 1.5px solid var(--a-sauge-2); animation: a40-onde 3.2s var(--doux) infinite; }
@keyframes a40-onde { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.18); opacity: 0; } }
.a40-heros h1 { margin: 22px auto 0; max-width: 13ch; font-size: clamp(34px, 10.2vw, 62px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
.a40-heros h1 span { display: block; color: var(--a-vert-doux); }
.a40-chapeau { margin: 12px auto 0; max-width: 30ch; color: var(--gris); font-size: 17px; }
.a40-actions { display: grid; justify-items: center; gap: 6px; margin: 22px auto 0; max-width: 380px; }
.a40-commencer { width: 100%; border-radius: 18px; box-shadow: 0 14px 30px -18px rgba(15, 61, 46, .6); }
.a40-commencer .icone { transition: transform .25s var(--doux); }
.a40-commencer:hover .icone { transform: translateX(3px); }
.a40-rang { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.a40-lien { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: var(--vert); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.a40-lien:hover { background: var(--surface); color: var(--vert); }
.a40-rang .a40-lien.app-js-seul { display: none !important; }
.app-js .a40-rang .a40-lien.app-js-seul { display: inline-flex !important; }
.a40-jouer { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--a-plein); color: #FFFFFF; }
.a40-petit { font-size: 14px; color: var(--gris-2); line-height: 1.5; }
.a40-petit a { font-weight: 700; display: inline-block; padding: 12px 0; margin: -12px 0; }   /* (AJ-8) ≥ 44 px */
.a40-whatsapp { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }

.a40-demo { position: relative; margin: 30px auto 0; max-width: 440px; }
.a40-radio { position: absolute; opacity: 0; pointer-events: none; }
.a40-choix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 20px; background: var(--surface-2); }
.a40-choix label { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; border-radius: 15px; color: var(--gris); font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; -webkit-tap-highlight-color: transparent; }
#d40-1:checked ~ .a40-choix [for=d40-1], #d40-2:checked ~ .a40-choix [for=d40-2], #d40-3:checked ~ .a40-choix [for=d40-3], #d40-4:checked ~ .a40-choix [for=d40-4] { background: var(--a-carte); color: var(--vert); box-shadow: var(--a-ombre); }
.a40-radio:focus-visible ~ .a40-choix { outline: 3px solid rgba(141, 130, 243, .6); outline-offset: 3px; }
.a40-ecran { position: relative; margin-top: 12px; padding: 16px 14px 12px; border-radius: 28px; background: var(--a-carte); border: 1px solid var(--trait-doux); box-shadow: var(--a-ombre-forte); text-align: left; }
.a40-panneau { display: none; gap: 10px; min-height: 226px; align-content: start; }
#d40-1:checked ~ .a40-ecran .a40-p1, #d40-2:checked ~ .a40-ecran .a40-p2, #d40-3:checked ~ .a40-ecran .a40-p3, #d40-4:checked ~ .a40-ecran .a40-p4 { display: grid; }
.a40-b { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; animation: a40-entre .55s var(--doux) both; }
.a40-moi { justify-self: end; background: var(--a-sauge-2); border-bottom-right-radius: 6px; }
.a40-lui { justify-self: start; background: var(--surface-2); border-bottom-left-radius: 6px; animation-delay: .5s; }
.a40-objet { justify-self: start; animation: a40-entre .6s 1s var(--doux) both; }
@keyframes a40-entre { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.a40-rappel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--lavande-douce); }
.a40-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--a-carte); color: var(--lavande-texte); }
.a40-objet strong { display: block; font-weight: 800; font-size: 14px; line-height: 1.2; }
.a40-objet span > span, .a40-doux { font-size: 12.5px; color: var(--gris); }
.a40-pdf { display: flex; align-items: center; gap: 12px; width: 260px; max-width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--trait); }
.a40-pdf-mot { display: grid; place-items: center; flex: none; width: 38px; height: 44px; border-radius: 8px; background: var(--a-pdf); color: var(--a-pdf-texte); font-size: 12px; font-weight: 800; }
.a40-flyer { display: grid; align-content: space-between; width: 164px; height: 164px; padding: 14px; border-radius: 18px; color: #FFFFFF; background: radial-gradient(120% 90% at 85% 10%, #8D82F3 0, transparent 55%), linear-gradient(150deg, #2E7660, #1B4D3E); box-shadow: var(--a-ombre); }
.a40-flyer small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.a40-flyer strong { font-size: 23px; line-height: 1.04; letter-spacing: -.02em; color: #FFFFFF; }
.a40-flyer em { font-style: normal; font-size: 12px; opacity: .85; }
.a40-vocal { display: flex; align-items: center; gap: 10px; }
.a40-onde { display: flex; align-items: center; gap: 2px; height: 22px; }
.a40-onde span { width: 2.5px; border-radius: 2px; background: currentColor; opacity: .55; animation: a40-barre 1.1s ease-in-out infinite alternate; }
.a40-onde span:nth-child(2n) { animation-delay: .2s; } .a40-onde span:nth-child(3n) { animation-delay: .4s; }
.a40-onde .o6 { height: 6px; } .a40-onde .o7 { height: 7px; } .a40-onde .o9 { height: 9px; } .a40-onde .o11 { height: 11px; } .a40-onde .o13 { height: 13px; }
.a40-onde .o14 { height: 14px; } .a40-onde .o15 { height: 15px; } .a40-onde .o16 { height: 16px; } .a40-onde .o19 { height: 19px; } .a40-onde .o20 { height: 20px; } .a40-onde .o21 { height: 21px; }
@keyframes a40-barre { to { transform: scaleY(.45); } }
.a40-pilule { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 10px; padding: 0 8px 0 14px; border-radius: 24px; background: var(--surface-2); color: var(--gris-2); font-size: 14.5px; }
.a40-pilule span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a40-envoyer { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--a-plein); color: #FFFFFF; }

/* ------------------------------------------------ les cartes qui glissent (dans leur rail : la page ne défile jamais de côté) */
.a40-section { padding-top: 56px; }
.a40-section h2 { font-size: clamp(24px, 6.6vw, 36px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.a40-titre-rang { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.a40-fleches { display: none; gap: 8px; }
.app-js .a40-fleches.app-js-seul { display: none !important; }
@media (min-width: 760px) { .app-js .a40-fleches.app-js-seul { display: flex !important; } }
.a40-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; margin: 18px -24px 0; padding: 4px 24px 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.a40-rail::-webkit-scrollbar { display: none; }
/* (36b-3) animations réduites : aucun défilement tout seul ; le bord de la suite s'estompe pour dire qu'il y a d'autres cartes */
.a40-rail.a40-rail-indice { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
@media (min-width: 640px) { .a40-rail { grid-auto-columns: 280px; } }
.a40-carte { scroll-snap-align: start; display: grid; align-content: start; gap: 4px; padding: 16px; border-radius: 22px; background: var(--a-fond-2); border: 1px solid var(--trait-doux); }
.a40-carte-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 13px; background: var(--a-carte); color: var(--vert); box-shadow: var(--a-ombre); }
.a40-carte:nth-child(even) .a40-carte-ic { color: var(--lavande-texte); }
.a40-carte h3 { font-size: 16px; line-height: 1.25; font-weight: 800; }
.a40-carte p { font-size: 13.5px; line-height: 1.35; color: var(--gris); }
.a40-bientot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.a40-bientot-titre { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--gris-2); }
.a40-puce { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--gris); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------ bento : trois gestes + la confiance */
.a40-bento { display: grid; gap: 12px; margin-top: 18px; }
.a40-case { padding: 20px; border-radius: 26px; background: var(--a-fond-2); }
.a40-gestes ol { display: grid; gap: 14px; counter-reset: g; }
.a40-gestes li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; }
.a40-gestes li::before { counter-increment: g; content: counter(g); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--a-carte); color: var(--vert); font-weight: 800; box-shadow: var(--a-ombre); }
.a40-gestes strong { display: block; line-height: 1.2; }
.a40-gestes li span span { font-size: 14px; color: var(--gris); }
.a40-installer { margin-top: 18px; width: 100%; }
.a40-installer[hidden] { display: none; }
.a40-confiance { background: linear-gradient(165deg, var(--a-sauge), var(--a-fond-2) 75%); }
.a40-confiance h3 { margin-top: 14px; font-size: 21px; line-height: 1.2; font-weight: 800; }
.a40-confiance ul { display: grid; gap: 8px; margin-top: 12px; color: var(--gris); font-weight: 600; }
.a40-confiance li { display: flex; gap: 10px; align-items: center; }
.a40-confiance li .icone { color: var(--a-vert-doux); }
.a40-donnees { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-weight: 700; }
.a40-cadenas { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--a-carte); color: var(--vert); box-shadow: var(--a-ombre); }
@media (min-width: 900px) { .a40-bento { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------ l'appel final, vert plein */
.a40-appel { padding-top: 56px; padding-bottom: 40px; }
.a40-appel-fond { position: relative; overflow: hidden; padding: 34px 20px; border-radius: 30px; text-align: center; background: var(--a-plein); color: #FFFFFF; }
.a40-appel-fond::before { content: ""; position: absolute; right: -30%; bottom: -60%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(157, 146, 250, .45), transparent); pointer-events: none; }
.a40-appel h2 { position: relative; font-size: clamp(26px, 7.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; max-width: 15ch; margin: 0 auto; }
.a40-appel-bouton { position: relative; margin: 22px auto 0; width: min(100%, 340px); border-radius: 18px; background: #FFFFFF; color: #1B4D3E; }
.a40-appel-bouton:hover { background: #F1F6F3; color: #0F3D2E; }
.a40-appel p { position: relative; margin-top: 12px; font-size: 14px; opacity: .9; }
.a40-appel p a { color: #FFFFFF; font-weight: 700; display: inline-block; padding: 12px 0; margin: -12px 0; }   /* (AJ-8) */

/* ------------------------------------------------ la barre « Commencer » du bas (téléphone), quand le bouton du héros est sorti */
/* (36b-3, AJ-7 : m2) la réserve de la barre « Commencer » est DANS le pied de page, de sa couleur : plus de bande blanche dessous */
.a40-page .pied { padding-bottom: calc(36px + 88px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .a40-page .pied { padding-bottom: 36px; } }
@media (min-width: 1000px) { .a40-page .pied { padding-bottom: 40px; } }
.a40-barre { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 15; display: flex; gap: 8px; padding: 8px; border-radius: 24px; background: var(--fond); box-shadow: var(--a-ombre-forte); border: 1px solid var(--trait-doux); transform: translateY(140%); visibility: hidden; transition: transform .4s var(--doux), visibility 0s .4s; }
.a40-barre .bouton { flex: 1; min-width: 0; min-height: 52px; border-radius: 18px; }
.a40-barre .rond { width: 52px; height: 52px; border-radius: 18px; }
.a40-barre .rond.app-js-seul { display: none !important; }
.app-js .a40-barre .rond.app-js-seul { display: inline-grid !important; }
.a40-barre-on .a40-barre { transform: none; visibility: visible; transition-delay: 0s; }
.m40-on .a40-barre { visibility: hidden; }
@media (min-width: 760px) { .a40-barre { display: none; } }

/* ------------------------------------------------ les apparitions (avec le script seulement ; rien sous animations réduites) */
.a40-js .a40-monte { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--doux), transform .7s var(--doux); }
.a40-js .a40-monte.a40-vu { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .a40-heros { padding-top: 60px; }
  .a40-demo { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .a40-aurore, .a40-logo::after, .a40-b, .a40-objet, .a40-onde span, .m40, .m40-voile, .a40-logo .point { animation: none !important; }
  .a40-barre, .a40-choix label, .a40-commencer .icone, .rond { transition: none; }
  .a40-js .a40-monte { opacity: 1; transform: none; transition: none; }
}

/* (saas-40) le lecteur de 37 dans la feuille de l'accueil : ses boutons à 44 px de zone de toucher (D4) */
.vf .lv-jouer, .vf .lv-plein { min-width: 44px; min-height: 44px; }
/* (36b-3, AJ-6) la visionneuse de la galerie : cadre plein écran, image ajustée, sur un voile sombre et doux */
.gv { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #F4F7F5; display: grid; grid-template-rows: auto 1fr; overflow: hidden; opacity: 0; transition: opacity .18s ease; }
.gv:not([open]) { display: none; }
.gv.gv-ouverte { opacity: 1; }
.gv::backdrop { background: rgba(10, 16, 14, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gv-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top)); }
.gv-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; opacity: .9; }
.gv-fermer { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 22px; border: 0;
  background: rgba(255, 255, 255, .14); color: inherit; cursor: pointer; }
.gv-fermer:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.gv-fermer svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.gv-scene { min-height: 0; display: grid; place-items: center; padding: 4px 14px max(18px, env(safe-area-inset-bottom)); overflow: auto;
  touch-action: pinch-zoom pan-y; }
.gv-image { display: block; max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); width: auto; height: auto; object-fit: contain; border-radius: 16px;
  background: #FFFFFF; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .65); transform: scale(.985); transition: transform .22s ease; }
.gv-ouverte .gv-image { transform: none; }
@media (prefers-reduced-motion: reduce) { .gv, .gv-image { transition: none; transform: none; } }
