/* L'Observatoire, porte.css : la porte (connexion, activation, erreur), construite comme celle du Coffre-Fort.
   Deux volets posés sur le fond gris : à gauche la vitrine, panneau arrondi vert foncé avec la mosaïque de tuiles
   Cerfrance et la promesse ; à droite la chemise à onglet, cadre jaune autour d'une feuille blanche, qui porte le
   formulaire. Le logo Cerfrance coiffe le volet droit : c'est un service interne du réseau. */
body.porte { background: var(--fond); }
.porte-p { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 16px; min-height: 100vh; padding: 16px; max-width: 1760px; margin: 0 auto; }

/* ================================================================ la vitrine */
.porte-v { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 600px; padding: 36px 42px 34px; border-radius: 22px; color: #fff;
           background: linear-gradient(168deg, #0B655C 0%, var(--vert-fort) 46%, var(--vert-nuit) 100%); }
.porte-v .logo-l { position: relative; z-index: 2; align-self: flex-start; } .porte-v .logo { height: 36px; color: #fff; }
/* la mosaïque : douze tuiles, la jaune de la marque allumée, une verte et une orange qui respirent */
.porte-v .mosaique { position: absolute; right: 44px; top: 46%; width: 37%; max-width: 330px; height: auto; transform: translateY(-52%); z-index: 1; pointer-events: none; }
.porte-v .mosaique .t { --faible: rgba(255, 255, 255, .09); fill: var(--faible); }
.porte-v .mosaique .j { fill: var(--jaune); } .porte-v .mosaique .v { --c: var(--vert); } .porte-v .mosaique .o { --c: var(--orange); }
.porte-v .mosaique .p2, .porte-v .mosaique .p3 { fill: var(--c); animation: tuile-respire 14s ease-in-out infinite; } .porte-v .mosaique .p3 { animation-delay: -7s; }
@keyframes tuile-respire { 0%, 35% { fill: var(--c); } 50%, 85% { fill: var(--faible); } 100% { fill: var(--c); } }
.porte-v .promesse { position: relative; z-index: 2; margin-top: auto; max-width: 560px; }
.porte-v h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; color: #fff; max-width: 9em; }
.porte-v h1 em { font-style: normal; color: var(--jaune); }
.porte-v p { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 500px; }
.porte-v .gages { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; color: rgba(255, 255, 255, .88); }
.porte-v .gages li { display: inline-flex; align-items: center; gap: 8px; } .porte-v .gages .lucide { width: 15px; height: 15px; color: var(--jaune); }

/* ================================================================ le volet du formulaire */
.porte-f { display: flex; flex-direction: column; align-items: center; padding: 20px 40px 18px; min-width: 0; }
.porte-f .reseau { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 12.5px; color: var(--encre-3); }
.porte-f .reseau svg { height: 42px; width: auto; }
.chemise-z { width: min(440px, 100%); margin: auto 0; padding: 24px 0 0; }
/* l'onglet, puis la chemise jaune et la feuille qu'elle tient */
.onglet { display: inline-block; position: relative; padding: 12px 22px 9px; border-radius: 13px 13px 0 0; background: var(--jaune); color: var(--vert-fort); font-size: 13px; font-weight: 700; line-height: 1; }
.onglet::after { content: ''; position: absolute; right: -14px; bottom: 0; width: 14px; height: 14px; background: radial-gradient(circle at 100% 0, transparent 13.5px, var(--jaune) 14px); }
.chemise { position: relative; isolation: isolate; padding: 12px; border-radius: 0 18px 18px 18px; background: linear-gradient(180deg, var(--jaune), #F6AD2A); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 24px 44px -18px rgba(180, 123, 10, .38); }
.papier { position: relative; padding: 28px 30px 28px; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 3px rgba(17, 17, 17, .12); }
.papier::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: var(--surface); transform: rotate(-.8deg) translateY(-6px); box-shadow: 0 1px 3px rgba(17, 17, 17, .11); }
.papier h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; color: var(--vert-fort); margin-bottom: 6px; }
.papier .chapo { font-size: 14px; line-height: 1.55; color: var(--encre-2); margin-bottom: 18px; } .papier .chapo b { overflow-wrap: anywhere; }
.papier form { display: grid; gap: 14px; }
.papier .champ input { height: 44px; }
.papier .btn.grand { width: 100%; margin-top: 8px; }
.papier .alerte-p { padding: 10px 12px; border-radius: var(--r); background: var(--ko-pale); border: 1px solid var(--ko-filet); color: var(--ko); font-size: 13.5px; font-weight: 500; margin-bottom: 14px; }
.papier .alerte-p.ok { background: var(--ok-pale); border-color: var(--ok-filet); color: var(--ok); }
.papier .vigilance { margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--miel); font-size: 13px; line-height: 1.5; color: var(--encre-2); } .papier .vigilance b { color: var(--encre); }
.porte-f .liens { margin-top: 24px; max-width: 440px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--encre-3); }
.porte-f .opere { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; color: var(--encre-3); } .porte-f .opere img { height: 14px; width: auto; opacity: .8; }

/* ================================================================ tailles */
@media (max-width: 1180px) { .porte-v .mosaique { display: none; } .porte-v h1 { font-size: 40px; } .porte-f { padding: 16px 24px; } }
/* écran bas (768 et moins) : tout tient sans défiler, message d'erreur compris */
@media (max-height: 820px) { .porte-v { min-height: 0; padding: 26px 34px 24px; } .porte-v .logo { height: 32px; } .porte-v h1 { font-size: 36px; } .porte-v p { margin-top: 10px; font-size: 14.5px; } .porte-v .gages { margin-top: 14px; padding-top: 12px; }
  .porte-f { padding-top: 14px; padding-bottom: 12px; } .porte-f .reseau svg { height: 32px; } .chemise-z { padding-top: 12px; } .papier { padding: 20px 24px 20px; } .papier h2 { font-size: 23px; } .papier .chapo { margin-bottom: 14px; } .papier form { gap: 12px; } .papier .champ input { height: 42px; }
  .papier .alerte-p { margin-bottom: 12px; padding: 8px 12px; } .papier .vigilance { margin-top: 12px; padding: 10px 12px; } .porte-f .liens { margin-top: 12px; } .porte-f .opere { margin-top: 10px; } }
@media (max-height: 740px) { .porte-f .reseau span { display: none; } .porte-f .liens { font-size: 12px; margin-top: 10px; } .papier .vigilance { font-size: 12.5px; } .chemise-z { padding-top: 10px; } }
@media (max-width: 900px) {
  .porte-p { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 12px; min-height: 0; }
  .porte-v { min-height: 0; padding: 22px 24px 22px; border-radius: 18px; } .porte-v .logo { height: 28px; }
  .porte-v .promesse { margin-top: 22px; } .porte-v h1 { font-size: 30px; } .porte-v p { font-size: 14px; } .porte-v .gages { display: none; }
  .porte-f { padding: 8px 4px 12px; } .chemise-z { margin: 0; padding-top: 18px; } .papier { padding: 22px 20px; } .papier h2 { font-size: 23px; }
}
