/* RESQ — page d'accueil (FR et tunisien). Les pages légales gardent style.css. */
:root {
  --ink: #141010;
  --paper: #F4F0EC;
  --white: #FFFFFF;
  --red: #C8102E;
  --muted: #5A5052;
  --line: #E3DBD5;
  --field: #D8CFC9;
  --photo: #E6DED8;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
html[lang^="ar"] { --font: 'Readex Pro', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--ink); }
input, select, textarea, button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.sr-only, .hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-only:focus { width: auto; height: auto; margin: 0; clip: auto; inset-inline-start: 16px; top: 16px; z-index: 10; background: var(--white); padding: 10px 14px; }
.hp { opacity: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }

.disp { font-family: 'Archivo', sans-serif; font-stretch: 72%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.9; margin: 0; }
html[lang^="ar"] .disp { font-family: 'Readex Pro', sans-serif; font-stretch: normal; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.15; }
.accent { color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; background: var(--red); color: var(--white); transition: transform .15s ease, background .15s ease; }
.btn:hover { color: var(--white); transform: translateY(-1px); }
.btn--dark { background: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { color: var(--ink); }
.btn--small { min-height: 44px; font-size: 15px; padding: 0 20px; }
.btn--full { width: 100%; min-height: 58px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Bandeau */
.topbar { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; padding: 10px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; text-align: center; }
html[lang^="ar"] .topbar { font-family: var(--font); letter-spacing: 0; }
.topbar i { color: #9C9091; font-style: normal; }

/* En-tête */
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { font-family: 'Archivo', sans-serif; font-stretch: 72%; font-weight: 900; font-size: 30px; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--red); }
.header__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.lang a, .lang span { padding: 8px 10px; }
.lang a { color: var(--muted); text-decoration: none; }
.lang span { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px; padding-bottom: 80px; }
.hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 24px; }
.hero h1 { font-size: clamp(60px, 9vw, 132px); }
html[lang^="ar"] .hero h1 { font-size: clamp(44px, 6.4vw, 88px); }
.lead { margin: 0; font-size: 21px; max-width: 470px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__cta small { font-size: 15px; color: var(--muted); }
.photo { flex: 1 1 440px; min-width: 0; border-radius: 28px; overflow: hidden; background: var(--photo); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero .photo, .hero .photo img { min-height: 420px; }

/* Problèmes */
.problems { background: var(--ink); color: var(--paper); }
.problems .wrap { padding-block: 96px 104px; display: flex; flex-direction: column; gap: 40px; }
.label { margin: 0; font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .08em; color: #E8A0A9; }
html[lang^="ar"] .label { font-family: var(--font); letter-spacing: 0; font-size: 16px; }
.problems__list { font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02; }
html[lang^="ar"] .problems__list { font-size: clamp(30px, 4.2vw, 60px); line-height: 1.4; }
.problems__list b { color: var(--red); font-weight: inherit; padding-inline: .12em; }

/* Blocs photo + texte */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 56px; }
.split--first { padding-top: 104px; }
.split--last { padding-bottom: 104px; flex-wrap: wrap-reverse; }
.split .photo { flex: 1 1 420px; aspect-ratio: 4 / 5; max-height: 620px; }
.split__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split h2 { font-size: clamp(46px, 5.4vw, 80px); }
html[lang^="ar"] .split h2 { font-size: clamp(36px, 4.2vw, 60px); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* Démarrage */
.boot { background: var(--white); }
.boot .wrap { padding-block: 96px; display: flex; flex-direction: column; gap: 44px; }
.boot__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 20px; }
.boot h2 { font-size: clamp(42px, 5vw, 72px); }
html[lang^="ar"] .boot h2 { font-size: clamp(34px, 4vw, 56px); }
.flow { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 20px; font-weight: 700; }
.flow b { color: var(--red); }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 32px; border-top: 1.5px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.brands li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 19px; }
.key { font-family: var(--mono); font-weight: 600; font-size: 15px; border: 1.5px solid var(--ink); border-bottom-width: 4px; border-radius: 8px; padding: 5px 11px; background: var(--white); white-space: nowrap; direction: ltr; }

/* Commande */
.order { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 104px; }
.order__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.order h2 { font-size: clamp(56px, 6vw, 96px); }
html[lang^="ar"] .order h2 { font-size: clamp(40px, 4.6vw, 68px); }
.order__side > p { margin: 0; font-size: 19px; color: var(--muted); }
.offers { display: flex; flex-direction: column; gap: 12px; border: 0; margin: 0; padding: 0; }
.offer { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: 20px; border: 2px solid var(--field); cursor: pointer; transition: border-color .15s, background .15s; }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer__dot { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--white); border: 2px solid #9C9091; }
.offer__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.offer__text b { font-weight: 800; font-size: 21px; }
.offer__text small { color: var(--muted); font-size: 15px; }
.offer__price { font-size: 40px; }
.offer:has(input:checked) { background: var(--white); border-color: var(--ink); }
.offer:has(input:checked) .offer__dot { border: 7px solid var(--red); }
.offer:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

.form-card { flex: 1 1 460px; min-width: 0; background: var(--white); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select { border: 1.5px solid var(--field); border-radius: 12px; padding: 12px 14px; font-size: 16px; min-height: 50px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.alert { margin: 0; background: #FCEDEF; color: #8F0B21; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.summary { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 18px; }
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary .summary__total { align-items: baseline; color: var(--ink); font-weight: 700; }
.summary__total .disp { font-size: 44px; }
.note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.thanks { text-align: center; align-items: center; }
.thanks h3 { margin: 0; font-size: 28px; }
.thanks p { margin: 0; }
.ref { font-family: var(--mono); background: var(--paper); padding: 6px 12px; border-radius: 8px; }

/* FAQ */
.faq { background: var(--white); }
.faq .wrap { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.faq h2 { flex: 1 1 300px; font-size: clamp(42px, 5vw, 72px); }
.faq__list { flex: 2 1 520px; min-width: 0; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 19px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 28px; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; color: #3E3537; }

/* WhatsApp */
.ask { background: var(--red); color: var(--white); }
.ask .wrap { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ask h2 { font-size: clamp(46px, 6vw, 92px); }
html[lang^="ar"] .ask h2 { font-size: clamp(36px, 4.4vw, 64px); }
.ask p { margin: 0; font-size: 19px; }

/* Pied */
.footer { background: var(--ink); color: #B9ACAD; }
.footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: #D9CFCE; text-decoration: none; }
.footer a:hover { color: var(--white); }

@media (max-width: 560px) {
  .header .lang { display: none; }
  .form-card { padding: 22px; }
  .hero .photo, .hero .photo img { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .offer { transition: none; }
}
