/* Vente groupée KAPLA®, Noël 2026.
   Une seule famille (Archivo), dont la largeur varie : large et lourde pour les titres,
   comme une planchette posée à plat ; normale pour le texte.
   Le bois du pin sert de structure (étagères, tour), le bleu marine porte le texte et les prix. */

@font-face { font-family: "Archivo"; src: url("fonts/Archivo.ttf") format("truetype"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --marine: #002D5E;     /* texte fort, prix, boutons */
  --encre: #17304F;      /* texte courant */
  --gris: #55657E;       /* textes secondaires */
  --pin: #E7C78E;        /* face d'une planchette */
  --pin-fonce: #B78A4F;  /* arête, bois foncé */
  --ciel: #EAF3F9;       /* fond des barils des saisons */
  --trait: #DCE3EC;
  --fond: #FFFFFF;
  --barre: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--barre) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif; }
h1, h2, h3 { color: var(--marine); margin: 0; font-weight: 800; }
sup { font-size: .5em; vertical-align: .9em; line-height: 0; font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid #2F7BC4; outline-offset: 3px; border-radius: 4px; }
.evitement { position: absolute; left: 16px; top: -60px; background: var(--marine); color: #fff; padding: 8px 14px; z-index: 50; }
.evitement:focus { top: 8px; }
.enveloppe { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .enveloppe { padding-inline: 16px; } }

/* ------------------------------------------------ boutons */
.b-commander { display: inline-flex; align-items: center; justify-content: center; background: var(--marine); color: #fff;
  text-decoration: none; font-weight: 700; font-stretch: 105%; font-size: .95rem; padding: 10px 20px; border-radius: 3px;
  white-space: nowrap; box-shadow: 0 3px 0 var(--pin-fonce); transition: transform .12s, box-shadow .12s; }
.b-commander:hover { background: #0B3F7C; }
.b-commander:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pin-fonce); }
.b-commander.grand { font-size: 1.1rem; padding: 15px 28px; }
.lien { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--pin-fonce); }

/* ------------------------------------------------ barre */
.barre { position: sticky; top: 0; z-index: 20; height: var(--barre); display: flex; align-items: center; gap: 16px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2 + 24px)); background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait); }
.marque { font-weight: 800; font-stretch: 112%; color: var(--marine); text-decoration: none; margin-right: auto; }
.limite { font-size: .9rem; color: var(--gris); }
.limite b { color: var(--marine); }
@media (max-width: 600px) {
  .barre { padding: 0 16px; gap: 10px; }
  .limite { display: none; }
  .marque { font-size: .95rem; }
}

