/* RESQ — site bilingue (تونسي RTL / français LTR). Partagé par toutes les pages. */

:root {
  --ink: #1C1515;
  --ink-2: #4A4040;
  --muted: #6E6466;
  --line: #EEE6E6;
  --bg: #FFFFFF;
  --soft: #FBF6F5;
  --red: #C8102E;
  --red-dark: #A10C24;
  --red-soft: #FCEDEF;
  --green: #2F7D32;
  --radius: 22px;
  --font: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  --chili: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill-opacity='.09'%3E%3Cg transform='translate(10 10) rotate(-12 30 30)'%3E%3Cpath fill='%23C8102E' d='M14 22C10 22 9 26 10 29c4 13 16 23 36 25 3 0 3-3 1-4C33 45 24 36 21 27c-1-3-3-5-7-5z'/%3E%3Cpath fill='%232F7D32' d='M10 22c1-4 5-5 9-3 1 2 0 4-2 4-2-1-5 0-7-1z'/%3E%3C/g%3E%3Cg transform='translate(86 84) rotate(150 30 30)'%3E%3Cpath fill='%23C8102E' d='M14 22C10 22 9 26 10 29c4 13 16 23 36 25 3 0 3-3 1-4C33 45 24 36 21 27c-1-3-3-5-7-5z'/%3E%3Cpath fill='%232F7D32' d='M10 22c1-4 5-5 9-3 1 2 0 4-2 4-2-1-5 0-7-1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
input, select, button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.latin { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; margin: 0 auto; padding: 0 20px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--full { width: 100%; min-height: 58px; font-size: 18px; border-radius: 16px; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }

/* Barre + en-tête */
.topbar { background: var(--red); color: #fff; text-align: center; font-size: 14px; padding: 9px 16px; }
html { scroll-padding-top: 84px; }
.header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
html[lang="fr"] body { line-height: 1.65; }
.lang { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.lang span { background: var(--ink); color: #fff; }
.lang a:hover { background: var(--soft); color: var(--ink); }
.header__inner .lang { margin-inline-start: auto; }
.header__inner .lang + .btn { margin-inline-start: 0; }
@media (max-width: 760px) { .header__inner { gap: 12px; } }
@media (max-width: 480px) {
  .header__inner { gap: 8px; }
  .header__inner .logo { font-size: 19px; gap: 8px; }
  .header__inner .logo__mark { width: 28px; height: 28px; }
  .header__inner .btn--small { padding: 0 14px; font-size: 14px; }
  .lang a, .lang span { min-width: 36px; padding: 0 8px; font-size: 13px; }
  .header__inner .lang span { display: none; }
  .wrap, .narrow { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 359px) { .header__inner .btn--small { display: none; } }
.header__inner { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.header__inner .btn { margin-inline-start: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: .04em; direction: ltr; }
.logo__mark { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.nav__link:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 24px 0 72px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: var(--chili); background-size: 160px 160px; pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 70%, var(--bg)); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 500; color: var(--red); background: var(--red-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.h1 span { color: var(--red); display: block; }
.lead { margin: 20px 0 0; color: var(--ink-2); font-size: 18px; max-width: 34em; }
.checks { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__cta small { color: var(--muted); font-size: 14px; }

.photo { position: relative; }
.photo__frame { border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1; background: #EEE; box-shadow: 0 30px 60px -30px rgba(120, 10, 30, .35); }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.price-tag { position: absolute; bottom: 22px; inset-inline-start: 22px; background: #fff; border-radius: 18px; padding: 10px 18px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.25); line-height: 1.3; }
.price-tag small { display: block; color: var(--muted); font-size: 13px; }
.price-tag b { font-size: 26px; }

@media (max-width: 860px) {
  .hero { padding-top: 8px; padding-bottom: 48px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .photo { order: -1; max-width: 460px; margin: 18px auto 0; width: 100%; }
}

/* Sections */
.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; font-weight: 700; }
.section__sub { margin: 0 0 32px; color: var(--muted); }
.center { text-align: center; }

/* Commande */
.order { position: relative; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: 0 20px 50px -35px rgba(80, 10, 20, .35); }
.offers { border: 0; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.offer { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.offer input { position: absolute; opacity: 0; pointer-events: none; }
.offer__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9BFC1; display: inline-flex; align-items: center; justify-content: center; }
.offer__text { flex: 1; line-height: 1.5; }
.offer__text b { display: block; font-size: 17px; }
.offer__text small { color: var(--muted); font-size: 14px; }
.offer__price { font-weight: 700; font-size: 22px; white-space: nowrap; }
.offer__badge { position: absolute; top: -11px; inset-inline-end: 16px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.offer:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.offer:has(input:checked) .offer__dot { border-color: var(--red); }
.offer:has(input:checked) .offer__dot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.offer:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 3px; }

.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select {
  min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-size: 16px; width: 100%;
}
.field input::placeholder { color: #A39A9C; }
.field input:focus, .field select:focus { border-color: var(--red); outline: none; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); background: #FFF8F9; }
.field input[type="tel"] { direction: ltr; text-align: right; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.hp, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.summary { margin: 20px 0 18px; padding: 16px 0 0; border-top: 1px dashed #E2D6D8; display: grid; gap: 4px; font-size: 15px; color: var(--ink-2); }
.summary div { display: flex; justify-content: space-between; }
.summary__total { color: var(--ink); font-weight: 700; font-size: 20px; margin-top: 4px; }
.note { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #FFF1E8; color: #8A3B00; font-size: 15px; }

.thanks { text-align: center; padding: 40px 24px; }
.thanks__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--red-soft); display: flex; align-items: center; justify-content: center; }
.thanks h3 { margin: 0 0 6px; font-size: 28px; }
.thanks p { margin: 0 0 6px; color: var(--ink-2); }
.thanks .ref { display: inline-block; margin-top: 10px; padding: 6px 14px; background: var(--soft); border-radius: 999px; font-size: 15px; }

/* Fonctions */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__n { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature h3 { margin: 0 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split__img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split p { color: var(--ink-2); margin: 0 0 22px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: flex; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 18px; align-items: center; justify-content: center; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA final + pied */
.final { position: relative; overflow: hidden; border-radius: 32px; background: var(--red); color: #fff; padding: 56px 28px; text-align: center; }
.final::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23fff' fill-opacity='.08'%3E%3Cpath transform='translate(10 10) rotate(-12 30 30)' d='M14 22C10 22 9 26 10 29c4 13 16 23 36 25 3 0 3-3 1-4C33 45 24 36 21 27c-1-3-3-5-7-5z'/%3E%3Cpath transform='translate(86 84) rotate(150 30 30)' d='M14 22C10 22 9 26 10 29c4 13 16 23 36 25 3 0 3-3 1-4C33 45 24 36 21 27c-1-3-3-5-7-5z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 160px; }
.final > * { position: relative; }
.final h2 { margin: 0 0 22px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; }
.final .btn { background: #fff; color: var(--red); }
.final .btn:hover { background: #FFF0F2; color: var(--red-dark); }

.footer { background: #1C1515; color: #CDBFC1; font-size: 15px; padding: 64px 0 28px; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__brand p { margin: 16px 0 0; max-width: 26em; line-height: 1.8; }
.logo--light { color: #fff; }
.footer__title { margin: 0 0 14px; color: #fff; font-size: 16px; font-weight: 600; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links a { color: #CDBFC1; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer p { margin: 0 0 14px; }
.footer__wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600; }
.footer__wa:hover { background: var(--red-dark); color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #3A2E2F; font-size: 13px; color: #A8999C; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer__legal a { color: #CDBFC1; text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__badges span { border: 1px solid #3A2E2F; border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #CDBFC1; }
.footer .lang { background: transparent; border-color: #3A2E2F; }
.footer .lang a { color: #CDBFC1; }
.footer .lang a:hover { background: #2A2021; color: #fff; }
.footer .lang span { background: #fff; color: var(--ink); }

/* Pages légales */
.legal-page { padding: 48px 0 72px; }
.legal-page h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.25; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.legal-toc a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: 15px; }
.legal-page section { padding-top: 12px; margin-bottom: 36px; }
.legal-page h2 { font-size: 24px; margin: 0 0 12px; }
.legal-page h3 { font-size: 17px; margin: 22px 0 6px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page .fill { background: #FFF4E5; color: #8A4B00; padding: 0 4px; border-radius: 4px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .footer { padding-top: 48px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
