/* =========================================================
   BETA — feuille de style globale
   ========================================================= */

:root {
  --color-black: #0a0a0c;
  --color-white: #ffffff;
  --color-grey: #7a7a7a;
  --color-line: #e2e2e2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", Helvetica, Arial, sans-serif;

  --container-max: 1360px;
  --gutter: clamp(20px, 5vw, 64px);
  --gutter-wide: clamp(16px, 2.6vw, 40px);
  --header-h: 88px;

  --ease-out: cubic-bezier(0.16, 0.8, 0.36, 1);
}

/* -------- reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* empêche toute bande blanche liée à un débordement horizontal */
}

body {
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* -------- layout helpers -------- */
/* Le point clé pour ne JAMAIS avoir de bande blanche à droite :
   - aucun élément de layout n'utilise 100vw (qui ignore la largeur de la scrollbar)
   - tout conteneur centré passe par .container avec width:100% + margin:auto
*/
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Conteneur "large" : marges latérales réduites, utilisé pour le header
   et le hero afin de rapprocher le logo/la nav des bords de l'écran. */
.container--wide {
  max-width: 1680px;
  padding-left: var(--gutter-wide);
  padding-right: var(--gutter-wide);
}

.full-bleed {
  width: 100%;
}

section {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-black);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-black);
}

.eyebrow.on-dark {
  color: var(--color-white);
}
.eyebrow.on-dark::before {
  background: var(--color-white);
}

/* Eyebrow du hero : plus visible (plus grand, plus contrasté) */
.hero-content .eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  gap: 18px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero-content .eyebrow::before {
  width: 44px;
  height: 2px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.btn-link:hover {
  opacity: 0.6;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.btn-solid:hover {
  opacity: 0.85;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.0);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: inherit;
  transition: opacity 0.3s ease;
}
.logo:hover {
  opacity: 0.7;
}

.logo-suffix {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-left: 7px;
  opacity: 0.6;
  vertical-align: middle;
}

.site-header.on-dark:not(.is-scrolled) .logo,
.site-header.on-dark:not(.is-scrolled) .nav-main a,
.site-header.on-dark:not(.is-scrolled) .burger span {
  color: var(--color-white);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-main a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}

.nav-main a:hover::after,
.nav-main a.is-active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.burger span {
  width: 22px;
  height: 1.5px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  z-index: 99;
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 32px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-black);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 16s var(--ease-out) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 12, 0.55) 0%,
    rgba(10, 10, 12, 0.15) 30%,
    rgba(10, 10, 12, 0.35) 70%,
    rgba(10, 10, 12, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 90px;
}

.hero-content .eyebrow {
  margin-bottom: 22px;
}

.hero-content .eyebrow,
.hero-title,
.hero-text,
.hero-cta {
  opacity: 0;
  transform: translateY(22px);
  animation: heroTextIn 1s var(--ease-out) forwards;
}

.hero-content .eyebrow { animation-delay: 0.2s; }
.hero-title { animation-delay: 0.38s; }
.hero-text { animation-delay: 0.56s; }
.hero-cta { animation-delay: 0.72s; }

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.06;
  max-width: 16ch;
  letter-spacing: -0.01em;
}

.hero-text {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
  margin-top: 22px;
  font-size: 12.5px;
}

.hero-cta strong {
  font-weight: 700;
}

.cta-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.4s var(--ease-out);
}

.hero-cta:hover .cta-arrow {
  transform: translateX(7px);
}

.hero-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-caption {
  font-size: 13px;
}

.hero-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-caption span {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dots button.is-active {
  background: var(--color-white);
  transform: scale(1.2);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* =========================================================
   NOTRE APPROCHE
   ========================================================= */
.approche {
  padding: 120px 0 100px;
  background: var(--color-white);
}

.approche-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 28px;
}

.approche-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.15;
  max-width: 14ch;
}

