/* ==========================================================================
   INSPIRIA — pages de contenu : à propos, contact, commande, compte,
   livraison, FAQ, pages légales. S'appuie sur style.css et pages.css.
   ========================================================================== */

/* ---------- Champs de formulaire ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__row--3 { grid-template-columns: 1.2fr 1fr 1fr; }
.input, .textarea, .select-field select {
  width: 100%; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink);
  font: inherit; font-size: 15px; letter-spacing: .02em; padding: 12px 20px; outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.textarea { border-radius: 22px; min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select-field select:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(165, 107, 63, .15); }
.input::placeholder, .textarea::placeholder { color: rgba(75, 43, 26, .4); }
.label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 8px; }
.label small { font-family: var(--sans); text-transform: none; letter-spacing: .02em; color: var(--ink-2); font-size: 12px; margin-left: 6px; }
.select-field { position: relative; }
.select-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select-field svg { position: absolute; right: 20px; bottom: 19px; pointer-events: none; }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.err { display: none; font-size: 13px; color: #9b3b2a; margin-top: 6px; }
.is-invalid .input, .is-invalid .textarea { border-color: #9b3b2a; }
.is-invalid .err { display: block; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 12px; color: var(--ink-2); max-width: 420px; }
.form__success { display: none; border: 1px solid var(--ink); background: var(--beige); border-radius: 22px; padding: 24px 26px; }
.form__success h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin-bottom: 6px; }
.form.is-sent { display: none; }
.form.is-sent + .form__success { display: block; }

/* Choix en pastilles (radios) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: inline-flex; font-size: var(--text-sm); padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease); }
.chip-radio input:checked + span { background: var(--ink); color: var(--canvas); }
.chip-radio input:focus-visible + span { outline: 1px solid var(--copper); outline-offset: 3px; }

/* Cartes à choix (livraison, paiement) */
.options { display: grid; gap: 10px; }
.option { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); cursor: pointer; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; }
.option__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--copper); transform: scale(0); transition: transform .35s var(--ease); }
.option strong { display: block; font-weight: 400; font-size: 15px; }
.option small { display: block; font-size: 13px; color: var(--ink-2); }
.option__price { font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.option:has(input:checked) { border-color: var(--ink); }
.option:has(input:checked) .option__dot::after { transform: scale(1); }
.option.is-checked { border-color: var(--ink); }
.option.is-checked .option__dot::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 1px solid var(--copper); outline-offset: 3px; }
.option__panel { grid-column: 1 / -1; display: none; padding-top: 6px; }
.option.is-checked .option__panel { display: block; }
.paybox { border: 1px dashed var(--stone); border-radius: 14px; padding: 18px; text-align: center; font-size: 13px; color: var(--ink-2); background: var(--canvas); }

/* Valeur à compléter par Inspiria (visible dans la maquette) */
.todo { background: rgba(242, 205, 93, .35); border-bottom: 1px dashed var(--copper); padding: 0 3px; border-radius: 3px; }

