/* ==========================================================================
   CasquetteGraff.com — feuille de style principale
   Palette reprise de la bannière : rouge spray, noir béton, blanc craie.
   ========================================================================== */

:root {
  --rouge: #E10D00;
  --rouge-fonce: #8E0700;
  --noir: #0D0D0D;
  --beton: #1B1A19;
  --beton-clair: #2C2A28;
  --craie: #F4F2ED;
  --gris: #A4A09A;

  --titre: "Anton", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --tag: "Permanent Marker", "Bradley Hand", cursive;
  --texte: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --largeur: 1120px;
  --gouttiere: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--noir);
  color: var(--craie);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--rouge); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .98;
  text-transform: uppercase;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

p { max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 var(--gouttiere);
}

.section { padding: clamp(56px, 9vw, 104px) 0; scroll-margin-top: 120px; }
.section--beton { background: var(--beton); }
.section--rouge { background: var(--rouge); color: #fff; }
.section--rouge a { color: #fff; }

/* --- Bandeau navigation ------------------------------------------------- */

.bandeau {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 13, .96);
  border-bottom: 3px solid var(--rouge);
}

.bandeau__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.marque {
  font-family: var(--titre);
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--craie);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.marque span { color: var(--rouge); }

.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); flex-wrap: wrap; }
.nav a {
  color: var(--craie);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rouge); color: #fff; }

/* --- Boutons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  font-family: var(--titre);
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 0;
  cursor: pointer;
  background: var(--rouge);
  color: #fff;
  clip-path: polygon(0 0, 100% 3px, calc(100% - 4px) 100%, 5px calc(100% - 3px));
}
.btn:hover { background: #ff2113; }
.btn--ligne { background: transparent; color: var(--craie); border: 2px solid var(--craie); clip-path: none; }
.btn--ligne:hover { background: var(--craie); color: var(--noir); }
.btn--wa { background: #1EBE5D; }
.btn--wa:hover { background: #24d76b; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* --- Hero --------------------------------------------------------------- */

.hero { position: relative; background: #000; }
.hero__img { width: 100%; height: auto; }
.hero__sous {
  background: var(--rouge);
  padding: 18px 0;
}
.hero__sous .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  align-items: center;
  justify-content: center;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(.85rem, 2.2vw, 1.05rem);
  color: #fff;
  text-align: center;
}

.accroche { padding: clamp(48px, 8vw, 86px) 0 clamp(30px, 5vw, 50px); }
.accroche p.chapo { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--gris); }
.accroche .tag {
  font-family: var(--tag);
  color: var(--rouge);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  transform: rotate(-2deg);
  display: inline-block;
  margin-bottom: 10px;
}

/* --- Configurateur ------------------------------------------------------ */

.config {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 860px) {
  .config { grid-template-columns: 1fr; }
  .config > aside { order: -1; }
}

.apercu {
  position: sticky;
  top: 96px;
  background: var(--beton-clair);
  padding: 26px;
  border: 2px solid #000;
}
@media (max-width: 860px) { .apercu { position: static; } }

.apercu__note {
  font-size: .9rem;
  color: var(--gris);
  margin: 14px 0 0;
}

