/* =============================================
   POLEPLUS ARCHITECTURE — Global Styles
   ============================================= */

:root {
  --dark:       #111118;
  --dark2:      #1c1c28;
  --gold:       #c8a96e;
  --gold-light: #dfc08a;
  --light:      #d8d9de;   /* gris métal — fond clair */
  --on-dark:    #f0f0f2;   /* texte sur fond sombre  */
  --text:       #2e2e3a;
  --text-muted: #7a7a8c;
  --border:     rgba(200,169,110,0.2);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-serif: 'Dinot', sans-serif;
  --font-sans:  'Dinot', sans-serif;
}

@font-face { font-family: 'Dinot'; src: url('../fonts/dinotlight.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotlightitalic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinot.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotitalic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotmedium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotmediumitalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotbold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotbolditalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotblack.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Dinot'; src: url('../fonts/dinotblackitalic.ttf') format('truetype'); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondlight.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondlightita.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcond.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondita.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondmedium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondmediita.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondbold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondboldita.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondblack.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DinotCond'; src: url('../fonts/dinotcondblackita.ttf') format('truetype'); font-weight: 900; font-style: italic; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--light); color: var(--text); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* =============================================
   LOADER
   ============================================= */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { opacity: 0; animation: loaderFade 1.2s ease forwards 0.3s; }
.loader-logo img { width: 160px; }
@keyframes loaderFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(216,217,222,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46,46,58,0.12);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.1); }

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-logo-name {
  font-family: var(--font-serif); font-size: 0.95rem; font-weight: 400;
  color: var(--text); letter-spacing: 0.04em; white-space: nowrap;
}

.nav-links { display: flex; gap: 1.4rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; color: var(--text-muted); position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-connexion {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,169,110,0.4);
  padding: 0.4rem 0.9rem; white-space: nowrap; transition: background var(--transition), border-color var(--transition);
  margin-left: 0.5rem;
}
.nav-connexion:hover { background: rgba(200,169,110,0.08); border-color: var(--gold); }

.footer-admin {
  font-size: 0.62rem; color: rgba(255,255,255,0.18); letter-spacing: 0.06em;
  text-decoration: none; transition: color 0.2s;
}
.footer-admin:hover { color: var(--gold); }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal       { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.00s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.48s; }
.stagger.visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.56s; }
.stagger.visible > *:nth-child(n+9) { opacity: 1; transform: none; transition-delay: 0.64s; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1.5px solid var(--gold); color: var(--gold); background: transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: color var(--transition);
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: translateX(-100%);
  transition: transform var(--transition); z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn span { position: relative; z-index: 1; }
.btn:hover { color: var(--dark); }
.btn-light { border-color: rgba(240,240,242,0.7); color: var(--on-dark); }
.btn-light::before { background: var(--on-dark); }
.btn-light:hover { color: var(--dark); }

/* =============================================
   COMMONS
   ============================================= */
section { position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.section-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  height: 32vh; min-height: 220px;
  background: var(--dark); display: flex; align-items: flex-end; padding-bottom: 2.5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.2; }
.page-hero-content { position: relative; }
.page-hero h1 { color: var(--on-dark); font-size: clamp(1.8rem, 4vw, 3rem); }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 1.25rem 0 0.75rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border); margin-bottom: 0.75rem; align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand-top { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); opacity: 0.7; flex-shrink: 0; }
.footer-brand-name { font-family: var(--font-serif); color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 400; letter-spacing: 0.04em; }
.footer-brand p { font-size: 0.75rem; line-height: 1.55; max-width: 260px; color: rgba(255,255,255,0.4); }
.footer-col h4 { font-family: var(--font-serif); color: rgba(255,255,255,0.7); font-size: 0.82rem; margin-bottom: 0.5rem; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0; line-height: 1.4; }
.footer-col ul a { font-size: 0.75rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.68rem; }

/* =============================================
   ACCUEIL — HERO
   ============================================= */