/* ---------- À propos ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(48px, 6vw, 88px); }
.about-hero__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.about-hero__media img { width: 100%; height: 115%; object-fit: cover; margin-top: -7.5%; }
.about-hero__lead { font-size: var(--text-body-lg); color: var(--ink-2); max-width: 500px; margin-top: 28px; }
.about-hero__sig { margin-top: 28px; }

.chapter { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--ink); }
.chapter__num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.chapter__num b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: 0; color: var(--copper); margin-bottom: 10px; text-transform: none; }
.chapter__title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3.8vw, 56px); line-height: 1.04; margin-bottom: 24px; }
.chapter__title em { font-style: italic; font-weight: 400; color: var(--copper); }
.chapter__text { columns: 2 320px; column-gap: 48px; color: var(--ink-2); }
.chapter__text p { margin-bottom: 16px; break-inside: avoid; }
.chapter__text p:first-child::first-letter { font-family: var(--serif); font-size: 4.4em; float: left; line-height: .8; margin: 6px 10px 0 0; color: var(--copper); }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.value { border: 1px solid var(--ink); background: var(--white); padding: 26px 22px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.value__icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; color: var(--copper); }
.value h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; margin-top: auto; }
.value p { font-size: 14px; color: var(--ink-2); }

.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 20px; }
.mosaic figure { position: relative; overflow: hidden; }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 115%; object-fit: cover; margin-top: -7.5%; }
.mosaic figcaption { position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--canvas); background: rgba(75, 43, 26, .55); padding: 5px 12px; border-radius: 999px; }

.quote-band { text-align: center; padding: clamp(80px, 10vw, 150px) 0; }
.quote-band blockquote { margin: 0 auto; max-width: 1000px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.8vw, 72px); line-height: 1.08; }
.quote-band blockquote em { font-style: italic; font-weight: 400; color: var(--copper); }
.quote-band cite { display: block; margin-top: 28px; font-style: normal; font-family: var(--script); font-size: 32px; color: var(--copper); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__card { border: 1px solid var(--ink); background: var(--white); padding: clamp(24px, 3vw, 40px); }
.contact__aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.info { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 4px; }
.info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.info dd { margin: 0 0 14px; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.info dd a:hover { color: var(--copper); }
.map-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--ink); background: var(--beige); }
.map-card img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.35) saturate(.8); }
.map-card .btn { position: absolute; left: 16px; bottom: 16px; background: var(--canvas); }
.map-card__pin { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -100%); width: 46px; height: 46px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--copper); border: 2px solid var(--canvas); }

/* ---------- Commande ---------- */
div.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.block { padding: 28px 0 32px; border-top: 1px solid var(--ink); }
.block:first-child { padding-top: 0; border-top: 0; }
.block__title { display: flex; align-items: baseline; gap: 14px; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin-bottom: 20px; }
.block__title span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--copper); }
.mini-list { display: grid; gap: 14px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.mini-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.mini-item__img { position: relative; display: block; width: 64px; }
.mini-item__opt { display: block; }
.mini-item__img img { width: 64px; height: 64px; object-fit: cover; }
.mini-item__img b { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-family: var(--mono); font-size: 11px; font-weight: 400; display: grid; place-items: center; padding: 0 5px; }
.mini-item__name { font-size: 14px; line-height: 1.3; }
.mini-item__opt { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--copper); margin-top: 2px; }
.mini-item__price { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.confirm { display: none; text-align: center; padding: clamp(48px, 8vw, 110px) 0; }
.confirm__seal { width: 110px; height: 110px; margin: 0 auto 28px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; background: var(--beige); color: var(--copper); }
.confirm h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.confirm h2 em { font-style: italic; font-weight: 400; color: var(--copper); }
.confirm p { max-width: 520px; margin: 18px auto 0; color: var(--ink-2); }
.confirm__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.page--checkout.is-done div.checkout, .page--checkout.is-done .steps-bar, .page--checkout.is-done .page-title { display: none; }
.page--checkout.is-done .confirm { display: block; }
.steps-bar .is-done span { background: var(--copper); border-color: var(--copper); color: var(--white); }
.steps-bar .is-done { color: var(--ink); }

/* ---------- Compte ---------- */
.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 4vw, 48px); }
.auth__card { border: 1px solid var(--ink); background: var(--white); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.auth__card--alt { background: var(--beige); }
.auth__title { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; }
.auth__perks { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.auth__perks li::before { content: "✦"; color: var(--copper); margin-right: 10px; font-size: 11px; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--copper); }

.dash { display: none; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.page--account.is-logged .auth { display: none; }
.page--account.is-logged .dash { display: grid; }
.dash__nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); }
.dash__nav button { text-align: start; border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 9px 18px; font-size: var(--text-sm); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.dash__nav button:hover { border-color: var(--ink); }
.dash__nav button.is-active { background: var(--ink); color: var(--canvas); }
.dash__panel { display: none; }
.dash__panel.is-active { display: block; }
.dash__hello { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; margin-bottom: 24px; }
.dash__hello em { font-style: italic; color: var(--copper); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 32px; }
.stat { border: 1px solid var(--ink); padding: 18px 20px; background: var(--white); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.orders th { text-align: start; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 0 12px 12px 0; border-bottom: 1px solid var(--ink); }
.orders td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.orders td:last-child, .orders th:last-child { text-align: end; padding-right: 0; }
.status { display: inline-flex; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.status--making { color: var(--copper); }
.status--sent { color: var(--ink); }
.addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.address { border: 1px solid var(--ink); padding: 22px; background: var(--white); font-style: normal; line-height: 1.6; }
.address h3 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; }
.demo-note { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-2); margin-top: 24px; }

/* ---------- Pages de texte (livraison, FAQ, légal) ---------- */
.prose-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.toc a { font-size: 13px; color: var(--ink-2); padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--copper); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--copper); }
.prose a { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .callout { margin: 20px 0; padding: 18px 22px; border: 1px solid var(--ink); border-radius: 18px; background: var(--beige); color: var(--ink); }
.legal-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; }

