/* Ma demande pour Noël. Mobile-first, polices système uniquement. */
:root {
  --snow: #f6f7f4;
  --mist: #e7ebe6;
  --ink: #22262b;
  --ink-soft: #545b62;
  --fir: #1f4d3a;
  --fir-dark: #163a2b;
  --holly: #b8322c;
  --kraft: #d9bd93;
  --kraft-edge: #c4a576;

  --f-head: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --f-text: "Sitka Text", Charter, "Bitstream Charter", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font: 1.0625rem/1.72 var(--f-text);
}
h1, h2 { font-family: var(--f-head); font-weight: 600; font-stretch: 85%; line-height: 1.05; margin: 0; }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--fir); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 5; }
.skip:focus { top: 1rem; }

/* ---------- Étiquette cadeau ---------- */
.hero { padding: 0 1.25rem 3.5rem; overflow: hidden; }
.tag {
  position: relative; max-width: 34rem; margin: 5.5rem auto 0;
  background: var(--kraft); color: var(--ink);
  padding: 4.25rem 1.6rem 2rem;
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
  transform-origin: 50% 0; transform: rotate(-1.5deg);
  animation: swing 1.6s cubic-bezier(.3, .6, .35, 1) both;
  filter: drop-shadow(0 10px 14px rgba(34, 38, 43, .16));
}
/* œillet */
.tag::before {
  content: ""; position: absolute; left: 50%; top: 1.4rem; width: 1.3rem; height: 1.3rem; margin-left: -.65rem;
  border-radius: 50%; background: var(--snow); box-shadow: 0 0 0 4px var(--kraft-edge);
}
/* ficelle */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 0; height: 6.4rem; width: 2px; margin-left: -1px;
  background: var(--holly);
}
.tag__to { font-style: italic; color: #4d4234; margin-bottom: .9rem; }
.tag h1 { font-size: clamp(2.5rem, 11vw, 4.4rem); letter-spacing: -.01em; margin-bottom: 1.1rem; }
.tag__lead { font-size: 1.15rem; margin: 0; max-width: 28rem; }

@keyframes swing {
  0% { transform: rotate(7deg); }
  35% { transform: rotate(-5deg); }
  60% { transform: rotate(2deg); }
  80% { transform: rotate(-2.4deg); }
  100% { transform: rotate(-1.5deg); }
}

/* ---------- Sections ---------- */
.sec { padding: 3rem 1.25rem; border-top: 1px solid var(--mist); max-width: 64rem; margin: 0 auto; }
.sec h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 1.25rem; }
.sec__body { max-width: 38rem; }

