/* Milele Location — page d'accueil et connexion
   Charte : design_tokens.json (navy #0B1F4C, orange #FF7200, fond chaud #FFF8F3, Inter) */
:root {
  --navy: #0B1F4C;
  --navy-2: #13295e;
  --orange: #FF7200;
  --orange-dark: #e56600;
  --warm: #FFF8F3;
  --white: #FFFFFF;
  --text: #0B1F4C;
  --muted: #5b6785;
  --line: #e6e9f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 76, .10);
  --font: 'Inter', 'Segoe UI', Arial, sans-serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.accent { color: var(--orange); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__script { font-family: var(--script); color: var(--orange); font-size: 44px; font-weight: 400; margin-bottom: -4px; }
.logo__badge { background: var(--orange); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .12em; padding: 4px 10px; border-radius: 7px; text-transform: uppercase; }
.logo--lg .logo__script { font-size: 78px; margin-bottom: -8px; }
.logo--lg .logo__badge { font-size: 18px; padding: 6px 16px; border-radius: 9px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font: 700 15px/1 var(--font); padding: 16px 24px; border-radius: 11px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 114, 0, .28); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(11, 31, 76, .12); }
.btn--light:hover { transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 114, 0, .45); outline-offset: 2px; }

/* =========================================================
   PAGE D'ACCUEIL
   ========================================================= */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.site-nav { flex: 1; display: flex; justify-content: center; gap: 30px; }
.site-nav a { font-weight: 600; font-size: 14px; padding: 8px 0; position: relative; }
.site-nav a.is-active, .site-nav a:hover { color: var(--orange); }
.site-nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); border-radius: 2px; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.site-header__login { font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .92); padding: 12px 16px; border-radius: 11px; box-shadow: 0 4px 14px rgba(11, 31, 76, .10); }
.site-header__login:hover { color: var(--orange); }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

.hero { position: relative; background: var(--warm); overflow: hidden; }
.hero__photo { position: absolute; inset: 0 0 0 40%; background: url('../img/hero.jpg') center/cover no-repeat; }
.hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--warm) 0%, rgba(255, 248, 243, .85) 18%, rgba(255, 248, 243, 0) 55%); }
.hero__content { position: relative; z-index: 1; padding: 150px 0 60px; max-width: 760px; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 800; }
.hero__lead { font-size: 19px; line-height: 1.55; margin: 0 0 30px; color: var(--navy); max-width: 520px; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; max-width: 760px; }
.benefit { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.35; }
.benefit svg { width: 24px; height: 24px; color: var(--orange); flex: none; }
.benefit strong { display: block; font-size: 13px; }
.benefit span { color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.section { padding: 70px 0; }
.section--warm { background: var(--warm); }
.section__title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 16px; font-weight: 800; }
.section__lead { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 0 30px; }

.categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.category { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease; display: flex; flex-direction: column; }
.category:hover { transform: translateY(-4px); }
.category__img { aspect-ratio: 4 / 3; background: #f3f4f7 center/cover no-repeat; }
.category__body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; }
.category__name { font-weight: 800; font-size: 15px; }
.category__sub { font-size: 12px; color: var(--muted); }
.round-arrow { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
.round-arrow svg { width: 14px; height: 14px; }

.solution { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.event-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0 0 30px; }
.event-type { text-align: center; padding: 10px 6px; font-size: 13px; font-weight: 500; border-right: 1px solid var(--line); }
.event-type:last-child { border-right: 0; }
.event-type svg { width: 38px; height: 38px; color: var(--orange); margin: 0 auto 10px; display: block; }
.solution__media { position: relative; border-radius: 20px; min-height: 380px; background: url('../img/evenements.jpg') center/cover no-repeat; box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0; }
.testimonial { margin: 0; position: absolute; right: -14px; bottom: -34px; width: min(300px, 80%); background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 18px 40px rgba(11, 31, 76, .18); }
.testimonial__quote { font-size: 44px; line-height: .6; color: var(--orange); font-weight: 800; }
.testimonial__title { font-weight: 700; margin: 10px 0 4px; }
.testimonial__text { color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.stars { color: var(--orange); letter-spacing: 3px; font-size: 16px; }
.testimonial__author { font-weight: 700; font-size: 13px; margin-top: 10px; }
.testimonial__city { font-size: 12px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--navy); color: #fff; border-radius: 16px; padding: 24px 10px; margin-top: 40px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 0 20px; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat:last-child { border-right: 0; }
.stat svg { width: 34px; height: 34px; color: var(--orange); flex: none; }
.stat__value { font-size: 24px; font-weight: 800; }
.stat__label { font-size: 12px; color: rgba(255, 255, 255, .75); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service svg { width: 30px; height: 30px; color: var(--orange); margin-bottom: 14px; }
.service h3 { margin: 0 0 8px; font-size: 17px; }
.service p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: #fff; border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.pricing ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pricing li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.pricing li svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 2px; }

.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact__info { display: grid; gap: 16px; align-content: start; }
.contact__item { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.contact__item svg { width: 22px; height: 22px; color: var(--orange); }
.form { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.input { width: 100%; padding: 14px 14px; border: 1px solid #d6ddea; border-radius: 10px; font: 15px var(--font); color: var(--text); background: #fff; }
textarea.input { min-height: 110px; resize: vertical; }
.form__status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; font-size: 14px; display: none; }
.form__status.is-ok { display: block; background: #ecfdf3; color: #067647; }
.form__status.is-error { display: block; background: #fef3f2; color: #b42318; }

.site-footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0 26px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.site-footer__copy { width: 100%; font-size: 12px; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; margin-top: 10px; }

/* Tablette 768–1199 */
@media (max-width: 1199px) {
  .site-nav { gap: 18px; }
  .categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-types { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .event-type:nth-child(3) { border-right: 0; }
}
@media (max-width: 1023px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; flex-direction: column; gap: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px 18px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.is-active::after { display: none; }
  .site-header__inner { justify-content: space-between; }
  .solution, .pricing, .contact { grid-template-columns: 1fr; }
  .testimonial { right: 12px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .stat:nth-child(2) { border-right: 0; }
}
/* Mobile < 768 */
@media (max-width: 767px) {
  .site-header__actions .btn { display: none; }
  .hero__photo { inset: 0; opacity: .35; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(255, 248, 243, .6), var(--warm)); }
  .hero__content { padding: 120px 0 70px; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -30px; }
  .event-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-type { border-right: 0; }
  .services, .form, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .solution__media { min-height: 300px; margin-bottom: 60px; }
  .pricing { padding: 24px; }
}

/* =========================================================
   CONNEXION
   ========================================================= */
.login-page { min-height: 100vh; position: relative; overflow: hidden; background: #06234b; color: var(--text); }
.login-page__bg { position: absolute; inset: -30px; background: url('../img/hero.jpg') center/cover no-repeat; filter: blur(6px) saturate(1.1); transform: scale(1.05); }
.login-page__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 35, 75, .72) 0%, rgba(6, 35, 75, .45) 45%, rgba(6, 35, 75, .80) 100%); }
.login-page__inner { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 16px 150px; }
.lang-switch { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; background: rgba(11, 31, 76, .75); color: #fff; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 8px 12px; font: 700 14px var(--font); }
.lang-switch select { background: transparent; color: #fff; border: 0; font: inherit; cursor: pointer; }
.lang-switch select option { color: var(--navy); }
.flag-ci { width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(90deg, #f77f00 33.3%, #fff 33.3% 66.6%, #009e60 66.6%); }
.login-brand { text-align: center; color: #fff; margin: 10px 0 26px; }
.login-brand__tagline { font-size: 22px; line-height: 1.35; margin: 16px 0 0; font-weight: 500; }
.login-card { width: min(460px, 100%); background: #fff; border-radius: 24px; padding: 34px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.login-card h1 { text-align: center; font-size: 28px; margin: 0 0 6px; }
.login-card__lead { text-align: center; color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.input-icon { position: relative; margin-bottom: 14px; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--navy); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.input-icon .input.has-error { border-color: #d92d20; }
.toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.toggle-pass svg { width: 20px; height: 20px; }
.field-error { color: #d92d20; font-size: 13px; margin: -8px 0 12px; }
.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.alert--error { background: #fef3f2; color: #b42318; }
.alert--success { background: #ecfdf3; color: #067647; }
.login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; margin: 4px 0 20px; }
.login-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.login-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); }
.login-row a:hover { color: var(--orange); }
.divider { display: flex; align-items: center; gap: 12px; color: #98a2b3; font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.captcha { margin-bottom: 16px; display: flex; justify-content: center; }
.reassurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(520px, 100%); margin-top: 30px; color: #fff; text-align: center; }
.reassurance div { padding: 0 10px; border-right: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; line-height: 1.35; }
.reassurance div:last-child { border-right: 0; }
.reassurance svg { width: 34px; height: 34px; margin: 0 auto 10px; display: block; }
.login-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 0; pointer-events: none; }
.login-wave svg { width: 100%; height: 100%; display: block; }
.login-wave__text { position: absolute; right: 6%; bottom: 26px; font-family: var(--script); color: #fff; font-size: 34px; transform: rotate(-6deg); }
.login-back { position: absolute; left: 16px; top: 24px; z-index: 2; color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.login-back svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
  .logo--lg .logo__script { font-size: 62px; }
  .login-card { padding: 28px 20px; }
  .login-wave__text { font-size: 26px; }
  .reassurance div { font-size: 12px; }
}
