/* Gabarit public Horizon : mêmes tokens et commandes que le CRM. */
html.ds-apple body.acces{margin:0;background:var(--ds-surface);color:var(--ds-text);font-family:var(--ds-font-family);font-size:var(--ds-font-size-body);line-height:1.5;min-height:100dvh;display:flex;flex-direction:column;isolation:isolate}
.acces *,.acces *::before,.acces *::after{box-sizing:border-box}
.acces a{color:inherit;text-underline-offset:4px}
.acces [hidden]{display:none}
/* Texte réservé aux lecteurs d'écran : même utilitaire que le CRM, sans charger Bootstrap. */
.acces .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.acces-header{display:flex;justify-content:space-between;align-items:center;gap:var(--ds-space-4);padding:var(--ds-space-5) var(--ds-space-8);position:relative;z-index:1}
.acces-brand{display:flex;width:64px;height:64px;flex-shrink:0;align-items:center;justify-content:center}
.acces-brand img{display:block;width:64px;height:64px;object-fit:contain;filter:brightness(0)}
html.theme-dark .acces-brand img{filter:brightness(0) invert(1)}
.acces-header nav{display:flex;align-items:center;gap:var(--ds-space-5);font-size:var(--ds-font-size-sm)}
.acces-header nav>a{text-decoration:none}
.acces-theme{display:flex;gap:var(--ds-space-1);border:1px solid var(--ds-border);padding:var(--ds-space-1);border-radius:var(--ds-radius-pill)}
html.ds-apple .acces-theme .ds-button{border-radius:var(--ds-radius-pill);width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:var(--ds-font-size-body)}
html.ds-apple .acces-theme .ds-button[aria-pressed=true]{background:var(--ds-primary);color:var(--ds-primary-text)}
.acces-main{width:100%;max-width:1100px;margin:0 auto;flex:1;padding:var(--ds-space-8) var(--ds-space-5) 64px;text-align:center;position:relative;z-index:1}
.acces-eyebrow{display:table;margin:0 auto var(--ds-space-5);padding:var(--ds-space-2) var(--ds-space-4);font-size:var(--ds-font-size-caption);border:1px solid var(--ds-border);border-radius:var(--ds-radius-pill);background:var(--ds-surface)}
html.ds-apple body.acces #page-content .acces-title{font-size:clamp(32px,5vw,54px);font-weight:var(--ds-weight-regular);line-height:1.1;letter-spacing:-.01em;max-width:900px;margin:0 auto var(--ds-space-5);text-wrap:balance;color:var(--ds-text)}
.acces-title>span{display:block;font-size:inherit;letter-spacing:inherit;margin-bottom:var(--ds-space-3)}
.acces-services{font-size:var(--ds-font-size-secondary);color:var(--ds-text-2);margin:0 auto var(--ds-space-4)}
.acces-intro{font-size:var(--ds-font-size-body);color:var(--ds-text-2);max-width:640px;margin:0 auto var(--ds-space-8);text-wrap:pretty}
.acces-form-wrap{max-width:380px;text-align:left;margin:auto}
.acces-form{display:grid;gap:var(--ds-space-4)}
.acces form label{display:block;font-size:var(--ds-font-size-sm);font-weight:var(--ds-weight-medium);margin-bottom:var(--ds-space-2)}
html.ds-apple body.acces input:not([type=checkbox]):not([type=hidden]),html.ds-apple body.acces select,html.ds-apple body.acces textarea{width:100%;min-width:0;min-height:48px;padding:var(--ds-space-3);font:inherit;color:var(--ds-text);background:var(--ds-surface-2);border:1px solid var(--ds-border-strong);border-radius:var(--ds-radius-card);box-shadow:none}
.acces input[type=checkbox]{accent-color:var(--ds-primary)}
html.ds-apple body.acces .ds-button{border-radius:var(--ds-radius-pill)}
.acces-form>.ds-button,.acces-alternative>.ds-button,.rj-submit-row>.ds-button{width:100%;justify-content:center;min-height:48px}
.acces-options{display:flex;align-items:center;justify-content:space-between;gap:var(--ds-space-2);flex-wrap:wrap;font-size:var(--ds-font-size-caption)}
.acces .acces-options label{display:flex;gap:var(--ds-space-2);align-items:center;margin:0;font-size:inherit;font-weight:var(--ds-weight-regular)}
.acces-help{font-size:var(--ds-font-size-caption);color:var(--ds-text-2);text-align:center;margin:var(--ds-space-4) 0}
.acces-help:empty{display:none}
.acces-alternative{margin-top:var(--ds-space-5)}
.acces .alert{padding:var(--ds-space-4);border:1px solid var(--ds-border);border-radius:var(--ds-radius-card);background:var(--ds-surface-2);margin-bottom:var(--ds-space-5);font-size:var(--ds-font-size-secondary)}
.acces .alert-danger{color:var(--ds-text-danger)}
.acces h2{font-size:var(--ds-font-size-block-title);font-weight:var(--ds-weight-semibold)}
.acces-footer{margin:0 var(--ds-space-8);border-top:1px solid var(--ds-border);padding:var(--ds-space-8) 0 var(--ds-space-5);font-size:var(--ds-font-size-sm);color:var(--ds-text-2);position:relative;z-index:1}
/* Pied de page en colonnes (17/10/2026) : marque, accès, informations légales, puis une ligne de mentions. */
.acces-footer__grille{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:var(--ds-space-6)}
.acces-footer__grille p{margin:0;max-width:340px}
.acces-footer__titre{margin:0 0 var(--ds-space-3);color:var(--ds-text);font-weight:var(--ds-weight-medium)}
.acces-footer__colonne{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ds-space-2)}
.acces .acces-footer__colonne a{color:var(--ds-text-2);text-decoration:none}
.acces .acces-footer__colonne a:hover{color:var(--ds-text);text-decoration:underline}
.acces-footer__bas{display:flex;justify-content:space-between;flex-wrap:wrap;gap:var(--ds-space-3);margin-top:var(--ds-space-8);padding-top:var(--ds-space-4);border-top:1px solid var(--ds-border);font-size:var(--ds-font-size-caption)}
.acces-footer__env{display:inline-flex;align-items:center;gap:var(--ds-space-2)}
.acces-footer__env>span{width:6px;height:6px;border-radius:var(--ds-radius-pill);background:var(--ds-text)}
.acces-skip{position:absolute;left:var(--ds-space-4);top:-100px;background:var(--ds-surface);padding:var(--ds-space-3);z-index:10}
.acces-skip:focus{top:var(--ds-space-2)}
.acces-decor{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.acces-decor span{position:absolute;--x:12vw;--w:clamp(320px,48vw,600px);left:var(--x);top:30%;width:var(--w);aspect-ratio:1;background:var(--ds-text);mask:url('/img/instantimmo-monogramme.png') center/contain no-repeat;--acces-opacite:.045;opacity:var(--acces-opacite);transform:translate(-50%,-50%) perspective(800px) rotateY(-22deg) rotate(-16deg);animation:acces-passage 75s linear -12s infinite}
.acces-decor[data-position="1"] span{--x:85vw;top:25%;transform:translate(-50%,-50%) rotate(18deg)}
.acces-decor[data-position="2"] span{--x:12vw;top:68%}
.acces-decor[data-position="3"] span{--x:87vw;top:74%;transform:translate(-50%,-50%) perspective(800px) rotateY(24deg) rotate(15deg)}
.acces-decor[data-position="4"] span{--x:28vw;top:18%;transform:translate(-50%,-50%) rotate(12deg)}
.acces-decor[data-position="5"] span{--x:73vw;top:88%}
.acces-decor.is-paused span{animation-play-state:paused}
/* Rotation des marques (17/10/2026) : le monogramme « i », le logo complet puis le mot INSTANT
   traversent l'écran tour à tour, chacun 30 s sur un cycle de 75 s, avec leur propre taille
   et leur propre discrétion. Les deux marques supplémentaires sont dessinées par le décor lui-même
   (::before, ::after) : connexion, mise à jour et pages d'erreur en profitent sans gabarit modifié. */
.acces-decor::before,.acces-decor::after{content:"";position:absolute;left:var(--x);width:var(--w);background:var(--ds-text);opacity:0;transform:translate(-50%,-50%);animation:acces-passage 75s linear infinite}
.acces-decor::before{--x:74vw;--w:clamp(240px,30vw,420px);top:42%;aspect-ratio:1;--acces-opacite:.035;mask:url('/images/marques/instantimmo.png') center/contain no-repeat;transform:translate(-50%,-50%) rotate(-6deg);animation-delay:-62s}
.acces-decor::after{--x:36vw;--w:clamp(300px,56vw,860px);top:80%;aspect-ratio:1125/221;--acces-opacite:.06;mask:url('/img/logo-instant-wordmark-white.png') center/contain no-repeat;transform:translate(-50%,-50%) rotate(4deg);animation-delay:-37s}
.acces-decor:is([data-position="1"],[data-position="3"],[data-position="5"])::before{--x:26vw}
.acces-decor:is([data-position="1"],[data-position="3"],[data-position="5"])::after{--x:62vw;top:16%}
.acces-decor.is-paused::before,.acces-decor.is-paused::after{animation-play-state:paused}
/* Une seule vitesse, constante, de l'entrée à la sortie : aucun à-coup. Chaque traversée dure 30 s
   (40 % du cycle de 75 s), sur le même trajet pour toutes (même vitesse), de juste avant le bord
   gauche à juste après le bord droit : la marque suivante entre pendant que la précédente sort. */
@keyframes acces-passage{
0%{translate:calc(-1 * var(--x) - max(36vw, 200px)) 3vh;rotate:-3deg;opacity:var(--acces-opacite)}
40%{translate:calc(100vw - var(--x) + max(36vw, 200px)) -3vh;rotate:3deg;opacity:var(--acces-opacite)}
40.1%,100%{translate:calc(100vw - var(--x) + max(36vw, 200px)) -3vh;opacity:0}
}
.acces .rj-page{max-width:760px;margin:auto}
.acces .rj-card{background:none;border:0;padding:0}
.acces .rj-h1{font-size:clamp(32px,4vw,48px);font-weight:var(--ds-weight-regular);letter-spacing:-.045em;line-height:1.1}
.acces .rj-sub,.acces .rj-note{color:var(--ds-text-2);font-size:var(--ds-font-size-secondary)}
.acces .rj-reassurance{display:flex;justify-content:center;gap:var(--ds-space-4);flex-wrap:wrap;font-size:var(--ds-font-size-caption);margin:var(--ds-space-5) 0;color:var(--ds-text-2)}
.acces #rejoindre-form-container{max-width:600px;margin:var(--ds-space-8) auto 0;text-align:left}
.acces .rj-grid,.acces .rj-optional-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--ds-space-4)}
.acces .rj-field{min-width:0}
.acces .rj-full,.acces .rj-section-title{grid-column:1/-1}
.acces .rj-section-title{font-weight:var(--ds-weight-semibold);margin-bottom:var(--ds-space-2)}
.acces .rj-section-title small{display:block;font-weight:var(--ds-weight-regular);font-size:var(--ds-font-size-caption);color:var(--ds-text-2)}
.acces .rj-help{font-size:var(--ds-font-size-caption);color:var(--ds-text-2);display:block;margin-top:var(--ds-space-2)}
/* Formulaire de candidature (30/10/2026) : la règle générale des libellés du CRM (#page-content, 12 px, 600) écrasait
   celle des pages d'accès. Libellés 13 px / 500, saisie lisible avec une vraie interligne, aides à 1,45, titres de
   section 17 px / 600 comme le design system ; même rythme de 16 px entre les champs. */
