/* Portail Ligne1 — porte d'entrée (connexion et réinitialisation).
   Alignée sur la vitrine (2026-11-21, ordre de Jonathan) : même logo à
   barres, même bleu de marque (#1d6ff2), et le thème suit celui choisi
   sur le site (témoin ligne1-theme) — claire par défaut, sombre si le
   visiteur a basculé le site en sombre (.porte sans .claire). */

/* Polices auto-hébergées — source : Google Fonts (Fraunces v38, Inter v20),
   fichiers variables WOFF2, sous-ensembles latin et latin-ext.
   L'italique Fraunces est un sous-ensemble resserré dérivé du même fichier
   source (fraunces-italic-signal.woff2, ~15,9 Ko) : il ne sert plus la
   porte, mais reste chargé pour le « 1 » italique du mot-symbole dans la
   console (style.css) — les deux feuilles sont toujours chargées ensemble.
   Note (2026-11-21) : Geist est servi à la RACINE (/geist-sans.woff2) —
   le serveur statique de la plateforme refuse les sous-dossiers, donc
   /fonts/geist-sans.woff2 répondait 404 et l'en-tête de la porte tombait
   sur la police système (pastille plus étroite que sur la vitrine).
   Bordure basse de .porte-haut rendue transparente et burger ramené à
   34 px, comme partout sur le site (ordre de Jonathan, 2026-11-21). */
