/* Page de connexion. Charte : jaune #F9C041 en aplat sur les elements d'interface, degrades dores seulement dans le decor. */
/* Une seule surface continue : le panneau de marque et la carte partagent le meme fond, sans coupure. */
.page-connexion { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); background: radial-gradient(ellipse 60% 55% at 12% 0%, rgba(249,192,65,.20), transparent 62%), radial-gradient(ellipse 50% 60% at 78% 55%, rgba(249,192,65,.13), transparent 65%), radial-gradient(ellipse 60% 50% at 100% 100%, rgba(201,179,126,.10), transparent 62%), #000; }
.page-connexion .main { display: contents; }

/* ---------- Panneau de marque ---------- */
.marque-panneau { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 56px; padding: 48px clamp(32px, 5vw, 76px) 56px; }
.marque-decor { position: absolute; inset: 0; pointer-events: none; }
.marque-hachures { position: absolute; inset: -40px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(249,192,65,.07) 14px 15px); -webkit-mask-image: radial-gradient(ellipse 85% 75% at 30% 35%, #000, transparent 75%); mask-image: radial-gradient(ellipse 85% 75% at 30% 35%, #000, transparent 75%); animation: cx-hachures 50s linear infinite; }
.marque-logo, .marque-corps { position: relative; z-index: 2; }
.scene-zone { position: relative; z-index: 1; flex: 1 1 340px; min-height: 300px; margin: 0 calc(-1 * clamp(32px, 5vw, 76px)) -52px; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.marque-logo { display: inline-block; width: fit-content; }
.marque-logo img { display: block; height: 35px; width: auto; }
.marque-sur-titre { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--yellow); }
.marque-titre { margin: 0 0 24px; max-width: 520px; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -1.4px; background: linear-gradient(180deg, #fff 35%, #D8D1C4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marque-texte { margin: 0; max-width: 440px; color: var(--text-muted); font-size: 16px; line-height: 26px; }

/* ---------- Carte de connexion ---------- */
.connexion-carte { position: relative; align-self: center; justify-self: center; width: min(448px, calc(100% - 48px)); margin: 40px 0; padding: 44px 40px 32px; background: linear-gradient(180deg, rgba(36,36,36,.86), rgba(22,22,22,.9)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(249,192,65,.2); border-radius: 20px; box-shadow: 0 44px 100px -34px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 130px -30px rgba(249,192,65,.28); animation: monter-carte .9s cubic-bezier(.2,.7,.2,1) both; }
.connexion-carte::before { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(249,192,65,.85), transparent); }
.carte-coin { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-top-right-radius: 20px; background: linear-gradient(135deg, transparent 50%, rgba(249,192,65,.55) 50%); }
.connexion-titre { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.6px; }
.connexion-sous-titre { margin: 0 0 26px; color: var(--text-muted); font-size: 14.5px; line-height: 22px; }
.champs { display: flex; flex-direction: column; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 8px; }
.champ > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--text-muted); }
.champ input { width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: #fff; border-radius: 12px; padding: 14px 16px; font: 500 15.5px Montserrat, sans-serif; transition: border-color .2s, background .2s, box-shadow .2s; }
.champ input:hover { border-color: rgba(255,255,255,.18); }
.champ input:focus { outline: 0; border-color: var(--yellow); background: rgba(249,192,65,.05); box-shadow: 0 0 0 4px rgba(249,192,65,.12); }
.champ-mdp { position: relative; display: block; }
.champ-mdp input { padding-right: 52px; }
.oeil { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; transition: color .2s, background .2s; }
.oeil svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.oeil:hover { color: #fff; background: rgba(255,255,255,.06); }
.oeil--actif { color: var(--yellow); }
.bouton--grand { width: 100%; margin-top: 6px; padding: 15px 24px; font-size: 15.5px; text-align: center; transition: transform .15s, filter .2s; }
.bouton--grand:hover { transform: translateY(-1px); filter: brightness(1.07); }
.bouton--grand:active { transform: translateY(0); }
.connexion-carte .erreur { margin: 0 0 18px; max-width: none; animation: secousse .5s ease; }
.connexion-carte .mention { margin: 24px 0 0; text-align: center; }

@keyframes monter-carte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes secousse { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* ---------- Telephone et petits ecrans : le panneau devient un bandeau compact ---------- */
@media (max-width: 920px) {
  .page-connexion { grid-template-columns: 1fr; }
  .marque-panneau { padding: 28px 24px 8px; gap: 20px; }
  .marque-sur-titre { margin-bottom: 10px; }
  .marque-titre { font-size: 26px; letter-spacing: -.8px; margin-bottom: 10px; }
  .marque-texte { margin-bottom: 0; font-size: 14.5px; line-height: 23px; }
  .scene { display: none; }
  .connexion-carte { margin: 28px 0 40px; padding: 32px 24px 26px; }
}

/* ---------- Mouvement reduit : scene fixe (voir connexion-scene.js) ---------- */
@media (prefers-reduced-motion: reduce) {
  .marque-hachures, .connexion-carte { animation: none !important; }
}

/* Pas de barre jaune en haut de cette page (reservee aux pages avec defilement) */
.page-connexion::before { display: none; }
