/* =========================================================
   La Bijouterie du soldat Hirt — thème inspiré de Polar Skate Co.
   Noir & blanc, typo grotesque, majuscules espacées,
   images pleine largeur, zéro arrondi, zéro ombre.
   ========================================================= */

:root {
  --noir: #000;
  --blanc: #fff;
  --gris: #f4f4f4;
  --trait: #e2e2e2;
  --doux: #6f6f6f;
  --police: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gouttiere: clamp(16px, 3vw, 40px);
  --large: 1600px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--blanc); color: var(--noir);
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  font: 15px/1.55 var(--police);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.15; }
::selection { background: var(--noir); color: var(--blanc); }
:focus-visible { outline: 2px solid var(--noir); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--noir); color: var(--blanc); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Petit texte en capitales, signature Polar */
.surtitre, .annonce, .nav a, .actions a, .btn, .pied h4, .tile-nom,
.collection-titre, .line span, .formulaire label, .contact-info dt, .legal dt, .lien {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
}

/* ---------- Barre d'annonce ---------- */
.annonce {
  background: var(--noir); color: var(--blanc);
  text-align: center; padding: 9px var(--gouttiere); font-size: 11px;
}
.annonce a { margin-left: .5em; text-underline-offset: 3px; }

/* ---------- En-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; padding: 12px var(--gouttiere);
  background: var(--blanc); border-bottom: 1px solid var(--trait);
}
.nav { display: flex; gap: 1.6rem; }
.nav a, .actions a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"], .actions a:hover { border-bottom-color: var(--noir); }
.logo { justify-self: center; }
.logo img { height: clamp(46px, 6vw, 72px); width: auto; }
.actions { justify-self: end; display: flex; gap: 1.6rem; align-items: center; }
.badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  margin-left: 4px; background: var(--noir); color: var(--blanc); border-radius: 10px;
  font-size: 11px; letter-spacing: 0;
}
.menu-toggle, .burger { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 15px 28px; cursor: pointer;
  border: 1px solid var(--noir); border-radius: 0; background: var(--noir);
  color: var(--blanc); font-family: var(--police); text-decoration: none; text-align: center;
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--blanc); color: var(--noir); }
.btn-blanc { background: var(--blanc); color: var(--noir); border-color: var(--blanc); }
.btn-blanc:hover, .btn-blanc:focus-visible { background: transparent; color: var(--blanc); }
.btn-large { display: block; width: 100%; max-width: 420px; margin: 2.5rem auto 0; }
.btn.wide { display: block; margin: 1rem 0; }
.btn.pay { width: 100%; }
.lien { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--police); color: var(--doux); text-decoration: underline; text-underline-offset: 3px; }
.lien:hover { color: var(--noir); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; place-items: center;
  min-height: clamp(460px, 82vh, 900px); overflow: hidden; background: var(--noir);
  color: var(--blanc); text-align: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.45)); }
.hero-texte { position: relative; z-index: 1; padding: 0 var(--gouttiere); align-self: end; margin-bottom: clamp(48px, 9vh, 110px); }
.hero h1 { font-size: clamp(30px, 5vw, 64px); font-weight: 700; letter-spacing: -.02em; max-width: 18ch; margin: 0 auto; }
.hero .surtitre { margin: 1rem 0 1.8rem; }

/* ---------- Tuiles collection (2 colonnes, bord à bord) ---------- */
.collections { display: grid; grid-template-columns: 1fr 1fr; }
.collection { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--gris); }
.collection img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.collection:hover img { transform: scale(1.03); }
.collection-titre {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--blanc); color: var(--noir); padding: 12px 22px; white-space: nowrap;
}

/* ---------- Edito ---------- */
.edito { padding: clamp(56px, 10vw, 130px) var(--gouttiere); text-align: center; }
.edito .surtitre { color: var(--doux); margin: 0 0 1.2rem; }
.edito-texte { font-size: clamp(20px, 2.6vw, 32px); line-height: 1.3; max-width: 30ch; margin: 0 auto; letter-spacing: -.01em; }

