/* =============================================================
   Yalla — « la rue du quartier ».
   La page reprend le décor du film : une rue de Niamey dessinée,
   des véhicules qui passent, et trois boutiques à auvent rayé,
   une par service. Rouge brique, sable, encre.
   ============================================================= */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); }

.yl {
  --coral: #C8412C; --coral-d: #A33220; --coral-soft: #FBE9E4; --sand: #F3CF8E; --sand-d: #E7B866; --ground: #F6F1E7; --road: #E8BE7A;
  --ink: #1F1A18; --muted: #6A5F5B; --line: #E8E2D5; --rose: #EDB3A8; --band: #2E2624;
  --bg: var(--ground); --accent: var(--coral); --on-accent: #fff;
  --head: 'Plus Jakarta Sans', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
  --pad: clamp(18px, 5vw, 70px);
  font-family: var(--body); font-size: 1.06rem; background: var(--ground);
}
.yl h1, .yl h2, .yl h3 { font-family: var(--head); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.yl h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.yl h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.02em; }
.yl p { color: var(--muted); }
.yl-tag { display: inline-block; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral) !important; background: var(--coral-soft); padding: 6px 14px; border-radius: 100px; }

/* --- Barre --- */
.yl-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 26px; padding: 12px var(--pad); background: rgba(246,241,231,.94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.yl-brand { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.yl-top nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--head); font-weight: 700; font-size: .95rem; }
.yl-top nav a:hover { color: var(--coral); }
.yl-btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; background: var(--coral); color: #fff; font-family: var(--head); font-weight: 700; padding: 11px 24px; border-radius: 100px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.yl-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.yl-btn-lg { padding: 15px 32px; font-size: 1.12rem; }
.yl-link { font-family: var(--head); font-weight: 700; border-bottom: 2px solid var(--coral); padding-bottom: 2px; }

