/* Ma Tenue Idéale V2 — crème, noir, rouge tomate. Typo : Bricolage Grotesque (auto-hébergée). */
@font-face { font-family: 'Brico'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --cream: #FFF3E3; --cream2: #FFE6CC; --ink: #111; --red: #FF3B1F; --red-soft: #FFD3C7; --white: #fff; --grey: #5b544c;
  --b: 3px solid var(--ink); --sh: 5px 5px 0 var(--ink); --r: 18px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.4 'Brico', system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[data-price] { white-space: nowrap; }
a { color: inherit; }

/* bandeau démo */
.demo { background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; text-align: center; padding: calc(6px + var(--sat)) 16px 6px; }

/* en-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1240px; margin: 0 auto; }
html:not(.has-demo) .top { padding-top: calc(10px + var(--sat)); }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; min-height: 48px; }
.logo-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--red); border: var(--b); border-radius: 12px; font-size: 15px; transform: rotate(-6deg); }
.acct { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; background: var(--white); border: var(--b); border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.acct-c { background: var(--red); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 13px; }
@media (max-width: 380px) { .logo-txt { display: none; } }
@media (max-width: 440px) { .logged .logo-txt { display: none; } }
.logo-txt { white-space: nowrap; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 22px; border: var(--b); border-radius: 999px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-align: center; text-decoration: none; cursor: pointer; user-select: none; transition: transform .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.btn-main { background: var(--red); color: var(--ink); box-shadow: var(--sh); min-height: 64px; width: 100%; font-size: 22px; }
.btn-main:active, .btn-dark:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn-main:disabled { opacity: .6; cursor: wait; }
.btn-line { background: var(--white); width: 100%; }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 var(--red); width: 100%; }
.btn-small { min-height: 48px; padding: 8px 18px; font-size: 16px; background: var(--white); }
@media (hover: hover) { .btn-main:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); } .btn-line:hover, .btn-small:hover { background: var(--red-soft); } }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
.link { background: none; border: 0; padding: 12px 4px; min-height: 48px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* titres */
.giant { font-weight: 800; font-size: clamp(48px, 15.5vw, 112px); line-height: .9; letter-spacing: -.045em; margin: 0; }
.mark { display: inline-block; white-space: nowrap; background: var(--red); padding: 0 .12em .06em; margin-top: .06em; border-radius: .14em; transform: rotate(-2deg); }
.big { font-weight: 800; font-size: clamp(34px, 9.5vw, 60px); line-height: .95; letter-spacing: -.04em; margin: 0 0 16px; }
.lbl { display: block; font-weight: 800; font-size: 16px; margin: 18px 0 8px; }
.tag { display: inline-block; background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.tag-red { background: var(--red); }

/* écrans */
.stage { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* --- accueil --- */
.hero { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; padding-bottom: 20px; min-height: calc(100svh - 68px); }
.has-demo .hero { min-height: calc(100svh - 98px); }
.ba { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; flex: 1; min-height: 0; max-height: 400px; }
.ba-card { position: relative; margin: 0; height: 100%; min-height: 200px; border: var(--b); border-radius: var(--r); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.ba-before { background: var(--white); transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--ink); }
.ba-after { background: var(--red-soft); transform: rotate(3deg); box-shadow: 4px 4px 0 var(--ink); }
.ba-fig { position: absolute; inset: 16px 8px 52px; }
.ba-fig svg { width: 100%; height: 100%; }
.ba-after .ba-fig svg { position: absolute; inset: 0; opacity: 0; transform: scale(.92) translateY(6px); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.ba-after .ba-fig svg.on { opacity: 1; transform: none; }
.ba-card .tag { position: relative; margin-bottom: 10px; z-index: 1; }
.ba-arrow { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; background: var(--red); color: var(--ink); border: var(--b); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); animation: slide 1.4s ease-in-out infinite; }
.ba-arrow svg { width: 34px; }
@keyframes slide { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(5px); } }
.ba-note { position: absolute; right: 0; bottom: -22px; margin: 0; font-size: 12px; font-weight: 700; color: var(--grey); }
.hero-cta { padding-top: 10px; }
.fine { font-size: 12.5px; line-height: 1.35; color: var(--grey); margin: 12px 4px 0; text-align: center; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; column-gap: 56px; row-gap: 28px; align-content: center; min-height: calc(100vh - 80px); padding-top: 0; }
  .has-demo .hero { min-height: calc(100vh - 110px); }
  .giant { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(72px, 7.6vw, 118px); }
  .ba { grid-column: 2; grid-row: 1 / span 2; height: min(560px, 68vh); max-height: none; }
  .hero-cta { grid-column: 1; grid-row: 2; align-self: start; max-width: 520px; padding-top: 0; }
  .fine { text-align: left; }
}

/* --- choix du look --- */
body[data-view]:not([data-view=s-hero]) .sec { display: none; }
.ok-big { font-weight: 800; font-size: 34px; letter-spacing: -.035em; line-height: 1; margin: 0 0 12px; }
#s-edit { padding-bottom: calc(110px + var(--sab)); }
.edit-photo { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; }
.edit-photo img { width: 84px; height: 112px; object-fit: cover; border: var(--b); border-radius: 14px; transform: rotate(-3deg); background: var(--white); }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { position: relative; display: block; padding: 0; border: var(--b); border-radius: 16px; overflow: hidden; background: var(--white); cursor: pointer; aspect-ratio: 3 / 3.4; text-align: left; transition: transform .15s; }
.chip .ph { position: absolute; inset: 0; }
.chip .ph img { width: 100%; height: 100%; object-fit: cover; }
.chip .lb { position: absolute; left: 8px; bottom: 8px; right: 8px; width: fit-content; max-width: calc(100% - 16px); background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 16px; line-height: 1.2; }
.chip[aria-checked=true] { box-shadow: 0 0 0 4px var(--red), 5px 5px 0 4px var(--ink); transform: rotate(-1.5deg); }
.chip[aria-checked=true] .lb { background: var(--red); }
.chip[aria-checked=true]::after { content: ''; position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; border: 2.5px solid var(--ink); }
textarea, input[type=email], input[type=password], input[type=text] { width: 100%; font-size: 17px; padding: 14px 16px; border: var(--b); border-radius: 14px; background: var(--white); min-height: 54px; outline: none; }
textarea { resize: vertical; line-height: 1.35; }
textarea:focus, input:focus { box-shadow: 0 0 0 3px var(--red); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(14px + var(--sab)); background: linear-gradient(to top, var(--cream) 70%, rgba(255, 243, 227, 0)); }
.bar .btn { max-width: 560px; margin: 0 auto; display: flex; }
@media (min-width: 700px) { .presets { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) {
  .edit { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-top: 10px; }
  .edit-photo { flex-direction: column; align-items: flex-start; }
  .edit-photo img { width: 240px; height: 320px; }
}

/* --- attente --- */
.wait { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 0 40px; min-height: calc(100svh - 110px); justify-content: center; }
.wait-frame { position: relative; width: min(72vw, 330px); aspect-ratio: 3 / 4; border: var(--b); border-radius: 22px; overflow: hidden; box-shadow: var(--sh); background: var(--white); }
.wait-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.scan { position: absolute; left: 0; right: 0; height: 26%; top: -26%; background: linear-gradient(to bottom, rgba(255, 59, 31, 0), rgba(255, 59, 31, .55)); border-bottom: 4px solid var(--red); animation: scan 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes scan { to { top: 100%; } }
.hanger { position: relative; z-index: 2; margin-bottom: -26px; width: 92px; color: var(--ink); background: var(--cream); border: var(--b); border-radius: 999px; padding: 4px 12px 2px; animation: swing 1.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes swing { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.wait-msg { font-weight: 800; font-size: clamp(30px, 8.5vw, 52px); line-height: 1; letter-spacing: -.035em; margin: 28px 0 10px; min-height: 2em; transition: opacity .3s; }
.wait-msg.fade { opacity: 0; }
.wait-time { margin: 0; font-weight: 600; color: var(--grey); }

/* --- résultat --- */
.result { padding: 8px 0 40px; }
.res-frame { position: relative; margin: 0 auto 22px; width: min(100%, 420px); border: var(--b); border-radius: 22px; overflow: hidden; box-shadow: var(--sh); background: var(--white); }
.res-frame img { width: 100%; max-height: 50svh; object-fit: cover; }
@media (min-width: 900px) { .res-frame img { max-height: 72vh; } }
.res-frame .tag { position: absolute; left: 10px; top: 10px; }
.res-txt { max-width: 520px; margin: 0 auto; }
.pay-form { display: flex; flex-direction: column; }
.pay-form .lbl { margin-top: 0; }
.pay-form input { margin-bottom: 14px; }
.honest { font-size: 15px; line-height: 1.4; margin: 14px 2px 0; color: var(--ink); font-weight: 600; }
.sim { font-size: 15px; font-weight: 700; color: var(--grey); margin: 10px 2px 4px; }
.res-actions { display: grid; gap: 12px; margin-top: 14px; }
.card { background: var(--white); border: var(--b); border-radius: var(--r); padding: 18px; margin-top: 24px; box-shadow: 5px 5px 0 var(--red); }
.card-t { font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0 0 12px; }
.row2 { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.row2 .btn { width: auto; flex: 1; }
.msg { font-weight: 700; margin: 10px 0 0; min-height: 0; }
@media (min-width: 900px) {
  .result { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 20px; }
  .res-frame { margin: 0 0 0 auto; }
  .res-txt { margin: 0; }
}

/* --- sous la ligne --- */
.sec { max-width: 1240px; margin: 0 auto; padding: 56px 16px; }
.sub { margin: -6px 0 18px; font-weight: 700; color: var(--grey); }
.how { border-top: var(--b); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 18px; background: var(--white); border: var(--b); border-radius: var(--r); padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink); }
.steps li:nth-child(2) { background: var(--red); }
.steps li:nth-child(3) { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--red); }
.num { font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.05em; min-width: 46px; }
.st { font-weight: 800; font-size: clamp(30px, 8.5vw, 46px); line-height: 1; letter-spacing: -.035em; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } .steps li { padding: 24px; } }
.lookbook { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.look { position: relative; padding: 0; border: var(--b); border-radius: 16px; overflow: hidden; background: var(--white); aspect-ratio: 3 / 4; cursor: pointer; transition: transform .15s; }
.look:nth-child(odd) { transform: rotate(-1.2deg); } .look:nth-child(even) { transform: rotate(1.2deg); }
@media (hover: hover) { .look:hover { transform: rotate(0) scale(1.03); } }
.look img { width: 100%; height: 100%; object-fit: cover; }
.look .lb { position: absolute; left: 8px; bottom: 8px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 16px; max-width: calc(100% - 16px); }
@media (min-width: 700px) { .lookbook { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.faq details { border: var(--b); border-radius: 16px; background: var(--white); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 21px; letter-spacing: -.02em; padding: 14px 54px 14px 18px; position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; background: var(--red); border: 2.5px solid var(--ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 17px; }
.faq { max-width: 820px; }

/* pied */
.foot { background: var(--ink); color: var(--cream); padding: 40px 16px calc(32px + var(--sab)); text-align: center; }
.foot-logo { font-weight: 800; font-size: 32px; letter-spacing: -.04em; margin: 0 0 16px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; max-width: 760px; margin: 0 auto; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 700; text-underline-offset: 4px; }
.foot-note { font-size: 13px; opacity: .75; margin: 14px 0 0; }

/* feuilles */
.veil { position: fixed; inset: 0; background: rgba(17, 17, 17, .55); z-index: 40; }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; background: var(--cream); border-top: var(--b); border-radius: 26px 26px 0 0; padding: 26px 18px calc(24px + var(--sab)); animation: up .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; transform: translate(-50%, -50%); border: var(--b); border-radius: 26px; box-shadow: 8px 8px 0 var(--ink); padding: 32px 30px; animation: none; } }
.sheet .big { padding-right: 52px; font-size: clamp(34px, 9vw, 46px); }
.x { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: var(--b); background: var(--white); cursor: pointer; }
.x::before, .x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 3px; margin: -1.5px 0 0 -10px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.lead { font-size: 18px; font-weight: 600; margin: 0 0 18px; }
.pane { display: flex; flex-direction: column; }
.pane > .btn-main { margin-top: 18px; }
.acct-info { margin: 0 0 14px; display: grid; gap: 8px; }
.acct-info div { display: flex; justify-content: space-between; gap: 14px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.acct-info .stack { display: block; }
.acct-info .stack dd { text-align: left; margin-top: 2px; }
.acct-info dt { font-weight: 600; color: var(--grey); flex: none; }
.acct-info dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.note-red { background: var(--red-soft); border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 800; margin: 0 0 14px; }
.acct-btns { display: grid; gap: 10px; margin-top: 6px; }
.btn-cancel { border-color: var(--red); color: #B3200A; box-shadow: inset 0 0 0 2px var(--red); }
.del { background: none; border: 0; color: #B3200A; font-weight: 700; font-size: 14px; text-decoration: underline; margin: 18px auto 0; min-height: 48px; padding: 0 10px; cursor: pointer; }
.subjects { display: flex; flex-wrap: wrap; gap: 8px; }
.subjects button { min-height: 48px; padding: 0 18px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 800; cursor: pointer; }
.subjects button[aria-checked=true] { background: var(--red); }
#pLogin .link, #pContact .link { align-self: flex-start; }

/* toast */
.toast { position: fixed; left: 16px; right: 16px; top: calc(12px + var(--sat)); z-index: 60; max-width: 520px; margin: 0 auto; background: var(--ink); color: var(--cream); border-radius: 16px; padding: 14px 18px; font-weight: 700; box-shadow: 4px 4px 0 var(--red); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