/* ---------- Blocs génériques ---------- */
.bloc { max-width: var(--large); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gouttiere); }
.bloc + .bloc { border-top: 1px solid var(--trait); }
.bloc-etroit { max-width: 720px; }
.bloc-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.bloc-tete h1, .bloc-tete h2 { font-size: clamp(22px, 2.4vw, 30px); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
.bloc-tete p { margin: 0; color: var(--doux); }
.bloc-tete a { color: var(--noir); }
.page { min-height: 50vh; }

/* ---------- Grille des sections ---------- */
.grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); }
.tile { display: grid; gap: 10px; min-width: 0; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); padding: 18px 12px 14px; background: var(--blanc); text-decoration: none; text-align: center; transition: background .15s; }
.tile-img { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); transition: filter .2s; }
.tile:hover img, .tile.on img { filter: none; }
.tile:hover { background: var(--gris); }
.tile.on { background: var(--noir); color: var(--blanc); }
.tile-nom { font-size: 11px; overflow-wrap: anywhere; }
.tile-initiale { display: grid; place-items: center; width: 70%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-size: clamp(22px, 3vw, 36px); font-weight: 700; }

/* ---------- Produits ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(12px, 2vw, 24px); }
.produit { display: grid; gap: 4px; text-decoration: none; }
.produit-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--gris); margin-bottom: 10px; }
.produit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.produit:hover .produit-img img { transform: scale(1.03); }
.produit-nom { font-size: 14px; }
.produit-prix { font-size: 14px; color: var(--doux); }
.produit:hover .produit-nom { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Journal ---------- */
.news { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.news img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news .surtitre { color: var(--doux); margin: 0 0 .8rem; }
.news h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 1rem; }
.news p { max-width: 60ch; }

/* ---------- Formulaires ---------- */
.formulaire { display: flex; flex-direction: column; }
.formulaire label { margin: 18px 0 8px; }
.formulaire label:first-child { margin-top: 0; }
.formulaire .btn { margin-top: 24px; align-self: flex-start; }
input, select, textarea {
  width: 100%; padding: 13px 14px; font: 16px var(--police); color: var(--noir);
  background: var(--blanc); border: 1px solid var(--noir); border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--noir); outline-offset: -2px; }
textarea { resize: vertical; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gris); }
.about p { max-width: 60ch; font-size: 17px; }
.about img:nth-of-type(2) { grid-column: 1; grid-row: 2; }
.about p:nth-of-type(2) { grid-column: 2; grid-row: 2; }

/* ---------- Boutique / panier ---------- */
.line { display: grid; grid-template-columns: 2fr 2fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 3rem; }
.line label { display: grid; gap: 8px; }
.line .btn { height: 49px; padding-block: 0; }
.titre-panier { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid var(--noir); }
.cart { list-style: none; margin: 0; padding: 0; }
.cart li { display: grid; grid-template-columns: 80px 1fr auto auto; align-items: center; gap: 1.25rem; padding: 18px 0; border-bottom: 1px solid var(--trait); }
.cart img { width: 80px; aspect-ratio: 1; object-fit: cover; background: var(--gris); }
.cart-nom small { display: block; color: var(--doux); font-size: 13px; margin-top: 4px; }
.total { max-width: 420px; margin: 2rem 0 0 auto; }
.total p { margin: 0 0 .5rem; }
.total p:first-child { display: flex; justify-content: space-between; font-size: 17px; }
.total .mention { color: var(--doux); font-size: 13px; }
.total .btn-large { margin-top: 1.5rem; max-width: none; }
.vide { color: var(--doux); padding: 2rem 0; }
.note { padding: 14px 18px; background: var(--noir); color: var(--blanc); margin: 0 0 2rem; }
.confirm { text-align: center; display: grid; place-items: center; align-content: center; gap: 1rem; }
.confirm h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 700; }

