/* Page de campagne, direction C « Confiance » (maquettes design/canvas/project/C-*.dc.html, jetons de hub/resources/css/site.css).
   De droite à gauche : seulement des propriétés logiques. Aucun style en ligne : la politique de sécurité les refuse. */
@font-face { font-family: 'Almarai'; font-weight: 400; font-display: swap; src: url('assets/almarai-arabic-400.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-weight: 700; font-display: swap; src: url('assets/almarai-arabic-700.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-weight: 800; font-display: swap; src: url('assets/almarai-arabic-800.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-weight: 400; font-display: swap; src: url('assets/almarai-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Almarai'; font-weight: 700; font-display: swap; src: url('assets/almarai-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Almarai'; font-weight: 800; font-display: swap; src: url('assets/almarai-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --white: #FFFFFF;
  --soft: #F2F5F3;
  --emerald: #0B6E4F;
  --emerald-hover: #085A40;
  --tint: #E7F3EE;
  --ink: #0F1A17;
  --ink-soft: #253430;
  --muted: #4B5753;
  --muted-quiz: #5B6661;
  --line: #E4E8E6;
  --line-strong: #D5DCD8;
  --ghost: #C9D3CF;
  --danger: #B42318;
  --amber: #8A5A00;
  --footer: #0F1A17;
  --footer-muted: #A7B3AE;
  /* Variables lues par quiz/controls.css, partagé avec le moteur validé. */
  --c-field: var(--white);
  --c-line: var(--ghost);
  --c-accent: var(--emerald);
  --c-on-accent: var(--white);
  --c-ink: var(--ink);
  --c-soft: var(--muted-quiz);
  --gutter: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--white); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: 'Almarai', Tahoma, sans-serif; font-size: 17px; line-height: 1.7; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.35; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--emerald); text-underline-offset: 4px; }
a:hover { color: var(--emerald-hover); }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
bdi { unicode-bidi: isolate; }
.noscript { padding: 10px var(--gutter); background: #FFF8EB; color: #6B4500; font-weight: 700; text-align: center; }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); border-block-end: 1px solid var(--line); background: var(--white); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 44px; width: auto; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 22px; font-size: 15px; font-weight: 700; }
.pill:hover { border-color: var(--emerald); }

/* Accueil : le titre de la maquette, puis la première question */
main { display: flex; flex-direction: column; }
.hero { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1200px; margin-inline: auto; padding: 26px var(--gutter) 40px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.eyebrow { color: var(--emerald); font-size: 15px; font-weight: 700; }
h1 { font-size: 36px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.75; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Écrans du quiz */
.card { display: flex; flex-direction: column; gap: 18px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; }
.bar-title { display: flex; align-items: center; gap: 6px; color: var(--muted-quiz); font-size: 14px; font-weight: 700; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--ink); }
.icon-btn:hover { color: var(--emerald); }
.icon { display: inline-flex; flex: none; }
.icon svg { display: block; }
.bar-spacer { width: 44px; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block-end: 18px; }
.progress li { height: 4px; border-radius: 2px; background: var(--line); }
.progress li.on { background: var(--emerald); }
.card h2 { font-size: 26px; line-height: 1.5; font-weight: 700; }
.section-name { color: var(--muted-quiz); font-size: 13px; line-height: 1.7; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.note { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: end; }
.avatar { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--emerald); }
.bubble { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--soft); border-start-start-radius: 16px; border-start-end-radius: 16px; border-end-start-radius: 16px; border-end-end-radius: 4px; font-size: 15px; line-height: 1.8; }
.bubble-who { color: var(--emerald); font-size: 12px; font-weight: 700; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 16px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 14px; font-size: 16px; font-weight: 400; line-height: 1.5; text-align: start; }
.choice:hover { border-color: var(--emerald); }
.choice bdi { flex: 1; min-width: 0; }
.choice::after { content: ''; flex: none; width: 20px; height: 20px; margin-inline-start: auto; border: 1.5px solid var(--ghost); border-radius: 50%; background: var(--white); }
.choice[aria-pressed="true"] { border: 2px solid var(--emerald); background: var(--tint); font-weight: 700; }
.choice[aria-pressed="true"]::after { border: 6px solid var(--emerald); }
.month-grid .choice { min-height: 48px; justify-content: center; padding: 8px; text-align: center; }
.month-grid .choice::after { display: none; }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 20px; background: var(--emerald); border: 0; border-radius: 12px; color: var(--white); font-size: 17px; font-weight: 700; }
.cta:hover { background: var(--emerald-hover); color: var(--white); }
.cta:disabled { background: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.cta.inverse { width: auto; background: var(--white); color: var(--emerald); }
.cta.inverse:hover { background: var(--tint); color: var(--emerald-hover); }
.secondary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 18px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 700; }
.secondary:hover { border-color: var(--emerald); color: var(--ink); }
.text-link { align-self: flex-start; min-height: 44px; padding: 6px 2px; background: none; border: 0; color: var(--emerald); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.link-button { text-align: center; text-decoration: none; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.quiz-foot { display: flex; flex-direction: column; gap: 6px; padding-block-start: 14px; border-block-start: 1px solid var(--line); color: var(--muted-quiz); font-size: 13px; line-height: 1.7; }
.quiz-foot .text-link { min-height: 32px; padding: 0; font-size: 13px; }
.lock-note { display: flex; align-items: center; gap: 8px; }

/* Message de fin */
.result-panel { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--tint); border-radius: 20px; }
.result-text { color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.recap { border-block-start: 1px solid var(--line); }
.recap > summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; font-size: 15px; }
.recap > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin-inline-end: 6px; border-block-end: 2px solid currentColor; border-inline-end: 2px solid currentColor; transform: rotate(45deg); }
.recap[open] > summary::after { transform: rotate(-135deg); }
.summary { list-style: none; display: flex; flex-direction: column; gap: 12px; padding-block-end: 12px; }
.summary li { display: flex; flex-direction: column; padding-block-end: 12px; border-block-end: 1px solid var(--line); overflow-wrap: anywhere; }
.summary li:last-child { border-block-end: 0; padding-block-end: 0; }
.summary strong { color: var(--muted-quiz); font-size: 14px; font-weight: 700; }

