/* Entrer (fiche V3 01) : A00, A1 à A4, d'après les maquettes finales. S'ajoute à jeu.css (couleurs, .btn, .lien, .carte). */
.entrer { position: relative; overflow: hidden; }
.entrer > :not(.fond-portail):not(.fond-lune) { position: relative; z-index: 1; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.haut { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 14px 6px; }
.haut h1 { flex: 1; min-width: 0; font: 600 1.5625rem/1.1 Jost, sans-serif; }
.rond { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: transparent; color: var(--encre); text-decoration: none; }
/* Sur une image ou un fond sombre, le bouton rond garde un fond blanc et une ombre douce (retouche A). */
.sur-image .rond, .sur-image.rond, .a4 .rond, .tete-f3 .rond, .haut-j .rond { background: #fff; box-shadow: var(--ombre-douce); }
.contenu { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
/* Dans la colonne qui défile, aucun bloc ne se tasse : sans cela Safari coupe les onglets et les cartes (3 décembre). */
.contenu > * { flex-shrink: 0; }
.pied { flex: none; padding: 10px 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.pied .btn, .contenu .btn { margin-top: 0; }
.formulaire { display: contents; }
.txt { margin: 0; font-size: .97rem; line-height: 1.5; }
.second { color: var(--second); }
.petit { font-size: .8125rem; color: var(--second); }
.centre { display: flex; justify-content: center; margin-top: 10px; }
.centre-txt { text-align: center; }
.grand { margin: 0; font: 600 1.625rem/1.15 Jost, sans-serif; text-align: center; }
.btn2 { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 10px;
  background: #fff; color: var(--encre); text-decoration: none; font: 700 1rem "Atkinson Hyperlegible Next", sans-serif;
  border: 1.5px solid var(--encre); cursor: pointer; list-style: none; }
.btn2::-webkit-details-marker { display: none; }
.lien { text-decoration: underline; text-underline-offset: 3px; }
.lien.droite { justify-content: flex-end; width: auto; align-self: flex-end; font-size: .875rem; }
.ou { margin: 0; text-align: center; font-size: .8125rem; color: var(--second); }

/* Les champs : label au-dessus, boîte blanche bordée, erreur rouge sous le champ. */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .colle label { font-weight: 700; font-size: .875rem; color: var(--second); }
.boite { display: flex; align-items: center; min-height: 50px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--filet); }
.boite:focus-within { box-shadow: inset 0 0 0 1.5px var(--encre); }
.boite input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; background: none; font: inherit; color: var(--encre); outline: none; }
.champ input[aria-invalid="true"] { color: #8C1D2C; }
.champ:has([aria-invalid="true"]) .boite { box-shadow: inset 0 0 0 2px #C8384B; }
.oeil { width: 44px; height: 44px; margin-right: 4px; display: flex; align-items: center; justify-content: center; border: 0; background: none;
  color: var(--second); cursor: pointer; }
.aide { margin: 0; font-size: .8125rem; color: var(--second); }
.erreur { margin: 0; font-size: .875rem; font-weight: 700; color: #A3182B; }
.erreur a { color: inherit; }
.note-ok { margin: 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--filet); }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; color: var(--second); }
.case input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--encre); }
.case a { color: var(--encre); font-weight: 700; }
.tuile { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  background: transparent; color: var(--encre); font: 700 .875rem Jost, sans-serif; }
.rappel { display: flex; align-items: center; gap: 12px; }
.rappel p { margin: 0; font-size: .875rem; color: var(--second); }

/* A00 et A1 : le portail en fond, le logo et le mot CARILLON. */
.fond-portail { position: absolute; inset: 0; z-index: 0; background: url(/statique/images/amb-portail.jpg) 30% 50% / cover; }
.marque { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.a00 .marque { margin-top: 96px; }
.charge { position: absolute !important; left: 56px; right: 56px; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex;
  flex-direction: column; align-items: center; gap: 12px; }
.barre-charge { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.barre-charge i { display: block; height: 100%; width: 62%; border-radius: 3px; background: linear-gradient(90deg, #FFE7A8, #F5B83D);
  animation: m-remplit 2s ease-out both; }
.charge span { color: #fff; font-size: .875rem; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.a1 .tete-portail { flex: none; position: relative; height: 300px; overflow: hidden; }
.a1 .tete-portail .fond-portail { bottom: auto; height: 392px; top: -47px; background-position: 30% 0; background-size: auto 844px; }
.a1 .tete-portail::after { content: ""; position: absolute; left: 0; right: 0; top: 203px; height: 100px;
  background: linear-gradient(rgba(246,244,255,0), var(--fond) 92%); }
.a1 .marque { position: relative; z-index: 1; margin-top: 49px; }
.a1 .bas-contenu { justify-content: flex-end; gap: 10px; overflow: visible; }
.accroche { margin: 0 0 4px; text-align: center; color: #2E2A4A; }
.idees { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.idees li { display: flex; gap: 12px; align-items: flex-start; padding: 0 6px; animation: m-monte 420ms var(--entree) both; }
.idees li:nth-child(2) { animation-delay: 120ms; } .idees li:nth-child(3) { animation-delay: 240ms; }
.idees svg { flex: none; margin-top: 3px; }
.idees b { display: block; font-size: .9375rem; }
.idees li > span > span { font-size: .84rem; color: var(--second); }
.invitation[open] > summary { display: none; }
.colle { display: flex; flex-direction: column; gap: 8px; animation: m-monte 420ms var(--entree) both; }

/* A2 : les onglets iPhone et Android, les 3 gestes, la petite animation. */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--lavande); border-radius: 14px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--encre);
  font: 700 .9rem "Atkinson Hyperlegible Next", sans-serif; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 4px rgba(20,12,40,.15); }
.gestes { padding: 4px 16px; }
.gestes ol { list-style: none; margin: 0; padding: 0; }
.gestes li { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; }
.gestes b { display: inline; font: inherit; font-weight: 700; }
.gestes li + li { border-top: 1px solid var(--filet); }
.gestes .installer, .gestes .safari { margin: 8px 0 12px; }
.safari { font-weight: 700; color: var(--encre); }
.demo { flex: none; height: 150px; border-radius: 20px; background: linear-gradient(#7B64F0, #1C1838); display: flex; align-items: center;
  justify-content: center; position: relative; }
.icone-app { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; background: #fff; animation: m-pose 2.4s var(--entree) infinite; }
.icone-app img { display: block; width: 100%; height: 100%; }
.doigt { position: absolute; left: calc(50% + 14px); top: calc(50% + 14px); width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(255,255,255,.35); animation: m-touche 2.4s ease-in-out infinite; }

/* A4 : la lune en haut, la cloche qui se balance une fois. */
.fond-lune { position: absolute; left: 0; right: 0; top: 0; height: 250px; z-index: 0; background: url(/statique/images/amb-lune.jpg) 0 33% / 150% auto; }
.fond-lune::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 127px; background: linear-gradient(rgba(246,244,255,0), var(--fond)); }
.logo.grande { width: 92px; height: 96px; }
.a4 .sonne { transform-box: view-box; transform-origin: 50px 30px; animation: cloche 1.6s ease-in-out .3s 1 both; }
.liste { list-style: none; margin: 0; padding: 2px 16px; }
.liste li { display: flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 8px 0; }
.liste li + li { border-top: 1px solid var(--filet); }
.liste b { font: 600 1rem Jost, sans-serif; }
.liste span { font-size: .84rem; color: var(--second); }

.texte-long { gap: 14px; }

/* Écran suivant : glisse de 14 px depuis la droite. */
.entrer:not(.a00) .contenu, .entrer .pied { animation: m-page 360ms var(--entree) both; }
@keyframes m-page { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes m-remplit { from { width: 4%; } to { width: 100%; } }
@keyframes m-pose { 0%, 100% { scale: 1; } 40% { scale: .92; } 55% { scale: 1; } }
@keyframes m-touche { 0%, 25% { opacity: 0; scale: 1.6; } 40% { opacity: 1; scale: 1; } 60%, 100% { opacity: 0; scale: 1; } }
@keyframes cloche { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(12deg); } 35% { transform: rotate(-9deg); }
  55% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
/* L6 (fiche 12) : à l'ouverture, la cloche du logo se balance ; toucher l'écran avance. */
.a00 .sonne { transform-box: view-box; transform-origin: 50px 30px; animation: cloche 2.6s ease-in-out infinite; }
.a00 .toucher { position: absolute; inset: 0; z-index: 5; }
