/*
Theme Name: Le Comptoir Sucré Salé
Description: Thème sur mesure avec carte sucrée et salée et configurateur de buffet.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: comptoir-sucre-sale
*/

:root {
  --ink: #1c1016;
  --pink: #ff1980;
  --dark-pink: #b90051;
  --blush: #fff1f7;
  --line: #e7cbd7;
  --muted: #67545e;
  --paper: #fff;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid var(--dark-pink); outline-offset: 3px; }
[hidden], #print-summary { display: none !important; }
.wrap { width: min(1320px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 10px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
.header { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; font-size: .88rem; font-weight: 850; line-height: 1.1; }
.brand img { width: 66px; height: 66px; object-fit: contain; }
.brand strong { font: 950 1.2rem/1 var(--display); letter-spacing: -.06em; }
.brand em { color: var(--dark-pink); font-style: normal; }
.header nav { display: flex; gap: 25px; font-size: .95rem; font-weight: 750; }
nav a:hover, .footer > a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 800; text-align: center; line-height: 1.2; transition: background .16s, color .16s; }
.button-pink { background: var(--pink); }
.button-black { background: var(--ink); color: #fff; }
.button-plain { background: #fff; }
.button:not(:disabled):hover { background: var(--blush); color: var(--ink); }
.hero { display: grid; grid-template-columns: 46% 54%; border: 2px solid var(--ink); border-radius: 30px; overflow: hidden; background: var(--blush); }
.hero-copy { padding: clamp(32px, 5vw, 78px) clamp(24px, 4vw, 66px); align-self: center; }
.eyebrow { margin: 0 0 13px; font-size: .83rem; font-weight: 900; letter-spacing: .13em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 950; }
h1, h2 { letter-spacing: -.085em; line-height: 1; }
h1 { font-size: clamp(3rem, 5.5vw, 6.05rem); }
h2 { font-size: clamp(2.55rem, 5vw, 5.1rem); }
h1 em, h2 em { color: var(--dark-pink); font: italic 700 1em/1 Georgia, serif; }
.hero-copy > p:not(.eyebrow) { max-width: 400px; margin: 22px 0; font-size: clamp(1.02rem, 1.55vw, 1.24rem); }
.hero-photo { margin: 0; position: relative; min-height: 410px; background: var(--pink); border-left: 2px solid var(--ink); }
.photo { width: 100%; height: 100%; inset: 0; position: absolute; object-fit: cover; }
.seal { position: absolute; width: clamp(87px, 9.5vw, 140px); right: 4%; bottom: 8%; border: 2px solid var(--ink); border-radius: 50%; transform: rotate(9deg); box-shadow: 4px 5px var(--ink); }
.hero-photo figcaption { position: absolute; left: 11px; bottom: 10px; padding: 2px 8px; border-radius: 999px; color: var(--ink); background: #fff; font-size: .75rem; }
.ribbon { margin-top: 22px; background: var(--pink); border-block: 2px solid var(--ink); }
.ribbon .wrap { display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 2px 12px; min-height: 62px; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.ribbon b { color: #fff; }
.configurator { padding-block: 64px 76px; }
.section-title { margin-bottom: 27px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 15px; min-height: 44px; background: white; font-weight: 800; }
.filters button[aria-pressed=true] { color: white; background: var(--ink); }
.builder { display: grid; grid-template-columns: minmax(0, 1.88fr) minmax(310px, 1fr); gap: 24px; align-items: start; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { border: 1.5px solid var(--ink); border-radius: 19px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-image { aspect-ratio: 1.65; position: relative; overflow: hidden; background: var(--blush); border-bottom: 1.5px solid var(--ink); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image span { position: absolute; left: 8px; bottom: 7px; padding: 1px 5px; border-radius: 4px; background: #fff; font-size: .75rem; }
.card-body { padding: 14px; display: flex; flex: 1; flex-direction: column; }
.category { color: var(--dark-pink); font-size: .83rem; font-weight: 900; letter-spacing: .09em; margin: 0 0 4px; }
.card h3 { font-size: clamp(1.15rem, 2vw, 1.62rem); letter-spacing: -.045em; line-height: 1.12; }
.description { margin: 7px 0 14px; color: var(--muted); line-height: 1.35; }
.card-footer { display: flex; margin-top: auto; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; }
.price { font-size: .91rem; font-weight: 800; }
.quantity { display: grid; grid-template-columns: 36px 46px 36px; border: 1px solid var(--ink); border-radius: 999px; align-items: center; }
.quantity button { border: 0; font-size: 1.25rem; font-weight: 850; border-radius: 999px; background: var(--pink); height: 38px; }
.quantity button:disabled { background: var(--blush); }
.quantity input { border: 0; padding: 0; text-align: center; appearance: textfield; -moz-appearance: textfield; min-width: 0; background: transparent; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quote { position: sticky; top: 20px; background: var(--blush); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px var(--ink); padding: clamp(17px, 2.2vw, 29px); }
.quote h3 { font-size: 2.08rem; letter-spacing: -.065em; line-height: 1; margin-bottom: 17px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.fields label { font-size: .88rem; font-weight: 800; }
.fields label span { font-weight: 500; color: var(--muted); }
.fields input, textarea { display: block; width: 100%; min-width: 0; min-height: 43px; margin-top: 4px; background: #fff; border: 1px solid #927684; border-radius: 8px; padding: 6px 8px; }
.empty { padding-block: 10px; color: var(--muted); }
.quote-lines { padding: 0; margin: 16px 0 0; list-style: none; }
.quote-lines li { display: flex; gap: 10px; justify-content: space-between; padding-block: 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.quote-lines strong { flex-shrink: 0; }
.quote-count { display: flex; justify-content: space-between; gap: 10px; font-weight: 750; margin-top: 13px; }
.total { border-top: 1.5px solid var(--ink); padding-top: 10px; margin-top: 13px; display: flex; justify-content: space-between; gap: 9px; font-size: 1.22rem; }
.quote-note, .feedback { font-size: .91rem; color: var(--muted); margin: 8px 0 0; }
.feedback:empty { margin: 0; }
.quote-actions { display: grid; gap: 8px; margin-top: 16px; }
.how { background: var(--blush); border-block: 1.5px solid var(--ink); padding-block: 48px; }
.how ol { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; gap: 18px; list-style: none; margin: 26px 0 0; }
.how li { background: #fff; padding: 18px; border: 1.5px solid var(--ink); border-radius: 16px; }
.how h3 { font-size: 1.27rem; letter-spacing: -.04em; }
.how p { margin: 5px 0 0; color: var(--muted); }
.footer { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; gap: 12px; font-weight: 800; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 44px); }
  .header nav { gap: 15px; }
  .hero-photo { min-height: 352px; }
  .builder { grid-template-columns: minmax(0, 1fr) minmax(278px, .7fr); gap: 16px; }
  .catalog { gap: 10px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .header { min-height: 71px; gap: 8px; }
  .header nav { display: none; }
  .header .button { padding-inline: 9px; font-size: .88rem; }
  .brand { gap: 5px; font-size: .72rem; }
  .brand strong { font-size: .96rem; }
  .brand img { width: 47px; height: 47px; }
  .hero { grid-template-columns: 1fr; border-radius: 21px; }
  .hero-copy { padding: 27px 19px; }
  h1 { font-size: clamp(2.95rem, 10.2vw, 5.2rem); }
  .hero-copy > p:not(.eyebrow) { margin-block: 14px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.4; border: 0; border-top: 1.5px solid var(--ink); }
  .ribbon { margin-top: 13px; }
  .ribbon .wrap { min-height: 49px; justify-content: center; gap: 3px 7px; font-size: .72rem; letter-spacing: 0; }
  .configurator { padding-block: 42px 55px; }
  .section-title { display: block; margin-bottom: 16px; }
  .filters { margin-top: 13px; }
  .builder { grid-template-columns: 1fr; }
  .quote { position: static; }
  .how ol { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 380px) {
  .catalog { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media print {
  body > :not(#print-summary) { display: none !important; }
  #print-summary { display: block !important; padding: 18px; }
  #print-summary h1 { font-size: 30px; letter-spacing: 0; }
  #print-summary h2 { font-size: 21px; margin-top: 8px; letter-spacing: 0; }
  #print-summary p { white-space: pre-wrap; }
}
.quote-jump { display: none; }
@media (max-width: 720px) {
  .quote-jump { display: inline-flex; justify-self: start; }
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-links a { white-space: nowrap; }
.legal { max-width: 880px; padding-block: 36px 64px; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); }
.legal h2 { font-size: 1.65rem; letter-spacing: -.04em; }
.legal section { padding: clamp(17px, 3vw, 30px); border: 1.5px solid var(--ink); border-radius: 20px; background: var(--blush); }
.legal-note { color: var(--muted); margin: 14px 0 24px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 0; }
.legal dt { font-weight: 800; }
.legal dd { margin: 0; }
.legal dd a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) {
  .footer-links { flex-direction: column; align-items: flex-end; font-size: .88rem; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd + dt { margin-top: 6px; }
}