.hero {
  height: 82vh; min-height: 480px;
  background: var(--dark); display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/illustration.jpg') center/cover no-repeat;
  opacity: 0.92; transform: scale(1.08);
  filter: saturate(1.3) contrast(1.12);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,24,0.92) 0%, rgba(17,17,24,0.5) 20%, rgba(17,17,24,0.1) 38%, rgba(17,17,24,0) 55%);
}
.hero-content {
  position: relative; z-index: 1; max-width: 650px;
  padding: 2.25rem 2.5rem;
}
.hero-content::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  background: rgba(10,10,15,0.68);
  filter: blur(45px);
  z-index: -1;
}
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1s;
}
.hero h1 { color: var(--on-dark); opacity: 0; animation: fadeUp 0.8s ease forwards 1.2s; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  margin-top: 1.25rem; font-size: 1rem;
  color: rgba(240,240,242,0.6); max-width: 640px; line-height: 1.75;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1.4s;
}
.hero-cta {
  margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s ease forwards 1.6s;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.35); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 0.8s ease forwards 2s;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: var(--gold); animation: scrollLine 1.5s ease infinite;
}
@keyframes scrollLine { 0% { top: -50%; } 100% { top: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* STATS */
.stats-band { background: var(--dark2); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--gold); margin-bottom: 0.3rem; }
.stat-item p { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.1em; text-transform: uppercase; }

/* BELLEVILLE BACKGROUND WRAPPER */
.belleville-wrapper { position: relative; overflow: hidden; }
.belleville-bg {
  position: absolute; left: 0; top: 0;
  width: 24vw; height: 100%;
  object-fit: cover; object-position: top center;
  z-index: 0; opacity: 0.75; pointer-events: none;
  filter: contrast(1.35);
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 100%);
  mask-image: linear-gradient(to right, black 55%, transparent 100%);
}
.belleville-wrapper > section { position: relative; z-index: 1; }
.belleville-wrapper .about-section {
  background: linear-gradient(to right, transparent 20vw, var(--light) 26vw);
}
.belleville-wrapper .services-section {
  background: linear-gradient(to right, transparent 20vw, var(--dark) 26vw);
}
@media (max-width: 768px) {
  .belleville-bg { display: none; }
  .belleville-wrapper .about-section { background: var(--light); }
  .belleville-wrapper .services-section { background: var(--dark); }
}