/* Formulaire */
.contact { display: flex; flex-direction: column; gap: 16px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.contact h3 { font-size: 24px; line-height: 1.45; }
.contact .intro { margin-block-start: -10px; color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 700; }
.ctl-input { min-height: 54px; border-radius: 12px; }
.ctl-input:focus { border: 2px solid var(--emerald); }
.ctl-error { color: var(--danger); font-size: 14px; }
.check { display: flex; flex-direction: column; gap: 4px; }
.check-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.65; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--emerald); }
.check-row label { cursor: pointer; }
.offer { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--soft); border-radius: 12px; font-size: 15px; line-height: 1.7; }
.todo { color: var(--amber); }
.terms { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 20px; padding-block-end: 12px; font-size: 14px; line-height: 1.75; }
.privacy { color: var(--muted); font-size: 13px; line-height: 1.7; }
.advisor { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; background: var(--tint); border-radius: 12px; font-size: 14px; line-height: 1.7; }
.advisor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 25%; display: block; }
.advisor-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.advisor-who strong { font-size: 16px; }
.advisor-who span { color: var(--muted-quiz); font-size: 13px; }
@media (max-width: 767px) {
  .contact > .cta, #pay-link { position: sticky; inset-block-end: calc(12px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 6px 20px rgb(15 26 23 / 28%); }
}
.privacy a { font-weight: 700; }
.form-status { color: var(--danger); font-size: 15px; font-weight: 700; }
/* Piège à robots : hors de l'écran, invisible pour une personne. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Avant le paiement */
.booking-steps { list-style: none; display: flex; align-items: center; gap: 8px; padding-block-end: 14px; border-block-end: 1px solid var(--line); color: var(--muted-quiz); font-size: 13px; }
.booking-steps li { display: flex; align-items: center; gap: 6px; }
.booking-steps .rule { flex: 1; height: 1px; background: var(--line-strong); }
.booking-steps .now { color: var(--ink); font-weight: 700; }
.dot { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1.5px solid #B9C3BE; border-radius: 50%; color: var(--white); }
.dot.done { border: 0; background: var(--emerald); }
.dot.current { border: 6px solid var(--emerald); }
.received { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 16px; background: var(--tint); border-radius: 16px; }
.received-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--emerald); color: var(--white); }
.received h2 { font-size: 18px; line-height: 1.5; font-weight: 800; }
.received p { color: var(--ink-soft); font-size: 13px; }
.offer-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.offer-name, .offer-price { display: flex; flex-direction: column; line-height: 1.5; }
.offer-name strong { font-size: 17px; }
.offer-name small, .offer-price small { color: var(--muted-quiz); font-size: 12px; }
.offer-price { align-items: flex-end; }
.offer-price bdi { font-size: 24px; font-weight: 700; line-height: 1.3; }
.offer-rows { display: flex; flex-direction: column; font-size: 14px; line-height: 1.6; }
.offer-rows div { display: flex; justify-content: space-between; gap: 10px; padding-block: 7px; }
.offer-rows dt { color: var(--muted-quiz); }
.offer-rows dd { text-align: end; }
.assure { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 14px 16px; background: var(--soft); border-radius: 16px; color: var(--emerald); }
.assure span.text { display: flex; flex-direction: column; gap: 2px; color: var(--muted-quiz); font-size: 13px; line-height: 1.7; }
.assure strong { color: var(--ink); font-size: 14px; }

