/* ==========================================================================
   ABEL — Générale de bâtiment — Feuille de style principale (CSS pur, sans framework)
   ========================================================================== */

/* ----------------------------- Polices (auto-hébergées) ------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-italic-var.woff2') format('woff2');
}

/* ----------------------------- Variables ------------------------------- */
:root {
  --primary: #0f172a;
  --secondary: #f97316;
  --accent: #fbbf24;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --orange-50: #fff7ed;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --header-h: 72px;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);
}

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

html { scroll-behavior: smooth; scrollbar-color: var(--slate-800) var(--slate-100); }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate-900);
  background: var(--slate-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

section[id] { scroll-margin-top: 110px; }
@media (max-width: 768px) { section[id] { scroll-margin-top: 90px; } }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-800); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

:focus-visible { outline: 3px solid rgb(249 115 22 / .55); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--primary); font-weight: 600;
  padding: 12px 20px; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Icônes SVG */
.icon { display: inline-block; width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; vertical-align: -0.125em; }

/* ----------------------------- Utilitaires ------------------------------ */
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

.section { padding-block: 96px; }
.section-white { background: #fff; }
.section-muted { background: var(--slate-100); }
.section-dark { background: var(--slate-900); color: #fff; }
.section-dark h2 { color: #fff; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 0; }
.kicker {
  color: var(--secondary); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px;
}
h2 { font-weight: 800; font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; color: var(--primary); }
.rule { width: 96px; height: 6px; background: var(--secondary); margin: 24px auto 0; }
.section-sub { color: var(--slate-500); margin-top: 12px; }

.grid-3 { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 700; text-decoration: none;
  transition: color .3s ease;
}
.link-arrow:hover { color: var(--secondary); }
.link-arrow .icon { width: 14px; height: 14px; }
.link-underline {
  color: var(--primary); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--secondary); padding-bottom: 4px;
  transition: color .3s ease;
}
.link-underline:hover { color: var(--secondary); }
.link-secondary { color: var(--secondary); font-weight: 700; text-decoration: none; }
.link-secondary:hover { text-decoration: underline; }

/* ----------------------------- Boutons ---------------------------------- */
.btn {
  display: inline-block; padding: 16px 32px; border-radius: 8px;
  font-weight: 700; text-align: center; text-decoration: none;
  transition: background-color .3s ease, color .3s ease; border: 0; cursor: pointer;
}
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; padding: 14px 30px; }
.btn-ghost:hover { background: #fff; color: var(--primary); }

/* ----------------------------- En-tête ---------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgb(255 255 255 / .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; padding-block: 8px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo-img { height: 80px; width: auto; max-width: 270px; object-fit: contain; display: block; transition: height .2s ease; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 8px; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.logo-mark .icon { width: 20px; height: 20px; }
.logo-text { font-size: 24px; font-weight: 800; letter-spacing: -.025em; color: var(--primary); }
.logo-text span { color: var(--secondary); }
@media (max-width: 768px) {
  .site-nav { padding-block: 8px; }
  .site-logo-img { height: 58px; max-width: 200px; }
}

.nav-links { display: none; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--primary); cursor: pointer; padding: 4px;
}
.nav-toggle .icon { width: 24px; height: 24px; }

.nav-mobile { display: none; background: #fff; border-top: 1px solid var(--slate-200); padding: 16px 24px 20px; box-shadow: var(--shadow-lg); }
.nav-mobile.is-open { display: block; }
.nav-mobile a { display: block; padding: 12px 0; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--slate-900); border-bottom: 1px solid var(--slate-100); transition: color .2s ease; }
.nav-mobile a:hover { color: var(--secondary); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile-contact { color: var(--secondary) !important; font-weight: 700 !important; margin-top: 4px; }

@media (max-width: 1023.98px) {
  .site-nav { padding-block: 8px; }
  .site-logo-img { height: 66px; max-width: 220px; }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex; align-items: center; gap: 24px;
    font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em;
  }
  .nav-links a { text-decoration: none; transition: color .3s ease; }
  .nav-links a:hover { color: var(--secondary); }
  .nav-links .nav-cta {
    background: var(--secondary); color: #fff; padding: 10px 22px; border-radius: 9999px;
    font-weight: 700; box-shadow: var(--shadow-lg); transition: background-color .3s ease, transform .2s ease;
  }
  .nav-links .nav-cta:hover { background: var(--orange-600); transform: translateY(-1px); color: #fff; }
  .nav-toggle, .nav-mobile { display: none !important; }
}

/* ----------------------------- Héro (2 Colonnes Équilibrées) ------------ */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--primary);
  background-image: radial-gradient(circle at 18% 22%, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding-top: 120px; padding-bottom: 76px;
}
@media (min-width: 1024px) {
  .hero {
    min-height: 84vh; min-height: 84svh;
    display: flex; align-items: center;
    padding-top: 130px; padding-bottom: 80px;
  }
}

.hero-container {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  position: relative; z-index: 2; width: 100%;
}
@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1.05fr 0.95fr; gap: 52px;
  }
}
@media (min-width: 1280px) {
  .hero-container {
    grid-template-columns: 1fr 1fr; gap: 60px;
  }
}

