:root {
  --blue-dark: #05152c;
  --blue-main: #0b3d91;
  --orange-accent: #ff7a1a;
  --bg-light: #f5f7fb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --input-bg: #ffffff;
  --input-text: #111827;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
   transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER & NAV */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: flex-start;  /* Alignement haut */
  gap: 0.4rem;             /* Espacement réduit */
  font-weight: 700;
  letter-spacing: 0.04em;  /* Moins espacé */
  font-size: 0.85rem;      /* Police plus petite */
  line-height: 1.1;        /* Hauteur ligne compacte */
}

.logo-img {
  width: 28px;             /* Plus petit */
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;          /* Ne rétrécit pas */
  margin-top: 2px;
}

.logo > div {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo > div > div:first-child {
  font-size: 0.9rem;       /* Principal un peu plus grand */
}

.logo-sub {
  font-size: 0.65rem;      /* Sub très petit */
  margin-top: 0;           /* Coller au nom */
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
}

/* Mobile encore plus compact */
@media (max-width: 768px) {
  .logo {
    font-size: 0.8rem;
  }
  .logo-img {
    width: 24px;
    height: 24px;
  }
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 0, #38bdf8, #0b3d91 45%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: #374151;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #ff7a1a);
  border-radius: 999px;
  transition: width 0.22s ease-out;
}

.nav-links a:hover::after { width: 100%; }

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7a1a, #f97316);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(248, 113, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(248, 113, 22, 0.45);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  color: #111827;
  background: rgba(15, 23, 42, 0.02);
}

.btn-outline:hover {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #0f172a;
}

/* HERO (ACCUEIL) */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.15fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0ea5e9;
  font-weight: 600;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-kicker .badge {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 0.72rem;
  text-transform: none;
}

.hero-title {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

.hero-title .highlight {
  background: linear-gradient(120deg, #38bdf8, #0ea5e9, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.6rem;
}

.hero-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.hero-metas span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.hero-right { position: relative; }

.hero-card {
  border-radius: 24px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.2), transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.3), transparent 45%),
              #020617;
  padding: 1.4rem;
  color: #e5e7eb;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.hero-pill {
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-badge {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.6);
  color: #bbf7d0;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-visual-card {
  padding: 0.7rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
}

.hero-visual-card strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.hero-progress {
  margin-top: 0.4rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.hero-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  width: 86%;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 0.2rem;
  color: #9ca3af;
}

