/* =========================================================================
   SMART Construction — feuille de style principale
   Reproduction du design "Tailwind + shadcn" en CSS vanilla autonome.
   ========================================================================= */

/* ---------- 1. Variables (palette HSL — identique au design d'origine) -- */
:root {
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --background: 80 6% 93%;
  --foreground: 140 25% 12%;
  --card: 80 6% 96%;
  --card-foreground: 140 25% 12%;
  --primary: 22 100% 50%;
  --primary-foreground: 0 0% 100%;
  --muted: 80 5% 87%;
  --muted-foreground: 140 10% 40%;
  --accent: 140 35% 15%;
  --accent-foreground: 80 6% 93%;
  --border: 140 8% 75%;
  --input: 140 8% 75%;
  --ring: 22 100% 50%;
  --radius: 0.25rem;

  --c-bg: hsl(var(--background));
  --c-fg: hsl(var(--foreground));
  --c-card: hsl(var(--card));
  --c-primary: hsl(var(--primary));
  --c-primary-fg: hsl(var(--primary-foreground));
  --c-muted: hsl(var(--muted));
  --c-muted-fg: hsl(var(--muted-foreground));
  --c-accent: hsl(var(--accent));
  --c-accent-fg: hsl(var(--accent-foreground));
  --c-border: hsl(var(--border));
}

/* ---------- 2. Reset léger ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--c-bg);
  color: var(--c-fg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 3. Scrollbar ------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

/* ---------- 4. Utilitaires ---------------------------------------------- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.eyebrow .line { height: 1px; width: 3rem; background: var(--c-primary); }

.section-title {
  text-align: center; font-size: clamp(2.25rem, 4vw, 3.75rem);
  letter-spacing: -0.02em; line-height: 1.05;
}
.section-title .accent { color: var(--c-primary); display: block; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--c-primary); color: var(--c-primary-fg);
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.875rem 1.75rem; border: 0; transition: background-color .2s ease;
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid hsl(0 0% 100% / 0.25); color: #fff;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.875rem 1.75rem; transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

.grain-overlay { position: relative; }
.grain-overlay::after {
  content: ''; position: absolute; inset: 0; opacity: 0.03; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Animations apparition (équivalent framer-motion whileInView) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-x-left { transform: translateX(-30px); }
.reveal-x-right { transform: translateX(30px); }

/* ---------- 5. Navigation principale ------------------------------------ */
.smartc-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background-color .5s ease, border-color .5s ease;
  background: transparent; border-bottom: 1px solid transparent;
}
.smartc-nav.is-scrolled {
  background: hsl(var(--accent) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(0 0% 100% / 0.05);
}
.smartc-nav .row { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.smartc-nav .logo { display: flex; align-items: center; gap: 0.75rem; }
.smartc-nav .logo .badge {
  width: 2rem; height: 2rem; background: var(--c-primary); display: inline-flex;
  align-items: center; justify-content: center; color: var(--c-primary-fg);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem;
}
.smartc-nav .logo .name {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: #fff;
}
.smartc-nav.is-scrolled .logo .name { color: var(--c-accent-fg); }
.smartc-nav .logo .name .light { font-weight: 300; opacity: 0.6; margin-left: 0.25rem; }

.smartc-nav .links { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .smartc-nav .links { display: flex; } }
.smartc-nav .pill {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem;
  border: 1px solid hsl(0 0% 100% / 0.2); color: hsl(0 0% 100% / 0.7);
  font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; transition: border-color .2s, color .2s;
}
.smartc-nav.is-scrolled .pill { border-color: hsl(var(--accent-foreground) / 0.2); color: hsl(var(--accent-foreground) / 0.7); }
.smartc-nav .pill:hover { border-color: var(--c-primary); color: var(--c-primary); }
.smartc-nav .pill.is-cta { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-fg); }
.smartc-nav .pill.is-cta:hover { background: hsl(var(--primary) / 0.9); color: var(--c-primary-fg); }

.smartc-nav .menu-btn { display: inline-flex; padding: 0.5rem; color: #fff; }
.smartc-nav.is-scrolled .menu-btn { color: var(--c-accent-fg); }
@media (min-width: 768px) { .smartc-nav .menu-btn { display: none; } }

/* Menu mobile */
.smartc-mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--c-accent);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.smartc-mobile-menu.is-open { display: flex; }
.smartc-mobile-menu a, .smartc-mobile-menu button {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-accent-fg);
  transition: color .2s;
}
.smartc-mobile-menu a:hover, .smartc-mobile-menu button:hover { color: var(--c-primary); }
.smartc-mobile-menu .group { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.smartc-mobile-menu .group a, .smartc-mobile-menu .group button {
  display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; letter-spacing: 0.2em;
  padding: 1rem 2rem; border: 1px solid hsl(var(--accent-foreground) / 0.2);
}
.smartc-mobile-menu .group .is-cta { background: var(--c-primary); color: var(--c-primary-fg); border: 0; }

/* ---------- 6. Hero — split IT / Béton ---------------------------------- */
.smartc-hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.smartc-hero .bg { position: absolute; inset: 0; display: flex; }
.smartc-hero .bg .half { width: 50%; position: relative; }
.smartc-hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smartc-hero .bg .half:first-child::after { content: ''; position: absolute; inset: 0; background: hsl(var(--accent) / 0.7); }
.smartc-hero .bg .half:last-child::after  { content: ''; position: absolute; inset: 0; background: hsl(var(--accent) / 0.5); }

.smartc-hero .trace-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: hsl(var(--primary) / 0.4); z-index: 10; }