/* Sections de l'accueil */
.trust { padding: 18px var(--gutter); background: var(--soft); }
.trust ul { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 1200px; margin-inline: auto; font-size: 16px; }
.trust li { position: relative; padding-inline-start: 24px; }
.trust li::before { content: ''; position: absolute; inset-inline-start: 2px; inset-block-start: 7px; width: 12px; height: 6px; border-block-end: 2px solid var(--emerald); border-inline-start: 2px solid var(--emerald); transform: rotate(-45deg); }
.band { display: flex; flex-direction: column; gap: 20px; padding: 52px var(--gutter); }
.band > * { width: 100%; max-width: 1160px; margin-inline: auto; }
.band.soft { background: var(--soft); }
.band h2, .closing h2 { font-size: 28px; }
.band-head { display: flex; flex-direction: column; gap: 6px; }
.band-head p { color: var(--muted); font-size: 16px; }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-block: 14px; padding-inline: 62px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 16px; inset-block-start: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--emerald); font-weight: 800; }
.steps h3 { font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; }
.price-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; font-size: 15px; }
.price-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-block-end: 10px; border-block-end: 1px solid var(--line); }
.price-head span { display: flex; flex-direction: column; line-height: 1.5; }
.price-head strong { font-size: 18px; }
.price-head small { color: var(--muted); font-size: 13px; }
.price-head .price { align-items: flex-end; }
.price bdi { font-size: 28px; font-weight: 800; }
.never { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.never li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-weight: 700; }
.faq { display: flex; flex-direction: column; }
.faq details { border-block-end: 1px solid var(--line-strong); }
.faq summary { padding-block: 14px; font-weight: 700; }
.faq p { padding-block-end: 16px; color: var(--muted); }
.closing { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 52px var(--gutter); background: var(--emerald); color: var(--white); }
.foot { display: flex; flex-direction: column; gap: 12px; padding: 32px var(--gutter); background: var(--footer); color: var(--footer-muted); font-size: 14px; }
.foot img { height: 44px; width: auto; align-self: flex-start; }
.foot .todo { color: #F4C36A; }
.foot a { color: var(--white); margin-inline-end: 16px; }

/* Pendant le quiz, seul l'écran en cours reste affiché, comme dans la maquette. */
.quiz-on .marketing, .quiz-on .top { display: none; }
.quiz-on .hero { padding: 8px var(--gutter) 32px; max-width: 600px; }
.quiz-on .card { padding: 0; border: 0; border-radius: 0; }

@media (min-width: 768px) {
  :root { --gutter: clamp(16px, 4vw, 40px); }
  body { font-size: 18px; }
  h1 { font-size: clamp(36px, 3.6vw, 54px); }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 56px; }
  .quiz-on .hero { display: flex; align-items: stretch; padding-block-start: 24px; }
  .trust ul { flex-direction: row; justify-content: space-between; gap: 24px; }
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .price-card { max-width: 520px; margin-inline: auto 0; }
  .foot { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; }
}

/* Pages des conditions et de la confidentialité */
.link-pill { color: var(--ink); text-decoration: none; }
.terms-how { padding-block-end: 12px; font-size: 14px; }
.legal { display: flex; flex-direction: column; gap: 32px; width: 100%; max-width: 760px; margin-inline: auto; padding: 32px var(--gutter) 52px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 24px; margin-block-end: 10px; }
.legal h3 { font-size: 18px; margin-block: 16px 6px; }
.legal section > p + p { margin-block-start: 10px; }
.legal section > p { color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.facts { display: flex; flex-direction: column; margin-block-end: 10px; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-block-end: 1px solid var(--line); }
.facts div:last-child { border-block-end: 0; }
.facts dt { flex: none; max-width: 55%; color: var(--muted-quiz); }
.facts dd { text-align: end; overflow-wrap: anywhere; }
.legal-list { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 22px; font-size: 16px; line-height: 1.85; }
.legal-box { display: flex; flex-direction: column; gap: 10px; margin-block-start: 12px; padding: 18px; background: var(--soft); border-radius: 16px; font-size: 15px; }
.plain { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin-block-end: 10px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.legal th, .legal td { padding: 10px 12px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.legal th { background: var(--soft); font-weight: 700; }
.legal tr:last-child td { border-block-end: 0; }

/* Titre focalisé par le script pour les lecteurs d'écran : pas de cadre visible. */
h2[tabindex="-1"]:focus { outline: none; }
