:root {
  --color-1: #444444;
  --color-2: #0880e8;
  --color-3: #2b99f8;
  --color-4: #fc0303;
  --color-5: rgba(255, 255, 255, 0.8);
  --color-6: #bfe0fd;
  --color-7: rgba(6, 98, 178, 0.9);
  --color-8: #032e54;
  --color-9: #2194f7;
  --color-10: rgba(0, 0, 0, 0.1);
  --color-11: rgba(5, 87, 158, 0.9);
  --color-12: rgba(255, 255, 255, 0.7);
  --color-13: rgba(127, 137, 161, 0.25);
  --color-14: rgba(5, 74, 133, 0.9);
  --color-15: var(--color-23);
  --color-16: #0665b7;
  --color-17: rgba(6, 101, 183, 0.9);
  --color-18: #065fad;
  --color-19: rgba(255, 255, 255, 0.1);
  --color-20: #5db1f9;
  --color-21: rgba(255, 255, 255, 0.75);
  --color-22: #f6b024;
  --color-23: #05579e;
  --color-24: rgba(68, 88, 144, 0.2);
  --color-25: #777777;
  --color-26: #054a85;
  --colo-27: rgba(8, 128, 232, 0.4);
  --color-28: #848484;
  --color-29: #ddd;
  --color-30: #f1f8ff;
  --color-31: #343a40;
  --color-32: rgba(8, 128, 232, 0.7);
  --color-33: rgba(5, 74, 133, 0.8);
  --color-34: #8ec8fb;
  --color-35: #043c6d;
  --color-36: #ecf6fe;
  --color-37: #75bdfa;
  --color-38: #18d26e;
  --color-27: rgba(5, 87, 158, 0.613);
  --color-28: #2b98f87b;
}


/*-------------------------------------------------------
#AUTHENTIFICATION
--------------------------------------------------------*/
/*--------------------------------------------------------------
  AUTH PAGE — Split layout plein écran fixe
--------------------------------------------------------------*/

/* Masquer header/footer sur cette page */
#header,
#footer,
.topbar {
  display: none !important;
}

/* Reset body pour cette page uniquement */
body:has(.auth-page) {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.auth-page {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #ffffff;
}

.auth-split {
  display: flex;
  width: 100%;
  height: 100%;
}

/*--------------------------------------------------------------
  GAUCHE — Formulaire
--------------------------------------------------------------*/
.auth-left {
  flex: 0 0 46%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 48px 64px;
  position: relative;
  overflow-y: auto;
}

.auth-logo {
  position: absolute;
  top: 32px;
  left: 40px;
}
.auth-logo img {
  height: 38px;
  width: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-title {
  font-size: 28px;
  font-family: 'Pppangaia', sans-serif;
  font-weight: 700;
  color: var(--color-23);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 14.5px;
  color: #64748b;
  margin: 0;
}

/* Alerte */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  color: #dc2626;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* Champs */
.auth-field {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.auth-forgot {
  font-size: 12px;
  color: #0880e8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-forgot:hover { color: #05579e; }

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 13px;
  font-size: 14px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.auth-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font-size: 13.5px;
  color: #0d1b2a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.auth-input::placeholder { color: #b0bec5; }
.auth-input:focus {
  border-color: #0880e8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(8,128,232,0.1);
}

.auth-eye {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.auth-eye:hover { color: #0880e8; }

/* Submit */
.auth-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0880e8 0%, #05579e 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(8,128,232,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}
.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(8,128,232,0.45);
}
.auth-btn svg { transition: transform 0.2s; }
.auth-btn:hover svg { transform: translateX(4px); }

/* Switch */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 20px 0 0;
}
.auth-switch a {
  color: #0880e8;
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { color: #05579e; }

/*--------------------------------------------------------------
  DROITE — Visuel
--------------------------------------------------------------*/
.auth-right {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.auth-visual {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(5,87,158,0.93) 0%, rgba(8,128,232,0.82) 50%, rgba(5,87,158,0.96) 100%),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=900&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
}

/* Grille subtile */
.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(8,128,232,0.25) 0%, transparent 65%);
  pointer-events: none;
}

/* Badges */
.auth-badge {
  position: absolute;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 12px 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-badge--top {
  top: 32px;
  left: 32px;
  right: 32px;
}

.auth-badge--bottom {
  bottom: 32px;
  left: 32px;
  right: 32px;
}

.auth-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0.12); }
}

.auth-badge__title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.auth-badge__sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
}

.auth-badge__stats {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-around;
}
.auth-badge__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.auth-badge__num {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Pppangaia', sans-serif;
  letter-spacing: -0.02em;
}
.auth-badge__label {
  font-size: 10.5px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.auth-badge__divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.18);
}

