:root {
  --red:      #D01F3C;
  --red-dark: #b01830;
  --red-soft: #fff0f2;
  --ink:      #18181f;
  --muted:    #72728a;
  --border:   #e8e8f0;
  --white:    #ffffff;
  --off:      #f8f8fb;
  --green:    #0b8a4e;
  --green-bg: #edfaf4;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  height: 100%;
}


/* ══ LAYOUT 50/50 ══ */
.split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: start;
}

/* ══ GAUCHE — PHOTO ══ (CSS exact maquette) */
.side-photo {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.side-photo-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,18,28,.45) 0%, rgba(18,18,28,.08) 45%, rgba(18,18,28,.62) 100%),
    url('/img/login/side-photo.jpg')
    center / cover no-repeat;
}
.side-photo-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 40px 44px;
  animation: fadeIn .7s ease both;
}

.photo-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.photo-logo-mark {
  width: 36px; height: 36px; background: var(--red);
  border-radius: 50% 50% 50% 0;
  display: grid; place-items: center; color: #fff; font-size: 16px;
}
.photo-logo-mark i,
.mobile-logo-mark i,
.success-logo-mark i { color:#fff !important; font-size:15px; line-height:1; display:block; }

.photo-logo-name { font-family: 'DM Serif Display', serif; font-size: 21px; color: #fff; line-height: 1; }
.photo-logo-name em { color: #ffc5cf; font-style: italic; }
.photo-logo-sub { font-size: 9px; color: rgba(255,255,255,.45); letter-spacing: 1.8px; text-transform: uppercase; margin-top: 2px; }

.photo-middle { text-align: left; }
.photo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.82); font-size: 11px; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
  backdrop-filter: blur(6px);
}
.photo-title {
  font-family: 'DM Serif Display', serif;
  font-size: 50px; font-weight: 400; color: #fff;
  line-height: 1.05; letter-spacing: -.5px; margin-bottom: 16px;
}
.photo-title em { font-style: italic; color: #ffc5cf; }
.photo-subtitle {
  font-size: 14px; color: rgba(255,255,255,.65);
  font-weight: 300; line-height: 1.7; max-width: 360px; margin-bottom: 24px;
}

.act-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 110px 100px;
  gap: 8px;
}
.act-tile {
  border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .3s, box-shadow .3s;
}
.act-tile:first-child { grid-row: span 2; border-radius: 14px; }
.act-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.act-tile-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.78); transition: transform .5s;
}
.act-tile:hover .act-tile-bg { transform: scale(1.06); }
.act-tile-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%); }
.act-tile-badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); border-radius: 20px;
  padding: 3px 9px; font-size: 10px; font-weight: 600; color: #fff;
}
.act-tile-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px;
  font-size: 11.5px; font-weight: 600; color: #fff; line-height: 1.3;
}
.act-tile-label small { display: block; font-size: 10px; color: rgba(255,255,255,.6); font-weight: 400; margin-top: 1px; }

.photo-benefits { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.benefit-item { display: flex; align-items: flex-start; gap: 10px; }
.benefit-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; line-height: 1;
  /* Forcer le rendu emoji natif OS — empêche FA d'intercepter */
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
}
.benefit-text { font-size: 12.5px; color: rgba(255,255,255,.65); line-height: 1.5; font-weight: 300; }
.benefit-text strong { color: #fff; font-weight: 600; }

.photo-stats {
  display: flex; gap: 32px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
}
.photo-stat-num { font-family: 'DM Serif Display', serif; font-size: 28px; color: #fff; line-height: 1; }
.photo-stat-lbl { font-size: 11px; color: rgba(255,255,255,.45); margin-top: 3px; letter-spacing: .3px; }

/* ══ DROITE — FORMULAIRE ══ */
.side-form {
  display: flex; flex-direction: column;
  background: var(--white);
}
.form-topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 13px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.form-topbar span { font-size: 13px; color: var(--muted); }
.form-topbar a { color: var(--red); font-weight: 600; text-decoration: none; font-size: 13px; margin-left: 4px; transition: color .18s; }
.form-topbar a:hover { color: var(--red-dark); }
.form-topbar-right { font-size: 11.5px; color: var(--muted); }

.form-scroll { flex: 1; padding: 32px 48px 52px; }

/* Sections */
.section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; margin-top: 32px;
}
.section-head:first-of-type { margin-top: 0; }
.section-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--red-soft); border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif !important;
}
.section-icon i { color:#D01F3C !important; font-size:15px; line-height:1; display:block; }
.section-title { font-family: 'DM Serif Display', serif; font-size: 19px; color: var(--ink); font-weight: 400; }
.section-line { flex: 1; height: 1px; background: var(--border); }

/* Grille */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .col-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase;
}
.required-star { color: var(--red); margin-left: 2px; }

.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--ink); background: var(--white);
  outline: none; transition: border-color .18s, box-shadow .18s;
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,31,60,.08); }
.form-input::placeholder { color: #c0c0d0; }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2372728a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-hint { font-size: 11.5px; color: var(--muted); font-weight: 300; }

/* CGV */
.check-group {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: var(--off); border-radius: 10px;
  border: 1.5px solid var(--border); margin-top: 8px; cursor: pointer;
  transition: border-color .18s;
}
.check-group:hover { border-color: var(--red); }
.check-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; margin-top: 2px; flex-shrink: 0; }
.check-label { font-size: 13px; color: var(--muted); line-height: 1.55; font-weight: 300; }
.check-label a { color: var(--red); text-decoration: none; font-weight: 500; }

