/* ANKALE — page de commande. Reprend la charte du site : papier, crème, encre, Inter, arrondis généreux. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-n4.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-n5.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-n6.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700 800; font-display: swap; src: url(fonts/inter-n7.woff2) format('woff2'); }

:root {
  --paper: #faf8f4; --cream: #f4efe7; --beige: #e9e1d4; --sand: #d6c9b4; --white: #fff;
  --ink: #121212; --ink-2: #2e2b27; --muted: #8a847b; --line: rgb(18 18 18 / 0.1); --line-2: rgb(18 18 18 / 0.18);
  --err: #a1342c; --ok: #3d6b3f;
  --r: 24px; --r-sm: 14px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4.6vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
.co-wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.co-muted { color: var(--muted); font-weight: 400; }

/* En-tête */
.co-head { position: sticky; top: 0; z-index: 10; background: rgb(250 248 244 / 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.co-head__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.co-wordmark { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -0.06em; text-decoration: none; }
.co-wordmark__a { position: relative; display: inline-block; width: 0.6em; height: 0.6em; margin-inline-end: 0.04em; border: 0.15em solid currentColor; border-radius: 50%; }
.co-wordmark__a::after { content: ""; position: absolute; inset-inline-end: -0.15em; inset-block-end: -0.15em; width: 0.15em; height: 0.42em; background: currentColor; border-radius: 0 0 0.08em 0.08em; }
.co-secure { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.co-secure svg { width: 16px; height: 16px; }
.co-demo { background: var(--ink); color: var(--paper); text-align: center; font-size: 0.85rem; padding: 10px var(--gutter); }

/* Grille */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 430px); gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(28px, 5vw, 64px) 80px; }
.co-form { grid-column: 1; grid-row: 1; min-width: 0; }
.co-summary { grid-column: 2; grid-row: 1; position: sticky; top: 92px; }

.co-h1 { margin: 0 0 clamp(20px, 3vw, 32px); font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; }
.co-h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.co-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 600; }
.co-step { padding: clamp(22px, 3vw, 32px); margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }

/* Champs */
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-span2 { grid-column: span 2; }
.co-field { position: relative; display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; }
.co-field > span { color: var(--ink-2); }
.co-field em { font-style: normal; color: var(--muted); font-weight: 400; }
.co-field small { color: var(--muted); font-size: 0.78rem; }
.co-field input, .co-field select, .co-field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper);
  color: var(--ink); font: 500 1rem/1.3 inherit; font-family: inherit; transition: border-color .25s, box-shadow .25s, background-color .25s; -webkit-appearance: none; appearance: none;
}
.co-field textarea { resize: vertical; min-height: 72px; }
.co-field select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.co-field input::placeholder, .co-field textarea::placeholder { color: #b3ada4; }
.co-field input:focus, .co-field select:focus, .co-field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgb(18 18 18 / 0.06); }
.co-field.is-invalid input, .co-field.is-invalid select { border-color: var(--err); background: #fdf6f5; }
.co-field .co-err { color: var(--err); font-size: 0.78rem; font-weight: 500; }

.co-ship { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--cream); font-size: 0.92rem; }

