/* ============================================================================
   login.css — Page de connexion (index.php)
   ----------------------------------------------------------------------------
   Reproduit la maquette de la charte : photo des champs au couchant, accroche et
   logo à gauche, tuiles en verre dépoli, carte de connexion à droite, rangée des
   modules en bas. Version téléphone : logo centré, carte pleine largeur, modules
   sur deux lignes.

   Couleurs fixes (pas de jetons de thème) : la page a le même aspect quel que soit
   le réglage clair / sombre de l'appareil.

   Unité --u : un « pixel de maquette ». Elle suit la largeur ET la hauteur de
   l'écran (la maquette fait 1143 × 868), bornée pour rester lisible.

   Photo de fond : « Golden sunset over a lush green landscape », Aivars Vilks,
   Unsplash (licence Unsplash : usage libre, commercial compris).
   ========================================================================== */

.page-connexion{
  color-scheme:light;
  background:#10241a;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  -webkit-font-smoothing:antialiased;
}

.cx{
  --u:clamp(.85px, min(.0875vw, .1152vh), 1.3px);
  --vert-fonce:#22412c;
  --vert-titre:#1d3a27;
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  overflow:hidden;
  color:#fff;
  /* la carte est dans le flux : si l'écran est trop bas, la page s'allonge au lieu de la couper */
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
}

/* ─────────────── Décor ─────────────── */
.cx-scene{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(circle at 93.5% 11.5%, rgba(255,246,206,.95) 0, rgba(255,226,150,.75) 1.6%, rgba(255,196,96,.32) 6%, rgba(255,170,70,.10) 15%, rgba(255,170,70,0) 30%),
    linear-gradient(180deg, rgba(255,178,84,0) 4%, rgba(255,178,84,.20) 12%, rgba(255,178,84,0) 22%),
    linear-gradient(180deg, rgba(16,40,26,.42) 0%, rgba(16,40,26,.16) 16%, rgba(16,40,26,0) 28%),
    linear-gradient(90deg, rgba(10,28,16,.74) 0%, rgba(10,28,16,.48) 32%, rgba(10,28,16,.16) 60%, rgba(10,28,16,.06) 100%),
    linear-gradient(180deg, rgba(10,26,15,0) 40%, rgba(9,24,14,.55) 78%, rgba(8,21,12,.86) 100%),
    linear-gradient(rgba(34,74,38,.24), rgba(34,74,38,.24)),
    url('assets/img/connexion/fond.webp') 70% 30% / cover no-repeat;
}

.cx-feuille{position:absolute; overflow:visible;}
.cx-feuille path{fill:rgba(150,205,92,.17);}
.cx-feuille .cx-feuille-nervure{fill:none; stroke:rgba(205,238,160,.30); stroke-width:1.4; vector-effect:non-scaling-stroke;}
.cx-feuille-haut{left:calc(-10 * var(--u)); top:calc(-6 * var(--u)); width:calc(220 * var(--u)); height:calc(250 * var(--u));}
.cx-feuille-bas{left:52.4%; top:73.5%; width:calc(138 * var(--u)); height:calc(130 * var(--u));}
.cx-feuille-bas path{fill:rgba(150,205,92,.16);}

/* Le champ : calque des lignes de la maquette (champ.png, 3× la maquette) + la vague en SVG.
   Même cadre pour les deux : x 0 → 743, y 485 → 870 px de maquette. */
.cx-parcelles{position:absolute; left:0; top:55.88%; width:65%; height:44.35%;}
.cx-parcelles img,.cx-parcelles svg{position:absolute; inset:0; width:100%; height:100%; display:block;}
.cx-parcelles img{opacity:.62;}
.cx-parcelles path{fill:none; stroke:rgb(228,224,150); stroke-width:1; stroke-linecap:round; vector-effect:non-scaling-stroke;}
.cx-vague-1{opacity:.55;}
.cx-vague-2{opacity:.36;}
.cx-vague-3{opacity:.3;}

/* ─────────────── Logo (symbole + logotype) ─────────────── */
.cx-logo,.cx-carte-logo{display:flex; align-items:center;}
.cx-logo-marque{display:block; flex:none; height:auto;}