.approche-lead {
  margin-top: 24px;
  font-size: 16px;
  color: #4a4a46;
  max-width: 48ch;
  border-top: 1px solid var(--color-line);
  padding-top: 24px;
}

.approche-cta {
  margin-top: 28px;
}

.approche-list {
  display: flex;
  flex-direction: column;
  /* Répartit les items sur toute la hauteur disponible (calée sur la
     colonne de gauche, plus haute) pour éviter tout vide en bas quand
     la liste compte peu d'éléments. */
  justify-content: space-between;
  height: 100%;
}

.approche-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--color-line);
}

.approche-list .approche-item:last-child {
  border-bottom: 1px solid var(--color-line);
}

.approche-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-grey);
  opacity: 0.55;
}

.approche-item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.approche-item p {
  font-size: 14.5px;
  color: #56564f;
  max-width: 46ch;
}

/* =========================================================
   NOS EXPERTISES
   ========================================================= */
.expertises {
  padding: 100px 0 120px;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
}

.expertises-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.expertises-head > div:first-child {
  max-width: 640px;
}

.expertises-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  margin-top: 22px;
}

.expertises-head p {
  margin-top: 20px;
  font-size: 16px;
  color: #4a4a46;
  max-width: 56ch;
}

.expertises-cta {
  flex-shrink: 0;
}

.expertise-block {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--color-line);
}

.expertise-block:last-child {
  border-bottom: 1px solid var(--color-line);
}

.expertise-block:nth-child(even) {
  grid-template-columns: 1fr 1.35fr;
}

.expertise-block:nth-child(even) .expertise-media {
  order: 2;
}

/* Le contenu texte des blocs pairs (ex. "02 Bureau d'études") est décalé
   vers la droite pour ne pas coller à l'image et respirer davantage. */
.expertise-block:nth-child(even) .expertise-content {
  padding-left: 64px;
}

.expertise-media {
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 340px;
  background: var(--color-black);
}

.expertise-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.expertise-block:hover .expertise-media img {
  transform: scale(1.045);
}

.expertise-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-grey);
  opacity: 0.6;
  display: block;
  margin-bottom: 6px;
}

.expertise-content h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  margin-bottom: 22px;
}

.expertise-content ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.expertise-content li {
  font-size: 15px;
  color: #4a4a46;
  padding-left: 18px;
  position: relative;
}

.expertise-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--color-black);
}

/* =========================================================
   RÉALISATIONS (teaser grid + page)
   ========================================================= */
.realisations {
  padding: 110px 0;
  background: var(--color-white);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  margin-top: 22px;
  max-width: 16ch;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-card {
  display: block;
}

.project-card .media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  background: var(--color-black);
}

/* Cadrage plus horizontal (paysage) pour les grilles de projets */
.projects-grid--wide .project-card .media {
  aspect-ratio: 4 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-card span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-grey);
}

/* =========================================================
   AGENCE teaser / page
   ========================================================= */
.agence-teaser {
  padding: 110px 0;
  background: var(--color-black);
  color: var(--color-white);
}

.agence-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.agence-teaser h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  margin-top: 22px;
}

.agence-teaser p {
  margin-top: 22px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 50ch;
}

.agence-teaser .btn-solid {
  margin-top: 30px;
  background: var(--color-white);
  color: var(--color-black);
}

.agence-teaser-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.agence-teaser-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 40px;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
}

.stat-item .label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   CONTACT teaser / page
   ========================================================= */
.contact-teaser {
  padding: 110px 0 100px;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.contact-teaser .eyebrow {
  justify-content: center;
}

.contact-teaser h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 58px);
  margin: 22px auto 26px;
  max-width: 18ch;
}

.contact-teaser .btn-solid {
  margin-top: 10px;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.contact-details div {
  text-align: left;
}

.contact-details .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 8px;
}

.contact-details .value {
  font-size: 15px;
}