/* --- La rue --- */
.yl-hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 0; overflow: hidden; }
.yl-hero-text { padding: 0 var(--pad); max-width: 1100px; position: relative; z-index: 2; }
.yl-hero h1 { font-size: clamp(2.6rem, 8vw, 6.8rem); margin: 22px 0 22px; }
.yl-hero h1 em { font-style: normal; color: var(--coral); }
.yl-lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); max-width: 40em; }
.yl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 30px; }
.yl-street { position: relative; height: clamp(230px, 30vw, 400px); margin-top: clamp(20px, 3vw, 40px); }
.yl-sun { position: absolute; right: 12%; top: 0; width: clamp(80px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; background: var(--sand); }
.yl-skyline { position: absolute; left: 0; right: 0; bottom: 30%; display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 1.4vw, 22px); height: 62%; }
.yl-skyline i { position: relative; flex: 0 1 12%; border-radius: 6px 6px 0 0; background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 9px, transparent 10px); background-size: 46px 56px; background-position: 50% 26px; }
/* créneaux en haut des maisons, comme dans le film */
.yl-skyline i::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: repeating-linear-gradient(90deg, currentColor 0 14px, transparent 14px 26px); }
.yl-skyline .b1 { height: 62%; background-color: #E7D9BB; color: #E7D9BB; } .yl-skyline .b2 { height: 86%; background-color: var(--sand-d); color: var(--sand-d); }
.yl-skyline .b3 { height: 70%; background-color: var(--rose); color: var(--rose); } .yl-skyline .b4 { height: 96%; background-color: #E3C9A2; color: #E3C9A2; }
.yl-skyline .b5 { height: 58%; background-color: var(--rose); color: var(--rose); } .yl-skyline .b6 { height: 82%; background-color: var(--sand-d); color: var(--sand-d); }
.yl-skyline .b7 { height: 66%; background-color: #E7D9BB; color: #E7D9BB; } .yl-skyline .b8 { height: 76%; background-color: #E3C9A2; color: #E3C9A2; }
.yl-skyline .shop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 34%; height: 18px; background: repeating-linear-gradient(90deg, var(--coral) 0 16px, #fff 16px 32px); border-radius: 0 0 9px 9px; }
.yl-road { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--road); border-top: 6px solid var(--ink); }
.yl-road::before { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 5px; background: repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 92px); opacity: .8; }
.yl-car { position: absolute; bottom: 36%; width: clamp(70px, 9vw, 130px); will-change: transform; }
.yl-car svg { width: 100%; }
.yl-car.moto { width: clamp(50px, 6vw, 90px); animation: yl-go 9s linear infinite; }
.yl-car.taxi { animation: yl-go 13s linear -4s infinite; bottom: 8%; }
.yl-car.berline { animation: yl-back 16s linear -7s infinite; bottom: 22%; }
.yl-car.berline svg { transform: scaleX(-1); }
@keyframes yl-go { from { transform: translateX(-20vw); } to { transform: translateX(110vw); } }
@keyframes yl-back { from { transform: translateX(110vw); } to { transform: translateX(-20vw); } }

/* --- Film --- */
.yl-film { background: var(--band); padding: clamp(50px, 7vw, 90px) var(--pad); text-align: center; }
.yl-film h2 { color: var(--ground); margin-bottom: 30px; }
.yl-video { width: min(1040px, 100%); margin: 0 auto; border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 10px 10px 0 var(--coral); }
.yl-video figcaption { font-size: .82rem; color: var(--muted); padding: 12px 16px; text-align: center; }
.yl-video.small { box-shadow: 8px 8px 0 var(--sand-d); }

/* --- Trois enseignes --- */
.yl-shops { padding: clamp(60px, 8vw, 110px) var(--pad) 0; }
.yl-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 70px); }
.yl-head h2 { margin: 16px 0 12px; }
.yl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 40px); align-items: end; border-bottom: 6px solid var(--ink); }
.yl-shop { position: relative; background: #fff; border: 3px solid var(--ink); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 0 clamp(18px, 2.2vw, 30px) 110px; }
.yl-shop:nth-child(2) { background: var(--coral-soft); }
.yl-shop:nth-child(3) { background: #FCF1DA; }
.yl-awning { margin: 0 calc(-1 * clamp(18px, 2.2vw, 30px) - 12px); height: 46px; background: repeating-linear-gradient(90deg, var(--coral) 0 34px, #fff 34px 68px); border: 3px solid var(--ink); border-radius: 10px 10px 22px 22px; transform: translateY(-14px); box-shadow: 0 10px 0 rgba(31,26,24,.08); }
.yl-sign { display: inline-block; background: var(--ink); color: var(--sand) !important; font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; padding: 6px 18px; border-radius: 8px; margin: 6px 0 16px; }
.yl-shop h3 { margin-bottom: 14px; }
.yl-shop li { position: relative; padding: 10px 0 10px 26px; border-top: 1px dashed rgba(31,26,24,.25); font-size: .98rem; }
.yl-shop li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.yl-door { position: absolute; left: 50%; bottom: 0; width: 74px; height: 92px; margin-left: -37px; background: var(--coral-d); border: 3px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.yl-door::after { content: ""; position: absolute; right: 10px; top: 46px; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }

/* --- Les écrans --- */
.yl-screens { padding: clamp(60px, 8vw, 110px) var(--pad); }
.yl-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.yl-tabs button { font-family: var(--head); font-weight: 700; padding: 11px 22px; border-radius: 100px; background: #fff; border: 2px solid var(--ink); transition: all .15s; }
.yl-tabs button:hover { background: var(--coral-soft); }
.yl-tabs button[aria-selected="true"] { background: var(--ink); color: var(--sand); box-shadow: 4px 4px 0 var(--coral); }
.yl-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 70px); align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: clamp(22px, 4vw, 54px); animation: yl-pop .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes yl-pop { from { opacity: 0; transform: translateY(18px); } }
.yl-panel-text h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.yl-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); align-items: start; }
.yl-shots.two { grid-template-columns: repeat(2, 1fr); max-width: 520px; justify-self: center; }
.yl-shots.wide { grid-template-columns: 1fr; }
.yl-shots img { border-radius: clamp(12px, 2vw, 24px); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--sand-d); width: 100%; }
.yl-shots:not(.wide) img:nth-child(2) { margin-top: 30px; }
.yl-shots.wide img { border-radius: 12px; }
.yl-fine { margin-top: 16px; font-size: .86rem; }

/* --- Mode d'emploi --- */
.yl-how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 80px); align-items: center; padding: clamp(60px, 8vw, 110px) var(--pad); background: var(--sand); border-block: 3px solid var(--ink); }
.yl-how h2 { margin: 16px 0 26px; }
.yl-steps { counter-reset: s; display: grid; gap: 10px; }
.yl-steps li { counter-increment: s; display: flex; align-items: center; gap: 16px; background: #fff; border: 2px solid var(--ink); border-radius: 100px; padding: 8px 20px 8px 8px; font-family: var(--head); font-weight: 700; }
.yl-steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; }