.cx-mot{font-family:'Poppins','Inter',sans-serif; font-weight:700; line-height:1; letter-spacing:-.01em; white-space:nowrap; display:inline-flex;}
.cx-mot-i{position:relative; display:inline-block;}
.cx-mot-i svg{position:absolute; left:52%; bottom:72%; width:.36em; height:.4em; overflow:visible;}
.cx-mot-i svg path{fill:#7fc241;}
.cx-mot-i svg .cx-mot-nervure{fill:none; stroke:rgba(255,255,255,.55); stroke-width:1.4; stroke-linecap:round;}
.cx-mot-os{background:linear-gradient(180deg,#9bd04a 0%,#5cae3b 100%); -webkit-background-clip:text; background-clip:text; color:transparent;}
.cx-mot-clair .cx-mot-culti{color:#fff;}
.cx-mot-fonce .cx-mot-culti{color:#1f4129;}
.cx-mot-fonce .cx-mot-os{background:linear-gradient(180deg,#83c341 0%,#4f9f37 100%); -webkit-background-clip:text; background-clip:text;}

/* ─────────────── Accroche (gauche) ─────────────── */
.cx-hero{position:absolute; z-index:2; left:6.8%; top:25.4%;}
.cx-hero .cx-logo{gap:calc(14 * var(--u)); margin-left:calc(-3 * var(--u));}
.cx-hero .cx-logo-marque{width:calc(80 * var(--u));}
.cx-hero .cx-mot{font-size:calc(54 * var(--u)); margin-top:calc(20 * var(--u));}
.cx-accroche{margin-top:calc(14 * var(--u)) !important; font-size:calc(25.3 * var(--u)); font-weight:400; letter-spacing:-.005em; color:#fff;}
.cx-trait{display:block; width:calc(41 * var(--u)); height:calc(3 * var(--u)); min-height:2px; border-radius:2px; background:#8cc63f; margin:calc(25 * var(--u)) 0 calc(31 * var(--u));}
.cx-texte{font-size:calc(17.6 * var(--u)); line-height:1.47; color:rgba(255,255,255,.94);}

/* ─────────────── Tuiles en verre (décor) ─────────────── */
.cx-tuile{
  position:absolute; z-index:1;
  display:flex; align-items:center; gap:calc(14 * var(--u));
  padding:calc(12 * var(--u)) calc(16 * var(--u));
  border-radius:calc(9 * var(--u));
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 10px 30px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(7px) saturate(1.15);
  backdrop-filter:blur(7px) saturate(1.15);
}
.cx-tuile-txt{display:flex; flex-direction:column; line-height:1.15;}
.cx-tuile-txt small{font-size:calc(10.2 * var(--u)); color:rgba(255,255,255,.82);}
.cx-tuile-txt b{font-weight:400; font-size:calc(15.5 * var(--u)); margin:calc(5 * var(--u)) 0 calc(5 * var(--u)); color:#fff;}
.cx-tuile-ico{flex:none; overflow:visible;}

.cx-tuile-meteo{left:42.3%; top:23.6%; width:calc(180 * var(--u)); height:calc(77 * var(--u));}
.cx-tuile-meteo .cx-tuile-ico{width:calc(40 * var(--u)); margin-right:calc(4 * var(--u));}
.cx-soleil circle{fill:none; stroke:#f3c24a; stroke-width:2;}
.cx-soleil path{stroke:#f3c24a; stroke-width:2; stroke-linecap:round;}
.cx-nuage{fill:rgba(16,40,26,.55); stroke:#e9ece6; stroke-width:2; stroke-linejoin:round;}

.cx-tuile-parcelles{left:45.1%; top:36.3%; width:calc(185 * var(--u)); height:calc(95 * var(--u)); align-items:flex-start; padding-top:calc(16 * var(--u));}
.cx-pin{width:calc(19 * var(--u)); margin-top:calc(2 * var(--u));}
.cx-pin path{fill:#7cbf45;} .cx-pin circle{fill:rgba(18,44,26,.85);}
.cx-carte-parcelle{position:absolute; right:calc(14 * var(--u)); top:calc(14 * var(--u)); width:calc(64 * var(--u)); height:calc(64 * var(--u));}
.cx-parcelle-fond{fill:rgba(150,208,96,.38); stroke:#a8d877; stroke-width:1.4; stroke-linejoin:round;}
.cx-parcelle-traits{fill:none; stroke:rgba(205,236,165,.75); stroke-width:1.1;}

.cx-tuile-stocks{left:32.7%; top:52.5%; width:calc(135 * var(--u)); height:calc(67 * var(--u));}
.cx-tuile-stocks .cx-tuile-ico{width:calc(26 * var(--u));}
.cx-sac{fill:#d9a33c;} .cx-sac-lien{fill:none; stroke:#d9a33c; stroke-width:2.2; stroke-linejoin:round;}
.cx-epi{fill:none; stroke:#7a5414; stroke-width:1.8; stroke-linecap:round;}

.cx-tuile-compta{left:47.3%; top:60.8%; width:calc(166 * var(--u)); height:calc(83 * var(--u));}
.cx-tuile-compta .cx-tuile-ico{width:calc(32 * var(--u)); margin:0 calc(10 * var(--u)) 0 calc(2 * var(--u));}
.cx-tuile-compta rect{fill:rgba(222,212,160,.78);}
.cx-tuile-compta path{stroke:rgba(222,212,160,.6); stroke-width:1.4;}

/* ─────────────── Carte de connexion (droite) ─────────────── */
.cx-carte{
  position:relative; z-index:3;
  grid-column:2; align-self:center;
  margin:calc(24px + 36 * var(--u)) 0 24px;   /* un peu sous le centre, comme la maquette */
  /* bord gauche à 64,2 % de la largeur (maquette), sans jamais coller au bord droit */
  margin-right:max(2vw, calc(35.8vw - max(360px, 386 * var(--u))));
  width:calc(386 * var(--u)); min-width:360px;
  padding:calc(46 * var(--u)) calc(41 * var(--u)) calc(52 * var(--u));
  background:#f7f6f1;
  border-radius:calc(11 * var(--u));
  box-shadow:0 30px 70px rgba(4,16,8,.38), 0 2px 8px rgba(4,16,8,.12);
  color:#1d2a21;
}
.cx-carte-logo{gap:calc(14 * var(--u)); margin-bottom:calc(30 * var(--u));}
.cx-carte-logo .cx-logo-marque{width:calc(54 * var(--u)); min-width:46px;}
.cx-carte-logo .cx-mot{font-size:calc(42.5 * var(--u)); margin-top:calc(14 * var(--u));}

.cx-titre{font-family:'Poppins','Inter',sans-serif; font-weight:600; font-size:max(20px, calc(22.8 * var(--u))); line-height:1.2; letter-spacing:-.005em; color:var(--vert-titre);}
.cx-sous-titre{margin-top:calc(9 * var(--u)) !important; font-size:max(13.5px, calc(13.6 * var(--u))); color:#5d6670;}

.cx-form{margin-top:calc(32 * var(--u));}
.cx-label{display:block; font-size:max(13px, calc(12.4 * var(--u))); font-weight:600; color:#1d2f23; margin-bottom:calc(11 * var(--u));}
.cx-champ{
  position:relative; display:flex; align-items:center;
  height:max(46px, calc(41 * var(--u)));
  margin-bottom:calc(30 * var(--u));
  background:#fff; border:1px solid #d9dbd3; border-radius:calc(7 * var(--u));
  transition:border-color .15s, box-shadow .15s;
}
.cx-champ:focus-within{border-color:#4d8a5b; box-shadow:0 0 0 3px rgba(77,138,91,.16);}
.cx-champ-ico{display:flex; flex:none; margin:0 calc(14 * var(--u)) 0 calc(18 * var(--u)); color:#26432f;}
.cx-champ input{
  flex:1; min-width:0; height:100%; border:0; outline:0; background:transparent; padding:0 calc(12 * var(--u)) 0 0;
  font-size:max(15px, calc(13.2 * var(--u))); color:#1d2a21;
}
.cx-champ input::placeholder{color:#a2a69f;}
.cx-oeil{display:flex; align-items:center; justify-content:center; flex:none; width:calc(46 * var(--u)); min-width:42px; height:100%; border:0; background:none; color:#1f3326; border-radius:0 calc(7 * var(--u)) calc(7 * var(--u)) 0;}
.cx-oeil:focus-visible{outline:2px solid #4d8a5b; outline-offset:-4px;}

.cx-oubli{display:flex; justify-content:flex-end; margin:calc(-19 * var(--u)) 0 calc(28 * var(--u));}
.cx-lien{border:0; background:none; padding:2px 0; font-size:max(12.5px, calc(10.6 * var(--u))); font-weight:600; color:#2d6a3c;}
.cx-lien:hover{text-decoration:underline;}

.cx-message{font-size:13px; line-height:1.45; padding:10px 12px; border-radius:8px; margin:calc(-12 * var(--u)) 0 calc(18 * var(--u));}
.cx-message-info{background:#eaf3e6; color:#2c5634;}
.cx-message-erreur{background:#fdecea; color:#a52a1e; font-weight:600;}

.cx-bouton{
  display:flex; align-items:center; justify-content:center; gap:calc(14 * var(--u));
  width:100%; height:max(50px, calc(49 * var(--u)));
  border:0; border-radius:calc(7 * var(--u));
  background:var(--vert-fonce); color:#fff;
  font-family:'Poppins','Inter',sans-serif; font-weight:500; font-size:max(15px, calc(13.6 * var(--u)));
  box-shadow:0 6px 16px rgba(20,48,30,.22);
  transition:background .15s, transform .1s;
}
.cx-bouton span{display:flex;}
.cx-bouton:hover{background:#2a5036;}
.cx-bouton:active{transform:translateY(1px);}
.cx-bouton:disabled{opacity:.7; cursor:progress;}
.cx-bouton:focus-visible{outline:3px solid rgba(77,138,91,.45); outline-offset:2px;}

/* Installation de l'application (PWA) */
.cx-pwa{margin-top:calc(16 * var(--u));}
[hidden].cx-pwa, .cx-pwa [hidden]{display:none !important;}
.cx-pwa-bouton{display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:44px; padding:10px 16px;
  border:1.5px solid rgba(34,65,44,.28); border-radius:calc(7 * var(--u)); background:rgba(34,65,44,.06); color:#22412c;
  font-family:'Poppins','Inter',sans-serif; font-weight:500; font-size:max(14px, calc(12.6 * var(--u))); cursor:pointer;
  transition:background .15s, border-color .15s;}
.cx-pwa-bouton:hover{background:rgba(34,65,44,.12); border-color:#22412c;}
.cx-pwa-bouton:focus-visible{outline:3px solid rgba(77,138,91,.45); outline-offset:2px;}
.cx-pwa-bouton span{display:flex;}
.cx-pwa-aide{margin-top:10px; padding:14px 14px 12px; border:1px solid #d9e3da; border-radius:10px; background:#f3f7f3; color:#22412c; font-size:max(13px, calc(12.2 * var(--u))); line-height:1.45;}
.cx-pwa-titre{display:flex; align-items:center; gap:8px; font-weight:600; margin-bottom:10px;}
.cx-pwa-titre span{display:flex;}
.cx-pwa-etapes{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
.cx-pwa-etapes li{display:flex; align-items:center; gap:10px;}
.cx-pwa-etapes .n{flex:none; width:22px; height:22px; border-radius:50%; background:#22412c; color:#fff; font-size:12px; font-weight:700; display:grid; place-items:center;}
.cx-pwa-etapes .i{flex:none; width:32px; height:32px; border-radius:8px; background:#e3ede5; color:#22412c; display:grid; place-items:center;}
.cx-pwa-etapes .t{flex:1; min-width:0;}
.cx-pwa-note{margin:10px 0 0; font-size:12px; color:#5e6670;}
.cx-securite{
  display:flex; align-items:flex-start; gap:calc(14 * var(--u));
  margin-top:calc(31 * var(--u)); padding-top:calc(26 * var(--u));
  border-top:1px solid #e1e1da;
}
.cx-securite-ico{display:flex; flex:none; color:#22412c; margin-top:1px;}
.cx-securite p{display:flex; flex-direction:column; gap:calc(5 * var(--u)); font-size:max(11.5px, calc(10.4 * var(--u))); color:#5e6670; line-height:1.35;}
.cx-securite small{font-size:max(11px, calc(9.4 * var(--u))); color:#6f767d;}

/* Comptes de démonstration (mode démo uniquement, repliés) */
.cx-demo{margin-top:calc(16 * var(--u));}
.cx-demo summary{cursor:pointer; list-style:none; text-align:center; font-size:11.5px; color:#8a9088;}
.cx-demo summary::-webkit-details-marker{display:none;}
.cx-demo summary:hover{color:#2d6a3c; text-decoration:underline;}
.cx-demo[open] summary{margin-bottom:10px;}
.cx-demo .demo-row{display:flex; align-items:center; gap:9px; width:100%; padding:7px 10px; border:1px solid #e1e1da;
  background:#fff; border-radius:8px; margin-bottom:6px; text-align:left; transition:border-color .12s; color:#1d2a21;}
.cx-demo .demo-row:hover{border-color:#4d8a5b;}
.cx-demo .demo-row .av{width:26px; height:26px; font-size:10px;}
.cx-demo .demo-row b{font-size:12.5px; font-weight:600; display:block;}
.cx-demo .demo-row span{font-size:11px; color:#6f767d;}
.cx-demo .hint{font-size:11.5px; color:#6f767d; margin-top:6px;}

/* ─────────────── Modules (bas) ─────────────── */
.cx-modules{position:absolute; z-index:2; left:4.1%; bottom:calc(50 * var(--u));}
.cx-modules ul{display:flex; margin:0; padding:0; list-style:none;}
.cx-module{position:relative; display:flex; flex-direction:column; align-items:center; gap:calc(7 * var(--u)); width:calc(102 * var(--u));}
.cx-module + .cx-module::before{
  content:''; position:absolute; left:calc(-2 * var(--u)); top:calc(26 * var(--u));
  width:4px; height:4px; border-radius:50%; background:rgba(255,255,255,.5);
}
.cx-module img{display:block; height:calc(25 * var(--u)); width:auto; max-width:calc(30 * var(--u)); object-fit:contain;}
.cx-module span{font-family:'Poppins','Inter',sans-serif; font-weight:600; font-size:calc(12.2 * var(--u)); color:#fff; white-space:nowrap; letter-spacing:-.005em;}
.cx-module b{font-weight:600;}
.cx-module-heure b{color:#9bd46a;}
.cx-module-stoks b{color:#f7b92c;}
.cx-module-compta b{color:#6ab8f6;}
.cx-module-meteo b{color:#7cc6f6;}
.cx-module-paie b{color:#b9a3f8;}
.cx-module-parcelle b{color:#9dd56b;}

/* ─────────────── Écrans intermédiaires : sans tuiles ─────────────── */
@media (max-width:1100px){
  .cx-tuiles{display:none;}
}

/* ─────────────── Téléphone et petite tablette ─────────────── */
@media (max-width:899px){
  .cx{
    --u:1px;
    display:flex; flex-direction:column; align-items:center;
    padding:104px 14px 40px;
  }
  .cx-scene{
    background:
      linear-gradient(180deg, rgba(16,40,26,.55) 0%, rgba(16,40,26,.30) 14%, rgba(12,32,19,.45) 30%, rgba(11,29,17,.82) 52%, #10261a 78%),
      linear-gradient(rgba(34,74,38,.28), rgba(34,74,38,.28)),
      url('assets/img/connexion/fond-mobile.webp') 50% 0 / cover no-repeat;
  }
  .cx-feuille-haut{left:-30px; top:-20px; width:150px; height:190px;}
  .cx-feuille-bas{left:auto; right:-14px; top:auto; bottom:-70px; width:120px; height:190px;}
  .cx-parcelles{display:none;}

  .cx-hero{position:static; display:flex; flex-direction:column; align-items:center; text-align:center;}
  .cx-hero .cx-logo{gap:16px; margin:0;}
  .cx-hero .cx-logo-marque{width:70px;}
  .cx-hero .cx-mot{font-size:49px; margin-top:18px;}
  .cx-accroche{font-size:20px; margin-top:14px !important;}
  .cx-trait,.cx-texte{display:none;}

  .cx-carte{
    width:100%; min-width:0; max-width:460px;
    margin:34px 0 0; padding:30px 24px 30px; border-radius:16px;
  }
  .cx-carte-logo{display:none;}
  .cx-titre{font-size:22px;}
  .cx-sous-titre{font-size:13.5px; margin-top:8px !important;}
  .cx-form{margin-top:30px;}
  .cx-label{font-size:14px; margin-bottom:10px;}
  .cx-champ{height:48px; margin-bottom:28px; border-radius:8px;}
  .cx-champ-ico{margin:0 12px 0 16px;}
  .cx-champ input{font-size:16px;}
  .cx-oubli{margin:-16px 0 26px;}
  .cx-lien{font-size:13.5px;}
  .cx-bouton{height:50px; font-size:16px; border-radius:8px;}
  .cx-securite{margin-top:26px; padding-top:22px; gap:10px;}
  .cx-securite p{font-size:11.5px;}
  .cx-securite small{font-size:10.5px;}

  .cx-modules{position:static; margin-top:28px; width:100%; max-width:400px;}
  .cx-modules ul{display:grid; grid-template-columns:repeat(3,1fr); row-gap:26px;}
  .cx-module{width:auto; gap:8px;}
  .cx-module:nth-child(3n+1)::before{display:none;}
  .cx-module + .cx-module::before{left:-2px; top:22px;}
  .cx-module img{height:30px; max-width:36px;}
  .cx-module span{font-size:13px;}
}

@media (max-width:360px){
  .cx-hero .cx-mot{font-size:40px;}
  .cx-module span{font-size:13px;}
}

/* Téléphone : iOS dessine une bande pleine en haut de l'écran (heure, batterie, encoche Face ID) de la couleur de fond de la page.
   Cette couleur est donc celle du HAUT de la photo, et la photo démarre par un fondu depuis cette même couleur : la bande n'a plus
   de bord visible, elle se prolonge dans l'image (et si l'application est installée avec la barre d'état translucide, la photo passe
   simplement derrière l'heure). */
@media (max-width:899px){
  /* Le fond de la PAGE ENTIÈRE (html) : du haut de la photo (barre du téléphone) vers le vert foncé du bas, puis vert foncé partout en dessous.
     La couleur de fond reste celle du haut de la photo (la barre du téléphone s'y fond) ; sous 640 px, une couche vert foncé couvre tout le reste :
     si l'écran dépasse la carte (zone sous la barre d'accueil), on voit le vert foncé de l'image, jamais une bande claire.
     La feuille du bas y est redessinée à l'identique : elle se prolonge jusqu'au bord de l'écran au lieu d'être coupée net. */
  html{background-color:#627460;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' preserveAspectRatio='none'%3E%3Cpath d='M8 260C-6 150 60 50 200 0 214 120 140 230 8 260z' fill='rgba(150,205,92,.16)'/%3E%3Cpath d='M16 250C64 170 120 90 194 14' fill='none' stroke='rgba(205,238,160,.30)' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"), linear-gradient(180deg, #627460 0, #4d5d4a 180px, #10261a 640px), linear-gradient(#10261a, #10261a);
    background-repeat:no-repeat; background-size:120px 190px, 100% 640px, 100% 100%; background-position:right -14px bottom -70px, 0 0, 0 639px; min-height:100%;}
  /* La zone de l'heure (iPhone) prend la couleur de FOND de la page (body), pas theme-color : c'est donc le haut de la photo. */
  .page-connexion{background-color:#627460; background-image:linear-gradient(180deg, #627460 0, #4d5d4a 180px, #10261a 640px, #10261a 100%); background-repeat:no-repeat;}
  .cx-scene::after{content:''; position:absolute; left:0; right:0; top:0; height:170px;
    background:linear-gradient(180deg, #627460 0, rgba(98,116,96,.92) 34px, rgba(98,116,96,0) 100%);}
}
/* Installation « translucide » dont la hauteur annoncée est trop courte : login.js pose cette classe et la hauteur réelle de l'écran. */
.ecran-court .cx{min-height:var(--haut-ecran, 100dvh);}

/* Application installée : pas de rangée de modules sous la carte (elle sert à présenter CultiOS avant l'installation). */
.en-app .cx-modules{display:none;}

/* Téléphone de hauteur courante : le bloc de connexion est resserré (espacements, pas la taille de lecture) pour que tout tienne dans
   l'écran sans défiler, message d'erreur compris. Le logo, le nom et l'accroche ne bougent pas. */
@media (max-width:899px) and (max-height:900px){
  .cx{padding-bottom:24px;}
  .cx-carte{margin-top:24px; padding:24px 22px 20px;}
  .cx-sous-titre{margin-top:6px !important;}
  .cx-form{margin-top:22px;}
  .cx-label{margin-bottom:7px;}
  .cx-champ{height:46px; margin-bottom:20px;}
  .cx-oubli{margin:-12px 0 18px;}
  .cx-bouton{height:48px;}
  .cx-securite{margin-top:16px; padding-top:14px;}
}

/* Liens vers les documents juridiques (CGU, confidentialité, mentions), sous la carte : discrets, toujours accessibles. */
.cx-legal{margin:12px 0 0;text-align:center;font-size:11.5px;line-height:1.5;color:#6b7a6f;}
.cx-legal a{color:#5b6b5f;text-decoration:underline;text-underline-offset:2px;}
.cx-legal a:hover{color:#22412c;}

/* Liens sous un bouton (retour à la connexion, renvoi du code) : à leur place normale, pas remontés sous le champ du dessus. */
.cx-oubli.cx-sous-bouton, #loginOubli .cx-oubli, #loginReinit .cx-oubli{margin:14px 0 4px; justify-content:center;}
#login2fa .cx-oubli{gap:18px; flex-wrap:wrap;}