/* Texte central */
.auth-visual-text {
  text-align: center;
  z-index: 2;
  max-width: 360px;
}
.auth-visual-text h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-family: 'Pppangaia', sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.auth-visual-text p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}

/*--------------------------------------------------------------
  RESPONSIVE
--------------------------------------------------------------*/
@media (max-width: 860px) {
  body:has(.auth-page) { overflow: auto; }
  .auth-page { position: relative; min-height: 100vh; height: auto; }
  .auth-split { flex-direction: column; }
  .auth-right { display: none; }
  .auth-left {
    flex: 1;
    padding: 100px 28px 48px;
    height: auto;
  }
}



/*--------------------------------------------------------------
  REGISTER PAGE — Split layout (visuel gauche, form droite)
  Reprend les variables de login.css + ajouts spécifiques
--------------------------------------------------------------*/

#header, #footer, .topbar {
  display: none !important;
}

body:has(.auth-page--register) {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.auth-page--register {
  position: fixed;
  inset: 0;
  display: flex;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #ffffff;
}

.auth-page--register .auth-split {
  display: flex;
  width: 100%;
  height: 100%;
  /* Inversé : visuel à gauche, form à droite */
  flex-direction: row-reverse;
}

/*--------------------------------------------------------------
  DROITE (techniquement gauche visuel) → formulaire scrollable
--------------------------------------------------------------*/
.auth-page--register .auth-left {
  flex: 0 0 52%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 80px 56px 40px;
  position: relative;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(8,128,232,0.2) transparent;
}

.auth-page--register .auth-logo {
  position: absolute;
  top: 28px;
  left: 40px;
}
.auth-page--register .auth-logo img {
  height: 36px;
  width: auto;
}

.auth-page--register .auth-form-wrap {
  width: 100%;
  max-width: 420px;
  padding-bottom: 32px;
}

.auth-page--register .auth-form-header {
  margin-bottom: 28px;
}

.auth-page--register .auth-title {
  font-size: 26px;
  font-family: 'Pppangaia', sans-serif;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.auth-page--register .auth-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* ── Champs du _form.html.twig ── */
.auth-page--register .form-group {
  margin-bottom: 16px;
}

.auth-page--register .form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.01em;
}

.auth-page--register .form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #0d1b2a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.auth-page--register .form-control::placeholder { color: #b0bec5; }
.auth-page--register .form-control:focus {
  border-color: #0880e8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(8,128,232,0.1);
}

/* Input group (password + toggle) */
.auth-page--register .input-group {
  display: flex;
  align-items: stretch;
  position: relative;
}

/* Annule le border-radius droit du champ password */
.auth-page--register .input-group .form-control {
  border-radius: 10px 0 0 10px !important;
  border-right: none !important;
  flex: 1;
  /* width auto pour ne pas forcer 100% dans le groupe */
  width: auto;
  /* z-index pour que le focus-shadow passe par-dessus */
  position: relative;
  z-index: 1;
}

/* Quand le champ password est focus → on colore aussi le bouton œil */
.auth-page--register .input-group .form-control:focus {
  border-color: #0880e8;
  box-shadow: none; /* on gère l'ombre sur le wrapper */
}
.auth-page--register .input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(8,128,232,0.1);
  border-radius: 10px;
}
.auth-page--register .input-group:focus-within .form-control {
  border-color: #0880e8;
  background: #ffffff;
}
.auth-page--register .input-group:focus-within .input-group-text.toggle-password {
  border-color: #0880e8;
  background: #ffffff;
}

/* Bouton toggle œil */
.auth-page--register .input-group-text.toggle-password {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 0 13px;
  cursor: pointer;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;          /* même hauteur que .form-control */
  flex-shrink: 0;
  font-size: 16px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  user-select: none;
  /* Empêche Bootstrap d'écraser le style */
  box-shadow: none !important;
}
.auth-page--register .input-group-text.toggle-password:hover {
  color: #0880e8;
  background: #eef5fd;
}