@font-face{
  font-family:"Fraunces"; font-style:normal; font-weight:300 700; font-display:optional;
  src:url("/fraunces-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Fraunces"; font-style:normal; font-weight:300 700; font-display:optional;
  src:url("/fraunces-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face{
  font-family:"Fraunces"; font-style:italic; font-weight:300 700; font-display:optional;
  src:url("/fraunces-italic-signal.woff2") format("woff2");
  unicode-range:U+0020, U+002E, U+0031, U+0041, U+0045, U+0049, U+0053, U+0056, U+0061, U+0064, U+0065, U+0068, U+0069, U+006C, U+006E, U+006F, U+0070, U+0072, U+0073, U+0074, U+0075, U+0076, U+007A, U+00E9;
}
@font-face{
  font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("/inter-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:"Geist"; font-style:normal; font-weight:100 900; font-display:optional;
  src:url("/geist-sans.woff2") format("woff2");
}
@font-face{
  font-family:"Inter"; font-style:normal; font-weight:400 700; font-display:swap;
  src:url("/inter-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.porte{
  --p-bg:#08080a; --p-carte:#0e0e11;
  --p-texte:#f4f4f6; --p-doux:#8b8b93;
  --p-accent:#1d6ff2; --p-sur-accent:#ffffff;
  --p-bordure:#232329; --p-champ:#121216; --p-bordure-champ:#3f3f47;
  --p-danger:#ff8f93; --p-ok:#2fd08c;
  --p-font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  position:fixed; inset:0; overflow-y:auto; overflow-x:clip; overscroll-behavior:contain;
  background:var(--p-bg); color:var(--p-texte); font-family:var(--p-font);
  display:flex; flex-direction:column;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
.porte.claire{
  --p-bg:#f6f8fb; --p-carte:#ffffff;
  --p-texte:#0b1526; --p-doux:#5b6b82;
  --p-bordure:#dfe7f0; --p-champ:#ffffff; --p-bordure-champ:#c9d6e6;
  --p-danger:#c2263f; --p-ok:#0d7a4f;
}
.porte ::selection{background:rgba(29,111,242,.30)}

/* ---------- Barre haute : le même en-tête que la vitrine ---------- */
/* Géométrie de la barre d'accueil (beta.ligne1.ca) : 64 px, largeur
   max 1152 px centrée, marges 32 px (10 px sous 768 px, langue.css). */
.porte-haut{position:relative; border-bottom:1px solid transparent;}
.porte-barre{height:64px; max-width:1152px; margin:0 auto; padding:0 32px;
  display:flex; align-items:center; gap:24px;
  font-family:"Geist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;}
.porte-marque{display:flex; align-items:center; text-decoration:none; color:var(--p-texte);}
.porte-nav{display:none;} /* Menu sous bouton à toutes les largeurs (ordre de Jonathan, 2026-11-21) */
.porte-actions{display:flex; align-items:center; gap:10px; margin-left:auto;}
/* Pastille compte : mêmes règles que la vitrine (langue.css servi) */
.liens-compte {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  background: color-mix(in srgb, #2e63e7 6%, transparent);
  border: 1px solid color-mix(in srgb, #2e63e7 22%, transparent);
  border-radius: 999px;
}
.liens-compte a { text-decoration: none; font-size: 14px; line-height: 1.5; font-weight: 600; white-space: nowrap; border-radius: 999px; }
.liens-compte a.compte-inscrire {
  background: linear-gradient(100deg, #2e63e7, #6a5cff);
  color: #fff; padding: 7px 14px;
}
.liens-compte a.compte-connexion {
  background: color-mix(in srgb, #2e63e7 10%, transparent);
  color: #2e63e7; padding: 7px 14px;
}
.porte:not(.claire) .liens-compte a.compte-connexion { color: #8fb0ff; }
@media (max-width: 480px) {
  .liens-compte { margin-right: 0; }
  .liens-compte a { font-size: 13px; }
  .liens-compte a.compte-inscrire, .liens-compte a.compte-connexion { padding: 6px 11px; }
}
/* Bouton « Soumission » de la barre retiré (ordre de Jonathan, 2026-11-21). */
.porte-btn-menu{display:grid; place-items:center; width:34px; height:34px; border-radius:999px;
  border:1px solid var(--p-bordure); background:var(--p-carte); color:var(--p-texte); cursor:pointer; padding:0;}
.porte-btn-menu svg{width:16px; height:16px;}
/* Bouton menu visible à toutes les largeurs (ordre de Jonathan, 2026-11-21) */
/* Rangée compactée sous 768 px : section exacte de la vitrine (langue.css) */
@media (max-width: 767px) {
  .porte-barre { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .porte-actions { gap: 4px; }
  .liens-compte { padding: 2px; }
  .liens-compte a { font-size: 12px; }
  .liens-compte a.compte-inscrire, .liens-compte a.compte-connexion { padding: 5px 9px; }
}
/* Panneau de menu : même habillage que la vitrine (menu.css servi) */
.porte-menu{position:relative;
  font-family:"Geist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:radial-gradient(110% 80% at 0% -10%, rgba(46, 99, 231, 0.07), transparent 55%), var(--p-bg);
  box-shadow:0 24px 44px -18px rgba(24, 10, 60, 0.35);
  padding:0.6rem 1.25rem 0.9rem;}
.porte-menu::before{content:""; position:absolute; inset:0 0 auto 0; height:2px;
  background:linear-gradient(100deg, #2e63e7, #6a5cff);}
.porte-menu a{display:flex; align-items:center; justify-content:space-between;
  padding:1.05rem 0.25rem; font-size:1.125rem; font-weight:560; letter-spacing:-0.01em;
  color:var(--p-texte); text-decoration:none;
  border-bottom:1px solid color-mix(in srgb, currentColor 9%, transparent);}
.porte-menu a::after{content:"›"; font-size:1.5rem; font-weight:400; line-height:1; color:#6a5cff;}
/* Le bouton « Soumission » du panneau a été retiré (ordre de Jonathan,
   2026-11-21) : plus aucun style spécial pour le dernier lien. */
/* Sur bureau, le panneau ne descend PAS pleine largeur (ordre de
   Jonathan, 2026-11-21) : carte alignée à droite sous le bouton, 340 px.
   Pleine largeur seulement sur mobile. */
@media(min-width:768px){
  .porte-menu{position:absolute; top:calc(100% + 8px);
    right:max(1.25rem, calc((100vw - 1152px) / 2 + 1.25rem));
    width:340px; border:1px solid var(--p-bordure); border-radius:16px;
    overflow:hidden; z-index:50;}
}

/* ---------- Carte de connexion ---------- */
.porte-centre{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:16px 16px 32px; width:100%;
  /* Lueur de section derrière la carte, comme les blocs de la vitrine
     (halos.css) : lavis radial double en pourcentages — le fondu se
     termine dans le cadre, jamais de coins carrés (2026-11-21). */
  background:
    radial-gradient(130% 120% at 20% 12%, rgba(106, 92, 255, 0.12), transparent 70%),
    radial-gradient(140% 120% at 80% 78%, rgba(229, 72, 140, 0.10), transparent 70%);}
.porte-carte{width:100%; max-width:400px; background:var(--p-carte);
  border:1px solid var(--p-bordure); border-radius:16px; padding:28px 28px 22px;
  box-shadow:0 24px 48px -24px rgba(28, 25, 60, 0.22);}
.porte-eyebrow{font-size:.72rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--p-doux); margin:0 0 10px;}
.porte-titre{font-size:1.6rem; font-weight:650; letter-spacing:-.02em; line-height:1.15; margin:0 0 6px;}
.porte-sous{margin:0; color:var(--p-doux); font-size:.95rem; line-height:1.55;}
.porte-carte label{display:block; font-size:.72rem; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--p-doux); margin:18px 0 8px;}
.porte-carte input[type="email"],
.porte-carte input[type="password"]{
  width:100%; font:inherit; font-size:1rem; color:var(--p-texte); min-height:48px;
  background:var(--p-champ); border:1px solid var(--p-bordure-champ); border-radius:10px;
  padding:12px 14px; transition:border-color .18s ease, box-shadow .18s ease;}
.porte-carte input[type="email"]:focus,
.porte-carte input[type="password"]:focus{
  border-color:var(--p-accent); outline:none;
  box-shadow:0 0 0 3px rgba(29,111,242,.25);}
.porte-carte .checkline{display:flex; align-items:center; gap:12px; margin:18px 0 22px;}
.porte-carte .checkline input[type="checkbox"]{
  width:24px; height:24px; margin:0; flex:0 0 auto; accent-color:var(--p-accent); cursor:pointer;}
.porte-carte .checkline label{margin:0; font-size:.95rem; font-weight:500; letter-spacing:0;
  text-transform:none; color:var(--p-texte); cursor:pointer;}
.porte-btn{
  font:inherit; font-weight:650; font-size:1rem; color:var(--p-sur-accent);
  background:var(--p-accent); border:1px solid transparent;
  border-radius:10px; padding:12px 18px; min-height:48px; cursor:pointer; width:100%;
  transition:filter .16s ease;}
.porte-btn:hover{filter:brightness(1.07);}
.porte-btn--douce{background:transparent; color:var(--p-texte); border:1px solid var(--p-bordure-champ);}
.porte-btn--douce:hover{filter:none; background:rgba(244,244,246,.05);}
.porte-oublie{margin:16px 0 0; text-align:center;}
.porte-oublie a{color:var(--p-doux); font-size:.93rem; text-decoration:none;
  border-bottom:1px solid var(--p-bordure); padding-bottom:1px; transition:color .16s ease, border-color .16s ease;}
.porte-oublie a:hover{color:var(--p-accent); border-color:var(--p-accent);}
.porte-note{margin:22px 0 0; padding-top:16px; border-top:1px solid var(--p-bordure);
  font-size:.85rem; line-height:1.55; color:var(--p-doux); text-align:center;}
.porte-note a{color:var(--p-accent); font-weight:600;}
.porte.claire .porte-carte{box-shadow:0 24px 48px -24px rgba(28, 25, 60, 0.22);}
.porte-oublie-form{margin-top:8px; text-align:left;}
.porte-carte .err{background:rgba(229,72,77,.12); border:1px solid rgba(255,143,147,.45);
  color:var(--p-texte); border-radius:10px; padding:12px 14px; margin:16px 0 0; font-size:.92rem; line-height:1.5;}
.porte-carte .okmsg{background:rgba(47,208,140,.10); border:1px solid rgba(47,208,140,.45);
  color:var(--p-texte); border-radius:10px; padding:12px 14px; margin:16px 0 0; font-size:.92rem; line-height:1.5;}
.porte-pied{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  width:100%; max-width:400px; margin:14px 2px 0; font-size:.8rem; color:var(--p-doux);}
.porte a:focus-visible, .porte button:focus-visible, .porte input:focus-visible{
  outline:2px solid var(--p-accent); outline-offset:2px;}

/* ---------- Mobile ---------- */
@media(max-width:640px){
  .porte-carte{padding:24px 20px 20px;}
  .porte-pied{justify-content:center; text-align:center;}
}

/* ---------- Pied du menu de la porte : FR | EN + slider de thème ----------
   Même rangée que le pied du menu vitrine (menu.css servi) : segment
   texte FR | EN (la langue active en pleine encre) et slider simple
   sans icônes, bille dégradée. Ajout 2026-11-21. */
.porte-pied-menu{margin-top:0.4rem;
  border-top:1px solid color-mix(in srgb, currentColor 10%, transparent);
  padding:1rem 0.25rem 0.35rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;}
.porte-langue-seg{display:inline-flex; align-items:center; gap:9px;}
.porte-menu .porte-langue-seg a{border:0; background:none; cursor:pointer;
  font-size:14px; font-weight:700; letter-spacing:0.06em;
  color:var(--p-texte); opacity:0.5; padding:2px 1px; display:inline;}
.porte-menu .porte-langue-seg a::after{content:none;}
.porte-menu .porte-langue-seg a.actif{opacity:1;}
.porte-langue-seg .porte-sep{color:var(--p-texte); opacity:0.35;}
.porte-bascule{display:inline-flex; align-items:center; background:none;
  border:none; cursor:pointer; padding:4px; flex:none; color:var(--p-texte);}
.porte-bascule .pb-piste{width:40px; height:22px; border-radius:999px;
  background:color-mix(in srgb, currentColor 10%, transparent);
  border:1px solid color-mix(in srgb, currentColor 22%, transparent);
  position:relative; transition:background 0.25s; display:block;}
.porte-bascule .pb-bille{position:absolute; top:2px; left:2px; width:16px; height:16px;
  border-radius:50%;
  background:linear-gradient(120deg, #2e63e7 0%, #6a5cff 30%, #a24fd6 55%, #e5488c 82%, #ff7aa8 100%);
  transition:transform 0.25s; display:block;}
.porte-bascule[aria-checked="true"] .pb-bille{transform:translateX(18px);}
/* Liens légaux du pied de la porte (même traitement que .porte-oublie a) */
.porte-pied a{color:var(--p-doux); text-decoration:none;
  border-bottom:1px solid var(--p-bordure); padding-bottom:1px;
  transition:color .16s ease, border-color .16s ease;}
.porte-pied a:hover{color:var(--p-accent); border-color:var(--p-accent);}

/* ---------- En-tête teinté comme l'accueil (ordre de Jonathan, 2026-11-21) ----------
   La bande d'en-tête de l'accueil tient sa teinte du lavis du héros
   (halos.css) vu à travers son en-tête transparent — prouvé par
   ablation au harnais : sans le lavis de section#top, la bande
   redevient blanche pure. La porte pose donc le même lavis (recette
   atténuée du héros : 0,08 / 0,05) sur le fond de base de la vitrine
   (blanc en clair, #060516 en sombre), à l'échelle d'un écran
   (100vh) : la tranche du haut rend la teinte mesurée sur l'accueil.
   Zone d'en-tête seulement ; le lavis de .porte-centre est inchangé. */
.porte-haut {
  background-color: #060516;
  background-image:
    radial-gradient(130% 120% at 20% 12%, rgba(106, 92, 255, 0.08), transparent 70%),
    radial-gradient(140% 120% at 80% 78%, rgba(229, 72, 140, 0.05), transparent 70%);
  background-size: 100% 100vh, 100% 100vh;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0;
}
.porte.claire .porte-haut { background-color: #ffffff; }
