/* =============================================================================
   Composez votre coffret — parcours en 3 étapes (page CMS 374)
   Même langage visuel que le programme de fidélité : crème pointillé, bleu nuit,
   Cosmetic + Roboto Condensed, boutons pilule. Textes ≥ 15 px, zones tactiles ≥ 48 px.
   ========================================================================== */
body.cms-id-374 .breadcrumb, body.cms-id-374 .breadcrumb-bg, body.cms-id-374 nav.breadcrumb, body.cms-id-374 #wrapper > nav.breadcrumb, body.cms-id-374 .page-header, body.cms-id-374 header.page-header { display: none !important; }
body.cms-id-374 { overflow-x: hidden; background: #fdfaf3 !important; background-image: radial-gradient(rgba(9,18,48,.05) 1px, transparent 1px) !important; background-size: 22px 22px !important; }
body.cms-id-374 #wrapper, body.cms-id-374 #main, body.cms-id-374 #content, body.cms-id-374 #content-wrapper, body.cms-id-374 .page-content, body.cms-id-374 .card { background: transparent !important; box-shadow: none !important; border: 0 !important; }
body.cms-id-374 #content.page-cms, body.cms-id-374 #content.page-cms-374 { padding: 0 !important; margin: 0 !important; }
body.cms-id-374 #main, body.cms-id-374 .body-content, body.cms-id-374 #content-wrapper, body.cms-id-374 #wrapper { margin-top: 0 !important; padding: 0 !important; }
body.cms-id-374 #content-wrapper { margin-bottom: 0 !important; }
body.cms-id-374 #wrapper > .container, body.cms-id-374 .l-wrapper > .container { max-width: none; padding-left: 0; padding-right: 0; }

.cf { --navy: #091230; --blue: #203781; --soft: #9fb0d8; --beige: #f7e9cc; --paper: #fbf4e4; --cream: #fffdf8; --line: #e7d6ad; --muted: #6f6452; --eyebrow: #9a8f73;
  --rc: 'Roboto Condensed', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; --cos: 'Cosmetic', Georgia, serif;
  text-align: left; font-family: var(--rc); font-size: 16px; line-height: 1.5; color: var(--navy); padding-bottom: clamp(56px, 7vw, 96px); }
.cf *, .cf *::before, .cf *::after { box-sizing: border-box; }
.cf button { font: inherit; cursor: pointer; }
.cf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.cf [hidden] { display: none !important; }
.cf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.cf :focus-visible { outline: 3px solid var(--soft); outline-offset: 2px; }
.cf-h2:focus { outline: none; }

/* ---------- En-tête ---------- */
.cf-hero { position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); text-align: center; color: #fff; padding: clamp(34px, 5vw, 64px) 16px clamp(62px, 7vw, 96px);
  background: linear-gradient(135deg, #14224f 0%, #091230 62%); }
.cf-hero::before { content: ""; position: absolute; right: 4%; top: -30px; width: clamp(150px, 20vw, 260px); aspect-ratio: 479/591; background: rgba(247,233,204,.07); -webkit-mask: url(/modules/ttfidelite/views/img/monogramme.svg) center/contain no-repeat; mask: url(/modules/ttfidelite/views/img/monogramme.svg) center/contain no-repeat; pointer-events: none; }
.cf-hero__in { position: relative; max-width: 720px; margin: 0 auto; }
.cf-eyebrow { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--beige); margin: 0 0 10px; }
.cf-h1 { text-wrap: balance; font-family: var(--cos) !important; font-weight: 700 !important; font-size: clamp(34px, 5.4vw, 56px) !important; line-height: 1.04 !important; color: #fff !important; margin: 0 !important; text-transform: none !important; }
.cf-tagline { font-family: var(--cos); font-style: italic; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: rgba(255,255,255,.86); margin: 14px auto 0; text-wrap: balance; }
/* Étapes 2 et 3 : en-tête réduit, la place va au contenu */
.cf[data-step="2"] .cf-hero, .cf[data-step="3"] .cf-hero { padding-top: 22px; padding-bottom: 58px; }
.cf[data-step="2"] .cf-tagline, .cf[data-step="3"] .cf-tagline, .cf[data-step="2"] .cf-eyebrow, .cf[data-step="3"] .cf-eyebrow { display: none; }
.cf[data-step="2"] .cf-h1, .cf[data-step="3"] .cf-h1 { font-size: clamp(24px, 3vw, 32px) !important; }

/* ---------- Fil des étapes ---------- */
.cf-steps { position: relative; z-index: 2; max-width: 760px; margin: -36px auto clamp(28px, 4vw, 48px); background: var(--cream); border: 1px solid var(--line); border-radius: 100px; padding: 8px; box-shadow: 0 24px 46px -30px rgba(9,18,48,.55); }
.cf-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
/* Le thème pose une puce sur les li : on la neutralise ici */
.cf-steps li, .cf-how li, .cf-recap__list li, .cf-box__list li { list-style: none !important; }
.cf-steps li::before, .cf-how li::before, .cf-recap__list li::before, .cf-box__list li::before { content: none !important; }
.cf-steps button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 100px; background: transparent; color: var(--eyebrow); padding: 6px 10px; }
.cf-steps button span { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--cos); font-weight: 700; font-size: 18px; background: #fff; }
.cf-steps button b { font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.cf-steps button:disabled { cursor: default; }
.cf-steps li.is-current button { background: var(--blue); color: var(--beige); }
.cf-steps li.is-current button span { background: var(--beige); border-color: var(--beige); color: var(--navy); }
.cf-steps li.is-done button { color: var(--blue); }
.cf-steps li.is-done button span { background: var(--blue); border-color: var(--blue); color: var(--beige); }
.cf-steps li.is-done button:hover { background: var(--paper); }

/* ---------- Titres ---------- */
.cf-kicker { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 6px; }
.cf-h2 { text-wrap: balance; font-family: var(--cos) !important; font-weight: 700 !important; font-size: clamp(27px, 3.6vw, 38px) !important; line-height: 1.1 !important; color: var(--navy) !important; margin: 0 0 18px !important; text-transform: none !important; }
.cf-h2--center { text-align: center; }
.cf-head { text-align: center; max-width: 680px; margin: 0 auto clamp(22px, 3vw, 34px); }
.cf-head .cf-h2 { margin-bottom: 10px !important; }
.cf-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.cf-step { animation: cfIn .4s ease both; }
@keyframes cfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Boutons ---------- */
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 28px; border-radius: 100px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--beige) !important;
  font-family: var(--rc); font-weight: 600; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; text-decoration: none !important; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.cf-btn:hover:not(:disabled) { background: #1a2c66; border-color: #1a2c66; color: #fff !important; transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(9,18,48,.6); }
.cf-btn:disabled { opacity: .45; cursor: not-allowed; }
.cf-btn--full { width: 100%; }
.cf-btn--big { min-height: 60px; font-size: 17px; }
.cf-btn--ghost { background: transparent; color: var(--blue) !important; }
.cf-btn--cream { background: var(--beige); border-color: var(--beige); color: var(--navy) !important; }
.cf-btn--cream:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--navy) !important; }
.cf-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 4px; border: 0; background: none; color: var(--blue); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.cf-link svg { width: 16px; height: 16px; }
.cf-link--light { color: var(--soft); justify-content: center; width: 100%; margin-top: 6px; }