.hero-col-text {
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-col-text .hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 20px; margin-bottom: 22px; border-radius: 9999px;
  background: var(--secondary); color: #fff; border: 1px solid rgb(255 255 255 / .3);
  font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 4px 16px rgb(249 115 22 / .4);
}
.hero-col-text .hero-badge .icon { width: 14px; height: 14px; }
.hero-col-text h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.5rem); font-weight: 900; line-height: 1.15; letter-spacing: -.025em; margin-bottom: 22px; color: #fff;
}
.hero-col-text .hero-text {
  font-size: 19px; line-height: 1.7; color: #f8fafc; margin-bottom: 34px; max-width: 640px; font-weight: 450;
}
.hero-actions { display: flex; flex-direction: column; gap: 16px; width: 100%; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; width: auto; } }

/* Colonne Média (Photo cuisine valorisée & plus spacieuse) */
.hero-col-media { position: relative; width: 100%; }
.hero-photo-card {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: var(--slate-800); height: 420px;
}
@media (min-width: 768px) { .hero-photo-card { height: 480px; } }
@media (min-width: 1024px) { .hero-photo-card { height: 560px; } }
@media (min-width: 1280px) { .hero-photo-card { height: 580px; } }
.hero-photo-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 65%; display: block;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.hero-photo-card:hover .hero-photo-img { transform: scale(1.035); }
.hero-photo-caption {
  position: absolute; bottom: 0; inset-inline: 0; padding: 26px 24px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.7) 70%, transparent 100%);
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.hero-photo-tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--secondary); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.hero-photo-tag .icon { width: 14px; height: 14px; }
.hero-photo-title { color: #fff; font-size: 16px; font-weight: 700; margin: 0; line-height: 1.35; }

/* ----------------------------- Blocs de Réassurance --------------------- */
.reassurance-wrap { margin-top: -46px; position: relative; z-index: 10; }
.reassurance-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .reassurance-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reassurance-grid { grid-template-columns: repeat(4, 1fr); } }

.reassurance-card {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-xl);
  padding: 24px 20px; border: 1px solid var(--slate-200);
  border-bottom: 4px solid var(--secondary);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.reassurance-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-2xl);
}
.reassurance-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--orange-50); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reassurance-icon .icon { width: 20px; height: 20px; }
.reassurance-card h3 {
  font-size: 17.5px; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.25;
}
.reassurance-card p {
  font-size: 14px; line-height: 1.55; color: var(--slate-700); margin: 0;
}

