/* ============================================================
   SEINE-BÂTISSEUR — Composants
   ============================================================ */

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  height: 80px;
  background: transparent;
  transition: background 0.4s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  height: 64px;
  background: rgba(13, 30, 60, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(13,30,60,0.4);
  border-bottom: 1px solid rgba(29,78,137,0.3);
}

/* Le menu mobile plein écran (.navbar-links, position:fixed) est un
   descendant de .navbar. Le backdrop-filter ci-dessus crée un nouveau
   "containing block" pour les éléments fixed : une fois .navbar en état
   "scrolled", le menu se retrouvait cadré sur la petite barre de nav
   (64-80px) au lieu du plein écran, et semblait vide sur mobile. On
   neutralise le blur tant que le menu est ouvert (main.js ajoute .menu-open). */
.navbar.menu-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-logo img {
  height: 60px;
  width: auto;
  transition: height 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(1); /* Blanc sur fond sombre */
}
.navbar.scrolled .navbar-logo img { height: 42px; }
.navbar-logo img.logo-dark {
  filter: none; /* Logo couleurs originales sur fond clair */
}

/* Liens */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,252,255,0.8);
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.navbar-links a:hover         { color: var(--gold); }
.navbar-links a:hover::after  { width: 100%; }
.navbar-links a.active        { color: var(--gold); }
.navbar-links a.active::after { width: 100%; }

/* CTA nav */
.navbar-cta {
  margin-left: 0.5rem;
  padding: 10px 24px !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-gold);
  letter-spacing: 0.06em;
}
.navbar-cta::after   { display: none !important; }
.navbar-cta:hover    { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.5) !important; color: var(--navy) !important; }

/* Hamburger */
.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.navbar-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.navbar-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══════════════════════════════════════════
   PAGE HEADER (pages internes)
══════════════════════════════════════════ */
.page-header {
  min-height: 38vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a7a 100%);
  display: flex;
  align-items: flex-end;
  padding: 110px 5% 60px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(29,78,137,0.4) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231D4E89' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue-accent));
}

.page-header-content { position: relative; z-index: 1; }
.page-header h1 {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
}

/* ══════════════════════════════════════════
   BENTO GRID (services)
══════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
}

.bento-card {
  background: var(--white);
  border: 1px solid rgba(29,78,137,0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,78,137,0) 0%, rgba(29,78,137,0.06) 100%);
  opacity: 0;
  transition: var(--transition);
}

.bento-card:hover {
  border-color: var(--blue);
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue);
}
.bento-card:hover::before { opacity: 1; }

.bento-card .bento-icon {
  position: absolute;
  top: 28px; right: 28px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue), var(--blue-accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
}
.bento-card:hover .bento-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: var(--shadow-gold);
  transform: rotate(-6deg) scale(1.1);
}
.bento-icon svg { width: 22px; height: 22px; }

.bento-card h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.1;
}
.bento-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.bento-card .bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-top: 16px;
  transition: gap 0.2s;
}
.bento-card:hover .bento-link { gap: 10px; }
.bento-link svg { width: 14px; height: 14px; }

.bento-large  { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 2; }

/* Carte "large" avec fond bleu */
.bento-card.bento-featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-color: transparent;
  color: var(--white);
}
.bento-card.bento-featured h3 { color: var(--white); }
.bento-card.bento-featured p  { color: var(--steel-light); }
.bento-card.bento-featured .bento-icon {
  background: rgba(255,255,255,0.15);
  box-shadow: none;
}
.bento-card.bento-featured .bento-link { color: var(--gold); }
.bento-card.bento-featured:hover {
  box-shadow: 0 20px 50px rgba(13,30,60,0.4);
}

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(29,78,137,0.3);
}

.stat-cell {
  text-align: center;
  padding: 56px 24px;
  position: relative;
  transition: background 0.3s;
}
.stat-cell:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(29,78,137,0.3);
}
.stat-cell:hover { background: rgba(29,78,137,0.2); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 10px;
}

/* ══════════════════════════════════════════
   CARTES RÉALISATIONS
══════════════════════════════════════════ */
.grid-realisations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-projet {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--navy-mid);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}

.card-projet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card-projet:hover .card-projet-img { transform: scale(1.08); }

.card-projet-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,30,60,0.92) 0%, rgba(13,30,60,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: opacity 0.3s;
}

.card-projet-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  align-self: flex-start;
}

.card-projet h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.card-projet p {
  color: var(--steel-light);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.card-projet:hover p {
  opacity: 1;
  transform: translateY(0);
}

.card-projet-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(4px);
}
.card-projet:hover .card-projet-arrow {
  opacity: 1;
  transform: scale(1);
}
.card-projet-arrow svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════
   FORMULAIRE
══════════════════════════════════════════ */
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(29,78,137,0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29,78,137,0.1);
  background: var(--off-white);
}