/* ---------- Étape 1 ---------- */
.cf-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: clamp(40px, 6vw, 68px); }
.cf-intro__img { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 30px 60px -34px rgba(9,18,48,.75); border: 1px solid var(--line); }
.cf-intro__img img { width: 100%; max-width: 100% !important; height: 100%; object-fit: cover; display: block; }
.cf-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cf-how li { display: flex; gap: 16px; align-items: flex-start; }
.cf-how li > span { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: var(--beige); font-family: var(--cos); font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.cf-how b { display: block; font-family: var(--cos); font-weight: 700; font-size: 21px; line-height: 1.2; }
.cf-how p { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.cf-pricenote { margin: 22px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--beige); border: 1px solid var(--line); font-size: 16px; }

.cf-formulas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.cf-formula { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--cream); border: 1.5px solid var(--line); border-radius: 22px; padding: 30px 24px 24px; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cf-formula:hover, .cf-formula.is-active { border-color: var(--blue); box-shadow: 0 22px 40px -30px rgba(9,18,48,.6); transform: translateY(-3px); }
.cf-formula__icon { display: flex; gap: 6px; align-items: flex-end; height: 44px; margin-bottom: 16px; }
.cf-formula__icon i { display: block; width: 22px; height: 34px; border-radius: 4px 4px 3px 3px; background: var(--blue); position: relative; }
.cf-formula__icon i::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--beige); opacity: .7; }
.cf-formula__icon i.tin { width: 32px; height: 40px; border-radius: 8px 8px 4px 4px; }
.cf-formula__icon i.tin::before { top: 9px; }
.cf-formula__title { font-family: var(--cos); font-weight: 700; font-size: 32px; line-height: 1; color: var(--navy); margin: 0 0 10px; }
.cf-formula__sub { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0 0 22px; flex: 1; text-wrap: pretty; }