/* Hints mot de passe */
#password-hints {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
#password-hints li {
  font-size: 12px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#confirm-hint {
  font-size: 12px;
  margin-top: 5px;
}

/* Erreurs */
.auth-page--register .error,
.auth-page--register .captcha ul li {
  color: #dc2626;
  font-size: 12px;
  margin-bottom: 4px;
  display: block;
}

/* Upload image */
.auth-page--register input[type="file"].form-control {
  height: auto;
  padding: 8px 12px;
  font-size: 13px;
}

/* Cases à cocher docs */
.auth-page--register #check-all-docs {
  accent-color: #0880e8;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.auth-page--register label[for="check-all-docs"] {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #374151;
  cursor: pointer;
}
.auth-page--register .url-doc {
  font-size: 13px;
  color: #0880e8;
  text-decoration: none;
  transition: color 0.2s;
}
.auth-page--register .url-doc:hover {
  color: #05579e;
  text-decoration: underline !important;
}

/* Captcha */
.auth-page--register .captcha {
  margin-top: 4px;
}

/* Bouton submit */
.auth-page--register .btn.btn-primary {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0880e8 0%, #05579e 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(8,128,232,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.01em;
}
.auth-page--register .btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(8,128,232,0.42);
}

/* Switch login */
.auth-page--register .auth-switch {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin: 20px 0 0;
}
.auth-page--register .auth-switch a {
  color: #0880e8;
  font-weight: 600;
  text-decoration: none;
}

/*--------------------------------------------------------------
  GAUCHE → Visuel (identique au login)
--------------------------------------------------------------*/
.auth-page--register .auth-right {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.auth-page--register .auth-visual {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(5,87,158,0.93) 0%, rgba(8,128,232,0.82) 50%, rgba(5,87,158,0.96) 100%),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=900&q=80') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}

.auth-page--register .auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-page--register .auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(8,128,232,0.25) 0%, transparent 65%);
  pointer-events: none;
}

/* Badges */
.auth-page--register .auth-badge {
  position: absolute;
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 12px 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
}
.auth-page--register .auth-badge--top  { top: 32px;    left: 32px; right: 32px; }
.auth-page--register .auth-badge--bottom { bottom: 32px; left: 32px; right: 32px; }

.auth-page--register .auth-badge__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(74,222,128,0.12); }
}
.auth-page--register .auth-badge__title { font-size: 13px; font-weight: 700; color: #fff; }
.auth-page--register .auth-badge__sub   { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 1px; }

.auth-page--register .auth-badge__stats   { display: flex; align-items: center; width: 100%; justify-content: space-around; }
.auth-page--register .auth-badge__stat    { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.auth-page--register .auth-badge__num     { font-size: 20px; font-weight: 800; color: #fff; font-family: 'Pppangaia', sans-serif; letter-spacing: -0.02em; }
.auth-page--register .auth-badge__label   { font-size: 10.5px; color: rgba(255,255,255,0.6); font-weight: 500; }
.auth-page--register .auth-badge__divider { width: 1px; height: 30px; background: rgba(255,255,255,0.18); }

/* Texte central + liste services */
.auth-page--register .auth-visual-text {
  text-align: center;
  z-index: 2;
  max-width: 360px;
}
.auth-page--register .auth-visual-text h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-family: 'Pppangaia', sans-serif;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.auth-page--register .auth-visual-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0 0 20px;
}
.auth-page--register .auth-visual-text__sub {
  font-size: 13px !important;
  margin-top: 16px !important;
  color: rgba(255,255,255,0.6) !important;
}

/* Liste services dans le visuel */
.auth-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.auth-services-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.auth-services-list li:hover {
  background: rgba(255,255,255,0.15);
}
.auth-services-list li i {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/*--------------------------------------------------------------
  RESPONSIVE
--------------------------------------------------------------*/
@media (max-width: 900px) {
  body:has(.auth-page--register) { overflow: auto; }
  .auth-page--register { position: relative; height: auto; }
  .auth-page--register .auth-split { flex-direction: column-reverse; }
  .auth-page--register .auth-right { display: none; }
  .auth-page--register .auth-left {
    flex: 1;
    padding: 90px 24px 48px;
    height: auto;
    overflow-y: visible;
  }
}