/* Fallback Chiffres clés */
.stats-wrap { margin-top: -64px; position: relative; z-index: 10; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-xl); padding: 32px;
}
.stat { text-align: center; padding: 16px; }
.stat + .stat { border-left: 1px solid var(--slate-100); }
.stat-num { display: block; font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { color: var(--slate-500); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------- Services : 2 Catégories Visuelles Distinctes */
.services-category-block { margin-bottom: 24px; }
.services-category-title {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--slate-200);
}
.services-category-title h3 {
  font-size: 22px; font-weight: 800; color: var(--primary); margin: 0; display: inline-flex; align-items: center; gap: 10px;
}
.services-category-title p {
  color: var(--slate-600); font-size: 14.5px; margin: 0;
}

/* Grille 1 : Les 5 Spécialités Clés (Grandes Cartes Haut de Gamme Centrées) */
.services-core-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 56px;
}
.service-card-core {
  background: #fff; padding: 32px 28px; border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgb(15 23 42 / .08), 0 8px 10px -6px rgb(15 23 42 / .04);
  border: 1px solid var(--slate-200); border-top: 4px solid var(--secondary);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column; position: relative;
  flex: 0 1 100%;
}
@media (min-width: 640px) {
  .service-card-core {
    flex: 0 1 calc(50% - 12px); max-width: calc(50% - 12px);
  }
}
@media (min-width: 1024px) {
  .service-card-core {
    flex: 0 1 calc(33.333% - 16px); max-width: calc(33.333% - 16px);
  }
}
.service-card-core:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgb(249 115 22 / .25);
  border-color: var(--secondary);
}
.service-card-core .service-badge-priority {
  position: absolute; top: 20px; right: 22px;
  background: var(--orange-50); color: var(--secondary); border: 1px solid var(--orange-100);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 9999px;
}
.service-card-core .service-icon-box {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 22px;
  background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgb(249 115 22 / .35);
  transition: transform .3s ease;
}
.service-card-core:hover .service-icon-box { transform: scale(1.08); }
.service-card-core .service-icon-box .icon { width: 28px; height: 28px; }
.service-card-core h3 {
  font-size: 21px; font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1.25;
}
.service-card-core .service-card-desc {
  color: var(--slate-700); font-size: 15px; line-height: 1.62; margin-bottom: 20px;
}
.service-card-core .service-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
}
.service-card-core .service-tag {
  font-size: 12.5px; font-weight: 600; color: var(--orange-700);
  background: var(--orange-50); border: 1px solid var(--orange-100);
  padding: 5px 12px; border-radius: 8px;
}
.service-card-core .service-card-cta {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--slate-100);
  display: flex; align-items: center; justify-content: space-between;
}

/* Grille 2 : Les 7 Autres Prestations (Format Compact Épuré) */
.services-compact-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-compact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-compact-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .services-compact-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card-compact {
  background: #fff; padding: 22px 20px; border-radius: 16px;
  border: 1px solid var(--slate-200); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.service-card-compact:hover {
  transform: translateY(-4px); border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}
.service-card-compact-head {
  display: flex; align-items: center; gap: 14px;
}
.service-card-compact .service-icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--slate-100); color: var(--primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background-color .2s ease, color .2s ease;
}
.service-card-compact:hover .service-icon-box {
  background: var(--secondary); color: #fff;
}
.service-card-compact .service-icon-box .icon { width: 22px; height: 22px; }
.service-card-compact h4 {
  font-size: 17px; font-weight: 800; color: var(--primary); margin: 0; line-height: 1.25;
}
.service-card-compact p {
  color: var(--slate-700); font-size: 14.5px; line-height: 1.58; margin: 0;
}
.service-card-compact .link-arrow {
  font-size: 14px; font-weight: 700; color: var(--secondary);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.service-card-compact .link-arrow:hover { text-decoration: underline; }

/* Bandeau Coordination Tous Corps d'État ABELBAT */
.tce-banner {
  margin-top: 56px; background: var(--primary); color: #fff;
  border-radius: 24px; padding: 40px; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
  position: relative; overflow: hidden;
}
.tce-banner::after {
  content: ''; position: absolute; right: -50px; bottom: -50px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgb(249 115 22 / .15) 0%, transparent 70%);
  pointer-events: none;
}
@media (min-width: 860px) {
  .tce-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px 56px; }
  .tce-banner-copy { max-width: 680px; }
}
.tce-banner-badge {
  display: inline-block; background: var(--secondary); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 14px; border-radius: 4px; margin-bottom: 14px;
}
.tce-banner h3 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.tce-banner p { color: var(--slate-300); font-size: 16px; line-height: 1.65; }

