/* Apifab Studio — feuille de style commune */
:root {
  --navy: #1f2a36;
  --orange: #e8892a;
  --blue: #2f93cf;
  --text: #1f2a36;
  --muted: #4c5662;
  --panel: rgba(255, 255, 255, 0.42);
  --panel-line: rgba(31, 42, 54, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  display: flex; flex-direction: column;
  /* mur en béton gris clair, éclairé en haut à droite */
  background-color: #c9c9c6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.35  0 0 0 0 0.34  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 80% 0%, #ececea 0%, rgba(236,236,234,0) 60%),
    linear-gradient(160deg, #d8d8d6 0%, #c3c3c0 55%, #a9a8a4 100%);
  background-attachment: fixed;
}
a { color: var(--navy); }

/* ---------- en-tête des pages produits ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 20px;
  max-width: 960px; width: 100%;
  margin: 0 auto;
  padding: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; letter-spacing: 0.04em;
  color: var(--navy);
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand b { font-weight: 800; }
.brand span { color: var(--orange); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 6px; }
.topbar nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
  color: var(--navy);
}
.topbar nav a:hover { background: var(--panel); }
.topbar nav a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ---------- accueil ---------- */
.home {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 16px 24px;
  text-align: center;
}
.logo {
  width: min(332px, 80vw);
  height: auto; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
                      linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-composite: intersect;
}
.tagline { margin-top: 14px; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.tagline span { color: var(--orange); }
.badge {
  display: inline-block; margin-top: 18px;
  padding: 7px 18px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); margin-right: 9px; vertical-align: 1px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.intro { max-width: 560px; margin-top: 22px; color: var(--muted); }

/* cartes produits */
.products {
  list-style: none; margin-top: 30px;
  width: 100%; max-width: 860px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px;
}
.products a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-line); border-top: 3px solid var(--orange);
  border-radius: 10px; padding: 16px 18px;
  text-align: left; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.products a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31,42,54,.12); }
.products .apifab-museliere a { border-top-color: var(--blue); }
.products .apifab-fence a { border-top-color: var(--navy); }
.products strong { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.products small { color: var(--muted); font-size: 0.92rem; flex: 1; }
.products .more { margin-top: 10px; font-size: 0.88rem; font-weight: 700; color: var(--orange); }

.contact { margin-top: 30px; color: var(--muted); }
.contact a {
  color: var(--navy); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--orange);
}
.contact a:hover { color: var(--orange); }

/* ---------- pages produits ---------- */
.product {
  flex: 1;
  max-width: 960px; width: 100%;
  margin: 0 auto; padding: 24px 16px 40px;
}
.hero { padding: 28px 0 8px; }
.kicker {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent, var(--orange));
}
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin-top: 4px; }
.hero p { margin-top: 12px; max-width: 640px; font-size: 1.1rem; color: var(--muted); }
.hero .badge { margin-top: 18px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px;
  margin-top: 30px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-top: 3px solid var(--accent, var(--orange));
  border-radius: 12px; padding: 20px 22px;
}
.panel h2 { font-size: 1.1rem; margin-bottom: 10px; }
.panel ul { list-style: none; display: grid; gap: 8px; }
.panel li { padding-left: 22px; position: relative; color: var(--muted); }
.panel li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 10px; height: 10px;
  background: var(--accent, var(--orange));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.panel p { color: var(--muted); }
.panel p + p { margin-top: 8px; }

.related { margin-top: 30px; }
.related h2 { font-size: 1.1rem; margin-bottom: 12px; }
.related .products { margin-top: 0; max-width: none; }

.cta {
  margin-top: 30px; padding: 22px;
  border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.cta p { color: #d7dde4; }
.cta strong { color: #fff; display: block; font-size: 1.05rem; }
.cta a {
  background: var(--orange); color: var(--navy);
  font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: 999px;
}
.cta a:hover { background: #f3a04c; }

footer {
  text-align: center; padding: 16px 16px 22px;
  font-size: 0.85rem; color: var(--muted);
}
footer a { color: var(--muted); }
.panel .note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--panel-line); }
.panel .note strong { color: var(--navy); }

/* photo ronde dans l'en-tête des pages produits */
.hero.has-photo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px 40px; flex-wrap: wrap;
}
.hero-text { flex: 1 1 380px; min-width: 0; }
.hero-photo {
  flex: 0 0 auto;
  width: 220px; height: 220px; max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(31, 42, 54, 0.25), 0 0 0 3px var(--accent, var(--orange));
  transition: transform .2s ease;
}
.hero-photo:hover { transform: scale(1.03); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
@media (max-width: 640px) {
  .hero.has-photo { flex-direction: column-reverse; align-items: flex-start; }
  .hero-photo { width: 160px; height: 160px; }
}

/* schéma animé des pages produits */
.schema { margin-top: 30px; }
.schema h2 { font-size: 1.1rem; margin-bottom: 12px; text-align: center; }
.schema figure {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 14px;
  max-width: 712px;
  margin: 0 auto;
}
.schema img { display: block; width: 100%; height: auto; border-radius: 8px; }
.schema figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--muted); }

/* produit disponible : point vert */
.badge.available::before { background: #3ecf5a; }
