/* inscription.css (PDA-6K) : pages /, /login, /register. Fond identique aux discussions (vert vif + motif de mots).
   Repères Apple (Human Interface Guidelines) : cibles tactiles ≥ 44 pt, texte courant 17 pt, champs ≥ 16 px (pas de zoom sur iPhone),
   grille de 8, zones sûres, rayons continus, états pressé / focus visibles, mouvement réduit respecté. */
:root { --ins-r-carte: 28px; --ins-champ: 52px; --ins-bouton: 56px; }
html, body { min-height: 100%; height: auto; }
body.ins-page { background: var(--vert-vif); color: var(--encre); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.ins { position: relative; min-height: 100vh; min-height: 100dvh; box-sizing: border-box; overflow: hidden; background: var(--vert-vif);
  display: flex; flex-direction: column; align-items: center; font-size: 1.0625rem; line-height: 1.4706;
  padding: calc(32px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); }
.ins button, .ins input { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ins__logo, .ins__carte { position: relative; }
.ins__logo { width: min(280px, 70vw); height: auto; margin: 8px 0 32px; background-color: #fff; }
.ins__carte { width: 100%; max-width: 440px; background: #fff; border-radius: var(--ins-r-carte); overflow: hidden;
  box-shadow: 0 1px 2px rgba(8, 48, 28, .12), 0 8px 24px rgba(8, 48, 28, .18), 0 24px 56px rgba(8, 48, 28, .18); }

/* Boutons (capsule) */
.ins .btn, .ins__grand { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--ins-bouton); margin: 0; padding: 0 28px; box-sizing: border-box;
  font: inherit; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-decoration: none; border-radius: 999px; cursor: pointer;
  transition: transform 180ms cubic-bezier(.34, 1.3, .64, 1), background-color 150ms, box-shadow 150ms, opacity 150ms; }
.ins .btn--plein { color: #fff; background: var(--vert-texte); border: 0; }
.ins .btn--plein:active { transform: scale(.98); background: var(--vert-fonce); }
.ins .btn--plein[disabled] { opacity: .6; }
.ins .btn--casse { color: var(--vert-texte); background: transparent; border: 0; }
.ins .btn--casse:active { opacity: .6; }
.ins__panneau .btn + .btn { margin-top: 8px; }

/* Écran de départ : deux boutons indépendants, sur le fond, sans carte */
.ins__carte--choix { background: transparent; box-shadow: none; overflow: visible; max-width: 400px; }
.ins__choix { display: flex; flex-direction: column; gap: 16px; padding: 0; }
.ins__choix .ins__grand { min-height: 64px; font-size: 1.1875rem; }
.ins__choix .btn--plein { color: var(--vert-fonce); background: #fff; border: 2px solid #fff; box-shadow: 0 8px 24px rgba(8, 48, 28, .28); }
.ins__choix .btn:not(.btn--plein) { color: #fff; background: transparent; border: 2px solid #fff; }
.ins__choix .btn--plein:active { background: var(--menthe); }
.ins__choix .btn:not(.btn--plein):active { background: rgba(255, 255, 255, .16); opacity: 1; }
.ins__choix[hidden], .ins__entete[hidden], .ins__panneau[hidden] { display: none; }

/* Titre large (style Apple) puis contenu */
.ins__entete { margin: 0; padding: 32px 24px 0; font-size: 1.75rem; line-height: 1.2143; font-weight: 700; letter-spacing: -.01em; color: var(--vert-fonce); background: none; text-align: left; }
.ins__panneau { padding: 24px 24px 32px; outline: none; }
.ins__entete:not([hidden]) + .ins__panneau { padding-top: 24px; }
.ins-titre { margin: 0 0 24px; font-size: 1.375rem; line-height: 1.2727; font-weight: 700; letter-spacing: -.005em; color: var(--vert-fonce); }
.ins-titre--centre, .ins-texte--centre { text-align: center; }
.ins-texte { margin: 0 0 16px; color: var(--encre-douce); }

/* Progression */
.ins-segs { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.ins-seg { flex: 1; height: 4px; border-radius: 2px; background: #d5e2da; }
.ins-seg--ok { background: var(--vert-texte); }

/* Champs : capsule de 52 px, texte 17 px */
.ins-champ { position: relative; margin: 0 0 16px; }
.ins-champ label { display: block; margin: 0 0 8px 20px; font-size: .9375rem; line-height: 1.3333; font-weight: 600; color: var(--encre-douce); }
.ins-champ input, .ins-recherche { width: 100%; min-height: var(--ins-champ); padding: 0 24px; box-sizing: border-box; font: inherit; font-size: 1.0625rem; color: var(--encre); background: #fff;
  border: 1.5px solid #b9c9bf; border-radius: 999px; -webkit-appearance: none; appearance: none; transition: border-color 150ms, box-shadow 150ms; }
.ins-champ input:focus, .ins-recherche:focus { border-color: var(--vert-texte); outline: 0; box-shadow: 0 0 0 4px rgba(21, 122, 67, .22); }
.ins-mdp { position: relative; }
.ins-mdp input { padding-right: 64px; }
.ins-voir { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  color: var(--vert-texte); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.ins-voir:active { background: var(--menthe); }

.ins-sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 8px 0 0; padding: 8px; list-style: none; background: #fff; border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(8, 48, 28, .08), 0 12px 32px rgba(8, 48, 28, .22); }
.ins-sugg[hidden] { display: none; }
.ins-sugg__it { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; min-height: 48px; padding: 12px 16px; border-radius: 14px; cursor: pointer; }
.ins-sugg__it:hover, .ins-sugg__it--on { background: var(--menthe); }
.ins-sugg__dep { color: var(--encre-douce); font-size: .9375rem; }

/* Cases à cocher */
.ins-coche { display: flex; align-items: flex-start; gap: 16px; min-height: 48px; margin: 0 0 8px; cursor: pointer; }
.ins-coche input { width: 28px; height: 28px; flex: none; margin: 10px 0 0; accent-color: var(--vert-texte); }
.ins-coche span { padding-top: 10px; }
.ins-coche a { color: var(--vert-texte); font-weight: 600; }

.ins-erreur { margin: 8px 0 16px; padding: 12px 20px; font-size: .9375rem; line-height: 1.4; color: #b3261e; background: #fdecea; border-radius: 20px; }
.ins-erreur[hidden] { display: none; }
.ins-passer { margin-top: 8px !important; }
.ins-bas { margin: 24px 0 0; text-align: center; color: var(--encre-douce); }
.ins-lien { min-height: 44px; padding: 0 8px; font: inherit; font-weight: 600; color: var(--vert-texte); background: none; border: 0; cursor: pointer; }
.ins-lien:active { opacity: .6; }

/* Choix de l'étape 2 et panneau des maladies */
.ins-liste { margin: 0 0 16px; }
.ins-choix, .ins-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; box-sizing: border-box; text-align: left; font: inherit; color: var(--encre); background: #fff; cursor: pointer;
  transition: transform 180ms cubic-bezier(.34, 1.3, .64, 1), background-color 150ms, border-color 150ms; }
.ins-choix { min-height: 60px; margin: 0 0 8px; padding: 12px 20px 12px 24px; border: 1.5px solid #b9c9bf; border-radius: 999px; }
.ins-choix:active, .ins-ligne:active { transform: scale(.985); }
.ins-choix--on { border-color: var(--vert-texte); background: var(--menthe); font-weight: 600; }
.ins-coche-rond { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid #b9c9bf; border-radius: 50%; color: #fff; font-size: 1rem; font-weight: 700; background: #fff; }
.ins-coche-rond--on { border-color: var(--vert-texte); background: var(--vert-texte); }
.ins-recherche { margin: 0 0 16px; }
.ins-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ins-puces[hidden] { display: none; }
.ins-puce { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 20px; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--vert-fonce); background: var(--menthe); border: 0; border-radius: 999px; cursor: pointer; }
.ins-puce__x { font-size: 1.25rem; line-height: 1; }
.ins-panel { max-height: 320px; margin: 0 0 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1.5px solid #d5e2da; border-radius: 24px; }
.ins-ligne { min-height: 52px; padding: 8px 20px; border: 0; border-bottom: 1px solid #e6eee9; border-radius: 0; }
.ins-ligne:last-child { border-bottom: 0; }
.ins-ligne--on { background: var(--menthe); font-weight: 600; }
.ins-vide { padding: 16px 20px; margin: 0; }

/* Confirmation « autre maladie » */
.ins-confirm { text-align: left; }
.ins-sourire { display: grid; place-items: center; margin: 8px 0 8px; color: var(--vert-texte); }
.ins-question { margin: 24px 0 24px; text-align: center; font-size: 1.1875rem; line-height: 1.3; font-weight: 700; color: var(--vert-fonce); }

.ins-lien:focus-visible, .ins-choix:focus-visible, .ins-ligne:focus-visible, .ins-puce:focus-visible, .ins-voir:focus-visible, .ins .btn:focus-visible, .ins__grand:focus-visible { outline: 3px solid var(--vert-fonce); outline-offset: 2px; }
.ins__choix .ins__grand:focus-visible { outline-color: #fff; }
@media (max-width: 380px) { .ins__panneau { padding: 20px 16px 24px; } .ins__entete { padding: 24px 16px 0; } }
@media (prefers-reduced-motion: reduce) { .ins .btn, .ins__grand, .ins-choix, .ins-ligne, .ins-champ input { transition: none; } .ins .btn--plein:active, .ins-choix:active, .ins-ligne:active { transform: none; } }

/* PDA-7B : « Créer ma communauté » (association) */
.ins .btn--contour { color: var(--vert-texte); background: transparent; border: 2px solid var(--vert-texte); }
.ins .btn--contour:active { transform: scale(.98); background: var(--menthe); }
.ins-asso { margin: 24px 0 0; padding: 24px 0 0; text-align: center; border-top: 1px solid #e6eee9; }
.ins-asso__titre { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--vert-fonce); }