.cf-reassure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.cf-reassure div { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.cf-reassure svg { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.5; }
.cf-reassure p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.cf-reassure b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 2px; }

/* ---------- Étape 2 ---------- */
.cf-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.cf-main > * { min-width: 0; }
.cf-tools { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 18px; }
.cf-label { display: block; text-align: left !important; width: auto; float: none; font-size: 15px; font-weight: 600; color: var(--navy); margin: 0 0 8px; }
.cf-search { position: relative; margin-bottom: 16px; }
.cf-search input { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 100px; padding: 12px 48px 12px 20px; font: inherit; font-size: 17px; background: #fff; color: var(--navy); }
.cf-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(159,176,216,.4); }
.cf-search svg { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { min-height: 44px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 100px; padding: 8px 18px; font-size: 16px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cf-chip:hover { border-color: var(--soft); background: var(--paper); }
.cf-chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cf-chip--bio.is-active { background: #2f6b3a; border-color: #2f6b3a; }
.cf-selectrow { display: none; gap: 8px; }
.cf-selectrow select { flex: 1; min-width: 0; min-height: 52px; border: 1.5px solid var(--line); border-radius: 100px; padding: 10px 44px 10px 20px; font: inherit; font-size: 17px; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23091230' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/18px no-repeat; -webkit-appearance: none; appearance: none; }
.cf-selectrow .cf-chip { min-height: 52px; }
@media (max-width: 767px) { .cf-chips { display: none; } .cf-selectrow { display: flex; } }
.cf-count { font-size: 15px; color: var(--muted); margin: 0 0 12px; }

.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cf-grid > * { min-width: 0; }
.cf-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.cf-card.is-in { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(159,176,216,.5); }
.cf-card__img { position: relative; aspect-ratio: 1; background: var(--paper); overflow: hidden; }
.cf-card__img img { width: 100%; max-width: 100% !important; height: 100%; object-fit: cover; display: block; }
.cf-card__fam { position: absolute; left: 8px; top: 8px; background: rgba(255,253,248,.95); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.cf-card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cf-card__name { font-family: var(--rc); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--navy); margin: 0; text-transform: none; }
.cf-card__gout { font-size: 15px; color: var(--blue); margin: 0; }
.cf-card__price { display: flex; align-items: baseline; gap: 8px; margin: auto 0 0; padding-top: 4px; }
.cf-card__price b { font-family: var(--cos); font-weight: 700; font-size: 22px; color: var(--navy); }
.cf-card__price span { font-size: 15px; color: var(--muted); }
.cf-formats { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-format { min-height: 40px; border: 1.5px solid var(--line); background: #fff; border-radius: 100px; font-size: 15px; padding: 6px 16px; color: var(--muted); }
.cf-format.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
.cf-add { width: 100%; min-height: 48px; margin-top: 6px; border-radius: 100px; border: 1.5px solid var(--blue); background: var(--blue); color: var(--beige); font-weight: 600; font-size: 15px; letter-spacing: .3px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; transition: background .15s; }
.cf-add:hover:not(:disabled) { background: #1a2c66; }
.cf-add:disabled { background: var(--paper); border-color: var(--line); color: var(--eyebrow); cursor: not-allowed; }
.cf-add.is-in { background: #fff; color: var(--blue); }
.cf-add.is-in:hover { background: var(--paper); }
.cf-add.is-in svg { width: 18px; height: 18px; stroke-width: 2.4; }
.cf-add.is-in u { font-weight: 400; color: var(--muted); text-underline-offset: 3px; }
.cf-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 17px; }
.cf-empty p { margin: 0 0 16px; }
.cf-more { grid-column: 1 / -1; text-align: center; padding: 14px 0 0; }
.cf-backline { text-align: center; margin: 28px 0 0; }

/* Colonne « Votre coffret » (desktop) */
.cf-box { display: none; position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 26px 24px 18px; background: linear-gradient(135deg, #14224f 0%, #091230 62%); border: 1px solid rgba(247,233,204,.16); box-shadow: 0 30px 60px -34px rgba(9,18,48,.75); }
.cf-box::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(247,233,204,.14); border-radius: 16px; pointer-events: none; }
.cf-box > * { position: relative; z-index: 1; }
.cf-box__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cf-box__title { font-family: var(--cos); font-weight: 700; font-size: 26px; line-height: 1.1; margin: 0; color: var(--beige); }
.cf-box__title small { display: block; font-family: var(--rc); font-weight: 400; font-size: 12px; color: var(--soft); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 4px; }
.cf-box__count { font-weight: 700; font-size: 16px; background: rgba(247,233,204,.12); border: 1px solid rgba(247,233,204,.25); color: var(--beige); padding: 5px 14px; border-radius: 100px; }
.cf-box__count.is-full { background: var(--beige); color: var(--navy); }
.cf-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 14px; }
.cf-slots[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf-slot { position: relative; aspect-ratio: 1; border-radius: 14px; border: 1.5px dashed rgba(247,233,204,.35); background: rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cf-slot span { font-family: var(--cos); font-size: 20px; color: rgba(247,233,204,.45); }
.cf-slot.is-filled { border: 1.5px solid var(--beige); background: #fff; }
.cf-slot.is-filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-slot__rm { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 20px; line-height: 1; padding: 0; }
.cf-slot.is-pop { animation: cfPop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes cfPop { 0% { transform: scale(.6); } 60% { transform: scale(1.1); } 100% { transform: scale(1); } }
.cf-box__list { margin: 0 0 12px; padding: 0; list-style: none; font-size: 15px; color: rgba(255,255,255,.86); }
.cf-box__list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(247,233,204,.12); }
.cf-box__list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-box__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 16px; color: var(--soft); }
.cf-box__total b { font-family: var(--cos); font-weight: 700; font-size: 30px; color: var(--beige); }

/* Barre basse « Votre coffret » (mobile / tablette) */
.cf-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; background: linear-gradient(135deg, #14224f 0%, #091230 62%); color: #fff; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; box-shadow: 0 -14px 34px -14px rgba(9,18,48,.6); }
.cf-bar__dots { display: flex; gap: 6px; margin-bottom: 10px; }
.cf-bar__dots i { flex: 1; max-width: 52px; aspect-ratio: 1; border-radius: 10px; border: 1.5px dashed rgba(247,233,204,.4); overflow: hidden; display: block; }
.cf-bar__dots i.is-on { border: 1.5px solid var(--beige); }
.cf-bar__dots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cf-bar__txt { margin: 0; line-height: 1.25; min-width: 0; }
.cf-bar__txt b { display: block; font-size: 17px; font-weight: 600; color: var(--beige); }
.cf-bar__txt span { font-size: 15px; color: var(--soft); }
.cf-bar .cf-btn { min-height: 50px; padding: 10px 22px; white-space: nowrap; }
.cf-bar.is-full .cf-btn { animation: cfPulse 1.6s ease-in-out 2; }
@keyframes cfPulse { 50% { box-shadow: 0 0 0 8px rgba(247,233,204,.25); } }
/* La bulle de conseil et le badge d'avis ne doivent pas masquer la barre */
@media (max-width: 1023px) { body.cf-on-step2 .ttc-fab, body.cms-id-374 .pe-avis { display: none !important; } .cf[data-step="2"] { padding-bottom: 170px; } }

/* ---------- Étape 3 ---------- */
.cf-recap { max-width: 680px; margin: 0 auto; background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 22px 40px -30px rgba(9,18,48,.5); }
.cf-recap__list { list-style: none; margin: 0; padding: 0; }
.cf-recap__list li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; grid-template-areas: "img txt price" "img rm rm"; column-gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cf-recap__list img { grid-area: img; width: 60px; height: 60px; border-radius: 12px; object-fit: cover; display: block; }
.cf-recap__list p { grid-area: txt; margin: 0; min-width: 0; }
.cf-recap__list p b { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.cf-recap__list p span { font-size: 15px; color: var(--muted); }
.cf-recap__list strong { grid-area: price; font-family: var(--cos); font-weight: 700; font-size: 20px; white-space: nowrap; }
.cf-recap__list .cf-link, .cf-recap__list li > i { grid-area: rm; justify-self: start; min-height: 36px; font-size: 15px; color: var(--muted); }
.cf-recap__ecrin { background: var(--paper); border-radius: 14px; padding: 12px !important; margin-top: 12px; border-bottom: 0 !important; }
.cf-recap__total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; font-size: 18px; font-weight: 600; }
.cf-recap__total b { font-family: var(--cos); font-weight: 700; font-size: 38px; color: var(--blue); }
.cf-recap__back { text-align: center; margin: 10px 0 0; }

/* ---------- Toast / modale ---------- */
.cf-toast { position: fixed; left: 50%; top: calc(var(--cf-nav-h, 0px) + 16px); transform: translate(-50%, -20px); background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 100px; font-size: 16px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2147483001; max-width: 92vw; text-align: center; box-shadow: 0 14px 30px -12px rgba(9,18,48,.6); border: 1px solid rgba(247,233,204,.3); }
.cf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cf-modal { position: fixed; inset: 0; z-index: 2147483002; background: rgba(9,18,48,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.cf-modal.is-open { display: flex; }
.cf-modal__card { background: #fdfaf3; border-radius: 24px; padding: 32px 24px; max-width: 480px; width: 100%; text-align: center; box-shadow: 0 30px 60px -24px rgba(9,18,48,.7); animation: cfPop .4s; }
.cf-modal__card h2 { font-family: var(--cos); font-weight: 700; font-size: 30px; line-height: 1.15; margin: 16px 0 8px; color: var(--navy); text-transform: none; }
.cf-modal__card p { color: var(--muted); margin: 0 0 22px; font-size: 17px; }
.cf-modal__box { width: 110px; height: 110px; border-radius: 22px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); }
.cf-modal__box img { width: 100%; height: 100%; object-fit: cover; }
.cf-modal__actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Écrans larges ---------- */
@media (max-width: 479px) { .cf-steps button { flex-direction: column; gap: 3px; min-height: 64px; border-radius: 28px; } .cf-steps { border-radius: 34px; } .cf-steps button b { font-size: 14px; } .cf-steps button span { width: 28px; height: 28px; font-size: 16px; } }
@media (min-width: 768px) {
  .cf-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
  .cf-formulas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-reassure { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cf-card__body { padding: 14px 16px 16px; }
  .cf-modal__actions { flex-direction: row; justify-content: center; }
  .cf-recap__list li { grid-template-columns: 64px minmax(0, 1fr) auto auto; grid-template-areas: "img txt rm price"; column-gap: 18px; }
}
@media (min-width: 1024px) {
  .cf-main { grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; align-items: start; }
  .cf-box { display: block; position: sticky; top: calc(var(--cf-nav-h, 0px) + 16px); }
  .cf-bar, .cf-backline { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .cf *, .cf-step { animation: none !important; transition: none !important; } }