/* =========================================================
   PAGE HEADER (pages secondaires)
   ========================================================= */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 70px;
  background: var(--color-white);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 58px);
  margin-top: 22px;
  max-width: 18ch;
}

.page-hero p {
  margin-top: 22px;
  font-size: 16px;
  color: #4a4a46;
  max-width: 56ch;
}

.page-banner {
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo affiché en lieu et place d'une photo : jamais rogné */
.page-banner img.media-logo,
.agence-teaser-media img.media-logo {
  object-fit: contain;
  background: var(--color-black);
}

/* =========================================================
   CONTACT FORM (page contact)
   ========================================================= */
.contact-form-section {
  padding: 90px 0 120px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  background: transparent;
  color: var(--color-black);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-black);
}

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

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.contact-info-block h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-info-block .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 6px;
}

/* =========================================================
   PAGE PROJET (détail d'une réalisation)
   ========================================================= */
.project-hero {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 480px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-black);
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 12, 0.15) 0%,
    rgba(10, 10, 12, 0.05) 35%,
    rgba(10, 10, 12, 0.75) 100%
  );
}

.project-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: 56px;
}

.project-hero img {
  cursor: zoom-in;
}

.project-hero-content .eyebrow {
  margin-bottom: 18px;
}

.project-hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 62px);
  max-width: 20ch;
}

.project-back {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  left: 0;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Informations clés du projet */
.project-info-band {
  background: var(--color-white);
  color: var(--color-black);
  border-bottom: 1px solid var(--color-line);
}

.project-info-band .container {
  border-top: 2px solid var(--color-black);
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.project-info-item {
  padding: 30px var(--gutter) 30px 0;
  border-left: 1px solid var(--color-line);
  padding-left: 28px;
}

.project-info-item:first-child {
  border-left: none;
  padding-left: 0;
}

.project-info-item .label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 10px;
}

.project-info-item .value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* Corps descriptif */
.project-body {
  padding: 110px 0 70px;
}

.project-body-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.project-body-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
}

.project-body-text p {
  font-size: 15.5px;
  color: #4a4a46;
  max-width: 60ch;
}

.project-body-text p + p {
  margin-top: 18px;
}

/* Galerie : chaque image garde ses proportions naturelles, jamais de recadrage
   ni de zone vide — la mise en page s'adapte au nombre et au format des photos. */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 100px;
}

.gallery-feature img,
.gallery-row img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

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

/* Lightbox : voir l'image en entier au clic */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 9, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  padding: 40px;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--color-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
}

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

/* Navigation projet précédent / suivant */
.project-nav {
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-nav a {
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.3s ease;
}

.project-nav a:hover {
  background: #f7f7f7;
}

.project-nav .next {
  text-align: right;
  align-items: flex-end;
  border-left: 1px solid var(--color-line);
}

.project-nav .dir {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-grey);
}

.project-nav .title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-info-item {
    border-left: none;
    border-top: 1px solid var(--color-line);
    padding: 24px 0 0;
  }
  .project-info-item:first-child {
    border-top: none;
  }
  .project-body-grid {
    grid-template-columns: 1fr;
  }
  .gallery-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .project-info-grid {
    grid-template-columns: 1fr;
  }
  .project-nav {
    grid-template-columns: 1fr;
  }
  .project-nav .next {
    text-align: left;
    align-items: flex-start;
    border-left: none;
    border-top: 1px solid var(--color-line);
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand .logo {
  color: var(--color-white);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   ANIMATIONS AU SCROLL (discrètes, "reveal")
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.reveal-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-img,
  .hero-content .eyebrow,
  .hero-title,
  .hero-text,
  .hero-cta {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav-main {
    display: none;
  }
  .burger {
    display: flex;
  }
  .approche-grid,
  .expertise-block,
  .agence-teaser-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .expertise-block:nth-child(even) .expertise-media {
    order: 0;
  }
  .expertise-block:nth-child(even) .expertise-content {
    padding-left: 0;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .contact-details {
    gap: 30px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