/* ----------------------------- À propos (Composition Architectural Pro) -- */
.about { position: relative; overflow: hidden; padding-block: 88px; }
.about-shape {
  position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: rgb(30 41 59 / .4); transform: skewX(-12deg) translateX(40%);
}
.about-grid { display: flex; flex-direction: column; gap: 48px; position: relative; z-index: 1; }
.about-copy h2 { margin-bottom: 24px; color: #fff; }
.about-text { color: var(--slate-300); font-size: 17.5px; line-height: 1.68; margin-bottom: 28px; }
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: center; gap: 16px; font-size: 17px; color: #fff; }
.check-bullet {
  width: 24px; height: 24px; border-radius: 50%; background: var(--secondary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-bullet .icon { width: 10px; height: 10px; }

/* Composition à chevauchement soigné (Photos Réelles ABELBAT) */
.about-composition {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
}
.about-photo-main {
  width: 90%; height: 420px; object-fit: cover; border-radius: 22px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55); display: block;
}
.about-photo-sub {
  position: absolute; right: 0; bottom: -30px; width: 56%; height: 240px;
  object-fit: cover; border-radius: 18px; border: 5px solid var(--primary);
  box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.7);
}
.about-photo-badge {
  position: absolute; left: 16px; bottom: 20px; z-index: 2;
  background: var(--secondary); color: #fff; font-weight: 800; font-size: 13px;
  padding: 8px 16px; border-radius: 10px; box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
@media (min-width: 768px) {
  .about-grid { flex-direction: row; align-items: center; justify-content: space-between; }
  .about-copy { flex: 0 0 52%; max-width: 52%; }
  .about-composition { flex: 0 0 44%; max-width: 44%; }
}
@media (max-width: 767.98px) {
  .about-composition { max-width: 100%; margin-top: 32px; }
  .about-photo-main { width: 100%; height: 290px; }
  .about-photo-sub { position: relative; width: 85%; height: 200px; margin-top: -60px; margin-left: auto; bottom: 0; border-width: 4px; }
}

/* ----------------------------- Valeurs ---------------------------------- */
.values-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value { text-align: center; }
.value-icon {
  width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 16px;
  background: var(--slate-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .3s ease, color .3s ease;
}
.value-icon .icon { width: 30px; height: 30px; }
.value:hover .value-icon { background: var(--secondary); color: #fff; }
.value h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.value p { color: var(--slate-500); font-size: 14px; }

/* ----------------------------- Réalisations (Carrousel 60% / 40%) --------- */
.projects-head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
.projects-head-link { margin-top: 32px; }
@media (min-width: 768px) {
  .projects-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 0; }
  .projects-head-link { margin-top: 0; }
}

.carousel { position: relative; margin-top: 16px; }
.carousel-viewport { overflow: hidden; border-radius: 24px; touch-action: pan-y; }
.carousel-slide, .carousel-slide * { -webkit-user-select: none; user-select: none; }
.carousel-track {
  display: flex; gap: 0; align-items: stretch;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.carousel-slide {
  position: relative; flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%;
  border-radius: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
}
@media (min-width: 900px) {
  .carousel-slide { flex-direction: row; align-items: stretch; height: 560px; max-height: 560px; }
  .slide-media-wrap { flex: 0 0 60%; width: 60%; height: 100%; }
  .slide-content-wrap { flex: 0 0 40%; width: 40%; height: 100%; padding: 44px 38px; }
}
@media (max-width: 899.98px) {
  .slide-media-wrap { height: 380px; width: 100%; }
  .slide-content-wrap { width: 100%; padding: 32px 24px; }
}

.slide-media-wrap {
  position: relative; overflow: hidden; background: var(--slate-900);
}
.slide-media-wrap picture {
  display: block; width: 100%; height: 100%;
}
.slide-media-wrap img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: center;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.carousel-slide:hover .slide-media-wrap img {
  transform: scale(1.035);
}

/* Recadrage soigné et personnalisé par réalisation */
.slide-01 img { object-position: center 65%; }
.slide-02 img { object-position: center 30%; }
.slide-03 img { object-position: center 50%; }
.slide-04 img { object-position: center 32%; }
.slide-05 img { object-position: center 40%; }
.slide-06 img { object-position: center 35%; }

.slide-badge-cat {
  position: absolute; top: 20px; left: 20px;
  background: var(--secondary); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 6px; box-shadow: var(--shadow-lg); z-index: 2;
}
.slide-badge-num {
  position: absolute; top: 20px; right: 20px;
  background: rgb(15 23 42 / .75); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .05em;
  padding: 6px 12px; border-radius: 6px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 2;
}

.slide-content-wrap {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.slide-content-kicker {
  color: var(--secondary); font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 12px;
}
.slide-content-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 800; color: var(--primary);
  line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em;
}
.slide-content-desc {
  font-size: 15.5px; line-height: 1.68; color: var(--slate-700); margin-bottom: 24px;
}
.slide-specs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.slide-spec-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--slate-100); color: var(--slate-800);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 9999px;
  border: 1px solid var(--slate-200);
}
.slide-spec-tag .icon { color: var(--secondary); width: 12px; height: 12px; }

.slide-content-action {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto;
}


/* Anciens sélecteurs préservés en secours */
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(15 23 42 / .9), rgb(15 23 42 / 0) 65%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 40px;
}
.slide-cat { color: var(--secondary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.slide-title { font-size: 30px; font-weight: 700; color: #fff; }
.slide-text { margin-top: 16px; color: var(--slate-300); max-width: 32rem; line-height: 1.6; }

.carousel-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.carousel-bullet {
  width: 12px; height: 12px; padding: 0; border: 0; border-radius: 9999px;
  background: var(--slate-300); cursor: pointer; transition: all .3s ease;
}
.carousel-bullet.is-active { width: 36px; background: var(--secondary); }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(15 23 42 / .8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: background-color .3s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.carousel-btn:hover { background: var(--secondary); transform: translateY(-50%) scale(1.05); }
.carousel-btn .icon { width: 20px; height: 20px; }
.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }
@media (max-width: 960px) {
  .carousel-prev { left: 14px; top: 210px; }
  .carousel-next { right: 14px; top: 210px; }
}
@media (max-width: 480px) {
  .slide-media-wrap { height: 350px; }
  .carousel-prev { left: 8px; top: 175px; width: 40px; height: 40px; }
  .carousel-next { right: 8px; top: 175px; width: 40px; height: 40px; }
  .carousel-prev .icon, .carousel-next .icon { width: 16px; height: 16px; }
}

/* ----------------------------- Pourquoi choisir ABELBAT ---------------- */
.why-grid {
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: #fff; border-radius: 20px; padding: 36px 30px;
  border: 1px solid var(--slate-200); box-shadow: var(--shadow-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column; position: relative;
}
.why-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}
.why-num {
  font-size: 32px; font-weight: 900; color: var(--slate-300);
  line-height: 1; margin-bottom: 16px; font-family: monospace;
  transition: color .3s ease;
}
.why-card:hover .why-num { color: var(--secondary); }
.why-card h3 {
  font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 12px; line-height: 1.25;
}
.why-card p {
  font-size: 15px; line-height: 1.65; color: var(--slate-600); margin: 0;
}

/* ----------------------------- Notre Méthode de Travail ----------------- */
.steps-grid {
  display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 48px;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps-grid { grid-template-columns: repeat(5, 1fr); } }

.step-card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: 18px; padding: 30px 22px; position: relative;
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.step-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 14px;
  margin-bottom: 18px; transition: background-color .3s ease;
}
.step-card:hover .step-badge {
  background: var(--secondary);
}
.step-card h3 {
  font-size: 17px; font-weight: 800; color: var(--primary); margin-bottom: 10px; line-height: 1.25;
}
.step-card p {
  font-size: 14.5px; line-height: 1.6; color: var(--slate-700); margin: 0;
}

/* ----------------------------- Engagements Chantier (Dark) --------------- */
.commitments-grid {
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .commitments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .commitments-grid { grid-template-columns: repeat(4, 1fr); } }

.commitment-card {
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1);
  border-radius: 18px; padding: 32px 24px;
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}
.commitment-card:hover {
  transform: translateY(-6px); border-color: var(--secondary);
  background: rgb(255 255 255 / .08);
}
.commitment-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgb(249 115 22 / .15); color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.commitment-icon .icon { width: 26px; height: 26px; }
.commitment-card h3 {
  font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.25;
}
.commitment-card p {
  font-size: 14.5px; line-height: 1.65; color: var(--slate-400); margin: 0;
}

/* Fallback Blog & Témoignages (préservés) */
.post h3 { font-size: 20px; font-weight: 700; color: var(--slate-900); margin-bottom: 12px; transition: color .3s ease; }
.post:hover h3 { color: var(--secondary); }
.post > p { color: var(--slate-500); font-size: 14px; line-height: 1.625; margin-bottom: 16px; }
.post-media { position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 24px; box-shadow: var(--shadow-lg); }
.post-media img { width: 100%; height: 256px; object-fit: cover; transition: transform .5s ease; }
.post:hover .post-media img { transform: scale(1.1); }
.post-tag {
  position: absolute; top: 16px; left: 16px; border-radius: 4px; padding: 4px 12px;
  background: var(--secondary); color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: 0 1px 2px rgb(0 0 0 / .1);
}
.review-card { background: var(--slate-800); border: 1px solid var(--slate-700); border-radius: 16px; padding: 32px; }
.stars { display: flex; gap: 2px; color: var(--accent); margin-bottom: 16px; }
.stars .icon { width: 16px; height: 16px; }
.review-text { color: var(--slate-300); font-style: italic; line-height: 1.6; margin-bottom: 24px; }
.reviewer { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--slate-700); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.reviewer-name { font-weight: 700; color: #fff; }
.reviewer-role { color: var(--slate-500); font-size: 14px; }

/* ----------------------------- FAQ -------------------------------------- */
.faq { max-width: 896px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 16px; padding: 24px 28px;
  box-shadow: var(--shadow-sm); transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item:hover { border-color: var(--secondary); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; color: var(--primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 16px; height: 16px; color: var(--secondary); transition: transform .3s ease; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { margin-top: 16px; color: var(--slate-600); line-height: 1.65; font-size: 15.5px; border-top: 1px solid var(--slate-100); padding-top: 14px; }
.faq-body a { color: var(--secondary); font-weight: 600; }

/* ----------------------------- Contact ---------------------------------- */
.contact-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-2xl);
}
.contact-info { flex: 1; background: var(--primary); color: #fff; padding: 48px; }
.contact-info h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: 32px; }
.contact-lead { color: var(--slate-400); font-size: 18px; line-height: 1.6; margin-bottom: 48px; }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row + .contact-row { margin-top: 24px; }
.contact-icon { width: 24px; height: 24px; color: var(--secondary); flex-shrink: 0; }
.contact-label { color: var(--slate-400); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.contact-value { font-size: 20px; font-weight: 700; }
.contact-value a { color: inherit; text-decoration: none; transition: color .3s ease; }
.contact-value a:hover { color: var(--secondary); }
.contact-form-wrap { flex: 1; padding: 48px; }
@media (min-width: 768px) { .contact-card { flex-direction: row; } }
@media (min-width: 1024px) {
  .contact-info, .contact-form-wrap { padding: 80px; }
}

/* Formulaire devis */
.form-title { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
html.js .step { display: none; }
html.js .step.is-active { display: block; animation: formFade .5s ease; }
@keyframes formFade { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.project-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 640px) { .project-options { grid-template-columns: repeat(3, 1fr); } }
.option-btn {
  padding: 20px 14px; border: 2px solid var(--slate-100); border-radius: 14px; background: #fff;
  text-align: center; cursor: pointer; transition: border-color .3s ease, background-color .3s ease, transform .2s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.option-btn:hover { border-color: var(--secondary); transform: translateY(-2px); }
.option-btn.is-selected { border-color: var(--secondary); background: var(--orange-50); }
.option-icon { display: block; width: 28px; height: 28px; margin: 0 auto 10px; color: var(--secondary); }
.option-btn span { font-weight: 700; color: var(--primary); font-size: 14px; line-height: 1.3; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--slate-400); font-size: 14px;
  transition: color .3s ease;
}
.back-link:hover { color: var(--primary); }
.back-link .icon { width: 12px; height: 12px; }

.form-fields { display: flex; flex-direction: column; gap: 16px; }
.field {
  width: 100%; padding: 12px 16px; border: 1px solid var(--slate-200); border-radius: 8px;
  background: var(--slate-50); color: var(--slate-900);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgb(249 115 22 / .15); }
.field.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgb(220 38 38 / .12); }
textarea.field { resize: vertical; min-height: 88px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--slate-500); line-height: 1.5; }
.consent input { accent-color: var(--secondary); margin-top: 2px; }
.consent.is-invalid { color: #dc2626; }

.form-submit {
  width: 100%; margin-top: 24px; padding: 16px; border: 0; border-radius: 8px;
  background: var(--secondary); color: #fff; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: background-color .3s ease;
}
.form-submit:hover { background: var(--orange-600); }
.form-submit:disabled { opacity: .6; cursor: wait; }

.form-status { display: none; margin-top: 16px; font-size: 14px; }
.form-status.is-ok { display: block; color: #16a34a; }
.form-status.is-error { display: block; color: #dc2626; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ----------------------------- Carte ------------------------------------ */
.map-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
.map-title { font-size: 30px; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.map-text { color: var(--slate-600); line-height: 1.625; margin-bottom: 32px; }
.map-card { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.map-brand { font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.map-address { display: flex; align-items: center; gap: 12px; color: var(--slate-500); font-size: 14px; margin-bottom: 16px; }
.map-address .icon { width: 14px; height: 14px; color: var(--secondary); }
.map-frame iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: 24px; background: var(--slate-200); }
@media (min-width: 768px) { .map-grid { grid-template-columns: 1fr 2fr; } }

/* ----------------------------- Pied de page ----------------------------- */
.site-footer { background: var(--primary); color: var(--slate-400); padding-block: 64px; border-top: 1px solid var(--slate-800); }
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr; margin-bottom: 64px; }
.footer-brand .logo { margin-bottom: 24px; }
.site-logo-img-footer { height: 74px; width: auto; max-width: 250px; object-fit: contain; display: block; }
.logo-light .logo-mark { background: var(--secondary); }
.logo-light .logo-text { color: #fff; }
.footer-brand p { font-size: 18px; line-height: 1.625; max-width: 28rem; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 32px; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { text-decoration: none; transition: color .3s ease; }
.footer-links a:hover { color: var(--secondary); }
.social { display: flex; gap: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: var(--slate-800); color: inherit;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background-color .3s ease, color .3s ease;
}
.social a:hover { background: var(--secondary); color: #fff; }
.social .icon { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  border-top: 1px solid var(--slate-800);
  padding-top: 32px;
  font-size: 14px;
}
.footer-bottom > p { margin: 0; color: var(--slate-400); }
.legal-links { display: flex; gap: 24px; }
.legal-links a { text-decoration: none; transition: color .3s ease; }
.legal-links a:hover { color: #fff; }
.site-credit,
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-400);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  margin-left: auto;
}
.site-credit a,
.footer-credit-link {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
}
.site-credit a:hover,
.footer-credit-link:hover {
  color: #fb923c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .site-credit,
  .footer-credit {
    margin-left: 0;
    margin-inline: auto;
    justify-content: center;
    text-align: center;
  }
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ----------------------------- Animations d'apparition ------------------ */
html.js [data-reveal] {
  opacity: 0;
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal="fade-right"] { transform: translateX(-40px); }
html.js [data-reveal="fade-left"]  { transform: translateX(40px); }
html.js [data-reveal="fade-up"]    { transform: translateY(32px); }
html.js [data-reveal="zoom-in"]    { transform: scale(.92); }
html.js [data-reveal="flip-left"]  { transform: translateY(24px) scale(.97); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .carousel-track { transition: none; }
}

/* ==========================================================================
   Photothèque Interactive & Lightbox (ABELBAT V4)
   ========================================================================== */

.phototheque-wrap {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--slate-200);
}

.phototheque-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px auto;
}

.phototheque-head .kicker {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.phototheque-head h3 {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.phototheque-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.filter-btn .filter-count {
  font-size: 12px;
  opacity: .8;
  font-weight: 600;
}

.phototheque-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .phototheque-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .phototheque-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, border-color .3s ease;
  position: relative;
  outline: none;
}

.photo-card:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
}

.photo-card.is-hidden {
  display: none !important;
}

/* En page d'accueil, affichage condensé des 9 réalisations majeures */
.phototheque-grid:not(.is-expanded) .photo-card.is-extra {
  display: none !important;
}

.phototheque-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-expand-phototheque {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(249, 115, 22, 0.35);
  transition: all .3s cubic-bezier(.22, .61, .36, 1);
  cursor: pointer;
}

.btn-expand-phototheque:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -5px rgba(249, 115, 22, 0.45);
}

.btn-expand-phototheque .icon {
  width: 18px;
  height: 18px;
}

.photo-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--slate-900);
}

.photo-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

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

.photo-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgb(15 23 42 / .88);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.photo-card-badge-chantier {
  background: #d97706;
  color: #fff;
}

.photo-card-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgb(15 23 42 / .85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.photo-card-zoom-hint .icon {
  width: 13px;
  height: 13px;
  color: var(--secondary);
}

.photo-card:hover .photo-card-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.photo-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photo-card-title {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.photo-card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-700);
  margin: 0;
}

/* ----------------------------- Lightbox Modal ----------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.22, .61, .36, 1);
  padding: 20px;
}

.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  width: 100%;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgb(0 0 0 / .6);
  display: flex;
  flex-direction: column;
  animation: lightboxPop .35s cubic-bezier(.22, .61, .36, 1);
}

@keyframes lightboxPop {
  from { transform: scale(.94) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(15 23 42 / .8);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: var(--secondary);
  transform: scale(1.08);
}

.lightbox-close .icon {
  width: 22px;
  height: 22px;
}

.lightbox-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(15 23 42 / .8);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav .icon {
  width: 20px;
  height: 20px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.lightbox-media-container {
  position: relative;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 220px);
  max-height: 620px;
  min-height: 280px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.lightbox-caption {
  padding: 22px 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--slate-200);
}

.lightbox-caption-text {
  flex: 1;
}

.lightbox-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.25;
}

.lightbox-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate-600);
  margin: 0;
}

.lightbox-counter {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-600);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .phototheque-wrap {
    margin-top: 48px;
    padding-top: 40px;
  }
  .phototheque-filters {
    gap: 8px;
    margin-bottom: 28px;
  }
  .filter-btn {
    font-size: 13px;
    padding: 7px 15px;
  }
  .lightbox-modal {
    padding: 12px;
  }
  .lightbox-media-container {
    height: 50vh;
    min-height: 240px;
  }
  .lightbox-caption {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