.smartc-hero .eyebrow-top {
  position: absolute; top: 7rem; left: 0; right: 0; z-index: 10; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: hsl(0 0% 100% / 0.5); text-align: center;
}
.smartc-hero .eyebrow-top .line { height: 1px; width: 3rem; background: var(--c-primary); }

.smartc-hero .grid { position: relative; z-index: 10; height: 100%; display: flex; }
.smartc-hero .col { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 2rem; }
@media (min-width: 768px) { .smartc-hero .col { padding: 0 3.5rem; } }
@media (min-width: 1024px) { .smartc-hero .col { padding: 0 5rem; } }
.smartc-hero .col.left { align-items: flex-start; }
.smartc-hero .col.right { align-items: flex-end; text-align: right; }

.smartc-hero .col .kicker {
  font-family: var(--font-body); font-size: 0.625rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--c-primary); display: block; margin-bottom: 1rem;
}
.smartc-hero .col h2 {
  font-size: clamp(1.875rem, 5vw, 3.75rem); color: #fff; line-height: 1; letter-spacing: -0.02em;
}
.smartc-hero .col h2 .accent { color: var(--c-primary); }
.smartc-hero .col p { font-size: 0.875rem; color: hsl(0 0% 100% / 0.4); margin-top: 1.25rem; max-width: 18rem; line-height: 1.6; }
@media (max-width: 767px) { .smartc-hero .col p { display: none; } }
.smartc-hero .col .cta { margin-top: 2rem; }

.smartc-hero .scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-family: var(--font-body); font-size: 0.625rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: hsl(0 0% 100% / 0.3);
}
.smartc-hero .scroll-cue svg { animation: smartc-bounce 2s ease-in-out infinite; }
@keyframes smartc-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.smartc-hero .bottom-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; z-index: 10;
  background: linear-gradient(to top, var(--c-bg), transparent);
}

/* ---------- 7. Stats bar ------------------------------------------------- */
.smartc-stats { background: var(--c-accent); padding: 4rem 0; }
.smartc-stats .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .smartc-stats .grid { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.smartc-stats .item { text-align: center; }
@media (min-width: 768px) { .smartc-stats .item { border-right: 1px solid hsl(var(--accent-foreground) / 0.05); }
  .smartc-stats .item:last-child { border-right: 0; } }
.smartc-stats .value { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--c-primary); display: block; }
@media (min-width: 768px) { .smartc-stats .value { font-size: 2.25rem; } }
.smartc-stats .label { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--accent-foreground) / 0.4); margin-top: 0.5rem; }

