/* ==========================================================================
   Les Surfaces PCM — feuille de style principale
   ========================================================================== */

:root {
  --charbon: #1b1b1d;
  --charbon-clair: #2c2c30;
  --gris-beton: #6b6d72;
  --gris-clair: #f2f1ee;
  --blanc: #ffffff;
  --accent: #e8590c;
  --accent-fonce: #c94a08;
  --accent-clair: #ffb088;
  --succes: #2f9e44;
  --ombre: 0 10px 30px rgba(0, 0, 0, 0.12);
  --rayon: 10px;
  --max-largeur: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--charbon);
  background: var(--blanc);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Segoe UI Semibold", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--gris-beton); }

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-largeur);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--gris-clair);
}

.section--charbon {
  background: var(--charbon);
  color: var(--blanc);
}

.section--charbon p { color: #c9c9cc; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--accent);
  color: var(--blanc);
}

.btn--accent:hover { background: var(--accent-fonce); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--blanc);
}

.btn--ghost:hover { border-color: var(--blanc); }

.btn--outline {
  background: transparent;
  border-color: var(--charbon);
  color: var(--charbon);
}

.btn--outline:hover { background: var(--charbon); color: var(--blanc); }

/* ---------- En-tête / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 27, 29, 0.96);
  backdrop-filter: blur(6px);
  color: var(--blanc);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav__brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--blanc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}

.nav__brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__logo {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--blanc);
  padding: 6px;
  margin-bottom: 16px;
}

.footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d9d9dc;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--blanc);
  border-bottom-color: var(--accent);
}

.nav__cta { display: flex; align-items: center; gap: 18px; }

.nav__phone {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--blanc);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--charbon);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav__links.is-open { max-height: 400px; }

  .nav__links li { width: 100%; }

  .nav__links a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__cta .btn--accent { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Héro ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--charbon) 0%, var(--charbon-clair) 100%);
  color: var(--blanc);
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(232, 89, 12, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(232, 89, 12, 0.12), transparent 40%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero__panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--rayon);
  padding: 28px;
}

.hero__panel-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, #3a3a3f 0 12px, #333336 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9a9a9e;
  font-size: 0.9rem;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Cartes génériques ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--blanc);
  border: 1px solid #eceae5;
  border-radius: var(--rayon);
  padding: 28px;
  box-shadow: var(--ombre);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(232, 89, 12, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---------- Tableau comparatif ---------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}

.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #eceae5;
  font-size: 0.95rem;
}

.compare thead th {
  background: var(--charbon);
  color: var(--blanc);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare tbody tr:last-child td { border-bottom: none; }

.compare td:first-child { font-weight: 700; color: var(--charbon); }

.compare .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag--fort { background: rgba(47, 158, 68, 0.12); color: var(--succes); }
.tag--moyen { background: rgba(232, 89, 12, 0.12); color: var(--accent); }
.tag--faible { background: rgba(200, 40, 40, 0.1); color: #c82828; }

.compare-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

/* ---------- Couleurs de flakes ---------- */
.flake-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}

.flake {
  background: var(--blanc);
  border: 1px solid #eceae5;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  text-align: center;
}

.flake__swatch {
  aspect-ratio: 1 / 1;
  position: relative;
}

.flake__swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 60% 65%, rgba(0,0,0,0.25) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 80%, rgba(0,0,0,0.2) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 85%, rgba(255,255,255,0.3) 0 2px, transparent 3px);
  background-size: 34px 34px;
  mix-blend-mode: overlay;
  opacity: 0.9;
}

.flake__name {
  padding: 12px 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.flake-family {
  margin-bottom: 56px;
}

.flake-family__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.flake-family__count {
  color: var(--gris-beton);
  font-size: 0.9rem;
}

.note-box {
  background: var(--gris-clair);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--charbon);
  margin-bottom: 40px;
}

.note-box strong { color: var(--accent-fonce); }

/* ---------- Photo héro réelle ---------- */
.hero__panel-photo--real {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
}

.hero__panel-photo--real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Galerie ---------- */
.gallery-item {
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid #eceae5;
  box-shadow: var(--ombre);
  background: var(--blanc);
}

.gallery-item__photo {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, #ebe9e4 0 14px, #e2dfd8 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gris-beton);
  font-size: 0.85rem;
  padding: 16px;
  border-bottom: 1px dashed #d8d5cd;
}

.gallery-item__body { padding: 18px 20px; }
.gallery-item__body p { margin-bottom: 0; font-size: 0.9rem; }

.compare-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--charbon);
}

.compare-photos figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.compare-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-photos figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(27, 27, 29, 0.78);
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
}

.gallery-item__photo--single {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: none;
  padding: 0;
}

.gallery-item__photo--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Étapes / Processus ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  padding-left: 8px;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--blanc);
  font-weight: 800;
  margin-bottom: 16px;
}

/* ---------- Formulaire de contact ---------- */
.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
}

.form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d8d5cd;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--blanc);
}

.form textarea { resize: vertical; min-height: 120px; }

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(232, 89, 12, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.placeholder-flag {
  display: inline-block;
  background: #fff4e6;
  color: #b35c00;
  border: 1px dashed #f0a94e;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--charbon);
  color: #c9c9cc;
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__grid h4 {
  color: var(--blanc);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer__grid a:hover { color: var(--blanc); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Lightbox (agrandissement photo) ---------- */
.gallery-item img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  touch-action: pan-y;
}

.lightbox.is-open { display: flex; }

.lightbox__frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--blanc);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}

.lightbox__arrow:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

/* Sur téléphone (écran tactile) : on cache les flèches, la navigation se
   fait par balayage (swipe) directement sur la photo. */
@media (max-width: 760px), (pointer: coarse) {
  .lightbox__arrow { display: none; }
}

/* ---------- Bannière CTA ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--accent), var(--accent-fonce));
  color: var(--blanc);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.cta-banner .btn--ghost { border-color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Peaufinage mobile
   ========================================================================== */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 32px 24px;
  }

  .cta-banner .btn { width: 100%; }

  .card { padding: 22px; }

  .lightbox { padding: 12px; }
  .lightbox__close { top: 10px; right: 12px; font-size: 2rem; }
}

@media (max-width: 480px) {
  .nav { padding: 12px 0; }
  .nav__brand { font-size: 1rem; gap: 8px; }
  .nav__brand-mark { width: 36px; height: 36px; }
  .nav__phone { font-size: 0.82rem; }

  /* Photos avant/après empilées pour rester lisibles sur petit écran */
  .compare-photos { grid-template-columns: 1fr; }
}