.hero-stats {
  display: flex;
  gap: 1.3rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.hero-stat strong {
  font-size: 1rem;
  color: #e5e7eb;
}

/* SECTIONS GÉNÉRIQUES */

section { padding: 3.2rem 0; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.7rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.section-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

/* SERVICES */

.services { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  border-color: rgba(56, 189, 248, 0.7);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.service-title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.service-text {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.7rem;
}

.service-tags span {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

/* GRILLE RÉALISATIONS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
  background: #0b1220;
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
}

.project-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.project-body {
  padding: 0.9rem 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.project-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.project-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #9ca3af;
}

.project-link {
  font-size: 0.78rem;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

/* POURQUOI FERBO (HOME) */

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
  align-items: center;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.7rem;
}

.why-item {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.82rem;
  background: #ffffff;
}

.why-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
}

.why-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* PAGES INTERNES GÉNÉRIQUES */

.page-hero {
  padding: 3rem 0 2.2rem;
  background: var(--bg-light);
  border-bottom: 1px solid #e5e7eb;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: none;
  color: #6b7280;
  font-size: 0.95rem;
}

.page-section {
  padding: 2.4rem 0 3rem;
}

.page-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.page-section p {
  color: #4b5563;
  font-size: 0.94rem;
}

/* COLONNES & CARTES PAGES INTERNES */

.cols-2 {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 2rem;
  align-items: flex-start;
}

.card {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  background: #ffffff;
  font-size: 0.9rem;
}

/* VARIANTES POURQUOI-FERBO */

.card-dark {
  border-radius: 18px;
  background: #020617;
  color: #e5e7eb;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
  padding: 1rem 1.1rem;
  font-size: 0.88rem;
}

.card-dark h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

/* LISTES */

ul { padding-left: 1.2rem; margin-top: 0.4rem; color: #4b5563; font-size: 0.9rem; }
li { margin-bottom: 0.25rem; }

/* FILTRES RÉALISATIONS */

.filters {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.filter-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}

.filter-chip.active {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #0f172a;
}

/* CONTACT & FORMULAIRES */

.contact {
  background: #020617;
  color: #e5e7eb;
  padding-bottom: 3.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.contact .section-title { color: #e5e7eb; }
.contact .section-subtitle { color: #9ca3af; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact .container {
  background: transparent;
}

.contact-card {
  background: #0f172a;;
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.8);
}

form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.field-group {
  display: flex;
  gap: 0.75rem;
}

label {
  font-size: 0.78rem;
  color: #9ca3af;
  display: block;
  margin-bottom: 0.2rem;
}

input, textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font: inherit;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  font-size: 0.86rem;
  
}

textarea {
  border-radius: 12px;
  min-height: 110px;
  resize: vertical;
  padding-top: 0.7rem;
}

input::placeholder, textarea::placeholder {
  color: #64748b;
}

input:focus, textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
  background: #020617;
}

.contact-info {
  font-size: 0.82rem;
  color: #9ca3af;
  display: grid;
  gap: 0.7rem;
}

.contact-info strong {
  color: #e5e7eb;
  font-size: 0.9rem;
}

.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-cta-note {
  font-size: 0.74rem;
  color: #9ca3af;
  margin-top: 0.45rem;
}

.map-wrapper {
  margin-top: 1.2rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

/* PAGE CONTACT (clair) */

.info-block {
  font-size: 0.86rem;
  color: #4b5563;
  display: grid;
  gap: 0.9rem;
}


/* FOOTER */

footer {
  padding: 1rem 0 1.8rem;
  font-size: 0.76rem;
  color: #6b7280;
  background: #020617;
  border-top: 1px solid rgba(31, 41, 55, 0.85);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: #9ca3af;
}

.footer-inner a { color: #e5e7eb; }

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-right { order: -1; }
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid,
  .cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 3.3rem; }
  .services-grid,
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  section { padding: 2.4rem 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(2, 6, 23, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero .container {
  background: transparent;
  padding: 2rem;
  text-align: center;
  color: white;
  position: relative;
  z-index: 3;
}

.project-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;     /* 1 ligne max par bloc */
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.project-hero h1 span {
  display: block;          /* Span sur ligne dédiée */
  font-size: 0.85em;       /* Span plus petit */
  margin-top: 0.2em;
}


.project-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) blur(1px);
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
}
.project-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  color: white;
  line-height: 0.9;
  margin-bottom: 1rem;
  text-align: center;
}
.highlight { color: #ff7a1a; }  /* ton orange */
.hero-lead {
  font-size: 1.3rem;
  color: #ddd;
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-meta {
  color: #aaa;
  font-size: 1rem;
  text-align: center;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-block;
  background: #ff7a1a;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s;
}
.hero-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255,122,26,0.4);
}


/* video */
.project-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 21, 44, 0.7);  /* overlay sombre */
  display: flex;
  align-items: center;
  z-index: 2;
}
/* Le reste = CSS précédent (h1, cta...) */


/* dark/light mode  */

/* Variables couleurs */

[data-theme="dark"] .why-item,
[data-theme="dark"] .service-card,
[data-theme="dark"] .card,
[data-theme="dark"] .filter-chip {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.22);
  color: #e5e7eb;
}

[data-theme="dark"] .why-item strong,
[data-theme="dark"] .service-title,
[data-theme="dark"] .service-text,
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .why-note {
  color: #e5e7eb;
}

[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .why-note,
[data-theme="dark"] .service-text {
  color: #cbd5e1;
}

[data-theme="dark"] .filter-chip {
  color: #e5e7eb;
}

[data-theme="dark"] .filter-chip.active {
  background: #ff7a1a;
  color: #ffffff;
  border-color: #ff7a1a;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #334155;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);
} 


.container { background: var(--bg-primary); }
.page-hero { background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.card { background: var(--bg-primary); border: 1px solid var(--border); }


#theme-switch {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-icons {
  position: relative;
  display: flex;
  width: 60px;
  height: 32px;
  background: var(--border);
  border-radius: 20px;
  padding: 4px;
  transition: all 0.3s ease;
}
.slider-ball {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--text-primary);
  border-radius: 50%;
  top: 4px;
  left: 1.5px;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow);
}
#theme-switch:checked + .toggle-slider + .toggle-icons .slider-ball {
  transform: translateX(25px);
}
#theme-switch:checked + .toggle-slider + .toggle-icons {
  background: #ff7a1a;  /* ton orange */
}
.toggle-icons::before,
.toggle-icons::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}
.toggle-icons::before { content: "☀️"; left: 4px; opacity: 1; }
.toggle-icons::after { content: "🌙"; right: 14px; opacity: 0; }
#theme-switch:checked + .toggle-slider + .toggle-icons::before { opacity: 0; }
#theme-switch:checked + .toggle-slider + .toggle-icons::after { opacity: 1; }

