/* ============================================================
   LOGIN.CSS - Page d'accueil et connexion
   ============================================================ */

html,
body {
  height: 100%;
}

html.html-public,
html.html-public body.page-accueil {
  height: auto;
}

body.page-accueil {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(8, 35, 77, 0.98) 0%, rgba(4, 24, 55, 0.98) 58%, #08234d 100%),
    #08234d;
}

body.page-accueil #header-container + .layout-accueil {
  margin-top: 0 !important;
}

body.page-accueil .header-public-inner > .project-box {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.page-accueil .header-project-btn,
body.page-accueil .dropdown__trigger {
  white-space: nowrap;
}

.layout-accueil {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: clamp(32px, 5vw, 84px);
  width: 100%;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
  padding: clamp(32px, 4vw, 54px) clamp(28px, 6vw, 96px) 44px;
  overflow: hidden;
}

.layout-accueil::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 420px;
  height: 300px;
  opacity: 0.26;
  background-image: radial-gradient(circle, rgba(105, 153, 216, 0.8) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  pointer-events: none;
}

.layout-accueil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 68%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 68%, transparent 100%);
  pointer-events: none;
}

.accueil-gauche,
.accueil-droite {
  position: relative;
  z-index: 1;
  min-width: 0;
  box-sizing: border-box;
}

.accueil-gauche {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.accueil-droite {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.accueil-hero {
  width: min(100%, 980px);
  min-width: 0;
}

.accueil-title {
  max-width: 850px;
  margin: 0;
  color: #ffffff;
  font-family: var(--font-titres);
  font-size: clamp(42px, 4.3vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.accueil-title span {
  color: var(--c-accent);
}

.accueil-citation {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.accueil-benefices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin-top: 36px;
}

.benefice-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.benefice-item + .benefice-item {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 18px;
}

.benefice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #6fa8ff;
  border: 1px solid rgba(105, 153, 216, 0.58);
  border-radius: 8px;
  background: rgba(10, 44, 96, 0.42);
}

.benefice-icon svg {
  width: 30px;
  height: 30px;
}

.benefice-item strong,
.benefice-item em {
  display: block;
  min-width: 0;
}

.benefice-item strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.benefice-item em {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.accueil-video {
  width: min(760px, 100%);
  margin-top: 44px;
}

.accueil-video-intro {
  max-width: 620px;
  margin: 0 0 16px;
}

.accueil-video-intro h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-titres);
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.accueil-video-intro p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.5;
}

.accueil-video-placeholder {
  position: relative;
  display: flex;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(2, 16, 37, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.26);
}

.accueil-video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(105, 153, 216, 0.2), transparent 48%),
    linear-gradient(0deg, rgba(8, 35, 77, 0.62), rgba(8, 35, 77, 0.62));
}

.accueil-video-play {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.accueil-video-play::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 22px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid #08234d;
}

.accueil-video-placeholder p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 700;
}

.page-accueil .card-auth {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
  padding: 32px 40px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(225, 231, 242, 0.92);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.auth-marque {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  height: 76px;
  margin: 0 auto 16px;
}

.auth-logo-symbole-frame,
.auth-logo-texte-frame {
  position: relative;
  display: block;
  overflow: visible;
  flex: 0 0 auto;
}

.auth-logo-symbole-frame {
  width: 58px;
  height: 54px;
}

.auth-logo-texte-frame {
  width: 142px;
  height: 72px;
}

.auth-logo-symbole,
.auth-logo-texte {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.auth-logo-symbole {
  left: -8px;
  top: -4px;
  width: 66px;
}

.auth-logo-texte {
  left: -16px;
  top: -42px;
  width: 170px;
}

.auth-card-header {
  margin-bottom: 22px;
  text-align: center;
}

.auth-card-header h2 {
  margin: 0 0 8px;
  color: #08234d;
  font-family: var(--font-titres);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-card-header p {
  margin: 0;
  color: #53647d;
  font-size: 15px;
}

.form-connexion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-connexion label {
  margin: 0 0 7px;
  color: #2c394d;
  font-size: 14px;
  font-weight: 500;
}

.input-icon-wrapper,
.password-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.input-leading-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #6b7c96;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-leading-icon svg {
  width: 20px;
  height: 20px;
}

.page-accueil .input-champ {
  min-height: 46px;
  padding: 12px 14px 12px 44px;
  color: #1f2a3a;
  background: #ffffff;
  border-color: #cfd8e6;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(8, 35, 77, 0.04);
}

.page-accueil .input-champ::placeholder {
  color: #9aa9c0;
}

.page-accueil .input-champ:focus {
  border-color: #6999d8;
  box-shadow: 0 0 0 3px rgba(105, 153, 216, 0.2);
}

.password-wrapper .input-mdp {
  padding-right: 46px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #6b7c96;
  cursor: pointer;
  transform: translateY(-50%);
}

.toggle-password svg {
  width: 20px;
  height: 20px;
}

.toggle-password:hover {
  color: #08234d;
}

.page-accueil #btn-login {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 13px 20px;
  color: #ffffff;
  background: #08234d;
  border-color: #08234d;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(8, 35, 77, 0.22);
}

.page-accueil #btn-login:hover {
  background: #123d78;
  border-color: #123d78;
  box-shadow: 0 14px 28px rgba(8, 35, 77, 0.26);
  transform: translateY(-1px);
}