/* Cartes livraison */
.ship-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.ship-card { border: 1px solid var(--ink); background: var(--white); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.ship-card svg { color: var(--copper); }
.ship-card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; }
.ship-card p { font-size: 14px; color: var(--ink-2); }
.ship-card__price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 22px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 24px 0 8px; counter-reset: step; }
.timeline li { position: relative; padding: 34px 16px 0 0; font-size: 14px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--ink); }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--copper); border: 2px solid var(--canvas); }
.timeline strong { display: block; color: var(--ink); font-weight: 400; font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }

/* FAQ */
.faq-filters { margin-bottom: 28px; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group__title { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.faq-group.is-hidden { display: none; }
.faq-cta { margin-top: 64px; border: 1px solid var(--ink); background: var(--beige); padding: clamp(24px, 3vw, 40px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.faq-cta p { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.faq-cta em { font-style: italic; color: var(--copper); }

/* ---------- Compléments ---------- */
.page--account, .page--checkout, .page--text { padding-bottom: var(--section-gap); }
.prose a.btn { text-decoration: none; }
.prose a.btn--primary { color: var(--white); }
.prose .faq-group__title { font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 1.4; letter-spacing: .16em; margin: 0; }
.field-wrap { display: block; min-width: 0; border: 0; padding: 0; margin: 0; }
.prose--wide { max-width: none; }
.accordion--wide { max-width: 900px; }
.banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map-card--grid {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 18px;
  background-color: var(--beige);
  background-image:
    linear-gradient(to right, rgba(75, 43, 26, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(75, 43, 26, .08) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(165, 107, 63, .18), transparent 45%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.map-card--grid .btn { position: static; align-self: flex-start; }
.map-card__label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-hero, .contact, div.checkout, .auth, .dash, .prose-layout { grid-template-columns: minmax(0, 1fr); }
  .contact__aside, .dash__nav { position: static; }
  .dash__nav { flex-direction: row; flex-wrap: wrap; }
  .toc { display: none; }
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px 200px; }
  .mosaic figure:first-child { grid-column: span 2; grid-row: auto; }
  .ship-cards { grid-template-columns: minmax(0, 1fr); }
  div.checkout aside.summary { order: -1; }
}
@media (max-width: 560px) {
  .form__row, .form__row--3 { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .value { min-height: 0; }
  .value h3 { margin-top: 8px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: 220px; }
  .mosaic figure:first-child { grid-column: auto; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .addresses { grid-template-columns: minmax(0, 1fr); }
  .orders thead { display: none; }
  .orders tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .orders td { padding: 0; border: 0; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .timeline li { padding: 0 0 0 28px; }
  .timeline li::before { left: 6px; right: auto; top: 14px; bottom: -22px; width: 1px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .option { grid-template-columns: auto 1fr; }
  .option__price { grid-column: 2; }
  .chapter__text { columns: 1; }
}
