/* ============================================================
   pages.css — pages intérieures
   ============================================================ */

.page-head { padding: clamp(52px, 7vw, 88px) 0 clamp(32px, 4vw, 46px) }
.page-head h1 { margin-bottom: 20px }
.page-head .lede { max-width: 60ch }

/* ---------- filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px }
.filters[hidden] { display: none }
.filters button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft);
  transition: all .28s cubic-bezier(.2,.8,.2,1);
}
.filters button:hover { color: var(--text); border-color: var(--accent) }
.filters button[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}

/* ---------- catalogue ---------- */
.axe-block { margin-bottom: 60px; scroll-margin-top: 116px }
.axe-title {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.axe-title h2 { font-size: clamp(19px, 2.2vw, 26px) }
.axe-title .count { font-size: 12px; color: var(--text-dim) }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
@media (max-width: 940px) { .grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr } }

.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow);
  transition: border-color .32s, transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px);
              box-shadow: var(--shadow-lift) }
.card h3 { font-size: 17px; margin-bottom: 5px }
.card .sub { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 13px }
.card .intro { font-size: 13px; color: var(--text-soft); line-height: 1.6; flex: 1 }
.card .targets { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0 }
.card .targets span {
  font-size: 10.5px; color: var(--text-soft); font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 11px;
}
.card .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}
.card .posology { font-size: 11.5px; color: var(--text-dim) }
.card .price {
  font-family: var(--font-display); font-weight: var(--w-display);
  font-size: 18px; letter-spacing: var(--track); white-space: nowrap;
}

/* ---------- tableau ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius) }
table.data { width: 100%; border-collapse: collapse; min-width: 640px }
table.data th, table.data td {
  text-align: left; padding: 15px 20px; font-size: 13.5px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data th { font-size: 11.5px; font-weight: 600; color: var(--text-dim); background: var(--bg-2) }
table.data td:first-child { font-weight: 600; white-space: nowrap }
table.data td:nth-child(2) { color: var(--accent); white-space: nowrap }
table.data td:last-child { color: var(--text-soft); line-height: 1.55 }
table.data tr:last-child td { border-bottom: 0 }

/* ---------- synergies ---------- */
.syn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px }
@media (max-width: 780px) { .syn-grid { grid-template-columns: 1fr } }
.syn { background: var(--bg-2); border: 1px solid var(--line);
       border-radius: var(--radius); padding: 26px 24px }
.syn h3 { margin-bottom: 11px }
.syn:nth-child(1) h3 { color: var(--teal) }
.syn:nth-child(2) h3 { color: var(--teal-deep) }
.syn:nth-child(3) h3 { color: var(--plum) }
.syn:nth-child(4) h3 { color: var(--rose) }
.syn p { font-size: 13.5px; color: var(--text-soft); line-height: 1.65 }

/* ---------- ce que nous ne faisons pas ---------- */
.dont { list-style: none; display: grid; gap: 0 }
.dont li { padding: 22px 0; border-bottom: 1px solid var(--line);
           font-size: 14.5px; color: var(--text-soft); line-height: 1.68; max-width: 84ch }
.dont b { color: var(--text); font-weight: 600 }

/* ---------- nuage de spécialités ---------- */
.spec-cloud { display: flex; flex-wrap: wrap; gap: 9px }
.spec-cloud span {
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: var(--pill);
  border: 1px solid var(--line); color: var(--text-soft); background: var(--bg-2);
}
.spec-cloud span b { color: var(--accent); font-weight: 600; margin-left: 7px; font-size: 11.5px }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px) }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr } }

.contact-list { list-style: none; display: grid; gap: 0 }
.contact-list li { display: flex; gap: 18px; padding: 15px 0;
                   border-bottom: 1px solid var(--line); font-size: 14.5px; align-items: baseline }
.contact-list b { flex: none; width: 96px; font-size: 11.5px; font-weight: 600; color: var(--text-dim) }
.contact-list a { color: var(--accent); text-decoration: none }
.contact-list span { color: var(--text-soft); line-height: 1.6 }