.page-accueil .auth-separator {
  margin: 15px 0;
  color: #9aa9c0;
}

.page-accueil .auth-separator span {
  font-weight: 700;
  letter-spacing: 0;
}

.page-accueil .auth-separator::before,
.page-accueil .auth-separator::after {
  background: #e1e7f2;
}

.page-accueil .btn-google,
.page-accueil .btn-facebook,
.page-accueil .btn-secondaire {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
}

.page-accueil .btn-google {
  margin-top: 0;
  color: #3e4c63;
  background: #ffffff;
  border-color: #cfd8e6;
}

.page-accueil .btn-google:hover {
  background: #f6f8fc;
  border-color: #9aa9c0;
}

.page-accueil .btn-facebook {
  margin-top: 0;
  background: #1d63e9;
  border-color: #1d63e9;
  box-shadow: 0 10px 22px rgba(29, 99, 233, 0.18);
}

.page-accueil .btn-facebook:hover {
  background: #1557d8;
  border-color: #1557d8;
}

.login-divider-strong {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  background: #e1e7f2;
}

.page-accueil .btn-secondaire {
  margin-top: 0;
  color: #2c394d;
  background: #ffffff;
  border-color: #cfd8e6;
}

.page-accueil .btn-secondaire:hover {
  background: #f6f8fc;
  border-color: #9aa9c0;
}

#link-forgot-password {
  display: inline-flex;
  align-self: center;
  margin-top: 14px;
  color: #08234d;
  font-size: 14px;
  text-align: center;
  text-decoration: underline;
}

#link-forgot-password:hover {
  color: #275aa6;
}

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  color: #6b7c96;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.auth-security-note span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #53647d;
}

.auth-security-note svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1180px) {
  .layout-accueil {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 36px;
    padding-inline: 36px;
  }

  .accueil-benefices {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .benefice-item + .benefice-item {
    border-left: 0;
    padding-left: 0;
  }

  .accueil-video {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  body.page-accueil #header-container {
    min-height: 64px;
  }

  .layout-accueil {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 34px 18px 40px;
    overflow: visible;
  }

  .layout-accueil::before {
    width: 260px;
    height: 220px;
    opacity: 0.18;
  }

  .accueil-gauche,
  .accueil-droite {
    justify-content: center;
  }

  .accueil-hero {
    width: min(100%, 680px);
  }

  .accueil-title,
  .accueil-citation {
    text-align: left;
  }

  .accueil-video {
    margin-top: 34px;
  }

  .accueil-droite {
    padding-top: 0;
  }

  .page-accueil .card-auth {
    max-width: 520px;
    padding: 34px 24px 26px;
  }
}

@media (max-width: 560px) {
  .layout-accueil {
    padding-inline: 12px;
  }

  .accueil-title {
    font-size: 36px;
  }

  .accueil-citation {
    font-size: 16px;
  }

  .benefice-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .benefice-icon {
    width: 42px;
    height: 42px;
  }

  .benefice-icon svg {
    width: 26px;
    height: 26px;
  }

  .accueil-video-placeholder {
    min-height: 210px;
  }

  .accueil-video-play {
    width: 58px;
    height: 58px;
  }

  .accueil-video-play::before {
    left: 23px;
    top: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 17px;
  }

  .accueil-video-placeholder p {
    font-size: 14px;
  }

  .page-accueil .card-auth {
    padding: 30px 18px 24px;
  }

  .auth-marque {
    gap: 12px;
    height: 66px;
    margin-bottom: 14px;
  }

  .auth-logo-symbole-frame {
    width: 50px;
    height: 48px;
  }

  .auth-logo-texte-frame {
    width: 122px;
    height: 62px;
  }

  .auth-logo-symbole {
    left: -7px;
    top: -4px;
    width: 58px;
  }

  .auth-logo-texte {
    left: -14px;
    top: -36px;
    width: 148px;
  }

  .auth-card-header h2 {
    font-size: 25px;
  }

  .page-accueil .btn-google,
  .page-accueil .btn-facebook,
  .page-accueil .btn-secondaire {
    font-size: 14px;
  }
}
.accueil-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 14px 34px rgba(8, 35, 77, 0.18);
}

.accueil-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}