/* CORRECTION MINIMALE : backgrounds blocs dark mode UNIQUEMENT */
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .why-item,
html[data-theme="dark"] .card,
html[data-theme="dark"] .filter-chip {
  background-color: #0f172a !important;
  /*border-color: rgba(148, 163, 184, 0.22) !important;*/
}

html[data-theme="dark"] .services {
  background-color: var(--blue-dark, #020617) !important;
 /* background: #020617 !important;*/
}
/* Logo Dark mode */

html[data-theme="dark"] .logo-img {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* correction dark mode background */

html,
body {
  min-height: 100%;
}

body {
  background: #ffffff;
  color: #111827;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-theme="dark"] body {
  background: #020617;
  color: #e5e7eb;
}

html[data-theme="dark"] header {
  background: rgba(2, 6, 23, 0.96);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .services,
html[data-theme="dark"] .page-hero {
  background: #020617;
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .why-item,
html[data-theme="dark"] .card,
html[data-theme="dark"] .filter-chip {
  background: #0f172a;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.22);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .page-section h2,
html[data-theme="dark"] .why-item strong,
html[data-theme="dark"] .service-title {
  color: #f8fafc;
}

html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .service-text,
html[data-theme="dark"] .why-note,
html[data-theme="dark"] .page-section p {
  color: #cbd5e1;
}

html[data-theme="dark"] .info-block {
  color: #cbd5e1;
}

html[data-theme="dark"] .info-block strong {
  color: #f8fafc;
}


.page-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .page-layout {
    flex-direction: row;
    gap: 1rem;
  }


/* VIDÉO HERO : PLEIN ÉCRAN DESKTOP + MOBILE NON COUPÉ */
.project-hero {
  height: 70vh;           /* Plein écran desktop */
  min-height: 380px;
  max-height: 780px;
  position: relative;
}

@media (max-width: 768px) {
  .project-hero {
    height: 48vh;         /* Mobile équilibré */
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .project-hero {
    height: 42vh;         /* Smartphone compact */
    min-height: 300px;
  }
}

/* CONTENEUR TEXTE MOBILE PARFAIT */
.project-hero .container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(0.8rem, 5vw, 2rem) clamp(1rem, 6vw, 3rem) !important;
  text-align: center;
  height: 100%;
  pointer-events: none;
}

/* TITRE ANTI-COUPE */
.project-hero h1 {
  font-size: clamp(1.5rem, 6.5vw, 4.2rem) !important;
  line-height: 1.02 !important;
  margin-bottom: clamp(0.6rem, 2.5vw, 1rem) !important;
  max-width: 98vw;
  hyphens: auto;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal !important;
  padding: 0 clamp(0.4rem, 2.5vw, 1rem);
}



/* BOUTON */
.project-hero .hero-cta {
  font-size: clamp(0.9rem, 3vw, 1.1rem) !important;
  padding: clamp(0.8rem, 2.8vw, 1.1rem) clamp(1.8rem, 6.5vw, 2.8rem) !important;
  pointer-events: auto;
  white-space: nowrap;
  min-width: clamp(200px, 45vw, 280px);
}
.portrait-main {
  width: clamp(280px, 20vw, 380px);
  height: clamp(420px, 30vw, 550px);
  margin: 2rem auto; /* CENTRE parfait */
  border-radius: 20px;
}

/* === PLEINE LARGEUR FORCE ===
 * Header / Vidéo / Footer 100vw
 */
header, 
.project-hero, 
footer,
.hero-overlay {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  left: 0 !important;
  right: 0 !important;
}

/* Vidéo 100% écran */
.project-hero video,
.hero-video {
  width: 100vw !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Container reste centré */
.container {
  max-width: 1120px !important;
  margin: 0 auto !important;
}


.logo-hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2rem 0;
  z-index: 3;
}



/* FOND VISIBLE DARK + LIGHT */
html[data-theme="dark"] body,
body {
  background-image: url('./blk_logo-ferbo.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-color: transparent !important; /* ← CLÉ */
}

html[data-theme="dark"] body::before {
  background: rgba(2, 6, 23, 0.85) !important; /* overlay sombre FONCÉ */
}



/* TOUS blocs AU-DESSUS */
header, main *, section, footer { 
  position: relative; 
  z-index: 2; 

}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(5, 21, 44, 0.75); /* overlay sombre PRO */
  backdrop-filter: blur(6px);
  z-index: 1;
}
/* BOUTONS BLANCS DARK MODE */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .hero-cta,
html[data-theme="dark"] .nav-links a {
  color: #ffffff !important;
}

html[data-theme="dark"] .btn-outline {
  border-color: #94a3b8 !important;
  background: rgba(15, 23, 42, 0.4) !important;
}

html[data-theme="dark"] .btn-outline:hover {
  background: #ff7a1a !important;
  color: #ffffff !important;
}


/* VIDÉO AU-DESSUS TOUT *//*
.project-hero,
.hero-video,
.project-hero video {
  z-index: 10 !important; /* PLUS haut *//*
}

.project-hero .container {
  z-index: 11 !important; /* texte encore + haut */
}

/* Images/services EN-DESSOUS */
.services-grid,
.project-card,
.hero-right,
.portrait-main {
  z-index: 5 !important; /* en-dessous vidéo */
}

/* CARTES CORPORATE PROPRES */
.services {
  background: transparent;
}

.services-grid,
.projects-grid {
  gap: 1.6rem;
}

.service-card,
.project-card {
  background: rgba(2, 6, 23, 0.94);      /* bloc sombre */
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, 
              border-color 0.2s ease, background-color 0.2s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: #f97316;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  background: rgba(15, 23, 42, 0.98);

}

section {
  padding: 3rem 0;
}

section .container {
  padding: 1.8rem 1.8rem 2rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left,
              rgba(15, 23, 42, 0.96),
              rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.9);
}
/* TEXTE BLANC FORCE BLOCS SOMBRES */
.service-card *,
.project-card *,
section .container * {
  color: #f9fafb !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
  border-radius: 20px !important;
}

.service-tags span,
.project-meta {
  background: rgba(255,255,255,0.15) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}

.service-text,
.project-body {
  color: #cbd5e1 !important;
}
/* WHY-GRID NOIR FIXE */
section:has(.why-grid),


.why-grid {
  background: transparent !important;
}

.why-item {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

/* SAVOIR-FAIRE NOIR COMPLET */
.page-hero, {
  background: #020617 !important;
}

.cols-2 {
  background: transparent !important;
}

.card {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
}

.page-section h2,
.page-hero h1 {
  color: #f9fafb !important;
}

.page-section p,
.page-hero p,
.cols-2 ul li {
  color: #cbd5e1 !important;
}
/* RÉALISATIONS - TEXTE BLANC TOTAL */
.project-card * {
  color: #f9fafb !important;
}

.project-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.project-meta,
.project-chip {
  color: #d1d5db !important;
  background: rgba(255,255,255,0.15) !important;
}

.project-link {
  color: #60a5fa !important;
}

.filters,
.filter-chip {
  color: #e5e7eb !important;
  background: rgba(15,23,42,0.8) !important;
}
/* CONTENEUR TEXTE VIDÉO TRANSPARENT */
.project-hero .container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}
.project-btn {
  margin-top: 0.8rem;
}

.project-btn .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.2rem;
  width: 100%;
  justify-content: center;
}


/* Appli thème */
.legal-hero { background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); color: var(--text-primary); }
.legal-card { 
  background: var(--card-bg); 
  backdrop-filter: blur(10px); 
  border: 1px solid rgba(249,115,22,0.3); 
  border-radius: 12px; 
  padding: 2.5rem; 
  color: var(--text-primary); /* Blanc prioritaire */
}
.legal-card h2, .legal-card h3 { color: var(--accent); }
.legal-card p, .legal-card li { color: var(--text-secondary); }
.legal-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
[data-theme="light"] .legal-list li { border-bottom: 1px solid rgba(0,0,0,0.1); }
.update { color: var(--text-secondary); }

* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* === COINS ARRONDIS POUR TOUT (comme filtres) === */
.project-card {
  border-radius: 16px;  /* Même que .filter-chip */
  overflow: hidden;     /* Coupe les coins image */
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--card-bg, #fff);
}

.project-thumb {
  height: 240px;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

/* Images spécifiques (remplace inline) */
.project-thumb-1 { background-image: url('Realisations/village-athletes/village-athletes.jpg'); }
.project-thumb-2 { background-image: url('Realisations/la-defense/paris-la-defense.jpg'); }
.project-thumb-3 { background-image: url('Realisations/residence-logements/logements-iledefrance.jpeg'); }

/* Coins inférieurs (body) */
.project-body {
  border-radius: 0 0 16px 16px;
  padding: 1.5rem;
}

/* Hover parfait */
.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}

/* Filtres cohérents */
.filter-chip {
  border-radius: 16px; /* Déjà bon */
}

/* Responsive */
@media (max-width: 768px) {
  .project-card { border-radius: 12px; }
  .project-thumb { height: 180px; }
}
/* COINS ARRONDIS FORCE (priorité MAX) */
.project-card {
  border-radius: 20px !important;
  overflow: hidden !important;
}

/* Images par classe (remplace inline) */
.thumb-1 { 
  background-image: url('Realisations/village-athletes/village-athletes.jpg') !important; 
}
.thumb-2 { 
  background-image: url('Realisations/la-defense/paris-la-defense.jpg') !important; 
}
.thumb-3 { 
  background-image: url('Realisations/residence-logements/logements-iledefrance.jpeg') !important; 
}

.project-thumb {
  height: 220px;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 20px 20px 0 0 !important;
}

.project-body {
  border-radius: 0 0 20px 20px !important;
  padding: 1.5rem;
}
/* === DESIGN MENTIONS LÉGALES MOYENNE === */
.legal-card {
  background: rgba(255,255,255,0.05);
  margin: 2rem 0;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(249,115,22,0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.legal-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(249,115,22,0.2);
}

.legal-hero h2 {
  color: #F97316;
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.legal-content {
  margin-bottom: 2.5rem;
}

.legal-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(249,115,22,0.08);
  border-radius: 12px;
  border-left: 4px solid #F97316;
}

.legal-row strong {
  min-width: 200px;
  color: #F97316;
  font-weight: 600;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.legal-block {
  background: rgba(15,23,42,0.6);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(249,115,22,0.15);
}

.legal-block h3 {
  color: #F97316;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #e5e8eb;
}

.legal-list li:last-child { border-bottom: none; }

/* Responsive */
@media (max-width: 768px) {
  .legal-row { flex-direction: column; gap: 0.5rem; }
  .legal-grid { grid-template-columns: 1fr; }
}
/* === TEXTE BLANC PARTIEL (header NOIR + reste BLANC) === */

/* HEADER TOUJOURS NOIR (light + dark) */
header,
header *,
.nav-links a,
.logo,
.logo-sub,
.btn-outline {
  color: #111827 !important; /* NOIR header */
}

/* TOUT LE RESTE BLANC */
main *,
footer *,
body:not(header) *,
.page-hero *,
.page-section *,
.project-card *,
.service-card *,
.legal-card *,
.why-item *,
section *,
h1:not(header h1),
h2, h3, h4, h5, h6:not(header h1, header h2, header h3),
p:not(header p),
span:not(header span),
strong:not(header strong),
a:not(header a):not(.project-link),
input, textarea,
li, ul {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

/* Light mode : force blanc hors header */
[data-theme="light"] main *,
[data-theme="light"] footer *,
[data-theme="light"] section * {
  color: #ffffff !important;
  --text-primary: #ffffff !important;
}

/* Cards toujours sombres */
.service-card, .project-card, .legal-card, .why-item, .card {
  background: rgba(15,23,42,0.95) !important;
  color: #ffffff !important;
}

/* Liens hors header */
.project-link, .hero-cta {
  color: #60a5fa !important;
}

a:not(header a):hover {
  color: #F97316 !important;
}

/* Chips / metas */
.project-chip, .project-meta, .service-tags span {
  color: #e5e8eb !important;
  background: rgba(255,255,255,0.15) !important;
}
/* === HEADER ADAPTATIF FINAL === */
/* Light mode : NOIR */
[data-theme="light"] header,
[data-theme="light"] header *,
[data-theme="light"] .logo,
[data-theme="light"] .logo-sub,
[data-theme="light"] .nav-links a,
[data-theme="light"] .btn-outline {
  color: #111827 !important;
}

/* Dark mode : BLANC */
[data-theme="dark"] header,
[data-theme="dark"] header *,
[data-theme="dark"] .logo,
[data-theme="dark"] .logo-sub,
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .btn-outline {
  color: #e5e8eb !important; /* BLANC dark */
}

/* === RESTE DE PAGE TOUJOURS BLANC === */
main *,
footer *,
body:not(header) * {
  color: #ffffff !important;
}
/* === BLOCS LÉGAUX CENTRÉS === */
#mentions,
#confidentialite {
  max-width: 800px;       /* Largeur max */
  margin: 2rem auto !important; /* CENTRE parfait */
  text-align: center;     /* Texte centré */
}

/* Titres centrés */
#mentions h2,
#confidentialite h2,
.legal-hero h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Paragraphes centrés */
#mentions p,
#confidentialite p {
  max-width: 650px;
  margin: 1rem auto;
  text-align: center;
  line-height: 1.7;
}

/* Listes centrées */
#confidentialite ul {
  max-width: 650px;
  margin: 1.5rem auto;
  text-align: left; /* Liste alignée gauche mais centrée global */
}

/* Responsive */
@media (max-width: 768px) {
  #mentions, #confidentialite {
    margin: 1.5rem 1rem !important;
    padding: 2rem 1.5rem !important;
  }
}
/* === TITRES ORANGE + CENTRÉS === */
#mentions h2,
#mentions h3,
#confidentialite h2,
#confidentialite h3 {
  color: #F97316 !important;     /* ORANGE parfait */
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  margin: 2.5rem 0 1.5rem !important;
  text-shadow: 0 2px 8px rgba(249,115,22,0.4) !important;
  letter-spacing: -0.02em;
}

