/* GLC International : l'app des rencontres. Allure d'une vraie app mobile : en-tête fixe, barre d'onglets en bas, écrans plein cadre. */
:root { --barre: 64px; }
body.app { background: var(--fond); overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
body.app main { padding: 10px 14px calc(var(--barre) + 18px + env(safe-area-inset-bottom)); max-width: 640px; }
.ecran { animation: arrivee .18s ease-out; }
@keyframes arrivee { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* connexion */
.ecran-connexion { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: #fff; text-align: center; }
.logo-connexion { width: 200px; height: auto; margin-bottom: 8px; }
.ecran-connexion h1 { margin: 0; font-size: 24px; }
.ecran-connexion .sous { margin: 2px 0 22px; color: var(--gris); }
.ecran-connexion form { width: 100%; max-width: 360px; text-align: left; }
.astuce-install { margin-top: 24px; color: var(--gris); font-size: 13px; max-width: 360px; }

/* en-tête */
.entete-app { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 56px;
  padding: env(safe-area-inset-top) 8px 0; background: var(--nuit); color: #fff; }
.entete-retour { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 30px; line-height: 1; border-radius: 10px; cursor: pointer; }
.entete-titre { grid-column: 2; text-align: center; line-height: 1.15; min-width: 0; }
.entete-titre span { display: block; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete-titre small { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entete-action { grid-column: 3; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 22px; border-radius: 10px; cursor: pointer; }
.entete-action::before { content: '✈'; }

/* barre d'onglets */
.barre-onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--barre) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--bord); }
.barre-onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--gris); font-size: 11.5px; font-weight: 600; }
.barre-onglets a[aria-current="page"] { color: var(--marine); }
.ico-onglet { width: 26px; height: 26px; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ico-liste { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v3H4zm0 5.5h16v3H4zM4 16h16v3H4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16v3H4zm0 5.5h16v3H4zM4 16h16v3H4z'/%3E%3C/svg%3E"); }
.ico-scan { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v2H5v5H3zm11 0h7v7h-2V5h-5zM3 14h2v5h5v2H3zm16 0h2v7h-7v-2h5zM7 7h4v4H7zm6 0h4v4h-4zM7 13h4v4H7zm6 0h2v2h-2zm2 2h2v2h-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h7v2H5v5H3zm11 0h7v7h-2V5h-5zM3 14h2v5h5v2H3zm16 0h2v7h-7v-2h5zM7 7h4v4H7zm6 0h4v4h-4zM7 13h4v4H7zm6 0h2v2h-2zm2 2h2v2h-2z'/%3E%3C/svg%3E"); }
.ico-carte { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v10h16V7zm2 2h6v2H6zm0 4h10v2H6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v10h16V7zm2 2h6v2H6zm0 4h10v2H6z'/%3E%3C/svg%3E"); }
.ico-plus { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.5'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Ccircle cx='19' cy='12' r='2.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2.5'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Ccircle cx='19' cy='12' r='2.5'/%3E%3C/svg%3E"); }

/* liste */
.actions-haut { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 4px 0 10px; }
.actions-haut .bouton { width: 100%; min-height: 54px; font-size: 17px; }
.carte-rencontre { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--bord);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; font: inherit; color: var(--texte); cursor: pointer; }
.carte-rencontre:active { background: #f1f5fb; }
.carte-rencontre .ligne1 { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 16px; }
.carte-rencontre .ligne2 { font-size: 14px; color: var(--marine); font-weight: 600; }
.carte-rencontre .ligne3 { font-size: 13px; color: var(--gris); }
.recherche { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 4px 0; }
.recherche input, .recherche select { margin: 0; }
.aujourdhui { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 10px; }
.tuile-jour { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--bord);
  background: #fff; color: #4b5563; font: inherit; font-size: 12px; cursor: pointer; text-align: center; min-height: 44px; }
.tuile-jour b { font-size: 22px; color: var(--marine); }
.tuile-jour.active { background: var(--marine); color: #fff; border-color: var(--marine); }
.tuile-jour.active b { color: #fff; }
.ligne3.alerte, .etat-enreg.alerte { color: var(--rouge); font-weight: 700; }
.alerte-rdv { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff1e6; color: #9a3412; font-weight: 600; font-size: 14px; }
.file { text-align: center; color: var(--gris); font-size: 13px; margin: 12px 0 0; }

/* fiche */
.fiche-espace { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(11,31,58,.08); }
.fiche-espace h2 { margin: 0 0 10px; word-break: break-word; }
.fiche-espace h3 { margin-top: 18px; }
.grille-rdv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.grille-rdv input { min-width: 0; }
.question { margin: 0 0 12px; }
.q-label { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.question input, .question textarea { margin-top: 0; }
.supprimer { margin-top: 18px; }
.editeur { margin: 8px 0 0; background: var(--fond); border-radius: 10px; padding: 8px 10px; }
.editeur summary { cursor: pointer; font-weight: 600; color: var(--marine); font-size: 14px; min-height: 44px; display: flex; align-items: center; }
.editeur label { margin-bottom: 8px; }
.editeur input { padding: 9px; }
.liens-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.liens-contact a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--fond); color: var(--marine); text-decoration: none; font-weight: 600; font-size: 14px; }
.scan-resume-fiche { font-size: 13px; color: var(--gris); margin: 6px 0; }
.message-pres { background: var(--fond); border-radius: 10px; padding: 10px 12px; margin: 6px 0 10px; font-size: 13px; white-space: pre-wrap; }
.boutons-copie { display: flex; gap: 8px; flex-wrap: wrap; }
.puce, .petit, .onglet { min-height: 44px; }
.photo-requalif:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* scanner */
.ecran-scanner { display: flex; flex-direction: column; gap: 10px; }
.cadre-video { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 62vh; background: #000; border-radius: 16px; overflow: hidden; }
.cadre-video video { width: 100%; height: 100%; object-fit: cover; }
.viseur { position: absolute; inset: 14%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.28); }
.consigne-scan { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; color: #fff; font-size: 13px; text-align: center; text-shadow: 0 1px 3px #000; }
.scan-autres { display: grid; gap: 8px; }
.scan-autres .bouton { width: 100%; }
.scan-resume { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; border-left: 6px solid var(--cyan); }
.scan-resume b { display: block; font-size: 17px; }
.scan-resume span { color: var(--gris); font-size: 13px; }
#qui-nouveau { margin-bottom: 8px; }
#qui-liste .carte-rencontre { min-height: 60px; }

/* ma carte */
.ecran-carte { text-align: center; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 14px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--marine); background: #fff; color: var(--marine); font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--marine); color: #fff; }
.grand-qr { width: min(78vw, 360px); aspect-ratio: 1 / 1; margin: 0 auto; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 2px 10px rgba(11,31,58,.12); }
.grand-qr svg, .grand-qr img { width: 100%; height: 100%; display: block; }
.carte-titre { margin: 14px 0 2px; font-size: 22px; }
.carte-sous { margin: 0; color: var(--gris); }
.carte-consigne { margin: 10px auto 0; max-width: 360px; font-weight: 700; color: var(--marine); }
.chips-marque { margin-top: 18px; }
.lien-discret { display: inline-block; margin-top: 10px; color: var(--gris); font-size: 13px; }

/* plus */
#vue-plus h2, #vue-voyages h2 { font-size: 15px; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; margin: 16px 0 6px; }
#vue-plus .bloc, #vue-voyages .bloc { margin-top: 0; padding: 12px 14px; }
#vue-plus .bloc .bouton { width: 100%; margin-bottom: 8px; }
#vue-plus .bloc .bouton:last-child { margin-bottom: 0; }
.liste-liens { display: flex; flex-direction: column; }
.liste-liens a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #eef2f7; text-decoration: none; color: var(--texte); font-weight: 600; }
.liste-liens a:last-child { border-bottom: 0; }
.version { text-align: center; color: var(--gris); font-size: 12px; margin-top: 18px; }
.voyage-ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1.5px solid var(--bord); }
.voyage-ligne.actif { border-color: var(--marine); }
.voyage-ligne b { display: block; } .voyage-ligne small { color: var(--gris); }
@media (min-width: 560px) { .recherche { grid-template-columns: 2fr 1fr; } .actions-haut { grid-template-columns: 1fr 1fr; } }