html.ds-apple body.acces #page-content .rj-field label:not(.rj-defer-label){margin-bottom:var(--ds-space-2);font-size:var(--ds-font-size-secondary);font-weight:var(--ds-weight-medium);line-height:var(--ds-line-height-heading);letter-spacing:0}
html.ds-apple body.acces #page-content .rj-field .rj-input{line-height:var(--ds-line-height)}
html.ds-apple body.acces .rj-help{line-height:1.45}
html.ds-apple body.acces .rj-section-title{margin:var(--ds-space-2) 0 0;font-size:var(--ds-font-size-section);font-weight:var(--ds-weight-label);line-height:var(--ds-line-height-heading)}
html.ds-apple body.acces .rj-section-title small{margin-top:var(--ds-space-1);line-height:1.45}
.acces .rj-optional{border-top:1px solid var(--ds-border);padding-top:var(--ds-space-5);margin-top:var(--ds-space-2)}
.acces .rj-optional summary{cursor:pointer;padding:var(--ds-space-3) 0}
.acces .rj-optional summary small{display:block;font-size:var(--ds-font-size-caption);color:var(--ds-text-2)}
.acces .rj-optional-action{display:none}
.acces .rj-optional-grid{margin-top:var(--ds-space-4)}
.acces .rj-submit-row{margin-top:var(--ds-space-5)}
.acces .rj-steps{display:flex;align-items:center;justify-content:center;gap:var(--ds-space-3);margin-bottom:var(--ds-space-8);font-size:var(--ds-font-size-caption);color:var(--ds-text-2)}
.acces .rj-step{display:flex;align-items:center;gap:var(--ds-space-2)}
.acces .rj-step .n{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--ds-border);border-radius:var(--ds-radius-pill)}
.acces .rj-step.is-active{color:var(--ds-text)}
.acces .rj-step.is-active .n{background:var(--ds-primary);color:var(--ds-primary-text)}
.acces .rj-step-line{height:1px;width:24px;background:var(--ds-border)}
.acces :is(input,select,textarea,button,a,summary):focus-visible{outline:2px solid var(--ds-focus-color);outline-offset:3px}
@media(max-width:640px){.acces-header{padding:var(--ds-space-4);gap:var(--ds-space-2)}.acces-header nav{gap:var(--ds-space-2);flex-wrap:wrap;justify-content:flex-end}.acces-main{padding:var(--ds-space-5) var(--ds-space-5) 48px}.acces-footer{margin:0 var(--ds-space-5)}.acces-footer__grille{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.acces-footer__marque{grid-column:1/-1}.acces .rj-grid,.acces .rj-optional-grid{grid-template-columns:1fr}.acces .rj-steps{gap:var(--ds-space-2);flex-wrap:wrap}.acces .rj-step{flex-direction:column}.acces .rj-step-line{width:12px}.acces-decor span{--acces-opacite:.025}.acces-decor::before{--acces-opacite:.022}.acces-decor::after{--acces-opacite:.04}html.ds-apple body.acces input:not([type=checkbox]):not([type=hidden]),html.ds-apple body.acces select,html.ds-apple body.acces textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.acces-decor span{animation:none}.acces-decor::before,.acces-decor::after{display:none}}
html.acces-page{color-scheme:light}
html.acces-page.theme-dark{color-scheme:dark}
html.ds-apple.theme-dark body.acces{background:var(--ds-bg)}
.acces button{font-family:inherit;cursor:pointer}
.acces button:disabled{cursor:wait;opacity:.6}
html.ds-apple body.acces .ds-button{border-style:solid;text-decoration:none}
/* Le garde-fou global max-width:100% ne doit pas étirer les accès publics. */
html.ds-apple body.acces #page-content.acces-main{max-width:1100px;margin-inline:auto}
html.ds-apple body.acces #page-content .acces-form-wrap{max-width:380px;margin-inline:auto}
html.ds-apple body.acces #page-content .acces-intro{max-width:640px}
html.ds-apple body.acces #page-content .rj-page{max-width:760px;margin-inline:auto}
html.ds-apple body.acces #page-content input:not([type=checkbox]):not([type=hidden]),html.ds-apple body.acces #page-content select,html.ds-apple body.acces #page-content textarea{min-height:48px;background:var(--ds-surface-2);border-radius:var(--ds-radius-card)}
html.ds-apple body.acces #page-content .ds-password>input[data-password-reveal]{padding-inline-end:calc(var(--ds-control-height) + var(--ds-space-1))}

html.ds-apple .acces-theme .ds-button svg{width:20px;height:20px;flex-shrink:0}

html.ds-apple:not(.theme-dark) body.acces #page-content input:not([type=checkbox]):not([type=hidden]),html.ds-apple:not(.theme-dark) body.acces #page-content select,html.ds-apple:not(.theme-dark) body.acces #page-content textarea{background:var(--ds-surface);border-color:var(--ds-border)}
html.ds-apple.theme-dark body.acces #page-content input:not([type=checkbox]):not([type=hidden]),html.ds-apple.theme-dark body.acces #page-content select,html.ds-apple.theme-dark body.acces #page-content textarea{background:var(--ds-bg);border-color:var(--ds-border)}

html.ds-apple.acces-page:not(.theme-dark){--ds-surface:var(--ds-white)}

/* Mise à jour en cours (public/index.php) : barre de progression indéterminée. */
.acces-progression{height:2px;border-radius:var(--ds-radius-pill);background:var(--ds-border);overflow:hidden}
.acces-progression span{display:block;width:35%;height:100%;border-radius:inherit;background:var(--ds-text);animation:acces-progression 1.6s var(--ds-ease-standard) infinite}
@keyframes acces-progression{from{transform:translateX(-100%)}to{transform:translateX(290%)}}
@media(prefers-reduced-motion:reduce){.acces-progression span{animation:none;width:100%;opacity:.4}}
.acces-form>.acces-etat{margin:0;color:var(--ds-text)}
/* Téléphone (17/10/2026) : en-tête compact et marges resserrées pour que le logo et tout le formulaire
   tiennent dans l'écran, sans défilement ; le navigateur n'a plus à faire glisser la page vers le champ. */
@media(max-width:640px){.acces-header{padding:var(--ds-space-3) var(--ds-space-4)}.acces-brand,.acces-brand img{width:48px;height:48px}html.ds-apple .acces-theme .ds-button{width:40px;min-width:40px;height:40px;min-height:40px}.acces-main{padding-top:var(--ds-space-2)}.acces-eyebrow{margin-bottom:var(--ds-space-4)}html.ds-apple body.acces #page-content .acces-title{font-size:28px;margin-bottom:var(--ds-space-3)}.acces-title>span{margin-bottom:var(--ds-space-1)}.acces-intro{margin-bottom:var(--ds-space-5)}}
/* Pages de connexion interactives (31/10/2026) : choix de l'espace, annonce, titre souligné, métiers qui défilent. */
html.ds-apple body.acces #page-content .acces-espaces{display:grid;width:100%;margin:0 0 var(--ds-space-4)}
.acces-espace-titre{margin:0 0 var(--ds-space-3);text-align:center;font-size:var(--ds-font-size-caption);color:var(--ds-text-2)}
a.acces-annonce{display:table;text-decoration:none;transition:border-color var(--ds-motion-fast) var(--ds-ease-standard),box-shadow var(--ds-motion-fast) var(--ds-ease-standard)}
a.acces-annonce:hover{border-color:var(--ds-border-strong);box-shadow:var(--ds-shadow-xs)}
.acces-annonce b{margin-right:var(--ds-space-2);padding:2px var(--ds-space-2);border-radius:var(--ds-radius-pill);background:var(--ds-status-warning-soft);color:var(--ds-text-warning);font-weight:600}
.acces-souligne{font-style:normal;background-image:linear-gradient(currentColor,currentColor);background-repeat:no-repeat;background-position:0 92%;background-size:100% 2px;animation:acces-souligne 1s var(--ds-ease-enter) .3s both}
@keyframes acces-souligne{from{background-size:0 2px}to{background-size:100% 2px}}
.acces-rotation{display:inline-block;color:var(--ds-text);font-weight:600;transition:opacity var(--ds-motion-base) var(--ds-ease-standard),transform var(--ds-motion-base) var(--ds-ease-standard)}
.acces-rotation.is-sortie{opacity:0;transform:translateY(-6px)}
.acces-majuscules{margin:var(--ds-space-1) 0 0;font-size:var(--ds-font-size-caption);color:var(--ds-text-warning)}
.acces-form .ds-button.is-loading{position:relative;color:transparent;pointer-events:none}
.acces-form .ds-button.is-loading::after{content:"";position:absolute;top:50%;left:50%;width:18px;height:18px;margin:-9px 0 0 -9px;border:2px solid var(--ds-primary-text);border-right-color:transparent;border-radius:var(--ds-radius-pill);animation:acces-tour .7s linear infinite}
@keyframes acces-tour{to{transform:rotate(360deg)}}
#page-content.is-bascule{opacity:.4;transition:opacity var(--ds-motion-fast) var(--ds-ease-standard)}
.acces-form input:user-invalid{border-color:var(--ds-status-danger)}
a.acces-annonce{white-space:nowrap}
@media(max-width:420px){.acces-annonce__detail{display:none}}
@media(prefers-reduced-motion:reduce){.acces-souligne{animation:none}.acces-rotation{transition:none}.acces-form .ds-button.is-loading::after{animation:none}}