/* barre de promo, toujours visible en haut */
.promo-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem 1rem; background: var(--holly); color: #fff;
  font-family: var(--f-head); font-size: .98rem; line-height: 1.25;
  box-shadow: 0 2px 8px rgba(34, 38, 43, .18);
}
.promo-bar p { margin: 0; }
.promo-bar span { display: block; font-variant-numeric: tabular-nums; }
.promo-bar a {
  flex: none; color: var(--holly); background: #fff; text-decoration: none; font-weight: 600;
  padding: .5rem .85rem; border-radius: 5px; min-height: 2.5rem; display: inline-flex; align-items: center;
}
.promo-bar a:focus-visible { outline-color: #fff; }

/* photo produit */
.photo { margin: 0 0 1.5rem; background: #fff; border-radius: 8px; padding: 1rem; max-width: 22rem; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; }
.product__name { font-family: var(--f-head); font-weight: 600; font-stretch: 85%; font-size: 2rem; line-height: 1; margin-bottom: .4rem; }
.product__spec { color: var(--ink-soft); }

.sheet { margin: 1.5rem 0; border-top: 2px solid var(--ink); }
.sheet__row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #cfd5cf; }
.sheet dt { color: var(--ink-soft); }
.sheet dd { margin: 0; font-weight: 700; }
.sheet dd span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.sheet__row--price dd { font-family: var(--f-head); font-stretch: 85%; font-size: 2.2rem; line-height: 1.1; font-weight: 600; }
.sheet__row--price dd span { font-family: var(--f-text); font-size: .95rem; }

.deadline { border: 2px solid var(--holly); border-radius: 8px; padding: 1rem 1.1rem; margin: 0 0 1.5rem; background: #fff; }
.deadline p { margin: 0; }
.deadline__count { font-family: var(--f-head); font-stretch: 85%; font-weight: 600; font-size: 1.7rem; line-height: 1.1; color: var(--holly); margin-bottom: .35rem !important; font-variant-numeric: tabular-nums; }
.deadline__text { font-size: 1rem; }
.deadline--small { margin-top: 1rem; border: 0; padding: 0; background: none; color: var(--holly); font-size: .95rem; }

.btn {
  display: flex; align-items: center; justify-content: center; min-height: 3.5rem; width: 100%;
  padding: .9rem 1.4rem; border-radius: 6px;
  background: var(--fir); color: #fff; text-decoration: none; text-align: center;
  font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; letter-spacing: .01em;
}
.btn:hover { background: var(--fir-dark); }

/* tableau */
.compare { width: 100%; border-collapse: collapse; margin-top: 1.75rem; font-size: 1rem; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .75rem .8rem .75rem 0; border-bottom: 1px solid #cfd5cf; }
.compare thead th { font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; border-bottom: 2px solid var(--ink); }
.compare td:last-child { color: var(--fir); font-weight: 700; }

@media (max-width: 39.99rem) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { padding: .9rem 0; border-bottom: 1px solid #cfd5cf; }
  .compare th, .compare td { border: 0; padding: .1rem 0; }
  .compare tbody th { font-family: var(--f-head); font-size: 1.15rem; margin-bottom: .3rem; }
  .compare td::before { content: attr(data-label) " : "; color: var(--ink-soft); font-weight: 400; }
}

/* listes */
.uses, .plain, .pledges { padding: 0; margin: 0 0 1.1em; list-style: none; }
.uses li { padding: 1rem 0; border-bottom: 1px solid #cfd5cf; }
.uses li:first-child { padding-top: 0; }
.uses strong { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; display: block; }
.plain li { padding-left: 1.2rem; position: relative; margin-bottom: .6rem; }
.plain li::before { content: ""; position: absolute; left: 0; top: .75em; width: .5rem; height: 2px; background: var(--fir); }

.pull { font-family: var(--f-head); font-stretch: 85%; font-weight: 600; font-size: clamp(1.5rem, 5.5vw, 2rem); line-height: 1.2; color: var(--fir); }
.aside { font-style: italic; color: var(--ink-soft); }

.pledges li { padding: .9rem 0 .9rem 2.2rem; position: relative; border-bottom: 1px solid #cfd5cf; }
.pledges li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem; width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--fir); border-radius: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%231f4d3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/90% no-repeat;
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.75rem; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 1.1rem 3rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  font-family: var(--f-head); font-weight: 600; font-size: 2rem; line-height: 1; color: var(--fir);
}

/* fin */
.foot { text-align: center; padding: 3.5rem 1.25rem 4.5rem; border-top: 1px solid var(--mist); }
.foot p { margin: 0; font-size: 1.15rem; }
.foot__sign { font-family: var(--f-text); font-style: italic; font-size: 2rem !important; color: var(--fir); margin-top: .4rem !important; }

/* ---------- Écrans larges : titres dans la marge ---------- */
@media (min-width: 52rem) {
  .hero { padding-bottom: 5rem; }
  .tag { margin-top: 7rem; padding: 5rem 3rem 2.75rem; }
  .hero::before { height: 8rem; }
  .sec { display: grid; grid-template-columns: 17rem 1fr; gap: 3rem; padding: 4.5rem 2rem; }
  .sec__head h2 { position: sticky; top: 2rem; }
  .btn { width: auto; display: inline-flex; }
  .product .sec__body { max-width: 40rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tag { animation: none; }
}

/* ---------- Graphiques ---------- */
/* icônes des usages */
.uses li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.ico {
  width: 3rem; height: 3rem; padding: .6rem; border-radius: 50%;
  background: #dfe9e2; stroke: var(--fir); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* journée de 24 h */
.day { margin: 1.75rem 0 0; padding: 1.1rem 1.1rem .9rem; background: #fff; border-radius: 8px; }
.day figcaption { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; margin-bottom: .8rem; }
.day__row { display: grid; grid-template-columns: 6.6rem 1fr; align-items: center; gap: .6rem; margin-bottom: .55rem; font-size: .95rem; }
.day__track { position: relative; height: 1.1rem; border-radius: 3px; background: repeating-linear-gradient(90deg, #eceee9 0 calc(25% - 1px), #d3d8d2 calc(25% - 1px) 25%); }
.day__track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: #9aa19a; }
.day__track i.on { background: var(--fir); }
.day__scale { display: flex; justify-content: space-between; margin-left: 7.2rem; font-size: .75rem; color: var(--ink-soft); }
.day__note { font-size: .9rem; color: var(--ink-soft); margin: .7rem 0 0; }

/* calendrier jusqu'à Noël */
.cal { margin: .5rem 0 2.25rem; padding: 3.2rem .5rem 3.6rem 0; }
.cal__track { position: relative; height: 6px; border-radius: 3px; margin-right: 2.2rem; background: linear-gradient(90deg, var(--holly) 0 37.5%, #cfd5cf 37.5%); }
.cal__mark, .cal__today { position: absolute; top: 50%; font-size: .82rem; line-height: 1.25; color: var(--ink-soft); }
.cal__mark::before, .cal__today::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--snow); border: 3px solid var(--ink-soft); }
.cal__mark b, .cal__today b { display: block; font-family: var(--f-head); font-size: 1rem; color: var(--ink); }
.cal__mark { transform: translate(-50%, 1rem); text-align: center; width: 8.5rem; }
.cal__mark::before { left: 50%; top: -1rem; }
.cal__mark--promo::before { border-color: var(--holly); background: var(--holly); }
.cal__mark--promo b { color: var(--holly); }
.cal__mark--xmas { transform: translate(-85%, 1rem); width: 5rem; text-align: right; }
.cal__mark--xmas::before { left: 85%; border-color: var(--fir); background: var(--fir); }
.cal__today { transform: translate(-50%, -3.1rem); text-align: center; white-space: nowrap; }
.cal__today::before { left: 50%; top: 3.1rem; width: 18px; height: 18px; border-color: var(--ink); background: #fff; }