/* ------------------------------------------------ accueil */
.accueil { max-width: 1180px; margin: 0 auto; padding: 64px 24px 56px; display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.sur { font-weight: 700; color: var(--pin-fonce); margin-bottom: 18px; }
.accueil h1 { font-size: clamp(2.5rem, 6vw, 4.9rem); font-stretch: 116%; font-weight: 850; line-height: .98;
  letter-spacing: -.015em; text-wrap: balance; }
.chapo { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 34em; margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.tour { margin: 0; }
.tour svg { display: block; width: 100%; max-width: 360px; margin-left: auto; overflow: visible; }
.tour figcaption { max-width: 360px; margin: 6px 0 0 auto; font-size: .85rem; color: var(--gris); text-align: center; }
.ombre { fill: rgba(0, 45, 94, .08); }

@media (prefers-reduced-motion: no-preference) {
  .p { transform-box: fill-box; animation: pose .45s cubic-bezier(.25, .75, .35, 1) both;
       animation-delay: calc(var(--i) * 38ms + 200ms); }
  .ombre { animation: ombre 2.2s ease-out both; }
}
@keyframes pose { from { transform: translateY(-90px); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ombre { from { opacity: 0; } }

@media (max-width: 820px) {
  .accueil { grid-template-columns: 1fr; padding-top: 40px; }
  .tour svg { max-width: 260px; margin: 0 auto; }
  .tour figcaption { margin: 8px auto 0; max-width: 30ch; }
}

/* ------------------------------------------------ comment commander */
.commander { background: var(--marine); color: #fff; padding: 56px 0; }
.commander h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 112%; }
.etapes { list-style: none; counter-reset: e; margin: 28px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.etapes li { counter-increment: e; padding: 0 24px 0 0; margin-right: 24px; border-right: 1px solid rgba(255,255,255,.18);
  color: #D5E2F0; font-size: 1rem; }
.etapes li:last-child { border-right: 0; margin-right: 0; }
.etapes li::before { content: counter(e); display: block; font-weight: 850; font-stretch: 120%; font-size: 2.6rem;
  line-height: 1; color: var(--pin); margin-bottom: 10px; }
.etapes b { color: #fff; }
.attente { margin-top: 32px; padding: 14px 18px; border-left: 4px solid var(--pin); background: rgba(255,255,255,.07); font-weight: 600; }
.attente.pret { padding: 0; border: 0; background: none; }
.attente.pret .b-commander { background: #fff; color: var(--marine); }
.contact { margin-top: 18px; color: #D5E2F0; }
.contact b { color: #fff; }
@media (max-width: 820px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .etapes li:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 480px) {
  .etapes { grid-template-columns: 1fr; gap: 22px; }
  .etapes li { border-right: 0; margin-right: 0; position: relative; padding-left: 3rem; }
  .etapes li::before { position: absolute; left: 0; top: .1rem; margin: 0; font-size: 2rem; }
}

/* ------------------------------------------------ gammes */
.gamme { padding-top: 72px; }
.gamme-tete { margin-bottom: 12px; max-width: 46em; }
.gamme-tete h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 112%; line-height: 1.05; }
.gamme-tete p { margin-top: 10px; color: var(--gris); }
.gamme-tete p b { color: var(--marine); }

/* Une fiche produit : photo posée sur une planchette, texte, prix */
.produit { display: grid; grid-template-columns: 240px minmax(0, 1fr) 230px; gap: 24px 40px; align-items: end;
  padding: 36px 0; border-bottom: 1px solid var(--trait); }
.produit:last-of-type { border-bottom: 0; }
.photo { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 240px; padding-bottom: 10px; }
.photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 2px;
  background: var(--pin); box-shadow: inset 0 -2px 0 rgba(183, 138, 79, .55), inset 0 0 0 1px var(--pin-fonce); }
.photo img { max-height: 100%; width: auto; object-fit: contain; }
.photo.duo img { max-width: 50%; }
.infos { align-self: center; }
.note { font-weight: 700; color: var(--pin-fonce); font-size: .95rem; }
.produit h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-stretch: 110%; line-height: 1.1; margin-top: 4px; }
.desc { margin-top: 10px; max-width: 38em; }
.ref { margin-top: 10px; font-size: .85rem; color: var(--gris); }
.prix { font-variant-numeric: tabular-nums; }
.prix .ce { font-weight: 850; font-stretch: 115%; font-size: 2.4rem; line-height: 1; color: var(--marine); }
.prix .public { margin-top: 6px; color: var(--gris); font-size: .95rem; }
.prix .unite { margin-top: 2px; font-size: .9rem; font-weight: 600; }
.prix .b-commander { margin-top: 16px; }

@media (max-width: 900px) {
  .produit { grid-template-columns: 200px minmax(0, 1fr); }
  .produit .prix { grid-column: 2; }
  .photo { height: 200px; }
}
@media (max-width: 560px) {
  .produit { grid-template-columns: 1fr; gap: 18px; }
  .produit .prix { grid-column: auto; }
  .photo { height: 210px; max-width: 320px; }
}

/* Barils des saisons */
.saisons-gamme { background: var(--ciel); margin-top: 72px; padding: 64px 0 56px; }
.saisons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin-top: 28px; }
.saison h3 { font-size: 1.5rem; font-stretch: 112%; margin-top: 16px; }
.saison .photo { height: 230px; }
.saison .photo::after { left: 8%; right: 8%; }
.teintes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.teintes li { display: flex; align-items: center; gap: 10px; }
.teintes li::before { content: ""; flex: none; width: 46px; height: 9px; border-radius: 1.5px; background: var(--t);
  box-shadow: inset 0 0 0 1px rgba(0, 30, 70, .22); }
.saisons-cta { margin-top: 36px; }
.saisons-gamme .gamme-tete p { color: var(--encre); }
@media (max-width: 900px) { .saisons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .saison .photo { height: 180px; } .saisons { gap: 32px 18px; } }

/* Tableau de comparaison */
.tableau { overflow-x: auto; margin-top: 20px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 14px 12px 0; text-align: right; border-bottom: 1px solid var(--trait); }
th:first-child { text-align: left; }
thead th { font-size: .9rem; font-weight: 600; color: var(--gris); border-bottom: 2px solid var(--marine); }
tbody th { font-weight: 700; color: var(--marine); }
td:last-child { font-weight: 800; color: var(--marine); }
td:nth-child(4) { color: var(--gris); }

/* Le jeu */
.apropos-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; margin-top: 8px; }
.apropos-texte p + p { margin-top: 14px; }
.apropos-texte { max-width: 36em; }
.constructions { list-style: none; margin: 0; padding: 0 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; align-items: end; position: relative; }
.constructions::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; border-radius: 2px;
  background: var(--pin); box-shadow: inset 0 -2px 0 rgba(183, 138, 79, .55), inset 0 0 0 1px var(--pin-fonce); }
.constructions img { margin: 0 auto; max-height: 200px; width: auto; }
@media (max-width: 820px) { .apropos-corps { grid-template-columns: 1fr; } }

/* ------------------------------------------------ pied */
.pied { margin-top: 88px; background: var(--marine); color: #C9D7E8; padding: 36px 0 44px; font-size: .9rem; }
.pied p + p { margin-top: 6px; }