/* Sous-titres orange aussi */
#mentions h3,
#confidentialite h3 {
  font-size: 1.2rem !important;
  margin-top: 2.5rem !important;
}

/* Blocs centrés + orange */
#mentions,
#confidentialite {
  max-width: 850px;
  margin: 3rem auto !important;
  text-align: center;
  padding: 3rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  #mentions h2, #confidentialite h2 {
    font-size: 1.3rem !important;
  }
}
/* === BOUTONS INDEX SEULEMENT (texte ORANGE) === */

/* index.html : nav boutons */
#index .btn-outline,
#index .btn-primary,
#index .hero-cta,
#index .project-btn .btn {
  color: #F97316 !important;
}

/* Si pas d'ID #index, cible par page spécifique */
body:has(.hero-video) .btn,          /* index avec vidéo */
body:has(.services-grid) .btn-outline, /* index services */
body:has(.projects-grid) .btn-primary {
  color: #F97316 !important;
}

/* Autres pages : normal (pas d'orange forcé) */
:not(body:has(.hero-video)) .btn,
:not(body:has(.services-grid)) .btn-outline {
  color: inherit !important; /* Garde couleur normale */
}
/* === HOVER BOUTONS IDENTIQUE LIGHT/DARK === */

/* Light mode hover */
[data-theme="light"] .btn:hover,
[data-theme="light"] .btn-outline:hover {
  background: rgba(249,115,22,0.15) !important;  /* fond très clair */
  border-color: #F97316 !important;
  color: #F97316 !important; /* texte orange fixe */
  transform: translateY(-2px);
}