/* À PROPOS */
.about-section { padding: 2.5rem 0; background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-images { position: relative; height: 300px; }
.about-img-main {
  position: absolute; top: 0; left: 0; right: 15%; height: 80%; object-fit: cover;
  border: 5px solid var(--light);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  filter: contrast(1.25) saturate(1.2);
  z-index: 1;
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, z-index 0s;
}
.about-img-main:hover {
  transform: scale(2);
  z-index: 5;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.about-img-secondary {
  position: absolute; bottom: 0; right: 0; width: 52%; height: 52%; overflow: hidden;
  border: 5px solid var(--light); box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 2;
}
.about-img-secondary img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.25) saturate(1.2);
  transition: opacity 0.4s ease;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.about-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1rem; border: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.about-badge img { height: 24px; }

/* SERVICES */
.services-section { padding: 4.5rem 0; background: var(--dark); }
.services-header { text-align: center; margin-bottom: 2.5rem; }
.services-header h2 { color: var(--on-dark); }
.services-header p:not(.section-label) { color: rgba(255,255,255,0.45); max-width: 480px; margin: 0.75rem auto 0; font-size: 0.9rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.service-card {
  background: var(--dark2); padding: 2rem;
  transition: background var(--transition); position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover { background: #222234; }
.service-icon {
  width: 40px; height: 40px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--gold);
}
.service-icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.service-card h3 { color: var(--on-dark); font-size: 1.05rem; margin-bottom: 0.6rem; }
.service-card p { color: rgba(255,255,255,0.4); font-size: 0.82rem; line-height: 1.7; }

/* PROJETS VEDETTES */
.featured-section { padding: 4.5rem 0; background: var(--light); }
.featured-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.featured-header h2 { max-width: 380px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-card { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94); }
.project-card:hover img { transform: scale(1.07); }
.project-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,17,24,0.92) 0%, rgba(17,17,24,0.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
  transition: background var(--transition);
}
.project-card:hover .project-card-overlay { background: linear-gradient(to top, rgba(17,17,24,0.98) 0%, rgba(17,17,24,0.25) 60%); }
.project-card-tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.project-card h3 { color: var(--on-dark); font-size: 1.1rem; }
.project-card p { color: rgba(255,255,255,0.55); font-size: 0.75rem; margin-top: 0.3rem; }
.project-card-arrow {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; color: var(--on-dark); font-size: 0.85rem;
  transform: rotate(-45deg) scale(0); transition: transform var(--transition);
}
.project-card:hover .project-card-arrow { transform: rotate(-45deg) scale(1); }

/* CERTIFICATIONS */
.certs-section { padding: 4.5rem 0; background: var(--light); border-top: 1px solid rgba(46,46,58,0.08); }
.certs-header { text-align: center; max-width: 580px; margin: 0 auto 3rem; }
.certs-header h2 { color: var(--text); margin-bottom: 0.75rem; }
.certs-header p:not(.section-label) { color: var(--text-muted); line-height: 1.75; font-size: 0.88rem; }
.formations-block {
  max-width: 640px; margin: 0 auto 3rem;
  border: 1px solid rgba(46,46,58,0.12); padding: 1.5rem 2rem;
}
.formations-block-title {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.formations-block-title::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.formations-items { list-style: none; padding: 0; margin: 0; }
.formations-items li {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6;
  padding: 0.45rem 0; border-bottom: 1px solid rgba(46,46,58,0.07);
}
.formations-items li:last-child { border-bottom: none; }
.formation-org { color: var(--text); font-weight: 600; }
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cert-badge {
  background: #fff; border: 1px solid rgba(46,46,58,0.09);
  padding: 1.75rem 1.25rem 1.5rem;
  text-align: center; display: flex; flex-direction: column; align-items: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cert-badge:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-3px); }
.cert-badge-logo { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.cert-badge-logo img { max-height: 60px; max-width: 110px; object-fit: contain; opacity: 0.82; transition: opacity var(--transition); }
.cert-badge:hover .cert-badge-logo img { opacity: 1; }
.cert-badge h4 { font-size: 0.75rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; letter-spacing: 0.03em; line-height: 1.3; }
.cert-badge p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   PROJETS
   ============================================= */
.projects-section { padding: 4rem 0; }
.projects-filter { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.gallery-filters-bar { display: flex; gap: 1.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.gallery-filter-group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 220px; max-width: 340px; }
.gallery-filter-group label { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.gallery-filter-select {
  width: 100%; padding: 0.7rem 2.3rem 0.7rem 0.9rem;
  border: 1px solid rgba(46,46,58,0.2); background-color: #fff;
  font-family: var(--font-sans); font-size: 0.85rem; color: var(--text);
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e2e3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 14px;
}
.gallery-filter-select:focus, .gallery-filter-select:hover { border-color: var(--gold); }
.filter-btn {
  padding: 0.45rem 1rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(46,46,58,0.3); background: transparent; cursor: pointer;
  transition: var(--transition); color: var(--text-muted);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(200,169,110,0.07); }

.projects-list { display: grid; gap: 4rem; }
.project-item {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto;
  column-gap: 4rem; row-gap: 0; align-items: stretch;
}
.project-item:nth-child(even) { direction: rtl; }
.project-item:nth-child(even) > * { direction: ltr; }
.project-imgs-col { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 3; }
.project-imgs { position: relative; overflow: hidden; aspect-ratio: 4/3; grid-row: 1; align-self: start; margin-bottom: 1.25rem; }
.project-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition); }
.project-item:hover .project-imgs img { transform: scale(1.04); }
.project-imgs-thumbs { position: absolute; bottom: 0.75rem; right: 0.75rem; display: flex; gap: 0.4rem; }
.project-imgs-thumbs img {
  width: 52px; height: 52px; object-fit: cover;
  border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: opacity var(--transition);
}
.project-imgs-thumbs img:hover, .project-imgs-thumbs img.active { opacity: 1; border-color: var(--gold); }
.project-imgs-cycle {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 92px; height: 68px; overflow: hidden; z-index: 1;
  border: 2px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.project-imgs-cycle img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.4s ease; }
.pdf-img-link {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  justify-content: center; padding-bottom: 1.25rem; z-index: 2; text-decoration: none;
}
.pdf-badge {
  background: rgba(200,169,110,0.92); color: #fff; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; padding: 0.45rem 1.1rem;
  display: flex; align-items: center; gap: 0.45rem;
  opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; white-space: nowrap;
}
.pdf-badge svg { flex-shrink: 0; }
.project-imgs:hover .pdf-badge { opacity: 1; transform: translateY(0); }
.project-number {
  position: absolute; top: -1.6rem; left: 0; z-index: -1;
  font-size: 2rem; font-family: var(--font-serif); color: rgba(46,46,58,0.06);
  line-height: 1; font-weight: 700; white-space: nowrap; pointer-events: none;
}
.project-tags {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.5rem;
  grid-row: 2; padding: 1.25rem 0;
  border-top: 1px solid rgba(46,46,58,0.1); border-bottom: 1px solid rgba(46,46,58,0.1);
}
.tag {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border: 1px solid rgba(46,46,58,0.2); color: var(--text-muted);
}
.tag.gold { border-color: var(--gold); color: var(--gold); }
.project-meta { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 3; }
.project-header { grid-row: 1; align-self: start; position: relative; z-index: 0; }
.project-meta h2 { margin-bottom: 0.4rem; margin-top: -0.04em; }
.project-location { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.07em; margin-bottom: 0.6rem; }
.project-location svg { vertical-align: -2px; margin-right: 0.2rem; }
.project-desc-wrap {
  max-height: 14rem; overflow-y: auto; margin-bottom: 1.5rem; padding-right: 0.85rem;
  scrollbar-width: thin; scrollbar-color: rgba(46,46,58,0.3) transparent;
}
.project-desc-wrap::-webkit-scrollbar { width: 5px; }
.project-desc-wrap::-webkit-scrollbar-track { background: transparent; }
.project-desc-wrap::-webkit-scrollbar-thumb { background: rgba(46,46,58,0.3); }
.project-desc-wrap::-webkit-scrollbar-thumb:hover { background: rgba(46,46,58,0.5); }
.project-desc { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; font-size: 0.9rem; }
.project-desc-wrap .project-desc:last-child { margin-bottom: 0; }
.project-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 1rem;
  grid-row: 2; padding: 1.25rem 0;
  border-top: 1px solid rgba(46,46,58,0.1); border-bottom: 1px solid rgba(46,46,58,0.1);
}
.tags-break { flex-basis: 100%; height: 0; }
.project-tags .btn-in-tags {
  width: 100%; justify-content: center;
  padding: 0.3rem 0; font-size: 0.56rem;
}
.spec-item label { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 0.25rem; }
.spec-item span { font-size: 0.88rem; font-weight: 600; color: var(--text); }

/* =============================================
   GALERIE
   ============================================= */
/* Gallery — project grid */
.gallery-section { padding: 3.5rem 0; }
.gallery-group { margin-bottom: 3.5rem; }
.gallery-group-title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.gallery-projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.gallery-project-card {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  cursor: pointer; background: var(--dark); display: block;
}
.gallery-project-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.65s ease;
}
.gallery-project-card:hover img { transform: scale(1.06); }
.gallery-project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem 1.25rem; transition: background 0.35s;
}
.gallery-project-card:hover .gallery-project-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.38) 65%, rgba(0,0,0,0.08) 100%);
}
.gallery-project-overlay h3 {
  color: #fff; font-family: var(--font-serif); font-size: 0.95rem;
  font-weight: 400; margin: 0 0 0.2rem; line-height: 1.2;
}
.gallery-project-overlay p { color: rgba(255,255,255,0.6); font-size: 0.7rem; margin: 0; }
.gallery-project-count {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.85);
  font-size: 0.65rem; letter-spacing: 0.05em;
  padding: 0.18rem 0.45rem; border-radius: 2px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-project-card:hover .gallery-project-count { opacity: 1; }