/* ---------- 8. Section title bloc --------------------------------------- */
.smartc-section { padding: 6rem 0; }
@media (min-width: 1024px) { .smartc-section { padding: 8rem 0; } }
.smartc-section-header { text-align: center; margin-bottom: 5rem; }
.smartc-section-header .lead { font-family: var(--font-body); font-size: 1rem; color: var(--c-muted-fg); margin-top: 1.5rem; max-width: 42rem; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ---------- 9. Profile card --------------------------------------------- */
.smartc-profile {
  border: 1px solid var(--c-border); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .smartc-profile { grid-template-columns: 1fr 1fr; } }
.smartc-profile + .smartc-profile { margin-top: 1px; }
.smartc-profile .img-col {
  position: relative; min-height: 420px; height: 320px;
  overflow: hidden;
}
@media (min-width: 1024px) { .smartc-profile .img-col { height: auto; } }
.smartc-profile .img-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smartc-profile .img-col .overlay { position: absolute; inset: 0; background: hsl(var(--accent) / 0.5); }
.smartc-profile .img-col .tag {
  position: absolute; top: 2rem; padding: 0.5rem 1rem;
  background: hsl(var(--accent) / 0.9); backdrop-filter: blur(6px);
  font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-primary);
}
.smartc-profile .img-col .tag.left { left: 2rem; }
.smartc-profile .img-col .tag.right { right: 2rem; }

.smartc-profile .img-col .certs { position: absolute; bottom: 2rem; left: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.smartc-profile .img-col .certs span {
  background: var(--c-primary); color: var(--c-primary-fg);
  font-family: var(--font-heading); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 0.25rem 0.5rem;
}
.smartc-profile .img-col .caption {
  position: absolute; bottom: 2rem; left: 2rem;
  background: hsl(var(--accent) / 0.8); backdrop-filter: blur(6px);
  padding: 0.5rem 1rem; font-family: var(--font-body); font-size: 0.75rem; color: hsl(0 0% 100% / 0.8);
}

.smartc-profile .body-col { padding: 2rem; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .smartc-profile .body-col { padding: 4rem; } }
.smartc-profile .trace { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-muted-fg); }
.smartc-profile .trace .line { height: 1px; width: 2rem; background: var(--c-primary); }
.smartc-profile h3 { font-size: clamp(1.875rem, 3vw, 2.25rem); line-height: 1.15; }
.smartc-profile .role { font-family: var(--font-heading); font-size: 0.875rem; letter-spacing: 0.05em; color: var(--c-primary); margin-top: 0.5rem; text-transform: uppercase; }
.smartc-profile .meta { font-family: var(--font-body); font-size: 0.75rem; color: var(--c-muted-fg); margin-top: 0.25rem; }
.smartc-profile .bio { font-size: 0.875rem; color: var(--c-muted-fg); margin-top: 1.5rem; line-height: 1.7; }
.smartc-profile .bio strong { color: var(--c-fg); }
.smartc-profile .caps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .smartc-profile .caps { grid-template-columns: 1fr 1fr; } }
.smartc-profile .cap { display: flex; align-items: flex-start; gap: 0.75rem; }
.smartc-profile .cap .ic {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0; margin-top: 0.125rem;
  background: var(--c-muted); display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s; color: var(--c-fg);
}
.smartc-profile .cap:hover .ic { background: var(--c-primary); color: var(--c-primary-fg); }
.smartc-profile .cap h4 { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; }
.smartc-profile .cap p { font-size: 0.75rem; color: var(--c-muted-fg); margin-top: 0.25rem; line-height: 1.6; }

