/* Pavé : pierre, encre et bleu de travail. Un seul élément marquant : la bande de pavés sous l'accroche. */
:root {
  --papier: #F2F2EF;
  --pierre: #E7E5E0;
  --joint: #D2D1CB;
  --granit: #62676D;
  --encre: #1E2227;
  --bleu: #2C4A8A;
  --bleu-fonce: #213A6E;
  --brique: #9A3B22;
  --mousse: #3E6B4A;
  --titre: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --texte: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --marge: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 1rem; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }

.bandeau { margin: 0; background: var(--encre); color: #E9EAE6; font-size: .82rem; padding: 8px var(--marge); text-align: center; }

.entete { display: flex; align-items: center; gap: 28px; padding: 18px var(--marge); border-bottom: 1px solid var(--joint); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
.logo-mark { width: 38px; height: 25px; fill: var(--encre); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a, .langue { text-decoration: none; font-weight: 500; }
.nav a:hover, .langue:hover { text-decoration: underline; text-underline-offset: 4px; }
.langue { margin-left: auto; color: var(--granit); }

main { padding: 0 var(--marge); }

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 5vw, 56px); max-width: 1180px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); font-weight: 800; max-width: 13ch; }
.hero p { max-width: 58ch; font-size: 1.12rem; color: var(--granit); margin: 22px 0 0; }

.paves { display: block; width: calc(100% + 2 * var(--marge)); margin: 0 calc(-1 * var(--marge)); height: clamp(90px, 12vw, 154px); }

.rayon { padding: clamp(36px, 6vw, 64px) 0 8px; }
.rayon h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 22px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 34px 22px; }
.carte { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.carte-img { position: relative; background: var(--pierre); border-radius: 18px 18px 18px 4px; overflow: hidden; margin-bottom: 10px; }
.carte:hover .carte-nom { text-decoration: underline; text-underline-offset: 3px; }
.carte-nom { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; }
.carte-sous { color: var(--granit); font-size: .92rem; }
.carte-prix { font-weight: 600; margin-top: 2px; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--papier); border: 1px solid var(--joint); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.badge-rupture { color: var(--brique); }

.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--joint); }
.fait h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.fait p { margin: 0; color: var(--granit); max-width: 40ch; }

.fil { padding: 22px 0 8px; font-size: .9rem; color: var(--granit); }
.fil a { color: var(--granit); }
.fiche { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding: 12px 0 clamp(48px, 7vw, 88px); align-items: start; }
.fiche-img { background: var(--pierre); border-radius: 28px 28px 28px 6px; overflow: hidden; }
.fiche-info { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.fiche-info h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
.fiche-sous { margin: -4px 0 0; color: var(--granit); font-size: 1.05rem; }
.fiche-prix { margin: 4px 0 0; font-size: 1.5rem; font-weight: 600; }
.dispo { margin: 0; font-weight: 500; display: flex; align-items: flex-start; gap: 8px; }
.dispo::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: currentColor; flex: none; margin-top: .55em; }
.dispo-stock { color: var(--mousse); }
.dispo-preco { color: var(--bleu); }
.dispo-rupture { color: var(--brique); }
.tailles { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tailles legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.taille { min-width: 56px; padding: 10px 14px; border: 1px solid var(--joint); background: #fff; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; color: var(--encre); }
.taille:hover { border-color: var(--encre); }
.taille[aria-pressed="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.taille:disabled { color: #A3A6A9; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.ajout { margin-top: 8px; padding: 15px 22px; border: 0; border-radius: 12px; background: var(--bleu); color: #fff; font: inherit; font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.ajout:hover { background: var(--bleu-fonce); }
.ajout:disabled { background: #B9BCC0; cursor: not-allowed; }
.refus { margin: 0; padding: 12px 14px; border-left: 3px solid var(--bleu); background: #E3E8F1; font-size: .92rem; }
.fiche-desc { margin: 10px 0 0; max-width: 60ch; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 4px 0 0; font-size: .95rem; }
.details dt { color: var(--granit); }
.details dd { margin: 0; }
.livr { margin: 6px 0 0; font-size: .92rem; color: var(--granit); }

.texte { max-width: 760px; padding: clamp(36px, 6vw, 72px) 0; }
.texte h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 22px; }
.texte h2 { font-size: 1.4rem; margin: 30px 0 10px; }
.texte p, .texte li { max-width: 68ch; }
.table { overflow-x: auto; margin: 8px 0 18px; }
table { border-collapse: collapse; width: 100%; min-width: 460px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--joint); }
th { font-weight: 600; color: var(--granit); font-size: .9rem; }

.pied { padding: 32px var(--marge) 40px; color: var(--granit); font-size: .9rem; }
.pied-liens { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.pied-liens a { color: var(--encre); }
.pied p { margin: 0; }

@media (max-width: 760px) {
  .fiche { grid-template-columns: minmax(0, 1fr); }
  .entete { gap: 14px 22px; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Couleurs */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pastille { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(30, 34, 39, .25); }
.pastille-rayee { background: repeating-linear-gradient(180deg, #E9E2CF 0 3px, #22304D 3px 6px); }
.carte-couleurs { display: flex; align-items: center; gap: 5px; font-size: .86rem; color: var(--granit); margin-top: 2px; }
.carte-couleurs span:last-child { margin-left: 4px; }
.statut { margin: 0 0 -6px; font-weight: 600; color: var(--bleu); }
.couleurs-label { margin: 6px 0 8px; font-weight: 600; }
.pastilles { display: flex; gap: 10px; flex-wrap: wrap; }
.pastilles .pastille { width: 34px; height: 34px; }
.pastilles .pastille[aria-current="true"] { outline: 2px solid var(--encre); outline-offset: 3px; }
.pastilles a.pastille:hover { outline: 2px solid var(--joint); outline-offset: 3px; }