.gallery-zoom-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.gallery-project-card:hover .gallery-zoom-hint { opacity: 1; }
.gallery-zoom-hint span {
  width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.3rem; line-height: 1;
}

/* Gallery lightbox */
.glb {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,8,12,0.98);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.glb.open { opacity: 1; visibility: visible; }
.glb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.glb-info { display: flex; flex-direction: column; }
.glb-title { color: rgba(255,255,255,0.92); font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.2; }
.glb-sub { color: rgba(255,255,255,0.4); font-size: 0.72rem; margin-top: 0.1rem; }
.glb-desc {
  color: rgba(255,255,255,0.55); font-size: 0.74rem; line-height: 1.5; margin-top: 0.35rem;
  max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.glb-controls { display: flex; align-items: center; gap: 1rem; }
.glb-counter { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.glb-close {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.22);
  background: none; color: rgba(255,255,255,0.65); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; border-radius: 2px; flex-shrink: 0;
}
.glb-close:hover { border-color: rgba(255,255,255,0.75); color: #fff; }
.glb-stage {
  flex: 1; position: relative; display: flex; align-items: center;
  justify-content: center; overflow: hidden; min-height: 0; padding: 0 4rem;
}
.glb-img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  display: block; user-select: none;
  transition: opacity 0.18s ease;
}
.glb-img.fade { opacity: 0; }
.glb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; width: 3rem; height: 3rem; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; border-radius: 2px;
}
.glb-btn:hover { background: rgba(255,255,255,0.16); }
.glb-prev { left: 0.75rem; }
.glb-next { right: 0.75rem; }
.glb-filmstrip {
  display: flex; gap: 4px; padding: 0.65rem 1.5rem;
  overflow-x: auto; flex-shrink: 0;
  scrollbar-width: thin; scrollbar-color: rgba(200,169,110,0.5) transparent;
}
.glb-filmstrip::-webkit-scrollbar { height: 3px; }
.glb-filmstrip::-webkit-scrollbar-thumb { background: var(--gold); }
.glb-filmstrip img {
  height: 48px; width: auto; aspect-ratio: 4/3; object-fit: cover;
  cursor: pointer; flex-shrink: 0; border: 2px solid transparent;
  opacity: 0.45; transition: opacity 0.2s, border-color 0.2s;
}
.glb-filmstrip img.active, .glb-filmstrip img:hover { opacity: 1; border-color: var(--gold); }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; font-size: 0.9rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; }
.contact-detail-icon {
  width: 40px; height: 40px; border: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 0.9rem;
}
.contact-detail-body label { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-detail-body p { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 0.875rem;
  border: 1px solid rgba(46,46,58,0.2); background: transparent;
  font-family: var(--font-sans); font-size: 0.88rem; color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  outline: none; -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--gold); background: rgba(200,169,110,0.03);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; padding: 0.875rem 1.25rem;
  background: rgba(200,169,110,0.1); border: 1px solid var(--gold);
  color: var(--gold); font-size: 0.88rem; margin-top: 1rem;
}
.map-section { height: 380px; position: relative; background: var(--dark); overflow: hidden; }
.map-section iframe { width: 100%; height: 100%; border: none; opacity: 0.85; }
.map-overlay {
  position: absolute; top: 50%; left: 5%; transform: translateY(-50%);
  background: var(--dark); padding: 1.5rem 2rem; border-left: 3px solid var(--gold); max-width: 260px;
}
.map-overlay h4 { color: var(--on-dark); font-family: var(--font-serif); margin-bottom: 0.4rem; font-size: 1rem; }
.map-overlay p { color: rgba(255,255,255,0.45); font-size: 0.82rem; line-height: 1.65; }