.alerte-lettres {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--rouge-fonce);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  display: none;
}
.alerte-lettres.actif { display: block; }
.alerte-lettres.ok { background: #1E5F33; }

.casquette-item {
  background: var(--beton-clair);
  border-left: 5px solid var(--rouge);
  padding: 20px 22px 24px;
  margin-bottom: 20px;
}
.casquette-item__tete {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.casquette-item__num {
  font-family: var(--titre);
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.retirer {
  background: none;
  border: 0;
  color: var(--gris);
  font-family: var(--texte);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.retirer:hover { color: var(--rouge); }

.champ { margin-bottom: 16px; }
.champ label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 6px;
}
.champ select, .champ input[type="text"], .champ textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--noir);
  color: var(--craie);
  border: 2px solid #3c3a37;
  font-family: var(--texte);
  font-size: 1rem;
}
.champ input[type="text"]:focus, .champ select:focus { border-color: var(--rouge); }
.champ .aide { font-size: .84rem; color: var(--gris); margin: 6px 0 0; }
.champ .valeur-fixe {
  margin: 0;
  padding: 12px 14px;
  background: var(--beton);
  color: var(--gris);
  border: 2px solid #3c3a37;
  font-family: var(--texte);
  font-size: 1rem;
}
.compteur { float: right; font-weight: 700; font-size: .85rem; color: var(--gris); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }

.recap {
  background: var(--noir);
  border: 2px solid var(--rouge);
  padding: 22px;
  margin-top: 8px;
}
.recap__ligne {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed #3c3a37;
  font-size: .95rem;
}
.recap__ligne span + span { white-space: nowrap; font-weight: 700; }
.recap__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--titre);
  font-size: 1.6rem;
  text-transform: uppercase;
}
.recap__total strong { color: var(--rouge); font-weight: 400; font-size: 2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.actions .btn { flex: 1 1 200px; text-align: center; }

/* --- Galerie Facebook --------------------------------------------------- */

.fb-cadre {
  background: var(--beton-clair);
  border: 2px solid #000;
  padding: 12px;
  overflow: hidden;
}
.fb-cadre iframe { width: 100%; border: 0; display: block; }

/* --- Grilles de contenu ------------------------------------------------- */

.grille { display: grid; gap: clamp(20px, 3vw, 32px); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.bloc { background: var(--beton-clair); padding: 26px; border-top: 5px solid var(--rouge); }
.bloc h3 { color: var(--craie); }
.bloc p { margin-bottom: 0; }

.etape { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #302e2b; }
.etape:last-child { border-bottom: 0; }
.etape__num {
  font-family: var(--titre);
  font-size: 2.6rem;
  color: var(--rouge);
  line-height: 1;
  min-width: 52px;
}
.etape h3 { margin-bottom: .3em; }
.etape p { margin: 0; }

.prix-carte {
  background: var(--beton-clair);
  border: 2px solid var(--rouge);
  padding: 26px;
  text-align: left;
}
.prix-carte .montant {
  font-family: var(--titre);
  font-size: 3.4rem;
  color: var(--rouge);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.prix-carte p { margin: 0; color: var(--gris); }

ul.liste { padding-left: 0; list-style: none; max-width: 68ch; }
ul.liste li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid #302e2b;
  position: relative;
}
ul.liste li::before {
  content: "";
  position: absolute;
  left: 0; top: 20px;
  width: 14px; height: 4px;
  background: var(--rouge);
  transform: skewX(-25deg);
}

.avertissement {
  background: var(--rouge);
  color: #fff;
  padding: 22px 26px;
  border-left: 8px solid #fff;
  max-width: 74ch;
}
.avertissement p { margin: 0; max-width: none; }
.avertissement strong { font-family: var(--titre); font-size: 1.2rem; display: block; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }

/* --- WhatsApp flottant -------------------------------------------------- */

.wa-flottant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1EBE5D;
  color: #fff;
  text-decoration: none;
  font-family: var(--titre);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}
.wa-flottant:hover { background: #24d76b; }
.wa-flottant svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 520px) {
  .wa-flottant { padding: 14px; border-radius: 50%; }
  .wa-flottant span { display: none; }
}

/* --- Pied de page ------------------------------------------------------- */

.pied { background: #000; padding: 48px 0 32px; font-size: .92rem; color: var(--gris); }
.pied a { color: var(--craie); text-decoration: none; }
.pied a:hover { color: var(--rouge); }
.pied__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pied h3 { font-size: 1.05rem; color: var(--craie); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { padding: 4px 0; }
.pied__bas { margin-top: 32px; padding-top: 18px; border-top: 1px solid #222; font-size: .85rem; }