/* --- Démonstration --- */
.yl-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 80px); padding: clamp(60px, 8vw, 110px) var(--pad); }
.yl-demo h2 { margin: 16px 0 16px; }
.yl-status { margin-top: 28px; background: var(--coral-soft); border-left: 6px solid var(--coral); border-radius: 0 12px 12px 0; padding: 18px 22px; }
.yl-status strong { font-family: var(--head); display: block; margin-bottom: 4px; }
.yl-status p { font-size: .96rem; }
/* le ticket : bord crénelé comme un reçu de course */
.yl-form { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 10px 10px 0 var(--sand-d); position: relative; }
.yl-form::before, .yl-form::after { content: ""; position: absolute; top: 96px; width: 26px; height: 26px; border-radius: 50%; background: var(--ground); border: 3px solid var(--ink); }
.yl-form::before { left: -15px; } .yl-form::after { right: -15px; }
.yl-form-title { font-family: var(--head); font-weight: 800; font-size: 1.5rem; color: var(--ink) !important; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 3px dashed var(--ink); line-height: 1.15; }
.yl-form-title span { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin-top: 6px; }
.yl-form .field { margin-bottom: 16px; }
.yl-form label { display: block; font-family: var(--head); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.yl-form .req { color: var(--coral); }
.yl-form input:not([type=checkbox]), .yl-form textarea { width: 100%; border: 2px solid var(--ink); border-radius: 12px; background: var(--ground); padding: 12px 14px; font-size: 1rem; transition: box-shadow .15s, background .15s; }
.yl-form textarea { min-height: 110px; resize: vertical; }
.yl-form input:focus, .yl-form textarea:focus { outline: 0; background: #fff; box-shadow: 4px 4px 0 var(--coral); }
.yl-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yl-form .checkbox { display: flex; gap: 12px; align-items: flex-start; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--muted); margin: 4px 0 22px; }
.yl-form .checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--coral); flex: none; }
.yl-form .checkbox a { text-decoration: underline; }
.yl-form .btn-submit { width: 100%; background: var(--coral); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.12rem; padding: 15px; border-radius: 100px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.yl-form .btn-submit:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

/* --- Questions --- */
.yl-faq { padding: 0 var(--pad) clamp(60px, 8vw, 110px); max-width: 980px; }
.yl-faq h2 { margin-bottom: 26px; }
.yl-faq details { background: #fff; border: 2px solid var(--ink); border-radius: 16px; margin-bottom: 12px; }
.yl-faq details[open] { box-shadow: 5px 5px 0 var(--coral); }
.yl-faq summary { list-style: none; position: relative; padding: 18px 60px 18px 22px; font-family: var(--head); font-weight: 700; font-size: 1.12rem; }
.yl-faq summary::-webkit-details-marker { display: none; }
.yl-faq summary::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--coral); font-size: 1.3rem; transition: transform .2s; }
.yl-faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.yl-faq details p { padding: 0 22px 20px; }

/* --- Pied --- */
.yl-foot { background: var(--band); color: var(--ground); }
.yl-foot-road { height: 26px; background: var(--road); border-block: 4px solid var(--ink); background-image: repeating-linear-gradient(90deg, #fff 0 40px, transparent 40px 80px); background-size: 100% 4px; background-repeat: no-repeat; background-position: 0 50%; }
.yl-foot-in { padding: 44px var(--pad) 36px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.yl-foot p { color: #B3A79E; }
.yl-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-family: var(--head); font-weight: 700; font-size: .95rem; }
.yl-foot nav a:hover { color: var(--sand); }
.yl-made { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; width: 100%; }
.yl-made img { border-radius: 6px; }
.yl-made a { color: #fff; font-weight: 700; }

/* --- Écrans étroits --- */
@media (max-width: 920px) {
  .yl-top nav { display: none; }
  .yl-top { justify-content: space-between; }
  .yl-row { grid-template-columns: 1fr; border-bottom: 0; gap: 34px; }
  .yl-shop { border-bottom: 6px solid var(--ink); }
  .yl-panel { grid-template-columns: 1fr; }
  .yl-how, .yl-demo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .yl-btn { padding: 9px 16px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
  .yl-btn-lg { padding: 13px 24px; font-size: 1.02rem; }
  .yl-form .field-row { grid-template-columns: 1fr; gap: 0; }
  .yl-skyline .b1, .yl-skyline .b8 { display: none; }
  .yl-video { box-shadow: 6px 6px 0 var(--coral); }
  .yl-form { box-shadow: 6px 6px 0 var(--sand-d); }
}