/* Submit */
.btn-submit {
  width: 100%; padding: 15px; background: var(--red); color: #fff; border: none;
  border-radius: 12px; font-size: 15px; font-family: 'Inter', sans-serif;
  font-weight: 700; cursor: pointer; margin-top: 24px;
  transition: background .18s, transform .15s, box-shadow .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(208,31,60,.28); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.security-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 12px; color: var(--muted);
}
.security-note i { color:#72728a !important; font-size:12px; }
#submitArrow i { color:#fff !important; font-size:14px; }

/* recaptcha */
.g-recaptcha iframe { position: relative !important; width: 304px; }
.recaptcha-wrap { margin-top: 16px; }

/* Footer légal */
.form-footer {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border); text-align: center;
}
.form-footer p { font-size: 12px; color: var(--muted); font-weight: 300; line-height: 1.75; }
.form-footer a { color: var(--red); text-decoration: none; font-weight: 500; }

/* Validation rouge */
.form-input.field-error {
  border-color: #D01F3C !important;
  box-shadow: 0 0 0 3px rgba(208,31,60,.12) !important;
}
.has-error .form-input,
.has-error input.form-input,
.has-error select.form-input {
  border-color: #D01F3C !important;
  box-shadow: 0 0 0 3px rgba(208,31,60,.13) !important;
}
.tooltip { display: none !important; }
.help-block { display: none !important; }

/* ══════════════════════════════════════════════
   OVERLAY SUCCÈS
   position:fixed sur <body> — fonctionne toujours
   ══════════════════════════════════════════════ */
.success-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(18,18,28,.60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.success-overlay.is-visible {
  display: flex;
  animation: fadeOverlay .3s ease both;
}
@keyframes fadeOverlay { from{opacity:0} to{opacity:1} }

/* La card succès — UNE SEULE définition */
.success-card {
  background: var(--white);
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
  animation: scaleIn .4s cubic-bezier(.34,1.28,.64,1) both;
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(.93) translateY(14px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.success-icon-wrap {
  width: 68px; height: 68px;
  background: var(--green-bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) .15s both;
}
@keyframes popIn { from{transform:scale(0);opacity:0} to{transform:scale(1);opacity:1} }
.success-icon-wrap svg { width: 32px; height: 32px; }

.success-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 8px;
}
.success-kicker::before,
.success-kicker::after { content:''; width:14px; height:1.5px; background:var(--green); }

.success-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px; color: var(--ink);
  line-height: 1.1; margin-bottom: 10px;
}
.success-title em { font-style:italic; color:var(--red); }

.success-text {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.7; font-weight: 300; margin-bottom: 20px;
}
.success-text strong { color: var(--ink); font-weight: 600; }

/* Étapes */
.success-next-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; text-align: left; }
.success-step {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 13px; background: var(--off);
  border-radius: 10px; border: 1px solid var(--border);
}
.success-step-num {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--red-soft); border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--red);
}
.success-step-title { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
.success-step-desc  { font-size: 11.5px; color: var(--muted); font-weight: 300; line-height: 1.5; }

/* Boutons succès */
.success-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-goto-login {
  width: 100%; padding: 13px;
  background: var(--red); color: #fff; border: none;
  border-radius: 11px; font-size: 14px;
  font-family: 'Inter', sans-serif; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
.btn-goto-login:hover { background: var(--red-dark); }
.btn-goto-home {
  width: 100%; padding: 12px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: 11px;
  font-size: 13.5px; font-family: 'Inter', sans-serif;
  font-weight: 500; cursor: pointer; transition: all .18s;
}
.btn-goto-home:hover { border-color: var(--ink); }

/* ══ ANIMATIONS ══ */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

/* ══ RESPONSIVE ≤1100px ══ */
@media (max-width: 1100px) {
  .side-photo-content { padding: 36px 32px; }
  .photo-title { font-size: 38px; }
  .photo-benefits { display: none; }
  .form-topbar { padding: 13px 36px; }
  .form-scroll { padding: 28px 36px 44px; }
}

/* ══ RESPONSIVE ≤768px ══ */
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .side-photo { display: none; }
  .mobile-logo { display: flex !important; align-items: center; gap: 9px; text-decoration: none; padding: 20px 24px 0; }
  .mobile-logo-mark { width: 30px; height: 30px; background: var(--red); border-radius: 50% 50% 50% 0; display: grid; place-items: center; color: #fff; font-size: 13px; }
  .mobile-logo-name { font-family: 'DM Serif Display', serif; font-size: 17px; color: var(--ink); line-height: 1; }
  .mobile-logo-name em { color: var(--red); font-style: italic; }
  .form-topbar { padding: 12px 24px; }
  .form-scroll { padding: 22px 24px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .col-full { grid-column: 1; }
  .success-card { padding: 28px 20px; }
  .success-title { font-size: 24px; }
  .success-overlay { padding: 16px; align-items: flex-end; }
  .success-card { border-radius: 18px 18px 0 0; max-width: 100%; }
}

/* ══ RESPONSIVE ≤480px ══ */
@media (max-width: 480px) {
  .form-topbar { padding: 11px 16px; font-size: 12px; }
  .form-scroll { padding: 18px 16px 36px; }
  .section-title { font-size: 17px; }
}