/* =============================================
   CURSOR (desktop only)
   ============================================= */
@media (pointer: fine) {
  .cursor { position: fixed; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width 0.2s, height 0.2s; }
  .cursor-ring { position: fixed; width: 32px; height: 32px; border: 1px solid rgba(200,169,110,0.4); border-radius: 50%; pointer-events: none; z-index: 9997; transform: translate(-50%,-50%); transition: width 0.3s, height 0.3s, transform 0.08s linear; }
  body.cursor-hover .cursor { width: 14px; height: 14px; }
  body.cursor-hover .cursor-ring { width: 44px; height: 44px; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet 900px */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-images { height: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .project-item, .project-item:nth-child(even) { display: block; direction: ltr; }
  .project-imgs-col, .project-meta { display: block; }
  .project-imgs-col { margin-bottom: 1.5rem; }
  .project-number { font-size: 1.6rem; top: -1.2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile 768px */
@media (max-width: 768px) {
  nav { padding: 0 4%; height: 64px; }
  .nav-logo img { height: 38px; }
  .nav-logo-name { font-size: 0.82rem; }
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: 260px;
    background: var(--dark2); flex-direction: column; gap: 0;
    padding: 90px 32px 32px; transform: translateX(100%);
    transition: transform var(--transition); box-shadow: -4px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.95rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); color: rgba(255,255,255,0.7); }
  .nav-links a:hover, .nav-links a.active { color: var(--on-dark); }

  .hero { min-height: 480px; }
  .hero-content { padding: 0 1rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .stats-band { padding: 2rem 0; }

  .about-section, .services-section { padding: 3.5rem 0; }
  .certs-section { padding: 3rem 0; }

  .services-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .featured-header { flex-direction: column; gap: 1.25rem; align-items: flex-start; }
  .projects-list { gap: 3rem; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .footer-brand { grid-column: 1 / -1; }

  .page-hero { height: 26vh; min-height: 180px; padding-bottom: 1.75rem; }

  .map-overlay { display: none; }
  .map-section { height: 280px; }
}

/* Mobile 480px */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  nav { padding: 0 1rem; }
  .nav-logo-name { display: none; }

  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  .projects-grid { grid-template-columns: 1fr; }
  .gallery-projects-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; font-size: 0.62rem; }
  .nav-connexion { display: none; }

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

  .project-specs { grid-template-columns: 1fr 1fr; }

  .hero-scroll { display: none; }
}