.form { background: var(--bg-2); border: 1px solid var(--line);
        border-radius: var(--radius); padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 16px }
.form h3 { margin-bottom: 4px }
.form label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-dim) }
.form input, .form textarea {
  font: inherit; font-size: 14.5px; color: var(--text); font-weight: 400;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 12px 14px; width: 100%; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent) }
.form input::placeholder { color: var(--text-dim) }
.form button { justify-content: center; margin-top: 4px; border: 0; cursor: pointer; font: inherit;
               font-size: 13.5px; font-weight: 600 }
.form-note { font-size: 12.5px; color: var(--accent); min-height: 18px; margin: 0 }
.form-note.err { color: var(--warn) }


/* ---------- bandeau de visuels ---------- */
.vis-band { padding: 8px 0 clamp(34px, 4.5vw, 54px) }
.vis-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px }
.vis { margin: 0; text-align: center }
.vis img { height: 124px; width: auto; margin: 0 auto 10px; object-fit: contain;
           transition: transform .4s cubic-bezier(.2,.8,.2,1) }
.vis:hover img { transform: translateY(-4px) scale(1.05) }
.vis figcaption { font-size: 11.5px; font-weight: 600; color: var(--text-dim) }
@media (max-width: 900px) { .vis-row { grid-template-columns: repeat(3, 1fr); gap: 20px } }
@media (max-width: 520px) { .vis-row { grid-template-columns: repeat(2, 1fr) }
                            .vis img { height: 92px } }

/* ---------- vignette produit dans la grille ---------- */
.card-shot {
  margin: -6px -6px 14px; height: 170px; border-radius: var(--radius-sm);
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse 72% 72% at 50% 62%, var(--surface), transparent 76%);
}
.card-shot img {
  max-height: 148px; width: auto; object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(26,26,26,.18));
  transition: transform .42s cubic-bezier(.2,.8,.2,1), filter .42s;
}
.card:hover .card-shot img {
  transform: translateY(-7px) scale(1.05);
  filter: drop-shadow(0 18px 26px rgba(26,26,26,.24));
}
.card-shot.is-empty span {
  font-family: var(--font-display); font-weight: 800; font-size: 46px;
  color: var(--line-strong); letter-spacing: -.04em;
}

/* piège à robots : hors écran, jamais atteint au clavier */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px;
      overflow: hidden; opacity: 0; pointer-events: none }

/* ---------- page 404 ---------- */
.nf-wrap { max-width: 720px }
.nf-title { margin: 10px 0 22px }
.nf-lede + .nf-lede { margin-top: 10px; color: var(--text-dim); font-size: 15px }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px }
.nf-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 20px;
            padding-top: 24px; border-top: 1px solid var(--line) }
.nf-langs a { font-size: 13.5px; font-weight: 600; color: var(--text-soft);
              text-decoration: none }
.nf-langs a:hover { color: var(--accent) }

/* ---------- carte produit : boîte sur blanc, en volume au survol ----------
   Fond blanc pur comme sur la référence, pour que l'étui soit seul
   à porter de la couleur. Les variables --cx / --cy sont écrites par
   pages.js et font pivoter la boîte vers le curseur. */
.card { --cx: 0; --cy: 0 }
.card-shot {
  background: #fff; border-radius: var(--radius-sm);
  perspective: 800px; overflow: visible;
}
.card-shot img {
  transform: rotateY(calc(var(--cx) * 20deg)) rotateX(calc(var(--cy) * -15deg)) translateZ(0);
  transition: transform .7s cubic-bezier(.16,.84,.26,1), filter .4s;
  filter: drop-shadow(0 10px 14px rgba(4,67,75,.18));
  will-change: transform;
}
.card:hover .card-shot img {
  transition-duration: .12s, .4s;
  transform: rotateY(calc(var(--cx) * 20deg)) rotateX(calc(var(--cy) * -15deg))
             translateZ(34px) scale(1.07);
  filter: drop-shadow(calc(var(--cx) * -16px) 22px 22px rgba(4,67,75,.28));
}
@media (prefers-reduced-motion: reduce) {
  .card-shot img, .card:hover .card-shot img { transform: none; transition: none }
}