/* Dark mode hover */
[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn-outline:hover {
  background: rgba(249,115,22,0.25) !important;  /* fond plus sombre */
  border-color: #F97316 !important;
  color: #F97316 !important; /* texte orange fixe */
  transform: translateY(-2px);
}

/* Bouton primary hover (orange → plus intense) */
.btn-primary:hover,
.hero-cta:hover {
  background: linear-gradient(135deg, #fb923c, #f97316) !important;
  color: #ffffff !important; /* blanc sur orange */
  box-shadow: 0 12px 35px rgba(249,115,22,0.6) !important;
}

/* Annule conflits */
.btn:hover * {
  color: inherit !important;
}
/* === FIX SCROLLBAR HORIZONTALE (100vw parfait) === */
html, body {
  width: 100% !important;
  overflow-x: hidden !important;     /* Coupe horizontal */
  margin: 0 !important;
  padding: 0 !important;
}
.hero-text {
  color: #f9fafb !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; line-height: 1.1 !important; }
  .btn, .hero-cta { font-size: 0.85rem !important; padding: 0.5rem 1.2rem !important; }
  .container { padding: 0 1rem !important; }
}

/* TUE LIGNE BLEUE → BLANCHE FORCE ABSOLUE */
.page-section .container.cols-2 {
  border-color: #ffffff !important;
  border-width: 1px !important;
  border-style: solid !important;
}

/* POLICES LOGO HEADER GROSSIÈRES UNIQUEMENT */
.logo {
  font-size: 2.2rem !important; /* Gros titre FERBO FRANCE */
  line-height: 1.1 !important;
}

.logo > div > div:first-child {
  font-size: 2.2rem !important; /* FERBO FRANCE énorme */
  font-weight: 800 !important; /* Gras */
  letter-spacing: 0.05em !important;
}

.logo-sub {
  font-size: 1.1rem !important; /* Sous-titre plus gros */
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
}

/* Mobile : garde lisible */
@media (max-width: 768px) {
  .logo { font-size: 1.8rem !important; }
  .logo > div > div:first-child { font-size: 1.8rem !important; }
  .logo-sub { font-size: 0.95rem !important; }
}
/* GROS LOGO IMAGE HEADER UNIQUEMENT */
.logo-img {
  width: 80px !important;  /* Largeur image énorme */
  height: 80px !important; /* Hauteur énorme */
  min-width: 80px !important;
}

.logo {
  min-height: 90px !important; /* Hauteur conteneur logo */
  display: flex !important;
  align-items: center !important; /* Image + texte alignés */
  gap: 1rem !important; /* Espace image-texte */
}

.logo > div > div:first-child {
  font-size: 2.4rem !important; /* FERBO FRANCE TITRE GÉANT */
  line-height: 1 !important;
}

.logo-sub {
  font-size: 1.2rem !important; /* Sous-titre large */
}

/* Mobile */
@media (max-width: 768px) {
  .logo-img { width: 60px !important; height: 60px !important; }
  .logo { min-height: 70px !important; }
  .logo > div > div:first-child { font-size: 1.9rem !important; }
  .logo-sub { font-size: 1rem !important; }
}


/* =========================
   GALERIE PROPRE 3 IMAGE / LIGNE
========================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 image par ligne */
  gap: 20px;
  padding: 100px;
}

/* IMAGE STYLE PRO */
.gallery-grid img {
  width: 100%;
  max-width: 300px;        /* limite taille */
  margin: 0 auto;          /* centre */
  display: block;

 /* aspect-ratio: 1 / 3;    /* format propre */
  object-fit: cover;

  border-radius: 18px;

  cursor: pointer;

  box-shadow: 0 15px 40px rgba(0,0,0,0.35);

  transition: transform 0.25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* MOBILE */
@media (max-width: 768px) {
  .gallery-grid img {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* LIGHTBOX FULLSCREEN */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.92);

  justify-content: center;
  align-items: center;

  padding: 30px;
}

.lightbox-img {
  max-width: 95%;
  max-height: 95%;

  border-radius: 12px;

  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox.show {
  display: flex;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;

  font-size: 45px;
  color: white;

  cursor: pointer;

  z-index: 10000;
}
.lightbox-img {
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.partners {
  padding: 80px 0;
  background: linear-gradient(180deg, #0b1220, #0a0f1a);
  overflow: hidden;
}

.partners-title {
  text-align: center;
  color: white;
  font-size: 28px;
  margin-bottom: 50px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* MASK effet fade gauche / droite (très pro) */
.partners-wrapper {
  position: relative;
  overflow: hidden;
}

.partners-wrapper::before,
.partners-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0b1220, transparent);
}

.partners-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0b1220, transparent);
}

/* TRACK */
.partners-track {
  display: flex;
  align-items: center;
  gap: 80px;
  height: 80px; /* adapte */
  width: max-content;
  animation: scroll 35s linear infinite;
  transition: 0.3s;
}

/* LOGO BOX (look agence BTP premium) */
.partner {
  width: 140px;   /* ↓ réduit */
  height: 70px;   /* ↓ réduit */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: 0.3s;
}

.partner:hover {
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.25);
}

.partner img {
  max-height: 35px;   /* ↓ clé du problème */
  max-width: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.partner:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ANIMATION */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* MOBILE */
@media (max-width: 768px) {
  .partner {
    width: 130px;
    height: 75px;
  }

  .partners-track {
    gap: 60px;
  }
}