.smartc-profile .companies { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.smartc-profile .companies span {
  background: var(--c-muted); color: var(--c-fg);
  font-family: var(--font-body); font-size: 0.6875rem;
  padding: 0.25rem 0.75rem; border: 1px solid var(--c-border);
}

.smartc-profile .toggle {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--c-primary);
  font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.smartc-profile .toggle:hover { opacity: 0.7; }
.smartc-profile .xp { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.smartc-profile .xp.is-open { max-height: 4000px; }
.smartc-profile .xp-list { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 2px solid hsl(var(--primary) / 0.2); display: flex; flex-direction: column; gap: 1rem; }
.smartc-profile .xp-item .period { font-family: var(--font-heading); font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-primary); }
.smartc-profile .xp-item .title { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; margin-top: 0.125rem; }
.smartc-profile .xp-item .client { font-family: var(--font-body); font-size: 0.6875rem; color: var(--c-muted-fg); font-weight: 500; }
.smartc-profile .xp-item .desc { font-size: 0.75rem; color: var(--c-muted-fg); margin-top: 0.25rem; line-height: 1.6; }
.smartc-profile .xp-item .tech { font-size: 0.625rem; color: hsl(var(--primary) / 0.7); margin-top: 0.25rem; font-style: italic; }

/* ---------- 10. Service matrix ------------------------------------------ */
.smartc-services { padding: 6rem 0; }
@media (min-width: 1024px) { .smartc-services { padding: 8rem 0; } }
.smartc-services .category-block + .category-block { margin-top: 6rem; }

.smartc-services .cat-image {
  position: relative; height: 16rem; overflow: hidden; margin-bottom: 3rem;
}
@media (min-width: 768px) { .smartc-services .cat-image { height: 20rem; } }
.smartc-services .cat-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smartc-services .cat-image::before, .smartc-services .cat-image::after { content:''; position: absolute; left: 0; right: 0; height: 1px; background: hsl(var(--primary) / 0.4); }
.smartc-services .cat-image::before { top: 0; }
.smartc-services .cat-image::after { bottom: 0; }
.smartc-services .cat-image .veil { position: absolute; inset: 0; background: hsl(var(--accent) / 0.6); display: flex; align-items: center; justify-content: center; padding: 0 1rem; }
.smartc-services .cat-image .veil h3 {
  color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: 0.05em;
  text-transform: uppercase; text-align: center;
}

.smartc-services .cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .smartc-services .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .smartc-services .cards { grid-template-columns: repeat(4, 1fr); } }
.smartc-services .card {
  position: relative; background: var(--c-card); border: 1px solid var(--c-border); padding: 2rem;
  transition: border-color .3s;
}
.smartc-services .card:hover { border-color: hsl(var(--primary) / 0.4); }
.smartc-services .card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.smartc-services .card:hover::after { transform: scaleX(1); }
.smartc-services .card .idx { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-heading); font-size: 0.75rem; color: hsl(var(--muted-foreground) / 0.4); }
.smartc-services .card .ic {
  width: 3rem; height: 3rem; background: var(--c-accent); color: var(--c-accent-fg);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
  transition: background-color .2s, color .2s;
}
.smartc-services .card:hover .ic { background: var(--c-primary); color: var(--c-primary-fg); }
.smartc-services .card h4 { font-family: var(--font-heading); font-weight: 600; font-size: 1rem; margin-bottom: 0.75rem; }
.smartc-services .card p { font-size: 0.875rem; color: var(--c-muted-fg); line-height: 1.7; }

/* ---------- 11. Works gallery ------------------------------------------- */
.smartc-works { background: var(--c-accent); padding: 6rem 0; color: var(--c-accent-fg); }
@media (min-width: 1024px) { .smartc-works { padding: 8rem 0; } }
.smartc-works .header { text-align: center; margin-bottom: 3.5rem; }
.smartc-works .header .eyebrow { color: hsl(var(--accent-foreground) / 0.4); }
.smartc-works .header h2 { color: var(--c-accent-fg); font-size: clamp(2rem, 4vw, 3rem); }
.smartc-works .header h2 .accent { color: var(--c-primary); }

.smartc-works .filters { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 3rem; }
.smartc-works .filters button {
  font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.5rem 1.25rem; border: 1px solid hsl(var(--accent-foreground) / 0.2);
  color: hsl(var(--accent-foreground) / 0.5); transition: all .2s;
}
.smartc-works .filters button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.smartc-works .filters button.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-primary-fg); }

