/* Kourou — connexion et création d'un espace (22/11/2026), sur le modèle de comete.news/ (accueil.css fournit l'orbite, le
   logo et le titre). Connexion dans une carte étroite ; inscription dans une grande carte aérée, en deux blocs numérotés.
   Champs : étiquettes en capitales mono violettes, fond #FAFAFD, filet #DCDFEC, coins 12 px (classes etiquette-k, champ-k). */

.connexion-k main.ac-page { box-sizing: border-box; max-width: 980px; margin: 0 auto; padding: clamp(40px, 8vh, 88px) 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.ac-page .cn-haut { margin-bottom: 4px; }
.ac-page .cn-logo { line-height: 0; text-decoration: none; }
/* Même typographie que comete.news/ (Julien, 22/11 : « pas le même style (taille typo surtout) ») : titre, sous-titre et
   textes en Inter aux tailles d'accueil.css, au lieu de l'Open Sans de Kourou */
.connexion-k main.ac-page, .ac-page .champ-k { font-family: Inter, system-ui, sans-serif; }
.ac-page .cn-sous { max-width: 620px; }

/* Onglets en pastilles */
.ac-onglets { display: inline-flex; padding: 5px; border-radius: 14px; background: #E9EBF5; gap: 4px; }
.ac-onglets a { padding: 10px 18px; border-radius: 10px; font: 600 15px Archivo, system-ui, sans-serif; color: #3A3F5C; text-decoration: none; }
.ac-onglets a:hover { color: #3715D4; }
.ac-onglets a[aria-current="page"] { background: #FFFFFF; color: #3715D4; box-shadow: 0 1px 3px rgba(18, 19, 43, .14); }

.ac-erreur { width: 100%; max-width: 760px; box-sizing: border-box; margin: 0; text-align: left; }

/* Cartes */
.ac-carte { box-sizing: border-box; width: 100%; text-align: left; background: #FFFFFF; border-radius: 20px; box-shadow: 0 1px 2px rgba(18, 19, 43, .06), 0 16px 40px rgba(18, 19, 43, .08); display: flex; flex-direction: column; gap: 20px; }
.ac-etroite { max-width: 480px; padding: 32px 36px 34px; }
/* La lune de comete.news/ émerge aussi derrière la carte (Julien, 22/11 : « fais la même chose sous le bloc ») : décor en CSS,
   z-index négatif pour passer sous la carte ; plus grosse qu'à l'accueil (Julien : « et plus grosse ») ; rotation
   cn-lune-tourne d'accueil.css. Masquée sur téléphone. */
.ac-page .ac-carte { position: relative; }
.ac-page .ac-carte::before { content: ""; position: absolute; z-index: -1; width: 250px; height: 250px; right: -36px; top: -118px; pointer-events: none;
  background: url(lune.png) center / contain no-repeat; filter: drop-shadow(0 0 30px rgba(18, 19, 43, .16));
  animation: ac-lune-monte 5s cubic-bezier(.22, .7, .25, 1) .3s both, cn-lune-tourne 300s linear infinite; }
/* À Kourou, elle part de moins bas que sur comete.news/ (Julien, 22/11) */
@keyframes ac-lune-monte { from { translate: 0 80px; scale: .7; opacity: 0; } 25% { opacity: 1; } to { translate: 0 0; scale: 1; opacity: 1; } }
/* Réglée par carte : elle sort de derrière le coin haut-droit (comme sur comete.news/), sans toucher les onglets */
.ac-page .ac-etroite::before { width: 300px; height: 300px; right: -153px; top: -34px; }
.ac-page .ac-large::before { width: 320px; height: 320px; top: -97px; right: -83px; }
@media (prefers-reduced-motion: reduce) { .ac-page .ac-carte::before { animation: none; } }
@media (max-width: 700px) { .ac-page .ac-carte::before { display: none; } }
.ac-large { max-width: 820px; padding: 34px clamp(22px, 5vw, 48px) 40px; gap: 26px; }
.ac-qui { margin: 0; font: 500 12px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #555A7A; }
.ac-champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-champ .champ-k { height: 52px; width: 100%; box-sizing: border-box; font-size: 16px; }
.ac-precision { font-weight: 400; color: #555A7A; letter-spacing: .06em; }
.ac-aide { font-size: 13.5px; line-height: 1.5; color: #555A7A; }
.ac-note { margin: 0; font-size: 14px; line-height: 1.55; color: #555A7A; }
.ac-tous { margin-bottom: -6px; }
.ac-relance { margin: 0; font-size: 15px; color: #3A3F5C; }
.ac-relance a { font-weight: 600; }

/* Blocs numérotés de l'inscription */
.ac-bloc { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ac-sep { width: 100%; margin: 2px 0; border: 0; border-top: 1px solid #E3E6F3; }
.ac-bloc legend { padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; font: 800 21px/1.2 Archivo, system-ui, sans-serif; color: #12132B; }
.ac-n { width: 32px; height: 32px; border-radius: 50%; background: #EEEBFD; color: #3715D4; display: grid; place-items: center; font: 700 15px Archivo, system-ui, sans-serif; flex-shrink: 0; }
.ac-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }

/* Adresse de l'espace */
.ac-adresse { height: 52px; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; border: 1.5px solid #DCDFEC; border-radius: 12px; background: #FAFAFD; }
.ac-adresse:focus-within { border-color: #3715D4; box-shadow: 0 0 0 4px rgba(55, 21, 212, .14); }
.ac-adresse span { height: 100%; display: flex; align-items: center; padding: 0 2px 0 16px; background: #F1F2F8; font: 500 15px 'IBM Plex Mono', ui-monospace, monospace; color: #555A7A; }
.ac-adresse input { flex: 1; min-width: 0; height: 100%; box-sizing: border-box; border: 0; padding: 0 14px 0 4px; background: transparent; color: #3715D4; font: 500 15px 'IBM Plex Mono', ui-monospace, monospace; }
.ac-adresse input:focus { outline: none; }

/* Fin du formulaire */
.ac-fin { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; border-top: 1px solid #E3E6F3; padding-top: 24px; }
.ac-conditions { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #3A3F5C; cursor: pointer; }
.ac-conditions input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: #3715D4; }
.ac-bouton { height: 56px; border: 0; border-radius: 14px; background: #3715D4; color: #FFFFFF; font: 700 17px Archivo, system-ui, sans-serif; cursor: pointer; transition: background .15s; }
.ac-bouton:hover { background: #24108F; }

/* Pied */
.ac-pied { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: #555A7A; }
.ac-pied p { margin: 0; }
.ac-pied nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 6px; font-size: 13px; }
.ac-pied nav a { color: #555A7A; }

@media (max-width: 640px) {
  .ac-grille { grid-template-columns: minmax(0, 1fr); }
  .ac-etroite { padding: 26px 22px 28px; }
  .ac-onglets { display: flex; width: 100%; box-sizing: border-box; }
  .ac-onglets a { flex: 1; text-align: center; padding: 10px 8px; font-size: 14px; }
}
