*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-dark:   #27326f;
  --blue-syndic: #9bc9ed;
  --blue-mid:    #4a6fa5;
  --white:       #ffffff;
  --white-80:    rgba(255,255,255,0.80);
  --white-20:    rgba(255,255,255,0.12);
  --drawer-w:    460px;
}

html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: bgDrift 18s ease-in-out infinite alternate;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

/* Shift background slightly when drawer opens */
.hero.drawer-open .hero__bg {
  transform: scale(1.04) translateX(-3%);
  animation-play-state: paused;
}

@keyframes bgDrift {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.08) translateX(-1%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(39, 50, 111, 0.88) 0%,
    rgba(39, 50, 111, 0.60) 55%,
    rgba(155, 201, 237, 0.25) 100%
  );
  transition: background 0.6s;
}

.hero.drawer-open .hero__overlay {
  background: linear-gradient(
    135deg,
    rgba(39, 50, 111, 0.92) 0%,
    rgba(39, 50, 111, 0.80) 55%,
    rgba(39, 50, 111, 0.70) 100%
  );
}

.hero__shape {
  position: absolute;
  bottom: 0; right: 0;
  width: 42vw;
  height: 100vh;
  background: linear-gradient(150deg, transparent 35%, rgba(155,201,237,0.10) 35%, rgba(155,201,237,0.06) 100%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: opacity 0.5s;
}

.hero.drawer-open .hero__shape { opacity: 0; }

.hero__shape-line {
  position: absolute;
  bottom: 0; right: 0;
  width: 42vw;
  height: 100vh;
  clip-path: polygon(30% 0%, 32% 0%, 2% 100%, 0% 100%);
  background: rgba(155, 201, 237, 0.30);
  transition: opacity 0.5s;
}

.hero.drawer-open .hero__shape-line { opacity: 0; }

/* ── CONTENT ── */
.hero__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
  width: 90%;
  gap: 0;
  animation: fadeUp 1s ease both;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1), opacity 0.5s;
}

.hero.drawer-open .hero__content {
  transform: translateX(-80px);
  opacity: 0.35;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO ── */
.logo {
  display: inline-block;
  margin-bottom: 52px;
  animation: fadeUp 1s 0.1s ease both;
  opacity: 0;
}

.logo img {
  height: clamp(52px, 6vw, 80px);
  width: auto;
  display: block;
}

/* ── TAGLINE ── */
.hero__eyebrow {
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-syndic);
  margin-bottom: 18px;
  animation: fadeUp 1s 0.25s ease both;
  opacity: 0;
}

.hero__title {
  font-size: clamp(30px, 4.8vw, 62px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 1s 0.35s ease both;
  opacity: 0;
}

.hero__title em {
  font-style: normal;
  color: var(--blue-syndic);
}

.hero__separator {
  width: 48px;
  height: 3px;
  background: var(--blue-syndic);
  margin-bottom: 28px;
  animation: fadeUp 1s 0.45s ease both;
  opacity: 0;
}

.hero__desc {
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--white-80);
  max-width: 520px;
  margin-bottom: 50px;
  animation: fadeUp 1s 0.55s ease both;
  opacity: 0;
}

/* ── CTA ── */
.cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp 1s 0.70s ease both;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blue-syndic);
  color: var(--blue-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 36px;
  border: 2px solid var(--blue-syndic);
  transition: background 0.28s, color 0.28s, transform 0.22s;
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--blue-syndic);
  transform: translateY(-2px);
}

.btn-primary svg {
  flex-shrink: 0;
  transition: transform 0.22s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-80);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: color 0.22s, border-color 0.22s;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ── BOTTOM BAR ── */
.hero__footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--white-20);
  animation: fadeUp 1s 0.9s ease both;
  opacity: 0;
  transition: opacity 0.5s;
}

.hero.drawer-open .hero__footer { opacity: 0; pointer-events: none; }

.hero__footer-left {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}

.hero__footer-links {
  display: flex;
  gap: 28px;
}

.hero__footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.22s;
}

.hero__footer-links a:hover { color: var(--blue-syndic); }

/* ── GROUPE badge ── */
.groupe-badge {
  position: absolute;
  top: 32px;
  right: clamp(24px, 5vw, 72px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1s 0.1s ease both;
  opacity: 0;
  transition: opacity 0.5s;
}

.hero.drawer-open .groupe-badge { opacity: 0; pointer-events: none; }

.groupe-badge__line {
  width: 1px; height: 28px;
  background: rgba(255,255,255,0.30);
}

.groupe-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.groupe-badge__label {
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

.groupe-badge__name {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  font-weight: 700;
}

/* ════════════════════════════════════════
   LOGIN DRAWER
════════════════════════════════════════ */
.login-drawer {
  position: fixed;
  top: 0; right: 0;
  width: var(--drawer-w);
  height: 100vh;
  background: #ffffff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px;
  box-shadow: -12px 0 60px rgba(39,50,111,0.18);

  /* Hidden state */
  transform: translateX(100%);
  transition: transform 0.60s cubic-bezier(0.4,0,0.2,1);
}

.login-drawer.is-open {
  transform: translateX(0);
}

/* Blue accent strip on left edge */
.login-drawer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-dark) 0%, var(--blue-syndic) 100%);
}

/* Close button */
.drawer__close {
  position: absolute;
  top: 28px; right: 28px;
  width: 36px; height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(39,50,111,0.35);
  border-radius: 50%;
  transition: background 0.22s, color 0.22s;
}

.drawer__close:hover {
  background: rgba(39,50,111,0.07);
  color: var(--blue-dark);
}

/* Eyebrow + title */
.drawer__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-syndic);
  margin-bottom: 10px;
}

.drawer__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.2;
  margin-bottom: 36px;
}

/* Form */
.drawer__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
}

.field__wrap {
  position: relative;
}

.field__input {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #4a5568;
  background: #f5f7fa;
  outline: none;
  transition: border-color 0.22s, background 0.22s;
}

.field__input:focus {
  border-color: var(--blue-syndic);
  background: #ffffff;
}

.field__toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #4a5568;
  opacity: 0.45;
  display: flex;
  align-items: center;
  transition: opacity 0.22s;
}

.field__toggle:hover { opacity: 1; }

.drawer__forgot {
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
  opacity: 0.6;
  text-decoration: none;
  align-self: flex-start;
  margin-top: -4px;
  transition: opacity 0.22s, color 0.22s;
}

.drawer__forgot:hover { opacity: 1; color: var(--blue-dark); }

.btn-login {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--blue-dark);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 2px solid var(--blue-dark);
  border-radius: 2px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.28s, color 0.28s, transform 0.22s;
}

.btn-login:hover {
  background: transparent;
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-login svg {
  flex-shrink: 0;
  transition: transform 0.22s;
}

.btn-login:hover svg { transform: translateX(4px); }

/* Footer links inside drawer */
.drawer__footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 10px;
  color: rgba(39,50,111,0.30);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer__footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s;
}

.drawer__footer a:hover { color: var(--blue-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero__shape, .hero__shape-line { display: none; }
  .hero__footer-links { gap: 16px; }
  .hero__footer { flex-direction: column; gap: 10px; text-align: center; }
  .groupe-badge { top: 20px; }

  :root { --drawer-w: 100vw; }
  .login-drawer { padding: 48px 28px; }
  .hero.drawer-open .hero__content { transform: none; }
}