.smartc-works .grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .smartc-works .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .smartc-works .grid { grid-template-columns: 1fr 1fr 1fr; } }
.smartc-works .item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.smartc-works .item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.smartc-works .item:hover img { transform: scale(1.05); }
.smartc-works .item .veil { position: absolute; inset: 0; background: hsl(var(--accent) / 0); transition: background-color .3s; }
.smartc-works .item:hover .veil { background: hsl(var(--accent) / 0.5); }
.smartc-works .item .zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .3s;
}
.smartc-works .item:hover .zoom { opacity: 1; }
.smartc-works .item .info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(to top, hsl(0 0% 0% / 0.6), transparent);
  transform: translateY(100%); transition: transform .3s;
}
.smartc-works .item:hover .info { transform: translateY(0); }
.smartc-works .item .info p { font-size: 0.75rem; color: #fff; }
.smartc-works .item .info span { font-family: var(--font-heading); font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-primary); display: block; margin-top: 0.125rem; }

/* Lightbox */
.smartc-lightbox {
  position: fixed; inset: 0; z-index: 60; background: hsl(0 0% 0% / 0.9);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.smartc-lightbox.is-open { display: flex; }
.smartc-lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.smartc-lightbox .close { position: absolute; top: 1.5rem; right: 1.5rem; color: hsl(0 0% 100% / 0.6); }
.smartc-lightbox .close:hover { color: #fff; }
.smartc-lightbox .info { text-align: center; margin-top: 0.75rem; color: #fff; }
.smartc-lightbox .info span { font-family: var(--font-heading); font-size: 0.625rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--c-primary); }

/* ---------- 12. Contact + footer ---------------------------------------- */
.smartc-contact { background: var(--c-accent); color: var(--c-accent-fg); padding: 6rem 0; }
@media (min-width: 1024px) { .smartc-contact { padding: 8rem 0; } }
.smartc-contact .grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .smartc-contact .grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.smartc-contact .eyebrow { justify-content: flex-start; color: hsl(var(--accent-foreground) / 0.4); }
.smartc-contact h2 { color: var(--c-accent-fg); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.smartc-contact h2 .accent { color: var(--c-primary); display: block; }
.smartc-contact .lead { font-size: 1rem; color: hsl(var(--accent-foreground) / 0.5); margin-top: 1.5rem; max-width: 32rem; line-height: 1.7; }

.smartc-contact .details { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
.smartc-contact .row { display: flex; align-items: center; gap: 1rem; }
.smartc-contact .row .ic {
  width: 2.5rem; height: 2.5rem; border: 1px solid hsl(var(--accent-foreground) / 0.1);
  display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s;
  color: var(--c-primary);
}
.smartc-contact .row:hover .ic { border-color: var(--c-primary); }
.smartc-contact .row .label { font-family: var(--font-body); font-size: 0.75rem; color: hsl(var(--accent-foreground) / 0.4); text-transform: uppercase; letter-spacing: 0.05em; }
.smartc-contact .row .value { font-family: var(--font-body); font-size: 0.875rem; color: var(--c-accent-fg); margin-top: 0.125rem; }

.smartc-contact form { display: flex; flex-direction: column; gap: 1.5rem; }
.smartc-contact .row-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .smartc-contact .row-2 { grid-template-columns: 1fr 1fr; } }
.smartc-contact label { font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--accent-foreground) / 0.4); display: block; margin-bottom: 0.5rem; }
.smartc-contact input, .smartc-contact textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid hsl(var(--accent-foreground) / 0.1);
  color: var(--c-accent-fg); padding: 0.5rem 0; outline: none; transition: border-color .2s;
}
.smartc-contact input::placeholder, .smartc-contact textarea::placeholder { color: hsl(var(--accent-foreground) / 0.2); }
.smartc-contact input:focus, .smartc-contact textarea:focus { border-color: var(--c-primary); }
.smartc-contact textarea { min-height: 140px; resize: vertical; }
.smartc-contact .submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--c-primary); color: var(--c-primary-fg);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 1.25rem; border: 0;
}
.smartc-contact .submit:hover { background: hsl(var(--primary) / 0.9); }
.smartc-contact .success { display: none; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; }
.smartc-contact .success .ic { width: 4rem; height: 4rem; background: hsl(var(--primary) / 0.1); display: inline-flex; align-items: center; justify-content: center; color: var(--c-primary); margin-bottom: 1.5rem; }
.smartc-contact .success.is-visible { display: flex; }
.smartc-contact .success h3 { font-size: 1.5rem; }
.smartc-contact .success p { font-size: 0.875rem; color: hsl(var(--accent-foreground) / 0.5); margin-top: 0.75rem; max-width: 22rem; line-height: 1.7; }
.smartc-contact .error { display: none; color: #ff7a7a; font-size: 0.875rem; }
.smartc-contact .error.is-visible { display: block; }

/* ---------- 13. Footer -------------------------------------------------- */
.smartc-footer { background: var(--c-accent); color: var(--c-accent-fg); padding: 3rem 0; border-top: 1px solid hsl(var(--accent-foreground) / 0.05); }
.smartc-footer .row { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; justify-content: space-between; }
@media (min-width: 768px) { .smartc-footer .row { flex-direction: row; align-items: center; } }
.smartc-footer .brand .name { display: flex; align-items: center; gap: 0.75rem; }
.smartc-footer .brand .badge {
  width: 1.5rem; height: 1.5rem; background: var(--c-primary); color: var(--c-primary-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.625rem;
}
.smartc-footer .brand .label { font-family: var(--font-heading); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.smartc-footer .brand .legal { font-family: var(--font-body); font-size: 0.75rem; color: hsl(var(--accent-foreground) / 0.3); margin-top: 0.5rem; }
.smartc-footer .meta { display: flex; flex-wrap: wrap; gap: 2rem; }
.smartc-footer .meta dt { font-family: var(--font-body); font-size: 0.625rem; letter-spacing: 0.05em; text-transform: uppercase; color: hsl(var(--accent-foreground) / 0.3); }
.smartc-footer .meta dd { margin: 0.125rem 0 0; font-family: var(--font-body); font-size: 0.75rem; color: hsl(var(--accent-foreground) / 0.6); }
.smartc-footer .copy { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid hsl(var(--accent-foreground) / 0.05); display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .smartc-footer .copy { flex-direction: row; } }
.smartc-footer .copy p { font-family: var(--font-body); font-size: 0.75rem; color: hsl(var(--accent-foreground) / 0.2); }

/* ---------- 14. Pages spécialisées (IT / BTP) --------------------------- */
.smartc-toptab {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--accent) / 0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(0 0% 100% / 0.05);
}
.smartc-toptab .row { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.smartc-toptab a, .smartc-toptab .name {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: hsl(var(--accent-foreground) / 0.6);
}
.smartc-toptab a:hover { color: var(--c-primary); }
.smartc-toptab .center { display: flex; align-items: center; gap: 0.75rem; color: var(--c-accent-fg); }
.smartc-toptab .center .badge {
  width: 1.5rem; height: 1.5rem; background: var(--c-primary); color: var(--c-primary-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.625rem;
}
.smartc-toptab .center .label { font-family: var(--font-heading); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }

.smartc-page-hero {
  position: relative; height: 60vh; min-height: 420px; overflow: hidden; padding-top: 5rem;
}
.smartc-page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smartc-page-hero .veil { position: absolute; inset: 0; background: hsl(var(--accent) / 0.7); }
.smartc-page-hero.btp .veil { background: hsl(var(--accent) / 0.6); }
.smartc-page-hero .fade { position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; background: linear-gradient(to top, var(--c-bg), transparent); }
.smartc-page-hero .copy { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 4rem; }
.smartc-page-hero .copy .eyebrow { justify-content: flex-start; color: hsl(0 0% 100% / 0.5); margin-bottom: 1rem; }
.smartc-page-hero .copy h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); color: #fff; line-height: 1.1; }
.smartc-page-hero .copy h1 .accent { color: var(--c-primary); display: block; }
.smartc-page-hero .badges { position: absolute; top: 2rem; right: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; z-index: 10; }
.smartc-page-hero .badges span { background: var(--c-primary); color: var(--c-primary-fg); font-family: var(--font-heading); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.25rem 0.5rem; }

.smartc-detail-section { padding: 5rem 0; }
.smartc-detail-section .grid-2 { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .smartc-detail-section .grid-2 { grid-template-columns: 1fr 1fr; } }
.smartc-detail-section h2 { font-size: clamp(1.875rem, 3vw, 2.25rem); }
.smartc-detail-section .role { font-family: var(--font-heading); font-size: 0.875rem; letter-spacing: 0.05em; color: var(--c-primary); margin-top: 0.5rem; text-transform: uppercase; }
.smartc-detail-section .meta { font-family: var(--font-body); font-size: 0.75rem; color: var(--c-muted-fg); margin-top: 0.25rem; }
.smartc-detail-section .bio { font-size: 0.875rem; color: var(--c-muted-fg); margin-top: 1.5rem; line-height: 1.7; }
.smartc-detail-section .bio strong { color: var(--c-fg); }

.smartc-detail-section .pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--c-muted); color: var(--c-fg);
  padding: 0.5rem 1rem; font-family: var(--font-body); font-size: 0.75rem; transition: background-color .2s, color .2s;
}
.smartc-detail-section .pill:hover { background: var(--c-primary); color: var(--c-primary-fg); }

.smartc-detail-section .caps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .smartc-detail-section .caps { grid-template-columns: 1fr 1fr; } }
.smartc-detail-section .cap { display: flex; align-items: flex-start; gap: 0.75rem; }
.smartc-detail-section .cap .ic {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0; margin-top: 0.125rem;
  background: var(--c-muted); display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s; color: var(--c-fg);
}
.smartc-detail-section .cap:hover .ic { background: var(--c-primary); color: var(--c-primary-fg); }
.smartc-detail-section .cap h4 { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; }
.smartc-detail-section .cap p { font-size: 0.75rem; color: var(--c-muted-fg); margin-top: 0.25rem; line-height: 1.6; }