/* ---------- Contact & pages légales ---------- */
.contact-section { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px); }
.contact-info, .contact-form { flex: 1 1 min(400px, 100%); min-width: 0; }
.contact-section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid var(--noir); margin-bottom: 1.5rem; }
dl { display: grid; gap: 4px 0; margin: 1.5rem 0; }
dt { color: var(--doux); margin-top: 12px; }
dd { margin: 0; font-size: 17px; }
.legal { max-width: 860px; }
.legal p { max-width: 65ch; }

.intro { text-align: center; padding: clamp(24px, 6vw, 50px) 20px; }

/* ---------- Pied de page ---------- */
.pied { flex-shrink: 0; background: var(--noir); color: var(--blanc); padding: clamp(48px, 6vw, 80px) var(--gouttiere) 28px; margin-top: auto; }
.pied-grille { max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 2.5rem; }
.pied h4 { margin-bottom: 1.2rem; font-weight: 700; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { text-decoration: none; color: #bdbdbd; font-size: 14px; }
.pied a:hover { color: var(--blanc); text-decoration: underline; text-underline-offset: 3px; }
.newsletter form { display: flex; border-bottom: 1px solid var(--blanc); }
.newsletter input { border: 0; background: transparent; color: var(--blanc); padding: 10px 0; }
.newsletter input::placeholder { color: #8a8a8a; }
.newsletter input:focus { outline: none; }
.newsletter button { background: none; border: 0; color: var(--blanc); cursor: pointer; font: 12px var(--police); letter-spacing: .08em; }
.pied-bas { max-width: var(--large); margin: clamp(40px, 6vw, 72px) auto 0; padding-top: 22px; border-top: 1px solid #2c2c2c; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: 12px; color: #8a8a8a; }
.pied-bas p { margin: 0; }
.reseaux { display: flex; gap: 18px; }
.reseaux a { color: var(--blanc); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Menu burger sans JavaScript */
  .burger {
    display: block; width: 44px; height: 44px; margin-left: -10px; cursor: pointer; position: relative;
  }
  .burger span, .burger span::before, .burger span::after {
    position: absolute; left: 10px; width: 22px; height: 1.5px; background: var(--noir); content: ""; transition: transform .2s, opacity .2s;
  }
  .burger span { top: 21px; }
  .burger span::before { left: 0; top: -7px; }
  .burger span::after { left: 0; top: 7px; }
  .menu-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; left: var(--gouttiere); cursor: pointer; z-index: 2; }
  .menu-toggle:focus-visible + .burger { outline: 2px solid var(--noir); }
  .menu-toggle:checked + .burger span { background: transparent; }
  .menu-toggle:checked + .burger span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .burger span::after { transform: translateY(-7px) rotate(-45deg); }

  .top { grid-template-columns: 44px 1fr auto; }
  .logo { grid-column: 2; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--blanc); border-bottom: 1px solid var(--noir);
  }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 16px var(--gouttiere); border-bottom: 1px solid var(--trait); font-size: 13px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--trait); text-decoration: underline; text-underline-offset: 4px; }

  .collections { grid-template-columns: 1fr; }
  .collection { aspect-ratio: 4 / 3; }
  .news, .about { grid-template-columns: 1fr; }
  .about img:nth-of-type(2), .about p:nth-of-type(2) { grid-column: auto; grid-row: auto; }
  .line { grid-template-columns: 1fr 1fr; }
  .line .btn { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: 1fr 1fr; }
  .line { grid-template-columns: 1fr; }
  .cart li { grid-template-columns: 64px 1fr auto; gap: .9rem; }
  .cart img { width: 64px; }
  .cart li form { grid-column: 2 / -1; }
  .total { max-width: none; }
  .pied-grille { grid-template-columns: 1fr; gap: 2rem; }
  .annonce a { display: none; }
}
