/* L'entrée dans Revnchi (v276) : bienvenue, présentation et questionnaire en nuit étoilée, réponses à emoji */
.en-screen{background:#26131c!important}
.en{--en-serif:'Fraunces',Didot,"Bodoni 72",Georgia,serif;position:relative;min-height:var(--app-h,100dvh);padding:calc(16px + env(safe-area-inset-top,0px)) 22px calc(24px + env(safe-area-inset-bottom,0px));background:radial-gradient(ellipse 130% 60% at 50% 0%,#5a2d36 0%,#3b1c27 38%,#26131c 100%);color:#fbefe3;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box}
.en>*{position:relative;z-index:1}
.en-stars{position:absolute!important;inset:0;z-index:0!important;pointer-events:none}
.en-stars i{position:absolute;width:2px;height:2px;border-radius:50%;background:#f6dcc0;opacity:.4;animation:enTwinkle 3.6s ease-in-out infinite;animation-delay:var(--t)}
.en-stars i.is-big{width:3px;height:3px;box-shadow:0 0 8px 2px #f1c99d66}
@keyframes enTwinkle{50%{opacity:.08}}
.en-kicker{margin:0 0 10px;font:700 11px/1.2 var(--sans);letter-spacing:.22em;text-transform:uppercase;color:#e8b99a}
.en h1,.en h2{margin:0;font-weight:400;font-family:var(--en-serif);color:#fff3e6;letter-spacing:-.01em}
.en-lead{margin:12px 0 0;font-size:15px;line-height:1.55;color:#e9cbb8}
.en-cta{width:100%;min-height:56px;border:0;border-radius:999px;background:linear-gradient(135deg,#f5d3bc,#f8e6d3);font:700 16px/1 var(--sans);color:#4a1f1f;box-shadow:0 12px 30px #0000004d;cursor:pointer}
.en-cta:active{transform:scale(.985)}
.en-link{margin-top:16px;border:0;background:none;font:600 14px/1.3 var(--sans);color:#f6dcc9;cursor:pointer}
.en-link u{text-underline-offset:3px}
.en-link-sm{margin-top:10px;font-size:12.5px;color:#c9a99b}
.en-foot{margin-top:auto;padding-top:22px;display:flex;flex-direction:column;align-items:center}

/* bienvenue : la photo, un voile de nuit, le titre */
.en-welcome{padding:0;justify-content:flex-end}
.en-photo{position:absolute!important;inset:0 0 28% 0;z-index:0!important;background-size:cover;background-position:center 20%}
.en-veil{position:absolute!important;inset:0;z-index:0!important;background:linear-gradient(180deg,#26131c00 0%,#26131c33 30%,#3b1c27cc 58%,#26131c 76%)}
.en-welcome-body{padding:0 26px calc(30px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;text-align:center}
.en-logo{width:min(46%,180px);height:auto;margin:0 0 18px;opacity:.96}
.en-welcome h1{font-size:clamp(32px,9.4vw,40px);line-height:1.06}
.en-welcome .en-lead{max-width:330px;margin:14px 0 26px}

/* présentation : une arche, un petit écran d'aperçu */
.en-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.en-logo-sm{height:22px;width:auto;opacity:.9}
.en-skip{border:0;background:none;font:600 14px/1 var(--sans);color:#c9a99b;cursor:pointer;padding:8px 0}
.en-arch{display:grid;place-items:center;height:min(48vh,380px);margin:0 -4px 26px;padding-top:28px;border-radius:190px 190px 28px 28px;background:linear-gradient(180deg,#ffffff08,#f1c99d33);box-shadow:inset 0 0 0 1px #ffffff14}
.en-phone{width:min(74%,280px);min-height:76%;padding:16px 18px;border-radius:28px;background:#fbefe4;color:#3a2028;box-shadow:0 18px 40px #0000004d;box-sizing:border-box;text-align:left}
.en-notch{display:block;width:44px;height:5px;margin:0 auto 14px;border-radius:3px;background:#e3cfc3}
.en-card-top{margin:0 0 4px;font:700 10px/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#9b6a55}
.en-phone h3{margin:0 0 12px;font:400 19px/1.2 var(--en-serif);color:#3a2028}
.en-card-row{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:9px 11px;border-radius:14px;background:#fff;font:500 13px/1.3 var(--sans);color:#3a2028}
.en-card-row span{font-size:18px}
.en-card-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.en-card-chips span{padding:6px 10px;border-radius:999px;background:#3a2028;color:#fff3e6;font:600 12px/1 var(--sans)}
.en-slides h2{font-size:clamp(30px,8.6vw,36px);line-height:1.08}
.en-dots{display:flex;gap:7px;margin-bottom:18px}
.en-dots i{width:7px;height:7px;border-radius:50%;background:#ffffff33}
.en-dots i.is-on{background:#fff3e6}

/* bienvenue avant le questionnaire */
.en-intro{justify-content:flex-start}
.en-intro-moon{width:140px;height:140px;margin:22px auto 28px;filter:drop-shadow(0 0 40px #f1c99d66)}
.en-intro-moon img{width:100%;height:100%;object-fit:contain}
.en-intro h2{font-size:34px;line-height:1.1}
.en-promises{margin:24px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.en-promises li{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;background:#ffffff0d;box-shadow:inset 0 0 0 1px #ffffff1c;font-size:14px;line-height:1.4;color:#f6dcc9}
.en-promises span{font-size:22px}

/* questionnaire */
.en-q{padding-top:calc(10px + env(safe-area-inset-top,0px))}
.en-qtop{display:flex;align-items:center;gap:14px;margin:0 0 26px}
.en-back{width:40px;height:40px;flex:0 0 40px;border:0;border-radius:50%;background:#ffffff12;font:400 26px/1 var(--sans);color:#fbefe3;cursor:pointer}
.en-progress{flex:1;height:4px;border-radius:4px;background:#ffffff1f;overflow:hidden}
.en-progress i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#c9765f,#f1c99d);transition:width .3s}
.en-count{font:600 13px/1 var(--sans);color:#c9a99b;font-variant-numeric:tabular-nums}
.en-qtitle{font-size:clamp(28px,8vw,34px)!important;line-height:1.1!important}
.en-q .en-lead{margin-bottom:22px}
#screen-onboarding .en-list{display:flex;flex-direction:column;gap:10px}
#screen-onboarding .en-chips{display:flex;flex-wrap:wrap;gap:9px}
#screen-onboarding .en-opt{display:flex;align-items:center;gap:14px;width:100%;min-height:62px;margin:0;padding:12px 18px;border:0;border-radius:20px;background:#ffffff0f;box-shadow:inset 0 0 0 1px #ffffff21;text-align:left;color:#fbefe3;cursor:pointer;transition:background .2s,box-shadow .2s,transform .12s}
#screen-onboarding .en-chips .en-opt{width:auto;min-height:48px;padding:9px 16px 9px 12px;border-radius:999px;gap:9px}
#screen-onboarding .en-opt:active{transform:scale(.98)}
.en-emoji{font-size:26px;line-height:1;flex:0 0 auto}
.en-chips .en-emoji{font-size:21px}
.en-opt-label{flex:1;font:600 15.5px/1.3 var(--sans)}
.en-chips .en-opt-label{font-size:14.5px}
.en-check{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font:700 13px/1 var(--sans);color:transparent;box-shadow:inset 0 0 0 1.5px #ffffff33}
#screen-onboarding .en-opt.selected{background:#f8e6d6;box-shadow:0 8px 22px #0000004d;color:#3a2028}
#screen-onboarding .en-opt.selected .en-check{background:#9b3a2f;color:#fff3e6;box-shadow:none}
.en-fields{display:flex;flex-direction:column;gap:6px}
.en-label{display:block;margin:14px 0 6px;font:600 13.5px/1.3 var(--sans);color:#f6dcc9}
.en-label small{font-weight:400;color:#c9a99b}
.en-input{width:100%;min-height:54px;padding:0 18px;border:0;border-radius:18px;background:#ffffff12;box-shadow:inset 0 0 0 1px #ffffff26;font:500 16px/1 var(--sans);color:#fff3e6;box-sizing:border-box;color-scheme:dark;-webkit-appearance:none;appearance:none}
.en-input::placeholder{color:#c9a99b}
select.en-input{padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:18px}
select.en-input option{color:#3a2028}
#nickname.en-input{min-height:62px;font-size:20px}
.en-note{margin:12px 2px 0;font-size:12px;line-height:1.5;color:#c9a99b}
.en-pills{display:flex;flex-wrap:wrap;gap:9px}
.en-pill{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px 0 14px;border:0;border-radius:999px;background:#ffffff0f;box-shadow:inset 0 0 0 1px #ffffff21;font:600 14.5px/1 var(--sans);color:#fbefe3;cursor:pointer}
.en-pill span{font-size:20px}
.en-pill.is-on{background:#f8e6d6;color:#3a2028;box-shadow:none}
.en-foot-q{position:sticky;bottom:0;padding-bottom:4px;background:linear-gradient(180deg,#26131c00,#26131c 30%)}

/* on neutralise l'ancien style des options (dégradé crème, voile, marge à droite) */
#screen-onboarding .en-opt{border:0!important;overflow:visible;isolation:auto;background-image:none!important;padding-right:18px!important}
#screen-onboarding .en-chips .en-opt{padding-right:16px!important}
#screen-onboarding .en-opt:before,#screen-onboarding .en-opt:after{content:none!important;display:none!important}
#screen-onboarding .en-opt.selected{border:0!important;transform:none}

/* v276 (retours) : logo en haut au centre, titres plus fins */
.en-logo-top{position:absolute!important;top:calc(22px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(40%,150px);margin:0;filter:drop-shadow(0 2px 10px #00000055)}
.en-welcome h1{font-size:clamp(25px,7vw,29px)!important;font-weight:300!important;line-height:1.18!important;letter-spacing:0!important}
.en-slides h2,.en-intro h2{font-size:clamp(24px,6.8vw,28px)!important;font-weight:300!important;line-height:1.18!important;letter-spacing:0!important}
.en-qtitle{font-size:clamp(24px,6.8vw,28px)!important;font-weight:350!important;line-height:1.18!important}
.en-top{display:grid;grid-template-columns:44px 1fr 64px;align-items:center}
.en-top .en-logo-sm{justify-self:center;height:24px}
.en-top .en-skip{justify-self:end}
.en-slides{touch-action:pan-y}
.en-arch,.en-slides h2,.en-slides .en-lead,.en-slides .en-kicker{animation:enIn .35s ease both}
@keyframes enIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}

/* « Créer mon compte » : nuit étoilée, formulaire en verre */
#screen-account{background:#26131c!important}
.en-account{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.en-photo-sm{inset:0 0 56% 0!important;background-position:center 18%}
.en-account .en-veil{background:linear-gradient(180deg,#26131c55 0%,#3b1c27d9 26%,#26131c 44%)}
.en-account-head{margin-top:min(22vh,170px);text-align:center}
.en-account-head h1{font-size:clamp(26px,7.4vw,30px)!important;font-weight:300!important;line-height:1.15}
.en-account-head .en-lead{max-width:320px;margin:10px auto 0;font-size:14px}
.en-account-card{margin-top:22px;padding:18px;border-radius:26px;background:#ffffff0d;box-shadow:inset 0 0 0 1px #ffffff1f;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.en-account-card .account-content{padding:0!important;margin:0!important;background:none!important}
.en-account-card [role=group]{background:#ffffff0d!important;border:1px solid #ffffff1f!important;margin-bottom:18px!important}
.en-account-card [data-auth-mode]{font:600 14px var(--sans)!important;padding:12px 8px!important}
.en-account-card [data-auth-mode][aria-pressed=true]{background:#f8e6d6!important;color:#3a2028!important;box-shadow:none!important}
.en-account-card [data-auth-mode][aria-pressed=false]{color:#f6dcc9!important}
.en-account-card label{color:#f6dcc9!important;font:600 13px/1.3 var(--sans)!important}
.en-account-card input[type=email],.en-account-card input[type=password]{min-height:52px;border:0!important;border-radius:16px!important;background:#ffffff12!important;box-shadow:inset 0 0 0 1px #ffffff26;color:#fff3e6!important;color-scheme:dark}
.en-account-card input[type=checkbox]{accent-color:#f1c99d;width:18px;height:18px}
.en-account-card label:has(input[type=checkbox]){font:400 12px/1.5 var(--sans)!important;color:#d9b8a6!important}
.en-account-card a{color:#f2a58c!important}
.en-account-card .btn-primary{min-height:54px;border-radius:999px!important;background:linear-gradient(135deg,#f5d3bc,#f8e6d3)!important;color:#4a1f1f!important;font:700 15.5px/1 var(--sans)!important;box-shadow:0 12px 30px #0000004d!important;border:0!important}
.en-account-card p{color:#c9a99b!important}
.en-account-card #revnchi-auth-message{color:#f2a58c!important}
.en-account-card button:not([data-auth-mode]):not(.btn-primary){color:#f6dcc9!important}
.en-account-trust{display:flex;align-items:center;justify-content:center;gap:8px;margin:18px 0 0;font-size:12.5px;line-height:1.4;color:#c9a99b;text-align:center}
.en-account .en-back{width:40px;height:40px}
.en-phone h3{font-weight:400!important}

/* v276 (retours 2) : logo à gauche, un peu plus petit, sur les 4 premières pages ; titre de bienvenue plus petit */
.en-logo-top{left:22px!important;transform:none!important;width:auto!important;height:20px!important}
.en-top{grid-template-columns:auto 1fr auto!important}
.en-slides .en-top>span:first-child{display:none}
.en-slides .en-top .en-logo-sm{justify-self:start!important;height:20px!important}
.en-account .en-top{grid-template-columns:auto auto 1fr!important;gap:12px}
.en-account .en-top .en-logo-sm{justify-self:start!important;height:20px!important}
.en-welcome h1{font-size:clamp(21px,5.8vw,24px)!important}
.en .en-logo-top,.en .en-top .en-logo-sm{height:16px!important;width:auto!important}

/* v276 (retours 3) : logo au-dessus de « Bienvenue » sur la première page ; dégradé sans ligne visible */
.en .en-logo-welcome{position:static!important;transform:none!important;width:min(40%,150px)!important;height:auto!important;margin:0 0 18px!important;filter:drop-shadow(0 2px 10px #00000055)}
.en-welcome .en-photo{inset:0!important;-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 82%);mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 82%)}
.en-welcome .en-veil{background:linear-gradient(180deg,#26131c00 0%,#26131c1a 25%,#2d1620 48%,#26131ccc 62%,#26131c 78%)!important;background:linear-gradient(180deg,rgba(38,19,28,0) 0%,rgba(38,19,28,.08) 22%,rgba(45,22,32,.35) 40%,rgba(42,21,30,.7) 55%,rgba(38,19,28,.92) 68%,#26131c 80%)!important}
.en-welcome{background:#26131c!important}
/* v278 : dans Safari, le haut de l'entrée se fond dans la barre de nuit */
.en-welcome .en-photo,.en-account .en-photo{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 90px,#000 45%,transparent 82%)!important;mask-image:linear-gradient(180deg,transparent 0,#000 90px,#000 45%,transparent 82%)!important}
.en-account .en-photo{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 90px,#000 40%,transparent 70%)!important;mask-image:linear-gradient(180deg,transparent 0,#000 90px,#000 40%,transparent 70%)!important}
.en-slides,.en-intro,.en-q{background:radial-gradient(ellipse 130% 60% at 50% 12%,#5a2d36 0%,#3b1c27 40%,#26131c 100%),#26131c!important}
/* v280 : dans Safari, la photo de bienvenue « s'incruste » sous l'heure : une fine bande fixe de la couleur du haut de la photo
   donne à Safari la teinte de sa barre du haut (au lieu d'une barre prune) */
.en-welcome .en-photo{-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 82%)!important;mask-image:linear-gradient(180deg,#000 0%,#000 45%,transparent 82%)!important}
.en-topstrip{display:none}
html.is-web #screen-landing.active .en-topstrip{display:block;position:fixed!important;left:0;right:0;top:0;height:6px;z-index:5!important;background:#955c2a;pointer-events:none}
/* v280 : même fondu doux vers la barre du haut sur toutes les pages d'entrée (pas de bande nette) */
.en-topstrip{display:none!important}
.en-welcome .en-photo{-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 90px,#000 45%,transparent 82%)!important;mask-image:linear-gradient(180deg,transparent 0,#000 90px,#000 45%,transparent 82%)!important}
.en-slides,.en-intro,.en-q{background:linear-gradient(180deg,#26131c 0,#26131c00 140px),radial-gradient(ellipse 130% 60% at 50% 18%,#5a2d36 0%,#3b1c27 42%,#26131c 100%),#26131c!important}

/* v312 : petits écrans (Android surtout) — tout tient à l'écran, et le bouton du bas reste toujours visible */
.en-foot{position:sticky;bottom:0;z-index:2;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,#26131c00 0,#26131ccc 35%,#26131c 70%)}
@media (max-height:740px){
  .en-intro-moon{width:96px;height:96px;margin:6px auto 16px}
  .en-intro h2,.en-slides h2{font-size:clamp(22px,6.2vw,26px)!important}
  .en-lead{font-size:14px;line-height:1.5}
  .en{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
}