.form-group input.error  { border-color: #E53935; }
.form-group textarea     { resize: vertical; min-height: 140px; }

.field-error {
  display: block;
  color: #E53935;
  font-size: 0.76rem;
  margin-top: 6px;
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════════
   FILTRES (réalisations)
══════════════════════════════════════════ */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border: 1.5px solid rgba(29,78,137,0.2);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--text-mid);
  transition: var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(29,78,137,0.06);
}
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

/* ══════════════════════════════════════════
   SECTION "PROCESSUS"
══════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: steps;
}

.process-step {
  position: relative;
  padding: 36px 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(29,78,137,0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue);
  border-color: var(--blue);
}

.process-step::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(29,78,137,0.08);
  line-height: 1;
  margin-bottom: 20px;
}

.process-step-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue), var(--blue-accent));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: var(--shadow-blue);
}
.process-step-icon svg { width: 26px; height: 26px; }

.process-step h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.process-step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Connecteur entre les étapes */
.process-steps .process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--blue-accent);
  opacity: 0.4;
  z-index: 1;
}

/* ══════════════════════════════════════════
   TÉMOIGNAGES
══════════════════════════════════════════ */
.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid rgba(29,78,137,0.1);
  position: relative;
  transition: var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(29,78,137,0.08);
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-accent));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--navy); }
.testimonial-author span   { font-size: 0.78rem; color: var(--text-light); }

/* Étoiles */
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); color: var(--gold); }

/* ══════════════════════════════════════════
   IMAGE ZOOM (services page)
══════════════════════════════════════════ */
.img-zoom {
  overflow: hidden;
  position: relative;
}
.img-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.img-zoom:hover img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════
   AMÉLIORATIONS UX — MICRO-INTERACTIONS
══════════════════════════════════════════ */

/* Toutes les cards : soulignement gold au hover */
.bento-card:hover h3,
.card-projet:hover h3 {
  color: var(--gold-light);
  transition: color 0.25s;
}

/* Navbar : indicateur de page actuelle plus visible */
.navbar-links a.active {
  color: var(--gold);
  font-weight: 600;
}
.navbar-links a.active::after {
  width: 100%;
  background: var(--gold);
}

/* Navbar burger — zone de tap plus grande sur mobile */
.navbar-burger {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Boutons : ripple effect au clic */
.btn {
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary:active,
.btn-blue:active { transform: scale(0.97) translateY(0); }

/* Formulaires : feedback visuel positif */
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: rgba(46,125,50,0.4);
}
.form-group input:valid:not(:placeholder-shown):not(:focus),
.form-group textarea:valid:not(:placeholder-shown):not(:focus) {
  background-color: rgba(46,125,50,0.03);
}

/* Page header — breadcrumb implicite via section-label amélioré */
.page-header .section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}

/* Cards réalisations — tag hover dynamique */
.card-projet:hover .card-projet-tag {
  background: var(--gold);
  color: var(--navy);
  transition: background 0.3s, color 0.3s;
}

/* Stats — effet glow au hover */
.stat-cell:hover .stat-value {
  filter: brightness(1.1);
}

/* Footer liens — transition douce */
.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: color 0.2s, gap 0.2s, padding-left 0.2s;
}
.footer-col ul li a::before {
  content: '→';
  font-size: 0.7rem;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: width 0.25s, opacity 0.25s;
  margin-right: 0;
}
.footer-col ul li a:hover::before {
  width: 14px;
  opacity: 1;
  margin-right: 4px;
}
.footer-col ul li a:hover { padding-left: 0; }

/* ══════════════════════════════════════════
   RESPONSIVE COMPOSANTS
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bento-grid     { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento-large, .bento-medium { grid-column: span 2; }
  .stats-row      { grid-template-columns: 1fr 1fr; }
  .stat-cell:not(:last-child)::after { display: none; }
  .grid-realisations { grid-template-columns: 1fr 1fr; }
  .process-steps  { grid-template-columns: 1fr 1fr; }
  .process-steps .process-step::after { display: none; }
}

@media (max-width: 900px) {
  .navbar-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,30,60,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    backdrop-filter: blur(20px);
    z-index: 999;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { font-size: 1.4rem; }
  .navbar-burger { display: flex; z-index: 1001; }
  .navbar-cta    { padding: 14px 40px !important; font-size: 1rem !important; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-medium { grid-column: span 1; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .grid-realisations { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   GRILLES GÉNÉRIQUES 3/4 COLONNES (valeurs,
   équipe, certifications, témoignages, etc.)
   — évite le débordement sur mobile
══════════════════════════════════════════ */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4col { display: grid; grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-3col, .grid-4col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-2col { grid-template-columns: 1fr; gap: 40px !important; }
}

@media (max-width: 640px) {
  .grid-3col, .grid-4col { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   ÉQUIPE (cartes de rôles — page À propos)
══════════════════════════════════════════ */
.team-card {
  text-align: center;
  padding: 34px 22px;
  background: var(--white);
  border: 1px solid rgba(29,78,137,0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,168,67,0.4);
}
.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: var(--shadow-blue);
}
.team-role-title {
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.team-role-desc {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-mid);
}
