/* MAGNI Sports : page de vente. Mobile d'abord, sans framework. */
:root {
  --encre: #15171a;
  --texte: #2b2f36;
  --doux: #5c6370;
  --fond: #ffffff;
  --fond-2: #f4f5f7;
  --ligne: #e2e5ea;
  --accent: #d0161f;
  --accent-fonce: #a50f17;
  --ok: #17703a;
  --rayon: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--texte);
  background: var(--fond);
}
img { max-width: 100%; height: auto; display: block; }
.heros .conteneur > *, .offres > *, .caracteristiques > *, .publics > *, .pro__grille > *, .galerie > * { min-width: 0; }
.texte table { display: block; overflow-x: auto; }
a { color: var(--accent-fonce); }
h1, h2, h3 { color: var(--encre); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.conteneur--etroit { max-width: 760px; }
.section { padding: 56px 0; }
.section--grise { background: var(--fond-2); }
.centre { text-align: center; }
.petit { font-size: .9rem; color: var(--doux); }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Bandeau */
.bandeau { background: var(--encre); color: #fff; font-size: .92rem; padding: 10px 0; text-align: center; }
.bandeau strong { color: #fff; }
.bandeau span { opacity: .85; }

/* En-tête */
.entete { border-bottom: 1px solid var(--ligne); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: .08em; color: var(--encre); text-decoration: none; }
.logo span { color: var(--accent); }
.entete nav a { color: var(--texte); text-decoration: none; font-size: .95rem; margin-left: 18px; }

/* Boutons */
.bouton {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700;
  padding: 14px 26px; text-decoration: none; text-align: center;
}
.bouton:hover, .bouton:focus-visible { background: var(--accent-fonce); }
.bouton:disabled { background: #9aa0aa; cursor: not-allowed; }
.bouton--plein { width: 100%; }
.bouton--secondaire { background: transparent; color: var(--encre); border: 2px solid var(--encre); }
.bouton--secondaire:hover, .bouton--secondaire:focus-visible { background: var(--encre); color: #fff; }
:focus-visible { outline: 3px solid #2f6fde; outline-offset: 2px; }

/* Héros */
.heros { padding: 32px 0 48px; }
.heros .conteneur { display: grid; gap: 24px; align-items: center; }
.heros__visuel { background: #fff; border-radius: var(--rayon); }
.heros__etiquette {
  display: inline-block; background: #fdecec; color: var(--accent-fonce);
  font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.heros__liste { list-style: none; padding: 0; margin: 0 0 24px; }
.heros__liste li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.heros__liste li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.heros__actions a.lien { font-weight: 600; }

/* Offres */
.offres { display: grid; gap: 18px; margin-top: 28px; }
.offre {
  position: relative; border: 2px solid var(--ligne); border-radius: var(--rayon);
  padding: 24px 20px; background: #fff; display: flex; flex-direction: column;
}
.offre--vedette { border-color: var(--accent); }
.offre__badge {
  position: absolute; top: -13px; left: 20px; background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.offre__titre { font-size: 1.2rem; margin-bottom: 4px; }
.offre__prix { font-size: 2.1rem; font-weight: 800; color: var(--encre); line-height: 1.1; }
.offre__unitaire { color: var(--doux); font-size: .95rem; margin: 4px 0 10px; }
.offre__port { font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.offre__port--offert { color: var(--ok); }
.offre form { margin-top: auto; }
.champ { margin-bottom: 14px; }
.champ label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.champ select, .champ input, .champ textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9bfc9;
  border-radius: 8px; background: #fff; color: var(--texte);
}
.offres__infos { margin-top: 24px; text-align: center; color: var(--doux); font-size: .95rem; }
.offres__infos strong { color: var(--encre); }

/* Caractéristiques */
.caracteristiques { display: grid; gap: 28px; align-items: start; }
.tableau { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; }
.tableau th, .tableau td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.tableau th { width: 42%; color: var(--doux); font-weight: 600; }
.tableau tr:last-child th, .tableau tr:last-child td { border-bottom: 0; }
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.galerie figure { margin: 0; background: #fff; border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); }
.galerie figcaption { font-size: .85rem; color: var(--doux); padding: 8px 12px; }
.galerie .large { grid-column: 1 / -1; }

/* Pour qui */
.publics { display: grid; gap: 18px; margin-top: 24px; }
.public { background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 22px; }
.public svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 10px; }

/* Pros */
.pro { background: var(--encre); color: #dfe3e8; }
.pro h2, .pro h3 { color: #fff; }
.pro .tableau { color: var(--texte); }
.pro .tableau th { width: auto; }
.pro .tableau td:last-child, .pro .tableau th:last-child { text-align: right; }
.pro__grille { display: grid; gap: 28px; align-items: center; }
.pro .bouton { margin-top: 8px; }
.pro .petit { color: #b9c0ca; margin-top: 12px; }
.pro a:not(.bouton) { color: #fff; }
.devis { background: #fff; color: var(--texte); border-radius: var(--rayon); padding: 24px 20px; margin-top: 36px; scroll-margin-top: 16px; }
.devis h3 { color: var(--encre); }
.pro .devis .petit { color: var(--doux); }
.pro .devis a:not(.bouton) { color: var(--accent-fonce); }
.devis__grille { display: grid; gap: 0 18px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--ligne); padding: 16px 0; }
.faq summary { font-weight: 700; color: var(--encre); cursor: pointer; }
.faq details p { margin: 10px 0 0; }

/* Pied de page */
.pied { background: var(--fond-2); padding: 36px 0; font-size: .92rem; color: var(--doux); }
.pied nav a { margin-right: 16px; }
.pied p { margin-bottom: .6em; }
.pied__legal { margin-top: 12px; }

/* Pages de texte (CGV, mentions…) */
.texte { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.texte h1 { font-size: 2rem; }
.texte h2 { font-size: 1.3rem; margin-top: 1.8em; }
.texte ul { padding-left: 1.2em; }
.texte table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 1em; }
.texte th, .texte td { border: 1px solid var(--ligne); padding: 8px 10px; text-align: left; vertical-align: top; }
.texte th { background: var(--fond-2); }
.encadre { background: var(--fond-2); border-radius: var(--rayon); padding: 18px 20px; }

@media (min-width: 760px) {
  .heros .conteneur { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .offres { grid-template-columns: repeat(2, 1fr); }
  .devis__grille { grid-template-columns: 1fr 1fr; }
  .caracteristiques { grid-template-columns: 1fr 1fr; }
  .galerie { grid-template-columns: repeat(3, 1fr); }
  .galerie .large { grid-column: span 3; }
  .publics { grid-template-columns: repeat(3, 1fr); }
  .pro__grille { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (min-width: 1000px) {
  .offres { grid-template-columns: repeat(4, 1fr); }
  .devis { padding: 32px; }
}

@media (max-width: 420px) {
  .entete nav a:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
