/* ============================================
   NKM Sport — Charte graphique dérivée du logo
   Rouge érable / noir profond / blanc / vert terrain
   ============================================ */
:root {
  --red: #c8102e;
  --red-dark: #9b0c23;
  --red-bright: #ff3355;
  --black: #121212;
  --charcoal: #1e1e1e;
  --white: #ffffff;
  --off-white: #f6f5f3;
  --grey: #6b6b6b;
  --green: #2e7d32;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .12);
  --font-head: "Arial Black", "Segoe UI", Arial, sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Icônes SVG ---------- */
.icon-svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { height: 62px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.brand-name { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .5px; }
.brand-name span { color: var(--red-bright); }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.main-nav a:hover { color: var(--red-bright); border-bottom-color: var(--red-bright); }

.lang-switch {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .85rem;
  transition: background .2s;
}
.lang-switch:hover { background: var(--red-bright); }

/* ---------- Menu déroulant "Nos services" ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.dropdown-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 6px 4px;
  margin-left: -6px;
  display: flex;
  align-items: center;
  line-height: 0;
}
.dropdown-toggle svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .2s; }
.nav-item:hover .dropdown-toggle svg,
.nav-item.is-open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin-top: 8px;
  padding: 8px 0;
  background: var(--charcoal);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 200;
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--red-bright); }

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(12, 12, 12, .88) 0%, rgba(18, 18, 18, .72) 45%, rgba(155, 12, 35, .68) 100%),
    url("../img/web-hero.webp") center 32% / cover no-repeat,
    var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 110px 24px 120px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* bande "terrain" en pied de héros, clin d'œil au logo */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--green) 0 60px, #256628 60px 120px);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .55);
}

.hero h1 em { font-style: normal; color: var(--red-bright); }

.hero p.lead {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 34px;
  color: rgba(255, 255, 255, .92);
  text-wrap: balance;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.btn-primary:hover { background: var(--red-bright); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 12px; }
.btn-outline:hover { background: var(--white); color: var(--black); }

/* ---------- Hero de page interne (pages de service) ---------- */
.hero--page { padding: 64px 24px 74px; }
.hero--page h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-bright); }
.breadcrumb span[aria-current] { color: var(--white); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--off-white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker,
.kicker {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  text-transform: uppercase;
  margin: 8px 0 12px;
  text-wrap: balance;
}
.section-head p { color: var(--grey); text-wrap: balance; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--red);
  transition: transform .18s, box-shadow .18s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(0, 0, 0, .18); }
.service-card .photo {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 {
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  align-self: flex-start;
}
.service-card p {
  color: var(--grey);
  font-size: .95rem;
  text-align: justify;
  hyphens: auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--red);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
}
.card-link:hover { color: var(--red-bright); text-decoration: underline; }

/* ---------- Liste de caractéristiques (pages de service) ---------- */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 28px;
  margin: 28px 0;
}
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #333;
  font-size: .96rem;
}
.feature-list .icon-svg { color: var(--red); margin-top: 3px; }

.page-copy { max-width: 780px; margin: 0 auto; }
.page-copy p { margin-bottom: 14px; color: #333; text-align: justify; hyphens: auto; }
.page-copy .feature-list { max-width: none; }

.page-image {
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.about-grid h2 { font-family: var(--font-head); font-size: 1.9rem; text-transform: uppercase; margin: 8px 0 16px; text-wrap: balance; }
.about-grid > div > p { margin-bottom: 14px; color: #333; text-align: justify; hyphens: auto; }

.why-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  border-left: 6px solid var(--red);
  box-shadow: var(--shadow);
}
.why-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .5px;
  margin-bottom: 20px;
}
.why-card h3 span { color: var(--red-bright); }
.why-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.why-item:last-child { border-bottom: none; padding-bottom: 0; }
.why-item .badge {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(200, 16, 46, .18);
  border: 1px solid rgba(227, 18, 47, .45);
  color: var(--red-bright);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.why-item p { font-size: .85rem; color: rgba(255, 255, 255, .72); line-height: 1.5; }

/* ---------- Réalisations / galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.gallery figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(12, 12, 12, .82));
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.gallery-note {
  text-align: center;
  color: var(--grey);
  font-size: .85rem;
  margin-top: 22px;
}

/* ---------- CTA bandeau ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}
.cta-band h2 { font-family: var(--font-head); font-size: 1.8rem; text-transform: uppercase; margin-bottom: 12px; text-wrap: balance; }
.cta-band p { margin-bottom: 26px; opacity: .92; text-wrap: balance; }
.cta-band .btn { background: var(--white); color: var(--red-dark); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.contact-item .badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(200, 16, 46, .08);
  border: 1px solid rgba(200, 16, 46, .25);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item .value { padding-top: 8px; color: #333; }
.contact-item .value a { color: var(--red); font-weight: 600; text-decoration: none; }
.contact-item .value a:hover { text-decoration: underline; }
.contact-note { color: var(--grey); font-size: .92rem; margin-top: 22px; }

.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.contact-form label { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 5px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.contact-form button {
  margin-top: 20px;
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.contact-form button:hover { background: var(--red-bright); }
.contact-form button:disabled { opacity: .7; cursor: not-allowed; }

.form-status {
  margin-top: 14px;
  font-size: .9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status--ok { color: #2e7d32; }
.form-status--err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, .75);
  padding: 44px 0 26px;
  border-top: 4px solid var(--red);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
}
.site-footer h4 { color: var(--white); text-transform: uppercase; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.site-footer a:hover { color: var(--red-bright); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 4px 0; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; }
  .main-nav { justify-content: center; }
  .nav-item { flex-direction: column; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0;
    padding: 0;
    min-width: 0;
    text-align: center;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-item.is-open .dropdown-menu,
  .nav-item:focus-within .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 8px 0; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .hero {
    padding: 80px 24px 90px;
    background:
      linear-gradient(120deg, rgba(12, 12, 12, .88) 0%, rgba(18, 18, 18, .72) 45%, rgba(155, 12, 35, .68) 100%),
      url("../img/web-hero-mobile.webp") center 32% / cover no-repeat,
      var(--charcoal);
  }
}
