/* Basic reset and typography — editorial stack inspired by premium architecture studios */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Great+Vibes&family=Nunito:ital,wght@0,500;0,600;0,700;1,500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@400;500;700&display=swap');

:root {
  --kd-bg: #fafafa;
  --kd-ink: #1a1a1a;
  --kd-muted: #5c5c5c;
  --kd-line: rgba(0, 0, 0, 0.08);
  --kd-accent: #c9a227;
  --font-sans: "Roboto", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-nav: "Nunito", system-ui, sans-serif;
  --font-agence-script: "Great Vibes", cursive;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--kd-ink);
  background-color: var(--kd-bg);
  -webkit-font-smoothing: antialiased;
}

/* Scroll-triggered section animations (IntersectionObserver adds .is-in-view) */
.scroll-reveal {
  opacity: 0;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--sr-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-in-view {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.scroll-reveal--from-left {
  transform: translateX(-2.25rem);
}

.scroll-reveal--from-right {
  transform: translateX(2.25rem);
}

.scroll-reveal--from-up {
  transform: translateY(1.75rem);
}

.kd-mission-inner > .scroll-reveal:nth-child(1) {
  --sr-delay: 0ms;
}
.kd-mission-inner > .scroll-reveal:nth-child(2) {
  --sr-delay: 0.14s;
}
.kd-mission-inner > .scroll-reveal:nth-child(3) {
  --sr-delay: 0.28s;
}

.scroll-reveal-stagger > .scroll-reveal:nth-child(1) {
  --sr-delay: 0ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(2) {
  --sr-delay: 70ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(3) {
  --sr-delay: 140ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(4) {
  --sr-delay: 210ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(5) {
  --sr-delay: 280ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(6) {
  --sr-delay: 350ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(7) {
  --sr-delay: 420ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(8) {
  --sr-delay: 490ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(9) {
  --sr-delay: 560ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(10) {
  --sr-delay: 630ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(11) {
  --sr-delay: 700ms;
}
.scroll-reveal-stagger > .scroll-reveal:nth-child(12) {
  --sr-delay: 770ms;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .project-hero-title,
  .project-hero-sub {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

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

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

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

header.hero {
  position: relative;
  min-height: min(96vh, 980px);
  color: #fff;
  background: linear-gradient(120deg, #111827, #1f2937);
  overflow: hidden;
  overflow-x: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.55), rgba(31, 41, 55, 0.55));
  opacity: 1;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 4rem;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translate(0, 0) scale(1.02);
  transition:
    opacity 1.1s ease,
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Home banner: show full image without cropping */
body.home .hero-slider {
  background: #0b0f16;
}

body.home .hero-slider-slide {
  object-fit: cover;
}

.hero-slider-slide.is-active {
  opacity: 1;
}

.home {
  overflow-y: hidden;
}

body.home header.hero {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
}

/* Vision / Architecture / Développement / Construction — same full-viewport hero as home */
body.hero-kd-page header.hero {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
}

body.hero-kd-page .hero-slider-slide {
  object-fit: cover;
}

body.hero-kd-page header.hero .hero-inner.hero-inner--home {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100vh;
  padding: 1.25rem 0 0;
}

body.hero-kd-page header.hero .nav {
  margin-bottom: 0;
}

/* Vision page: keep top nav but remove full banner treatment */
body.compact-topbar-page header.hero {
  min-height: 0;
  background: linear-gradient(120deg, #101826, #1a263b);
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.compact-topbar-page .hero::before {
  display: none;
}

body.compact-topbar-page header.hero .hero-inner {
  padding: 1.25rem 0 0.25rem;
}

body.compact-topbar-page header.hero .nav {
  margin-bottom: 0;
}

body.compact-topbar-page header.hero .nav-links a {
  color: rgba(255, 255, 255, 0.92);
}

body.compact-topbar-page header.hero .nav-search-btn {
  background: rgba(255, 255, 255, 0.12);
}

body.home header.hero .hero-inner {
  padding: 1.25rem 0 0;
  height: 100vh;
}

body.home header.hero .hero-inner.hero-inner--home {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.hero-home-center {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 1rem 5.5rem;
  z-index: 2;
}

.hero-slide-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 100%);
  max-width: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  padding: 0 1rem;
}

.hero-slide-copy.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Single static hero (internal pages): no cross-fade stack */
.hero-home-center--single {
  flex: 1;
  min-height: 0;
}

.hero-home-center--single .hero-slide-copy {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  width: 100%;
  max-width: min(920px, 100%);
  padding: 0 1.25rem;
}

.hero-slide-headline {
  margin: 0 0 1.75rem;
  font-size: clamp(2.6rem, 8.6vw, 5.3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
}

.hero-slide-headline-line {
  display: block;
  text-align: center;
}

.hero-slide-headline-line + .hero-slide-headline-line {
  margin-top: -0.04em;
}

.hero-slide-cta {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 1.75rem;
  background: #0a0a0a;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.hero-slide-cta:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

body.home header.hero .nav {
  margin-bottom: 0;
}

.hero-indicators {
  position: absolute;
  right: 1.2rem;
  bottom: 1.4rem;
  z-index: 3;
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  align-items: baseline;
}

.hero-indicator {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: scale(1);
  opacity: 0.85;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hero-indicator.is-active {
  color: rgba(255, 255, 255, 1);
  opacity: 1;
  font-weight: 500;
  transform: scale(1.35);
}

.hero-indicator:focus {
  outline: 2px solid rgba(250, 204, 21, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-slide {
    transition: none;
  }

  .hero-slide-copy {
    transition: none;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-subtitle {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-subtitle {
    opacity: 0.9;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 4rem;
  gap: 1.25rem;
  position: relative;
}

.nav-logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: min(460px, 52vw);
}

.nav-logo-img {
  height: 78px;
  width: 100%;
  max-width: 460px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 1 1 auto;
  justify-content: center;
}

.nav-links a {
  font-family: var(--font-sans);
}

.nav-search-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-search-btn:focus {
  outline: 2px solid rgba(250, 204, 21, 0.85);
  outline-offset: 2px;
}

.nav-search {
  flex: 0 0 auto;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition:
    max-width 0.35s ease,
    opacity 0.25s ease;
  margin-right: -0.25rem;
}

nav.nav.nav-search-open .nav-search {
  max-width: 260px;
  opacity: 1;
  pointer-events: auto;
  margin-right: 0;
}

.nav-search-input {
  width: 260px;
  border-radius: 0;
  padding: 0.5rem 0 0.55rem;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.nav-search-input:focus {
  border-bottom-color: rgba(250, 204, 21, 0.85);
  box-shadow: none;
}

.nav-search-submit {
  display: none;
}

.nav-links a.active {
  border-bottom: 2px solid #facc15;
  padding-bottom: 0.25rem;
}

/* Hamburger: hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-content {
  max-width: 520px;
}

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translateX(-2.75rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes hero-line-in-subtitle {
  from {
    opacity: 0;
    transform: translateX(-2.75rem);
  }
  to {
    opacity: 0.9;
    transform: translateX(0);
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: hero-line-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.about-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.about-image {
  max-width: 100%;
  border-radius: 0.75rem;
  display: block;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: hero-line-in 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.hero-subtitle {
  font-size: 1rem;
  max-width: 26rem;
  opacity: 0;
  animation: hero-line-in-subtitle 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

section {
  padding: 4.5rem 0;
  background-color: #fff;
}

section.alt {
  background-color: #f0f0f0;
}

/* ----- Pyramide / “cabinet” editorial blocks ----- */

.section-title-serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.kd-strip {
  padding: 4rem 0;
}

.kd-mission {
  background: linear-gradient(145deg, #141414 0%, #2a2a2a 55%, #1f1f1f 100%);
  color: #f5f5f5;
}

.kd-mission-inner {
  max-width: 52rem;
}

.kd-mission-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  opacity: 0.75;
  color: var(--kd-accent);
}

.kd-mission-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  border-left: 3px solid var(--kd-accent);
  padding-left: 1.5rem;
}

.kd-mission-quote p {
  margin: 0;
}

.kd-mission-quote p + p {
  margin-top: 1.15rem;
}

.kd-mission-attrib {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* Vision — L’agence : texte à gauche, grille 2×2 à droite */
.kd-agence-split {
  padding: 0;
  background: #fff;
  overflow: hidden;
}

.kd-agence-split-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-inline-end: clamp(1.5rem, 5vw, 3.75rem);
  box-sizing: border-box;
}

.kd-agence-copy {
  flex: 1 1 42%;
  min-width: min(100%, 280px);
  max-width: min(40rem, 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  box-sizing: border-box;
}

.kd-agence-title {
  font-family: var(--font-agence-script);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1.35rem;
  color: var(--kd-ink);
}

.kd-agence-body-nunito {
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--kd-muted);
}

.kd-agence-body-nunito p {
  margin: 0 0 1.1rem;
}

.kd-agence-body-nunito p:last-child {
  margin-bottom: 0;
}

.kd-agence-grid {
  flex: 0 0 auto;
  width: clamp(17rem, 44vw, 28rem);
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  align-self: center;
}

.kd-agence-cell {
  position: relative;
  min-height: 0;
  min-width: 0;
  background: #1f2937;
}

.kd-agence-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .kd-agence-split-inner {
    justify-content: center;
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  .kd-agence-grid {
    width: min(28rem, 90vw);
    margin-inline: auto;
    order: 2;
  }

  .kd-agence-copy {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 2.25rem clamp(1rem, 4vw, 1.5rem);
    order: 1;
  }
}

.kd-about-text {
  margin-bottom: 1.5rem;
}

.kd-about-extra p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: #3d3d3d;
}

.kd-about-img {
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.kd-approach {
  background: #e8e8e8;
  color: var(--kd-ink);
}

.kd-approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.kd-approach-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--kd-muted);
}

.kd-approach-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.kd-approach-lead {
  margin: 0;
  line-height: 1.75;
  color: #3d3d3d;
  font-size: 0.98rem;
}

.kd-list-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--kd-muted);
}

.kd-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kd-checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  line-height: 1.5;
}

.kd-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  background: var(--kd-accent);
  border-radius: 1px;
}

/* ----- Construction page (réf. koffi-diabate.com/construction/) ----- */

.kd-construction-intro {
  padding: 3.5rem 0 2rem;
  background: #fff;
}

.kd-construction-page-title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--kd-ink);
}

.kd-construction-intro-copy {
  max-width: 52rem;
}

.kd-construction-intro-copy p {
  margin: 0 0 1.25rem;
  line-height: 1.8;
  font-size: 0.98rem;
  color: #3d3d3d;
}

.kd-construction-intro-copy p:last-child {
  margin-bottom: 0;
}

.kd-construction-expertise {
  padding: 2.5rem 0 4rem;
  background: #fff;
}

.kd-construction-split-title {
  margin: 0 0 2.5rem;
  padding: 0;
  border: none;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--kd-ink);
}

.kd-construction-split-title-line {
  display: block;
}

.kd-construction-split-title-line--accent {
  font-weight: 500;
  color: #111;
}

.kd-construction-bullet-list {
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.kd-construction-bullet-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
}

.kd-construction-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 5px;
  height: 5px;
  background: var(--kd-accent);
}

.kd-construction-projects-block {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.kd-construction-projects-strong {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.kd-construction-projects-body {
  margin: 0;
  line-height: 1.8;
  font-size: 0.98rem;
  color: #3d3d3d;
}

.kd-construction-refs {
  max-width: 56rem;
  padding-top: 1rem;
  border-top: 1px solid var(--kd-line);
}

.kd-construction-refs-title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kd-muted);
}

.kd-construction-refs-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: #555;
  letter-spacing: 0.01em;
}

.kd-construction-pise {
  padding: 4rem 0;
  background: linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 45%, #222 100%);
  color: #f0f0f0;
}

.kd-construction-pise-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kd-accent);
}

.kd-construction-pise-title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 36rem;
  color: #fff;
}

.kd-construction-pise-body {
  max-width: 44rem;
}

.kd-construction-pise-body p {
  margin: 0 0 1.25rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.kd-construction-pise-body p:last-child {
  margin-bottom: 0;
}

.kd-construction-showcase {
  padding: 0;
  background: #0a0a0a;
}

.kd-construction-showcase .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.kd-construction-showcase-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 72vh;
}

.kd-construction-card {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  min-height: 72vh;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  outline-offset: -2px;
  transition: flex 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kd-construction-showcase-grid:hover .kd-construction-card {
  flex: 0.68 1 0;
}

.kd-construction-showcase-grid:hover .kd-construction-card:hover {
  flex: 1.36 1 0;
}

.kd-construction-showcase-grid:focus-within .kd-construction-card {
  flex: 0.68 1 0;
}

.kd-construction-showcase-grid:focus-within .kd-construction-card:focus-visible {
  flex: 1.36 1 0;
}

/* Hover wins over keyboard focus when both apply */
.kd-construction-showcase-grid:hover .kd-construction-card:focus-visible:not(:hover) {
  flex: 0.68 1 0;
}

.kd-construction-card:last-child {
  border-right: none;
}

.kd-construction-card-inner {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
}

.kd-construction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kd-construction-card:hover img,
.kd-construction-card:focus-visible img {
  transform: scale(1.06);
}

.kd-construction-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.45s ease;
  pointer-events: none;
}

.kd-construction-card:hover .kd-construction-card-scrim,
.kd-construction-card:focus-visible .kd-construction-card-scrim {
  background: rgba(0, 0, 0, 0.5);
}

.kd-construction-card-num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  padding-bottom: 0.5rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.kd-construction-card-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: #fff;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kd-construction-card:hover .kd-construction-card-num::after,
.kd-construction-card:focus-visible .kd-construction-card-num::after {
  width: 2.35rem;
}

.kd-construction-card-title {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 5.75rem;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  font-weight: 500;
  line-height: 1.28;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s ease;
}

.kd-construction-card:hover .kd-construction-card-title,
.kd-construction-card:focus-visible .kd-construction-card-title {
  transform: translateY(-6px);
}

.kd-construction-card-cta {
  position: absolute;
  left: 1.5rem;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.9rem 1.85rem 1rem;
  background: #000;
  color: #fff;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  pointer-events: none;
}

.kd-construction-card:hover .kd-construction-card-cta,
.kd-construction-card:focus-visible .kd-construction-card-cta {
  transform: translateY(0);
  opacity: 1;
}

.kd-construction-card-cta-text {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.kd-construction-card-cta-arrow {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 300;
}

@media (max-width: 900px) {
  .kd-construction-showcase-grid {
    flex-direction: column;
    min-height: 0;
  }

  .kd-construction-card {
    flex: 0 0 auto !important;
    width: 100%;
    min-height: 58vh;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .kd-construction-card:last-child {
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kd-construction-card {
    transition: none;
    flex: 1 1 0 !important;
  }

  .kd-construction-showcase-grid:hover .kd-construction-card,
  .kd-construction-showcase-grid:hover .kd-construction-card:hover,
  .kd-construction-showcase-grid:focus-within .kd-construction-card,
  .kd-construction-showcase-grid:focus-within .kd-construction-card:focus-visible,
  .kd-construction-showcase-grid:hover .kd-construction-card:focus-visible:not(:hover) {
    flex: 1 1 0 !important;
  }

  .kd-construction-card img {
    transition: none;
  }

  .kd-construction-card:hover img,
  .kd-construction-card:focus-visible img {
    transform: none;
  }

  .kd-construction-card-scrim,
  .kd-construction-card-num::after,
  .kd-construction-card-title,
  .kd-construction-card-cta {
    transition: none;
  }

  .kd-construction-card:hover .kd-construction-card-title,
  .kd-construction-card:focus-visible .kd-construction-card-title {
    transform: none;
  }

  .kd-construction-card:hover .kd-construction-card-cta,
  .kd-construction-card:focus-visible .kd-construction-card-cta {
    transform: translateY(0);
    opacity: 1;
  }

  .kd-construction-card:hover .kd-construction-card-scrim,
  .kd-construction-card:focus-visible .kd-construction-card-scrim {
    background: rgba(0, 0, 0, 0.5);
  }

  .kd-construction-card:hover .kd-construction-card-num::after,
  .kd-construction-card:focus-visible .kd-construction-card-num::after {
    width: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .kd-construction-card {
    flex: 0 0 auto !important;
  }
}

.kd-services-intro {
  max-width: 48rem;
}

.architecture-filter-tabs {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.architecture-filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: #111827;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.architecture-filter-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.architecture-projects-grid {
  margin-top: 1rem;
}

.portfolio-page-top .architecture-filter-tabs {
  margin-top: 0;
}

/* Nos Projets: project row spans full viewport width (outside .container) */
.portfolio-projects-fullbleed {
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
}

.portfolio-projects-fullbleed .projects-grid.architecture-projects-grid {
  margin-top: 0;
}

.portfolio-projects-fullbleed .projects-empty-state {
  max-width: min(1120px, 100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.portfolio-page-bottom {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-empty-state {
  margin-top: 1rem;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.1rem;
  text-align: center;
}

.projects-empty-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.projects-empty-state h3 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.projects-empty-state p {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.portfolio-services-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 78ch;
}

.portfolio-services-list li {
  position: relative;
  padding-left: 1.1rem;
}

.portfolio-services-list li + li {
  margin-top: 0.45rem;
}

.portfolio-services-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--kd-accent);
  transform: translateY(-50%);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 2rem;
}

.contact-page-details p {
  margin: 0.35rem 0;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--kd-line);
  border-radius: 0.75rem;
  padding: 1.2rem;
}

.contact-form-alert {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.92rem;
}

.contact-form-alert--success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.contact-form-alert--error {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.contact-form-field {
  display: block;
  margin-bottom: 0.8rem;
}

.contact-form-field span {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kd-muted);
  margin-bottom: 0.35rem;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.45rem;
  padding: 0.62rem 0.7rem;
  font: inherit;
  color: var(--kd-ink);
  background: #fff;
}

.contact-form-field textarea {
  resize: vertical;
}

.contact-form-field small {
  display: block;
  margin-top: 0.28rem;
  color: #b91c1c;
}

.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  background: #111827;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.contact-form-submit:hover {
  background: #0b1220;
}

.kd-gallery-row {
  padding: 0;
  background: #0d0d0d;
}

.kd-gallery-row-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-height: 220px;
}

.kd-gallery-row-inner img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.35s ease;
}

.kd-gallery-row-inner img:hover {
  opacity: 1;
}

.kd-partners {
  background: #f6f6f6;
}

.partners-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.partner-logo-wrap {
  padding: 0.9rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 190px);
}

.partner-logo {
  width: auto;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.partner-logo-wrap:hover .partner-logo {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

.kd-footer {
  position: relative;
  background:
    radial-gradient(1200px 320px at 50% -30%, rgba(59, 130, 246, 0.22), transparent 65%),
    linear-gradient(180deg, #0b0f16 0%, #070a10 100%);
  color: #e5e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kd-footer .footer-inner {
  border-top: none;
  padding: 2rem 0 2.15rem;
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  align-items: center;
  gap: 1rem 2rem;
}

.kd-footer .footer-admin-link {
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.56rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kd-footer .footer-admin-link:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.kd-footer .footer-brand-name {
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

.kd-footer .footer-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #98a2b3;
}

.kd-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  justify-content: center;
}

.kd-footer .footer-links a {
  color: #cbd5e1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.kd-footer .footer-links a:hover {
  color: #ffffff;
  opacity: 1;
}

.kd-footer .footer-admin-block {
  justify-self: end;
}

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

  .kd-footer .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .kd-footer .footer-links {
    justify-content: center;
  }

  .kd-footer .footer-admin-block {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .kd-approach-grid {
    grid-template-columns: 1fr;
  }

  .kd-gallery-row-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .kd-gallery-row-inner img {
    min-height: 200px;
  }

  .partner-logo {
    max-height: 50px;
  }

  .partner-logo-wrap {
    width: clamp(92px, 27vw, 150px);
    min-height: 88px;
  }
}

/* Partners marquee: right-to-left auto scroll */
.partners-marquee {
  margin-top: 2rem;
  overflow: hidden;
}

.partners-marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  width: max-content;
  animation: partners-marquee 26s linear infinite;
  will-change: transform;
}

.partners-marquee:hover .partners-marquee-track {
  animation-play-state: paused;
}

@keyframes partners-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-marquee-track {
    animation: none;
  }
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-body {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  justify-items: center;
}

.service-card {
  padding: 0;
  background: transparent;
  border-radius: 0.75rem;
  box-shadow: none;
}

.service-title {
  font-weight: 600;
  margin: 0;
}

.service-card-blob {
  text-align: center;
  max-width: 240px;
}

.service-image-wrapper {
  width: 190px;
  height: 190px;
  margin: 0 auto 1.25rem;
  border-radius: 62% 38% 58% 42% / 60% 45% 55% 40%;
  overflow: hidden;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder when service has no image */
.service-image-placeholder {
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-no-image {
  font-size: 2rem;
  color: #9ca3af;
  font-weight: 300;
  line-height: 1;
}

/* Rounded blob-like variants per card (no sharp edges) */
.services-grid .service-card-blob:nth-child(1) .service-image-wrapper {
  border-radius: 65% 35% 55% 45% / 60% 55% 45% 40%;
}

.services-grid .service-card-blob:nth-child(2) .service-image-wrapper {
  border-radius: 40% 60% 55% 45% / 50% 65% 35% 50%;
}

.services-grid .service-card-blob:nth-child(3) .service-image-wrapper {
  border-radius: 55% 45% 65% 35% / 60% 40% 60% 40%;
}

.services-grid .service-card-blob:nth-child(4) .service-image-wrapper {
  border-radius: 70% 30% 50% 50% / 55% 60% 40% 45%;
}

.service-text {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0.35rem 0 0;
}

.service-card-blob .service-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.15rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
}

.project-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background-color: #111827;
}

.project-card-link {
  display: block;
  color: inherit;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: default;
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 320px;
  background-color: #1f2937;
  cursor: default;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-more-button {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  cursor: pointer;
}

.project-more-button:hover {
  background-color: rgba(15, 23, 42, 1);
}

.project-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
  color: #e5e7eb;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card-link:hover .project-meta {
  opacity: 1;
  transform: translateY(0);
}

.project-card-link:hover .project-image-wrap img {
  transform: scale(1.03);
  transition: transform 0.35s ease;
}

.project-image-wrap img {
  transition: transform 0.35s ease;
}

/* Project detail page */
.project-hero {
  position: relative;
  height: min(78vh, 760px);
  color: #fff;
  background: #111;
  overflow: hidden;
}

.project-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  z-index: 0;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65));
  z-index: 1;
}

.project-hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 3.5rem;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  padding: 6.25rem 0 2.5rem;
  display: grid;
  grid-template-columns: clamp(140px, 20vw, 240px) minmax(0, 1fr) clamp(140px, 20vw, 240px);
  align-items: center;
  gap: 0.8rem;
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  opacity: 0;
  transform: translateX(-2.75rem);
  animation: hero-line-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.project-hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  transform: translateX(-2.75rem);
  opacity: 0;
  animation: hero-line-in-subtitle 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.project-hero-nav {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.project-hero-nav:hover {
  background: transparent;
}

.project-hero-nav-left {
  justify-self: start;
}

.project-hero-nav-right {
  justify-self: end;
}

.project-hero-center {
  justify-self: center;
  text-align: left;
  max-width: 42rem;
  align-self: center;
}

.project-hero-nav-left,
.project-hero-nav-right {
  align-self: center;
}

.project-hero-nav-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.project-hero-nav-label {
  white-space: nowrap;
}

.project-detail {
  padding: 3rem 0 4rem;
  background: #f4f4f4;
}

.project-detail-description {
  max-width: 58rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.85;
  color: #2f2f2f;
  padding: 0 1rem;
}

.project-story {
  position: relative;
  margin: 0 auto 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 78rem;
  background: #d1d5db;
}

.project-story > img {
  width: 100%;
  min-height: 380px;
  max-height: 620px;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-story-overlay {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  top: clamp(1rem, 5vh, 3rem);
  max-width: min(34rem, 92%);
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateX(44px);
  transition:
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-story.is-in-view > img {
  transform: scale(1.03);
}

.project-story.is-in-view .project-story-overlay {
  opacity: 1;
  transform: translateX(0);
}

.project-detail-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0 1rem;
}

.project-detail-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.project-detail-figure img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-hero {
    height: min(70vh, 680px);
  }

  .project-hero-content {
    padding: 4.75rem 0 2rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-hero-nav-label {
    display: none;
  }

  .project-hero-center {
    justify-self: start;
    max-width: none;
  }

  .project-hero-nav-left,
  .project-hero-nav-right {
    justify-self: start;
  }

  .project-detail-figure img {
    height: 240px;
  }

  .project-story > img {
    min-height: 250px;
  }

  .project-story-overlay {
    position: static;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-story > img,
  .project-story-overlay {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.testimonials {
  text-align: center;
}

.actualites-layout {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: start;
}

.actualites-left-spacer {
  display: none;
}

.actualites-center {
  flex: 0 0 75%;
  max-width: 75%;
  min-width: 0;
}

.testimonials-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.actualites-right-feed {
  flex: 0 0 25%;
  max-width: 25%;
  background: #fff;
  border: 1px solid var(--kd-line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.actualites-feed-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
}

.actualites-feed-list {
  padding: 0.25rem 0;
}

.actualites-feed-item {
  padding: 0.65rem 0.8rem 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.actualites-feed-item:last-child {
  border-bottom: none;
}

.actualites-feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
}

.actualites-feed-meta span {
  color: #6b7280;
}

.actualites-feed-item p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #374151;
}

.team-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  text-align: left;
}

.team-image-wrap {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background-color: #f3f4f6;
  border-radius: 0.75rem 0.75rem 0 0;
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-image-placeholder {
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.team-meta {
  display: block;
  flex: 0 0 auto;
  background: #fff;
  padding: 1.25rem 1rem;
}

.team-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  margin: 0 0 0.2rem;
  text-decoration: none;
  display: inline-flex;
}

.team-name:hover {
  text-decoration: underline;
}

.team-grade {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 0.5rem;
}

.team-description {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.member-profile {
  max-width: 980px;
}

.member-profile-back {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #374151;
}

.member-profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.member-profile-photo-wrap {
  background: #fff;
  border: 1px solid var(--kd-line);
  border-radius: 0.75rem;
  overflow: hidden;
}

.member-profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.member-profile-photo--placeholder {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.member-profile-content {
  background: #fff;
  border: 1px solid var(--kd-line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem 1.2rem;
}

.member-profile-role {
  margin-top: -0.2rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.member-profile-meta {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #111827;
}

.member-profile-bio {
  margin-top: 0.9rem;
}

.project-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
}

.project-lightbox-content {
  position: relative;
  max-width: min(960px, 100%);
  padding: 0 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.project-lightbox-prev,
.project-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.project-lightbox-prev {
  left: 1rem;
}

.project-lightbox-next {
  right: 1rem;
}

.project-lightbox-prev:hover,
.project-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.project-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.project-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.project-lightbox-backdrop[hidden] {
  display: none !important;
}

.testimonial-card {
  background-color: #111827;
  color: #e5e7eb;
  padding: 2rem 1.75rem;
  border-radius: 0.75rem;
}

.testimonial-text {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.field-group {
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-layout {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.contact-panel {
  background-color: #111827;
  color: #e5e7eb;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.contact-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-text a {
  color: #e5e7eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.contact-social-links a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.contact-social-links a:hover {
  background-color: #f9fafb;
  color: #111827;
}

.contact-intro {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d1d5db;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.contact-form-wrapper {
  background-color: #f9fafb;
  padding: 2rem 2.25rem;
}

.contact-form {
  max-width: 520px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  background-color: #111827;
  color: #f9fafb;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.btn-secondary {
  background-color: #f9fafb;
  color: #111827;
  border: 1px solid #e5e7eb;
}

footer {
  padding: 1.5rem 0 2rem;
  background-color: #111827;
  color: #9ca3af;
  text-align: center;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-admin-link {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Back to top (fixed) */
.scroll-to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #1f2937, #111827);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    background 0.2s ease;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(145deg, #374151, #1f2937);
  color: #facc15;
}

.scroll-to-top:focus {
  outline: 2px solid #facc15;
  outline-offset: 3px;
}

.scroll-to-top:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .scroll-to-top.is-visible {
    transform: none;
  }
}

/* Admin styles */
.admin-shell {
  min-height: 100vh;
  display: flex;
  background-color: #f3f4f6;
}

.admin-sidebar {
  width: 230px;
  background-color: #111827;
  color: #e5e7eb;
  padding: 1.5rem 1rem;
}

.admin-sidebar-header {
  display: none;
}

.admin-nav-toggle {
  display: none;
}

.admin-main {
  flex: 1;
  padding: 2rem;
}

.admin-nav {
  margin-bottom: 2rem;
}

.admin-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

.admin-nav a.active,
.admin-nav a:hover {
  background-color: #1f2937;
}

.admin-content h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-dashboard-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.admin-dashboard-tile:hover {
  border-color: rgba(17, 24, 39, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.admin-dashboard-tile-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
}

.admin-dashboard-tile-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7280;
}

.admin-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 2rem;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-card-header h2 {
  margin: 0;
}

.admin-card-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.75rem;
  vertical-align: middle;
}

.admin-table thead tr th {
  border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr td {
  border-bottom: 1px solid #e5e7eb;
}

.admin-table tbody tr td.admin-actions {
  overflow: visible;
}

.admin-table th {
  text-align: left;
  font-weight: 600;
  background-color: #f9fafb;
}

.admin-table tbody tr:hover {
  background-color: #f3f4f6;
}

.admin-actions form {
  display: inline;
}

.admin-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.admin-link-button {
  border: none;
  background: none;
  padding: 0;
  color: #111827;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-link-danger {
  color: #b91c1c;
}

.admin-link-button:hover {
  opacity: 0.8;
}

.admin-table-image {
  width: 56px;
  vertical-align: middle;
}
.admin-table-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.35rem;
  display: block;
}
.admin-image-preview {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
  border-radius: 0.35rem;
  line-height: 0;
}
.admin-image-preview:hover {
  opacity: 0.85;
}
.admin-no-image {
  color: #9ca3af;
  font-size: 0.9rem;
}

.admin-table-empty {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  vertical-align: middle;
}

.admin-header-image-form {
  margin-bottom: 0;
}
.admin-header-image-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.admin-header-image-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-header-image-preview {
  width: 240px;
  height: 120px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
}
.admin-header-image-remove {
  align-self: flex-start;
}
.admin-header-image-empty {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.5rem 0;
}

.admin-table-photos {
  font-size: 0.9rem;
  color: #6b7280;
}

.admin-project-gallery-current {
  margin-bottom: 0.75rem;
}

.admin-project-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-project-gallery-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.admin-project-gallery-thumb img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid #e5e7eb;
}

.admin-modal-image-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-modal-current-image-wrap {
  position: relative;
  display: none;
}
.admin-modal-current-image {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f3f4f6;
  display: none;
}
.admin-modal-current-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-modal-remove-image {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: rgba(185, 28, 28, 0.9);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-modal-current-image-wrap:hover .admin-modal-remove-image {
  opacity: 1;
}
.admin-modal-remove-image:hover {
  background-color: #b91c1c;
}
.admin-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}
.admin-field-hint code {
  background-color: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}

.admin-file-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-file-input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
.admin-file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.admin-file-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}
.admin-file-label-icon svg {
  display: block;
}
.admin-file-label:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}
.admin-file-name {
  font-size: 0.85rem;
  color: #6b7280;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #ecfdf5;
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.admin-toast-region {
  position: relative;
  min-height: 0;
}

.admin-toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  max-width: 320px;
  background-color: #111827;
  color: #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  z-index: 50;
}

.admin-toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.admin-toast-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #86efac;
}

.admin-toast-icon-delete {
  color: #f87171;
  background-color: rgba(248, 113, 113, 0.2);
}

.admin-toast-icon svg {
  display: block;
}
.admin-toast-message {
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.admin-toast-close {
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 1rem;
}

.admin-modal-backdrop[hidden] {
  display: none !important;
}

.admin-delete-modal .admin-delete-message {
  margin: 0 0 1.25rem;
  color: #374151;
}
.admin-delete-btn {
  background-color: #b91c1c;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-delete-btn:hover {
  background-color: #991b1b;
  color: #fff;
}

.admin-modal {
  width: min(480px, 100% - 3rem);
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.admin-modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.admin-modal-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.admin-modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-modal-footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
}

.admin-modal-secondary {
  background-color: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.admin-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 2rem;
}
.admin-lightbox-backdrop[hidden] {
  display: none !important;
}
.admin-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}
.admin-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.admin-lightbox-content {
  max-width: 72vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-lightbox-content .admin-lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111827;
}

.login-card {
  background-color: #f9fafb;
  padding: 2rem 2.5rem;
  border-radius: 0.75rem;
  width: min(360px, 100% - 3rem);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.login-header {
  margin-bottom: 1.75rem;
}

.login-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.login-footer-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.login-footer-note a {
  color: #111827;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.password-field {
  position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
}

.password-toggle:hover {
  background-color: #e5e7eb;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle.is-visible .eye-on {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: inline;
}

/* ----- Responsive: index.php ----- */

/* Top menu: hamburger from 920px down */
@media (max-width: 920px) {
  .hero-inner {
    /* Leave space for fixed top nav */
    padding-top: 76px;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    margin: 0;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-search-btn {
    order: 2;
    margin-left: 0;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-search {
    order: 2;
    max-width: 0;
  }

  nav.nav.nav-search-open .nav-search {
    max-width: 200px;
  }

  .nav-search-input {
    width: 200px;
  }

  .nav-toggle:hover {
    background: #1a1a1a;
  }

  .nav-links {
    flex-basis: 100%;
    order: 3;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    margin: 0;
    margin-top: 0;
    border-top: 1px solid transparent;
    opacity: 0;
    background: transparent;
    transition: max-height 0.6s ease-out, opacity 0.5s ease, padding 0.5s ease, border-color 0.5s ease, background 0.5s ease;
  }

  .nav-links.nav-open {
    max-height: 400px;
    padding: 1rem 1.25rem 1rem;
    margin-top: 0.5rem;
    border-top-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
    background: #000;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a.active {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    border-left: 3px solid #facc15;
    padding-left: 0.5rem;
  }

  .nav-logo {
    order: 1;
  }
}

/* Tablet and below */
@media (max-width: 900px) {
  .contact-layout,
  .contact-layout-alt {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-wrapper {
    padding: 1.5rem 1.25rem;
  }

  .contact-panel {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1120px, 100% - 1.5rem);
  }

  section {
    padding: 2.5rem 0;
  }

  .grid-two {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .about-image-wrap {
    justify-content: center;
  }

  .about-image {
    max-width: 100%;
    width: 100%;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-body {
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .service-card-blob {
    max-width: none;
  }

  .service-image-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .architecture-filter-tabs {
    gap: 0.45rem;
  }

  .project-card img,
  .project-image-wrap {
    height: 220px;
  }

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .actualites-layout {
    flex-direction: column;
  }

  .actualites-left-spacer {
    display: none;
  }

  .actualites-center,
  .actualites-right-feed {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }

  .member-profile-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-lightbox-backdrop {
    padding: 1rem;
  }

  .project-lightbox-content {
    padding: 0 2.5rem;
  }

  .project-lightbox-prev {
    left: 0.25rem;
  }

  .project-lightbox-next {
    right: 0.25rem;
  }

  .project-lightbox-prev,
  .project-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .container {
    width: min(1120px, 100% - 1rem);
  }

  .nav-logo {
    max-width: 75vw;
  }

  .nav-logo-img {
    height: 62px;
    max-width: 75vw;
  }

  section {
    padding: 2rem 0;
  }

  header.hero {
    min-height: min(88vh, 800px);
  }

  .hero-inner {
    padding: 0 0 3rem;
  }

  .nav {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    letter-spacing: 0.1em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

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

  .service-image-wrapper {
    width: 120px;
    height: 120px;
  }

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

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-image-wrap {
    height: 200px;
  }

  .project-card img,
  .project-image-wrap {
    height: 200px;
  }

  .contact-form-wrapper,
  .contact-panel {
    padding: 1.25rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .nav-links {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

/* ----- Admin dashboard responsive ----- */
@media (max-width: 900px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    padding: 0;
    display: block;
    flex-direction: column;
  }

  .admin-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    padding: 1rem 1.5rem;
  }

  .admin-sidebar .nav-logo {
    margin-bottom: 0;
    margin-right: auto;
    font-size: 0.95rem;
    order: 1;
  }

  .admin-nav-toggle {
    order: 2;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
  }

  .admin-nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin: 0 auto;
    transition: transform 0.2s, opacity 0.2s;
  }

  .admin-nav-toggle[aria-expanded="true"] .admin-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .admin-nav-toggle[aria-expanded="true"] .admin-nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .admin-nav-toggle[aria-expanded="true"] .admin-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .admin-nav {
    margin-bottom: 0;
    display: block;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.35s ease-out;
  }

  .admin-nav.admin-nav-open {
    max-height: 200px;
  }

  .admin-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-nav a:last-child {
    border-bottom: none;
  }

  .admin-main {
    padding: 1.25rem 1rem;
  }

  .admin-content h1 {
    font-size: 1.4rem;
  }

  .admin-card {
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .admin-card-header h2 {
    font-size: 1.1rem;
  }

  .admin-header-image-row {
    flex-direction: column;
  }

  .admin-header-image-preview {
    max-width: 100%;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 600px;
    font-size: 0.85rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.6rem;
  }

  .admin-actions {
    flex-wrap: wrap;
  }

  .admin-toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .admin-sidebar-header {
    padding: 0.75rem 1rem;
  }

  .admin-nav a {
    padding: 0.65rem 1rem;
  }

  .admin-main {
    padding: 1rem 0.75rem;
  }

  .admin-card {
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
  }

  .admin-modal {
    width: calc(100% - 1rem);
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }

  .admin-modal-body,
  .admin-modal-header {
    padding: 1rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

