/* Page de connexion — vitrine Maman Gâteaux */
html, body { height: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body.login { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: #2E1F17; background: #2A170F; overflow-x: hidden; }
.lg-stage { position: relative; min-height: calc(100vh - 106px); display: flex; flex-direction: column; isolation: isolate; }
.lg-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #3a2216; }
.lg-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 7s ease; }
.lg-slide.on { opacity: 1; transform: scale(1); }
.lg-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(28, 14, 7, .78) 0%, rgba(28, 14, 7, .55) 34%, rgba(28, 14, 7, .12) 58%, rgba(28, 14, 7, .05) 100%),
  linear-gradient(180deg, rgba(20, 10, 4, .55) 0%, rgba(20, 10, 4, 0) 22%, rgba(20, 10, 4, 0) 80%, rgba(20, 10, 4, .35) 100%); }
body.env-formation-choice .lg-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(201, 138, 46, .14); pointer-events: none; }

/* header */
.lg-header { display: flex; align-items: center; gap: 28px; padding: 22px 56px 0 64px; color: #fff; }
.lg-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
[hidden] { display: none !important; }
.lg-brand .nm, .lg-brand .sl { display: block; }
.lg-brand img { width: 72px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.lg-brand .nm { font-family: 'Playfair Display', serif; font-size: 36px; line-height: 1; letter-spacing: -.01em; color: #FFF7EC; }
.lg-brand .sl { font-family: 'Playfair Display', serif; font-size: 15px; color: #F3E3CE; margin-top: 4px; }
.lg-nav { display: flex; gap: 34px; margin-inline-start: auto; margin-inline-end: 28px; }
.lg-nav a { white-space: nowrap; color: #F6EBDD; text-decoration: none; font-size: 15px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.lg-nav a.on, .lg-nav a:hover { color: #fff; border-bottom-color: #D9A75A; }
.lg-langs { display: flex; align-items: center; gap: 0; padding: 7px 10px; border-radius: 12px; background: rgba(40, 24, 14, .45); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.lg-langs a { display: flex; align-items: center; gap: 8px; color: #F4E8DA; text-decoration: none; font-size: 14.5px; padding: 4px 13px; position: relative; }
.lg-langs a + a::before { content: ""; position: absolute; inset-inline-start: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,.25); }
.lg-langs a.on { color: #fff; font-weight: 600; }
.lg-langs a.on::after { content: ""; position: absolute; inset-inline: 13px; bottom: -6px; height: 2px; background: #D9A75A; border-radius: 2px; }
.lg-langs img { width: 26px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lg-help { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #F3E3CE; color: #F3E3CE; display: grid; place-items: center; font-size: 19px; text-decoration: none; margin-inline-start: 22px; }
.lg-help:hover { background: rgba(255,255,255,.12); color: #fff; }
.lg-burger { display: none; }

/* body */
.lg-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 545px; gap: 40px; padding: 48px 160px 40px 188px; align-items: start; position: relative; }
.lg-hero { color: #fff; padding-top: 50px; max-width: 640px; }
.lg-kicker { font-size: 14px; letter-spacing: .2em; color: #E2B46A; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.lg-hero h1 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 52px; line-height: 1.08; margin: 0 0 18px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.25); letter-spacing: -.01em; }
.lg-hero p { font-size: 18px; line-height: 1.45; color: #F6ECE0; max-width: 470px; margin: 0 0 30px; }
.lg-features { display: flex; gap: 0; }
.lg-feature { text-align: center; padding: 0 26px; position: relative; }
.lg-feature:first-child { padding-inline-start: 0; }
.lg-feature + .lg-feature::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; height: 112px; width: 1px; background: rgba(255,255,255,.3); }
.lg-feature .ic { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 24px; color: #FFE9CF; border: 2px solid #E2B46A; background: radial-gradient(circle at 30% 30%, #B66A3A, #8A4423); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.lg-feature b { display: block; font-size: 16px; margin-bottom: 4px; }
.lg-feature span { display: block; font-size: 13.5px; color: #F3E6D6; line-height: 1.3; }

/* card */
.lg-card { background: linear-gradient(180deg, rgba(255, 251, 244, .97), rgba(250, 243, 233, .95)); border-radius: 18px; padding: 34px 34px 26px; box-shadow: 0 30px 70px rgba(25, 12, 5, .45); border: 1px solid rgba(226, 180, 106, .45); backdrop-filter: blur(6px); margin-top: 0; }
.lg-card h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 38px; color: #6B2B16; text-align: center; margin: 0 0 6px; }
.lg-card .sub { text-align: center; font-size: 15px; color: #6E5E52; margin: 0 auto 22px; max-width: 360px; line-height: 1.4; }
.lg-envs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.lg-env { position: relative; display: flex; gap: 12px; align-items: center; border: 1.5px solid #E6DACB; border-radius: 12px; padding: 16px 14px; background: #FFFDF9; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.lg-env input { position: absolute; opacity: 0; pointer-events: none; }
.lg-env .ic { font-size: 30px; color: #6B2B16; flex: none; width: 36px; text-align: center; }
.lg-env b { display: block; font-size: 15px; color: #2E1F17; margin-bottom: 6px; }
.lg-env .tag { display: inline-block; font-size: 11.5px; color: #6E5E52; background: #EFE5D8; border-radius: 5px; padding: 3px 7px; }
.lg-env .rad { position: absolute; top: 12px; inset-inline-end: 12px; width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #C9BBAA; display: grid; place-items: center; color: #fff; font-size: 12px; }
.lg-env.on { border-color: #B5653F; background: #FBF1E6; box-shadow: 0 0 0 1px #B5653F inset; }
.lg-env.on .rad { background: #7A2E17; border-color: #7A2E17; }
.lg-env.on .tag { background: #F2DCC7; }
.lg-env.formation.on { border-color: #C98A2E; background: #FBF3E2; box-shadow: 0 0 0 1px #C98A2E inset; }
.lg-env.formation.on .rad { background: #C98A2E; border-color: #C98A2E; }
.lg-env:focus-within { outline: 2px solid #C9973F; outline-offset: 2px; }
.lg-field { margin-bottom: 16px; min-width: 0; }
.lg-field label { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: #3A2A1F; margin-bottom: 8px; }
.lg-input { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; }
.lg-input > i { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: #9A8270; font-size: 18px; pointer-events: none; transition: color .2s ease; }
.lg-input:focus-within > i { color: #B98332; }
.lg-input input { display: block; width: 100%; max-width: 100%; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid #E3D6C4; background: #FFFDFA; padding: 0 16px 0 48px; font: inherit; font-size: 15px; color: #2E1F17; box-shadow: inset 0 1px 2px rgba(60, 35, 15, .05); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.lg-input input:has(+ .toggle-pw) { padding-inline-end: 52px; }
[dir=rtl] .lg-input input { padding: 0 48px 0 16px; }
.lg-input input::placeholder { color: #A99A8B; }
.lg-input input:hover { border-color: #D6C4AB; }
.lg-input input:focus { outline: none; border-color: #C9973F; background: #FFFFFF; box-shadow: inset 0 1px 2px rgba(60, 35, 15, .04), 0 0 0 4px rgba(201, 151, 63, .18); }
.lg-input input:-webkit-autofill, .lg-input input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #FFFDFA inset; -webkit-text-fill-color: #2E1F17; }
.lg-input .toggle-pw { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 8px; width: 36px; height: 36px; color: #7A6657; font-size: 18px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.lg-input .toggle-pw:hover { background: rgba(201, 151, 63, .12); color: #6B2B16; }
.lg-input .toggle-pw:focus-visible { outline: 2px solid #C9973F; outline-offset: 1px; }
.lg-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 14px; }
.lg-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.lg-row input[type=checkbox] { width: 19px; height: 19px; accent-color: #7A2E17; }
.lg-row a { color: #8B2E16; text-decoration: underline; font-weight: 500; }
.lg-btn { width: 100%; height: 52px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #6E2F18, #5A2410); color: #fff; font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 10px 22px rgba(90, 36, 16, .35); cursor: pointer; }
.lg-btn:hover { background: linear-gradient(180deg, #7A3519, #632812); }
.lg-btn.formation { background: linear-gradient(180deg, #B07626, #93601D); }
.lg-or { display: flex; align-items: center; gap: 14px; color: #8A7565; font-size: 14px; margin: 18px 0 14px; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: #E2D7C9; }
.lg-sso { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lg-sso button { height: 48px; border-radius: 10px; border: 1px solid #E2D7C9; background: #fff; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: #2E1F17; font-weight: 500; cursor: pointer; }
.lg-sso button:hover { background: #FFF8EE; }
.lg-sso svg { width: 22px; height: 22px; }
.lg-support { text-align: center; margin-top: 18px; font-size: 13px; color: #6E5E52; }
.lg-support a { color: #8B2E16; text-decoration: none; }
.lg-arrow { position: absolute; top: 46%; width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: rgba(30, 15, 8, .35); color: #fff; display: grid; place-items: center; font-size: 22px; z-index: 2; cursor: pointer; }
.lg-arrow:hover { background: rgba(30, 15, 8, .6); }
.lg-arrow.prev { inset-inline-start: 32px; } .lg-arrow.next { inset-inline-end: 32px; }
[dir=rtl] .lg-arrow i { transform: scaleX(-1); }
.lg-dots { position: absolute; bottom: 38px; inset-inline-start: 47%; display: flex; gap: 12px; z-index: 2; }
.lg-dots button { width: 13px; height: 13px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); padding: 0; cursor: pointer; }
.lg-dots button.on { background: #E2A93B; transform: scale(1.12); }
.lg-alert { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 8px; }
.lg-alert.danger { background: #FCE8E4; color: #8E2A1F; border: 1px solid #F1C6BE; }
.lg-alert.success { background: #E7F3E7; color: #285F37; border: 1px solid #C9E2CB; }
.lg-alert.warning, .lg-alert.info { background: #FDF0DD; color: #7A4A10; border: 1px solid #F1D7AE; }
.lg-envnote { font-size: 12.5px; text-align: center; margin: -6px 0 14px; color: #7A4A10; }

/* footer */
.lg-footer { background: #24140C; color: #E9DCCB; display: grid; grid-template-columns: auto 1px auto 1px auto 1px auto 1px auto; gap: 36px; align-items: center; padding: 18px 40px; min-height: 106px; font-size: 13.5px; }
.lg-footer .sep { width: 1px; height: 56px; background: rgba(255,255,255,.18); }
.lg-footer .fb { display: flex; align-items: center; gap: 12px; }
.lg-footer .fb img { width: 58px; }
.lg-footer .fb .nm { font-family: 'Playfair Display', serif; font-size: 26px; color: #FFF3E4; line-height: 1; }
.lg-footer .fb .sl { font-family: 'Playfair Display', serif; font-size: 12.5px; color: #D9C9B5; }
.lg-footer a { color: #E9DCCB; text-decoration: none; }
.lg-footer a:hover { color: #fff; }
.lg-footer .ct div { display: flex; gap: 12px; align-items: center; margin: 3px 0; }
.lg-footer .ct small { display: block; padding-inline-start: 30px; color: #B9A893; }
.lg-footer .soc { text-align: center; }
.lg-footer .soc .ic { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.lg-footer .soc .ic a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; }
.lg-footer .links { display: flex; gap: 26px; }
.lg-footer .links a { display: flex; align-items: center; gap: 10px; }
.lg-footer .links i { font-size: 20px; }
.lg-footer .cp { font-size: 13px; line-height: 1.5; }
.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.fbk { background: #1877F2; } .wa { background: #25D366; }

@media (max-width: 1500px) { .lg-body { padding: 36px 90px 36px 110px; grid-template-columns: minmax(0, 1fr) 500px; } .lg-hero h1 { font-size: 46px; } }
@media (max-width: 1200px) {
  .lg-body { grid-template-columns: 1fr 470px; padding: 30px 70px; } .lg-hero h1 { font-size: 38px; } .lg-feature { padding: 0 14px; }
  .lg-nav { gap: 20px; } .lg-langs a { padding: 4px 8px; font-size: 13px; }
  .lg-footer { grid-template-columns: 1fr 1fr; gap: 18px; } .lg-footer .sep { display: none; }
}
@media (max-width: 991.98px) {
  .lg-header { padding: 14px 18px 0; flex-wrap: wrap; gap: 12px; }
  .lg-brand img { width: 52px; } .lg-brand .nm { font-size: 26px; } .lg-brand .sl { font-size: 12px; }
  .lg-nav { display: none; }
  .lg-langs { order: 3; width: 100%; justify-content: space-between; overflow-x: auto; }
  .lg-help { margin-inline-start: auto; }
  .lg-body { grid-template-columns: 1fr; padding: 16px; gap: 18px; }
  .lg-hero { padding-top: 6px; }
  .lg-hero h1 { font-size: 30px; } .lg-hero p { font-size: 15px; margin-bottom: 0; }
  .lg-features, .lg-arrow { display: none; }
  .lg-dots { position: static; justify-content: center; margin: 4px 0 0; }
  .lg-card { padding: 24px 18px; }
  .lg-card h2 { font-size: 30px; }
  .lg-stage::before { background: linear-gradient(180deg, rgba(28,14,7,.7) 0%, rgba(28,14,7,.45) 35%, rgba(28,14,7,.65) 100%); }
  .lg-footer { grid-template-columns: 1fr; text-align: center; padding: 22px 16px; }
  .lg-footer .fb, .lg-footer .ct div, .lg-footer .links { justify-content: center; flex-wrap: wrap; }
  .lg-footer .ct small { padding: 0; }
}
@media (max-width: 420px) { .lg-envs, .lg-sso { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lg-slide { transition: none; transform: none; } }