.smartc-services-bar { background: hsl(var(--muted) / 0.5); padding: 5rem 0; }
.smartc-services-bar .header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--c-muted-fg); }
.smartc-services-bar .header .line { height: 1px; width: 2rem; background: var(--c-primary); }
.smartc-services-bar .grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .smartc-services-bar .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .smartc-services-bar .grid { grid-template-columns: repeat(4, 1fr); } }

/* Galerie BTP simple (grille uniforme, pas de filtre) */
.smartc-simple-gallery { background: var(--c-accent); padding: 5rem 0; color: var(--c-accent-fg); }
.smartc-simple-gallery .header { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: hsl(var(--accent-foreground) / 0.4); }
.smartc-simple-gallery .header .line { height: 1px; width: 2rem; background: var(--c-primary); }
.smartc-simple-gallery .grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .smartc-simple-gallery .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .smartc-simple-gallery .grid { grid-template-columns: 1fr 1fr 1fr; } }
.smartc-simple-gallery .item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.smartc-simple-gallery .item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.smartc-simple-gallery .item:hover img { transform: scale(1.05); }
.smartc-simple-gallery .item .veil { position: absolute; inset: 0; background: hsl(var(--accent) / 0); transition: background-color .3s; }
.smartc-simple-gallery .item:hover .veil { background: hsl(var(--accent) / 0.4); }
.smartc-simple-gallery .item .info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(to top, hsl(0 0% 0% / 0.6), transparent);
  transform: translateY(100%); transition: transform .3s;
}
.smartc-simple-gallery .item:hover .info { transform: translateY(0); }
.smartc-simple-gallery .item .info p { font-size: 0.75rem; color: #fff; }

/* ---------- 15. Helpers visuels ----------------------------------------- */
.smartc-bottom-fade { position: relative; }
.smartc-bottom-fade::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem;
  background: linear-gradient(to top, var(--c-bg), transparent); pointer-events: none;
}

/* ---------- 16. Page 404 ------------------------------------------------ */
.smartc-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6rem 1.5rem; text-align: center; }
.smartc-404 h1 { font-size: 4rem; color: var(--c-primary); }
.smartc-404 p { color: var(--c-muted-fg); margin-top: 1rem; }
.smartc-404 a { display: inline-block; margin-top: 2rem; }