/* Paiement */
.co-pay { display: grid; gap: 10px; }
.co-opt { border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper); transition: border-color .3s, background-color .3s, box-shadow .3s; }
.co-opt.is-active { border-color: var(--ink); background: var(--white); box-shadow: 0 18px 40px -30px rgb(18 18 18 / 0.45); }
.co-opt__head { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 16px; cursor: pointer; }
.co-opt__head input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border .25s var(--ease); }
.co-opt.is-active .co-radio { border: 6px solid var(--ink); }
.co-opt__head input:focus-visible ~ .co-radio { box-shadow: 0 0 0 4px rgb(18 18 18 / 0.12); }
.co-opt__title { font-weight: 600; }
.co-brands { display: inline-flex; gap: 6px; margin-left: auto; }
.co-brand { display: inline-grid; place-items: center; height: 24px; min-width: 38px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.co-brand--visa { color: #1a1f71; font: italic 800 0.72rem/1 Inter, sans-serif; letter-spacing: 0.02em; }
.co-brand--mc { position: relative; }
.co-brand--mc i { position: absolute; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; }
.co-brand--mc i:first-child { left: 9px; background: #eb001b; }
.co-brand--mc i:last-child { left: 16px; background: #f79e1b; mix-blend-mode: multiply; }
.co-opt__body { display: none; padding: 0 16px 16px 50px; }
.co-opt.is-active .co-opt__body { display: block; }
.co-note { margin: 0; color: var(--muted); font-size: 0.88rem; }
.co-card { min-height: 56px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white); transition: border-color .25s, box-shadow .25s; }
.co-card.is-focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(18 18 18 / 0.06); }
.co-card.is-invalid { border-color: var(--err); }
.co-card__wait { color: var(--muted); font-size: 0.92rem; }
.co-sim { display: grid; gap: 8px; }
.co-sim p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.co-sim label { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; }

/* Bouton */
.co-btn { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; margin-top: 18px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 1.05rem/1 Inter, sans-serif; letter-spacing: -0.01em; cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .3s; -webkit-tap-highlight-color: transparent; }
.co-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-2); transform: translateY(101%); transition: transform .5s var(--ease); }
.co-btn:hover::after { transform: none; }
.co-btn:hover { box-shadow: 0 18px 40px -18px rgb(18 18 18 / 0.6); }
.co-btn:active { transform: scale(0.98); }
.co-btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.co-btn:disabled::after { transform: translateY(101%); }
.co-spin { display: none; width: 20px; height: 20px; animation: co-rot .8s linear infinite; }
.co-btn.is-busy .co-spin { display: block; }
.co-btn.is-busy { pointer-events: none; }
@keyframes co-rot { to { transform: rotate(360deg); } }
.co-legal { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 0.82rem; }
.co-alert { margin: 0 0 16px; padding: 14px 18px; border-radius: var(--r-sm); background: #fbeeec; color: var(--err); font-weight: 500; font-size: 0.94rem; }

/* Récapitulatif */
.co-summary__toggle { display: none; }
.co-summary__body { padding: clamp(22px, 3vw, 32px); background: var(--cream); border-radius: var(--r); }
.co-summary__title { margin-bottom: 20px; }
.co-lines { display: grid; gap: 16px; margin: 0 0 22px; padding: 0; list-style: none; }
.co-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.co-line__img { position: relative; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: var(--beige); }
.co-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-line__qtyb { position: absolute; top: 4px; right: 4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; }
.co-line__name { margin: 0; font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.co-line__var { margin: 2px 0 8px; color: var(--muted); font-size: 0.84rem; }
.co-line__price { font-weight: 600; white-space: nowrap; }
.co-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; background: var(--white); }
.co-qty button { width: 32px; height: 30px; border: 0; background: none; font: 500 1.05rem/1 Inter, sans-serif; color: var(--ink); cursor: pointer; border-radius: 99px; }
.co-qty button:disabled { color: #c9c3ba; cursor: default; }
.co-qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.co-skel { height: 76px; border-radius: 16px; background: linear-gradient(90deg, var(--beige), #efe8dc, var(--beige)); background-size: 200% 100%; animation: co-sk 1.4s infinite; }
@keyframes co-sk { to { background-position: -200% 0; } }
.co-totals { display: grid; gap: 10px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.co-totals dt, .co-totals dd { margin: 0; }
.co-totals dd { font-weight: 600; white-space: nowrap; }
.co-totals__grand { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); align-items: baseline; }
.co-totals__grand dt { font-size: 1.05rem; font-weight: 600; }
.co-totals__grand dd { font-size: 1.6rem; letter-spacing: -0.03em; }
.co-cur { font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.co-eur { margin: 12px 0 0; color: var(--muted); font-size: 0.84rem; text-align: right; }
.co-assure { display: grid; gap: 10px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.84rem; color: var(--ink-2); }
.co-assure li { display: flex; gap: 10px; align-items: center; }
.co-assure svg { flex: none; width: 20px; height: 20px; }

/* Mobile */
@media (max-width: 899px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .co-summary, .co-form { grid-column: 1; grid-row: auto; }
  .co-summary { position: static; margin-inline: calc(var(--gutter) * -1); margin-bottom: 24px; }
  .co-summary__toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 16px var(--gutter); border: 0; border-bottom: 1px solid var(--line); background: var(--cream); color: var(--ink); font: 500 0.92rem/1.2 Inter, sans-serif; cursor: pointer; text-align: left; }
  .co-summary__toggle span { flex: 1; }
  .co-summary__toggle svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
  .co-summary__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .co-summary__body { display: none; border-radius: 0; padding-inline: var(--gutter); }
  .co-summary.is-open .co-summary__body { display: block; }
  .co-summary__title { display: none; }
  .co-step { padding: 20px 18px; border-radius: 20px; }
  .co-opt__body { padding-left: 16px; }
}
@media (max-width: 479px) {
  .co-fields { grid-template-columns: 1fr; }
  .co-span2 { grid-column: auto; }
  .co-secure { font-size: 0.7rem; letter-spacing: 0.08em; }
}

/* Page de confirmation */
.co-thanks { max-width: 720px; margin: 0 auto; padding-block: clamp(40px, 8vw, 96px) 96px; }
.co-thanks__badge { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.co-thanks__badge svg { width: 30px; height: 30px; }
.co-thanks .co-h1 { margin-bottom: 14px; }
.co-lead { margin: 0 0 28px; font-size: 1.1rem; color: var(--ink-2); }
.co-panel { padding: clamp(22px, 3vw, 32px); margin-bottom: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.co-panel h2 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 600; }
.co-panel p { margin: 0 0 8px; }
.co-bank { margin: 10px 0 0; padding: 16px; border-radius: var(--r-sm); background: var(--cream); white-space: pre-line; font: 500 0.95rem/1.6 Inter, sans-serif; }
.co-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.co-kv dt { color: var(--muted); }
.co-kv dd { margin: 0; font-weight: 600; }
.co-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.co-actions a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 99px; border: 1px solid var(--ink); text-decoration: none; font-weight: 600; }
.co-actions a.is-primary { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Offre spéciale : prix barré et économie */
.co-line__was { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; text-decoration: line-through; text-decoration-thickness: 1px; text-align: right; }
.co-line__price { text-align: right; }
.co-totals__saving dt { color: var(--ink-2); }
.co-promo { display: inline-block; margin: 0 0 6px; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
