/* ============================================================
   SERVEUR TEK — style.css
   Stack: PHP 8, MySQL, Vanilla CSS/JS
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand colors */
  --primary:      #0E4F7F;
  --primary-dark: #0a3a5e;
  --accent:       #3E92CC;
  --accent-2:     #2176AE;
  --accent-light: rgba(62,146,204,.1);
  --orange:       #CF4B28;

  /* Backgrounds */
  --bg:        #f8fafc;
  --bg-light:  #f1f5f9;
  --bg-dark:   #0E4F7F;
  --bg-card:   #ffffff;

  /* Text */
  --text:       #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* UI */
  --border:     #e2e8f0;
  --border-dark:#cbd5e1;

  /* Layout */
  --nav-height:    72px;
  --container-pad: 1.5rem;
  --topbar-height: 40px;
  --header-height: calc(var(--topbar-height) + var(--nav-height));

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 48px rgba(0,0,0,.16);

  /* Transitions */
  --transition: all .25s ease;
  --transition-slow: all .4s ease;
}

/* ============================================================
   2. RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: clamp(15px, 0.4vw + 9px, 20px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

@font-face {
  font-family: 'Conthrax';
  src: url('../fonts/Conthrax-SemiBold.woff2') format('woff2'),
       url('../fonts/Conthrax-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   3. LAYOUT — CONTAINER, SECTION
   ============================================================ */
.container {
  width: 100%;
  padding-inline: 10%;
}

.container-narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: 5rem;
}

.bg-light { background: var(--bg-light); }
.bg-dark  { background: var(--bg-dark); }

/* Section header */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label  { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section-title  { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; color: var(--primary); line-height: 1.2; margin-bottom: .75rem; }
.section-desc   { color: var(--text-muted); font-size: 1.0625rem; max-width: 560px; margin-inline: auto; }
.section-footer { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .875rem; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(62,146,204,.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */

/* Header wrapper (fixed) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.top-bar {
  background: var(--primary);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: 10%;
  gap: 1rem;
}

.top-bar-address {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
}
.top-bar-address svg { flex-shrink: 0; opacity: .7; }

.top-bar-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  padding: .25rem .875rem;
  cursor: pointer;
  transition: background .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar-reveal-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.top-bar-reveal-btn svg { flex-shrink: 0; }

/* Logique reveal générique : s'applique à top-bar, hero, footer, contact */
.reveal-btn .reveal-number,
.top-bar-reveal-btn .reveal-number { display: none; }

.reveal-btn.revealed .reveal-label,
.top-bar-reveal-btn.revealed .reveal-label { display: none; }

.reveal-btn.revealed .reveal-number,
.top-bar-reveal-btn.revealed .reveal-number { display: inline; }

/* ── Main Nav ─────────────────────────────────────────────── */
.main-nav {
  position: relative;
  z-index: 1;
  height: var(--nav-height);
  background: #fff;
  box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.06);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled .main-nav {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: 10%;
  gap: 2rem;
}

/* Social icons in nav */
.nav-social {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.nav-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Logo */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text { font-family: 'Conthrax', sans-serif; font-size: 1.25rem; font-weight: 600; color: var(--primary); letter-spacing: .02em; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--accent-light);
}
.dropdown-arrow { flex-shrink: 0; opacity: .7; transition: transform .2s ease; }
.nav-item.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 10;
}
.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: block;
  padding: .6rem 1.25rem;
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}
.dropdown-link:hover {
  background: var(--accent-light);
  color: var(--accent-2);
  padding-left: 1.5rem;
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-phone:hover { color: var(--primary); }

.nav-cta { font-size: .85rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  z-index: 999;
  overflow-y: auto;
  padding: 1.5rem var(--container-pad) 2rem;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav-link {
  display: block;
  padding: .85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { background: var(--accent-light); color: var(--primary); }
.mobile-subnav { margin-top: .25rem; margin-left: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.mobile-subnav-link { font-size: .9rem; color: var(--text-muted) !important; padding: .6rem 1rem !important; }

/* ============================================================
   6. FLASH MESSAGES
   ============================================================ */
.flash-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1.25rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  max-width: 360px;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .35s ease;
  border-left: 4px solid transparent;
  background: #fff;
  color: var(--text);
}

.flash-success { border-left-color: #22c55e; background: #f0fdf4; color: #166534; }
.flash-error   { border-left-color: #ef4444; background: #fef2f2; color: #991b1b; }
.flash-warning { border-left-color: #f59e0b; background: #fffbeb; color: #92400e; }
.flash-info    { border-left-color: var(--accent); background: var(--accent-light); color: var(--accent-2); }

.flash.dismissing { animation: slideOutRight .35s ease forwards; }

@keyframes slideInRight  { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes slideOutRight { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(110%); } }

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 560px; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,79,127,.82) 0%, rgba(14,79,127,.55) 60%, rgba(14,79,127,.3) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

.hero-text { max-width: 680px; }

.hero-title {
  font-family: 'Conthrax', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.hero-dot.active, .hero-dot:hover {
  background: #fff;
  transform: scale(1.3);
}

/* Default hero (no banners) */
.hero-default {
  height: 100vh;
  min-height: 560px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
}

/* ============================================================
   8. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 3.5rem;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,79,127,.88) 0%, rgba(14,79,127,.65) 100%);
}

.page-hero-sm {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.page-hero-content p { color: rgba(255,255,255,.72); font-size: 1.0625rem; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); transition: var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.9); }

/* Hero actions */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   9. PRESENTATION SECTION
   ============================================================ */
.presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.presentation-content { display: flex; flex-direction: column; gap: 1.25rem; }

.presentation-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.presentation-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-height: 260px;
  overflow-y: auto;
  padding-right: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.presentation-body::-webkit-scrollbar { width: 5px; }
.presentation-body::-webkit-scrollbar-track { background: transparent; }
.presentation-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.presentation-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.presentation-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-label {
  font-size: .8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   10. SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--card-accent, var(--accent));
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .875rem;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.service-icon img { width: 32px; height: 32px; object-fit: contain; }

.service-title { font-size: 1.125rem; font-weight: 700; color: var(--primary); line-height: 1.3; }

.service-excerpt { font-size: .9rem; color: var(--text-muted); line-height: 1.65; flex: 1; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: var(--transition);
}
.service-link:hover { color: var(--accent-2); gap: .6rem; }

/* ============================================================
   11. ATOUTS SECTION
   ============================================================ */
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.atout-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.atout-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.atout-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.atout-icon svg { width: 28px; height: 28px; }

.atout-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary); }
.atout-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   12. CERTIFICATIONS
   ============================================================ */
.certifications-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 1rem 0;
}

.cert-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: var(--transition);
  filter: grayscale(40%);
}
.cert-item:hover { opacity: 1; filter: none; }
.cert-item img { max-height: 56px; max-width: 140px; width: auto; object-fit: contain; }
.cert-name {
  font-weight: 600;
  color: var(--text-muted);
  font-size: .9375rem;
  text-align: center;
  padding: .5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ============================================================
   13. REALIZATIONS
   ============================================================ */
.realizations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.realization-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.realization-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.realization-image { position: relative; overflow: hidden; height: 220px; }
.realization-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.realization-card:hover .realization-image img { transform: scale(1.05); }

.realization-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,79,127,.7) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.realization-card:hover .realization-overlay { opacity: 1; }

.realization-info { padding: 1.25rem; }
.realization-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.realization-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; line-height: 1.3; }
.realization-client { font-size: .875rem; color: var(--text-muted); }

/* ============================================================
   13b. HOMEPAGE PORTFOLIO MOSAIC
   ============================================================ */
.home-portfolio-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.4fr;
  grid-template-rows: clamp(140px, 17vw, 220px) clamp(140px, 17vw, 220px);
  grid-template-areas:
    "i1 i1 i2 i5"
    "i3 i4 i2 i6";
  gap: 8px;
}
.home-portfolio-mosaic .hpm-item:nth-child(1) { grid-area: i1; }
.home-portfolio-mosaic .hpm-item:nth-child(2) { grid-area: i2; }
.home-portfolio-mosaic .hpm-item:nth-child(3) { grid-area: i3; }
.home-portfolio-mosaic .hpm-item:nth-child(4) { grid-area: i4; }
.home-portfolio-mosaic .hpm-item:nth-child(5) { grid-area: i5; }
.home-portfolio-mosaic .hpm-item:nth-child(6) { grid-area: i6; }

/* Fallbacks selon le nombre d'items */
.home-portfolio-mosaic[data-items="5"],
.home-portfolio-mosaic[data-items="4"] {
  grid-template-columns: 1fr 1fr 1.5fr;
  grid-template-areas:
    "i1 i1 i2"
    "i3 i4 i2";
}
.home-portfolio-mosaic[data-items="3"] {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: clamp(180px, 22vw, 280px);
  grid-template-areas: "i1 i2 i3";
}
.home-portfolio-mosaic[data-items="2"] {
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: clamp(200px, 24vw, 300px);
  grid-template-areas: "i1 i2";
}

/* Item de base */
.hpm-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-light);
  display: block;
  text-decoration: none;
  color: inherit;
}
.hpm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hpm-item:hover img,
.hpm-item:focus img { transform: scale(1.06); }
.hpm-item.hpm-clickable { cursor: pointer; }

/* Placeholder quand pas d'image */
.hpm-no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
}

/* Overlay sombre (mode 1 & 3) — toujours visible */
.hpm-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,79,127,.88) 0%, transparent 55%);
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .9rem 1.1rem;
  gap: .12rem;
}
/* Mode 2 : overlay centré au hover uniquement */
.hpm-overlay.hpm-overlay-light { opacity: 0; transition: opacity .3s ease; }
.hpm-item:hover .hpm-overlay.hpm-overlay-light { opacity: 1; }

/* Overlay centré (mode 2) */
.hpm-overlay-light {
  background: rgba(0,0,0,.38);
  justify-content: center;
  align-items: center;
  padding: 0;
}
.hpm-zoom-icon {
  color: #fff;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .3s ease, transform .3s ease;
}
.hpm-item:hover .hpm-zoom-icon { opacity: 1; transform: scale(1); }

/* Textes de l'overlay */
.hpm-cat  { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.hpm-title{ font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.3; }
.hpm-link { font-size: .75rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: .3rem; margin-top: .2rem; }

/* ── Responsive mosaïque ─────────────────────────────────── */
@media (max-width: 1024px) {
  .home-portfolio-mosaic,
  .home-portfolio-mosaic[data-items] {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: clamp(130px, 20vw, 200px) clamp(130px, 20vw, 200px);
    grid-template-areas:
      "i1 i1 i2"
      "i3 i4 i2";
  }
  .home-portfolio-mosaic .hpm-item:nth-child(5),
  .home-portfolio-mosaic .hpm-item:nth-child(6) { display: none; }
}
@media (max-width: 640px) {
  .home-portfolio-mosaic,
  .home-portfolio-mosaic[data-items] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(110px, 30vw, 170px) clamp(110px, 30vw, 170px) clamp(110px, 30vw, 170px);
    grid-template-areas:
      "i1 i1"
      "i2 i3"
      "i4 i5";
  }
  .home-portfolio-mosaic .hpm-item:nth-child(6) { display: none; }
}

/* ============================================================
   13c. PAGE RÉALISATIONS — Grille 3 colonnes (mode 1 & 3)
   ============================================================ */
.portfolio-hpm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.portfolio-hpm-grid .hpm-item {
  height: clamp(200px, 24vw, 320px);
}
@media (max-width: 1024px) {
  .portfolio-hpm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .portfolio-hpm-grid { grid-template-columns: 1fr; }
  .portfolio-hpm-grid .hpm-item { height: clamp(160px, 55vw, 240px); }
}

/* ============================================================
   14. TESTIMONIALS CAROUSEL
   ============================================================ */
.testimonials-carousel { position: relative; overflow: hidden; }

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .45s ease;
  cursor: grab;
  user-select: none;
}
.testimonials-track:active { cursor: grabbing; }

.testimonial-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars { display: flex; gap: .2rem; }

.testimonial-content {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; color: var(--primary); }
.testimonial-company { font-size: .8125rem; color: var(--text-muted); margin-top: .15rem; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.carousel-dot.active { background: var(--accent); transform: scale(1.4); }

/* ============================================================
   14b. PAGE TÉMOIGNAGES — grille, modal, étoiles, empty state
   ============================================================ */

/* Grille de la page liste */
.testimonials-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonials-page-grid .testimonial-card {
  flex: none;
  width: auto;
  min-width: 0;
}
@media (max-width: 1024px) {
  .testimonials-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testimonials-page-grid { grid-template-columns: 1fr; }
}

/* Empty state page */
.tm-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.tm-empty-icon {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  opacity: .5;
}
.tm-empty h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
.tm-empty p  { color: var(--text-muted); margin-bottom: 1.75rem; }

/* Empty state accueil */
.tm-home-empty {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Modal overlay */
.tm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 8000;
  backdrop-filter: blur(2px);
}

/* Modal box */
.tm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8001;
  width: min(560px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  flex-direction: column;
  overflow: hidden;
}
.tm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tm-modal-header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.tm-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: .25rem;
  border-radius: 6px;
  display: flex;
  transition: color .2s;
}
.tm-modal-close:hover { color: var(--danger); }
.tm-modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  flex: 1;
}

/* Star rating interactif */
.tm-star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: .2rem;
}
.tm-star-rating input[type="radio"] { display: none; }
.tm-star-rating label {
  cursor: pointer;
  color: #e2e8f0;
  transition: color .15s;
  line-height: 0;
}
.tm-star-rating label svg { fill: currentColor; display: block; }
.tm-star-rating input:checked ~ label,
.tm-star-rating label:hover,
.tm-star-rating label:hover ~ label { color: #f59e0b; }

/* ============================================================
   15. NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-grid-3 { grid-template-columns: repeat(3, 1fr); }

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.news-image { overflow: hidden; height: 200px; flex-shrink: 0; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-image img { transform: scale(1.04); }

.news-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .625rem; flex: 1; }

.news-cat {
  display: inline-flex;
  padding: .2rem .7rem;
  background: var(--accent-light);
  color: var(--accent-2);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.news-title { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1.4; }

.news-excerpt { font-size: .875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }

.news-date { font-size: .8125rem; color: var(--text-light); margin-top: auto; }

/* Article page */
.article-excerpt {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   16. ZONES
   ============================================================ */
.zone-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.zone-main-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: .5rem 0 1rem;
}

.zone-main-desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 520px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.zone-main-desc::-webkit-scrollbar { width: 5px; }
.zone-main-desc::-webkit-scrollbar-track { background: transparent; }
.zone-main-desc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.zone-main-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.zone-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}

.zone-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .zone-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .zone-map-wrap { aspect-ratio: 16 / 9; }
}

/* ============================================================
   17. FOOTER
   ============================================================ */
#main-footer { background: #1e293b; color: rgba(255,255,255,.8); }

/* Footer CTA */
.footer-cta {
  background: var(--primary);
  padding: 3rem 0;
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-cta-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-cta-sub   { color: rgba(255,255,255,.8); font-size: 1rem; }

/* Bouton blanc dans le CTA */
.btn-white {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }

/* Footer main */
.footer-main { padding: 4rem 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.footer-col {}
.footer-heading {
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-list { display: flex; flex-direction: column; gap: .625rem; }
.footer-list li { font-size: .875rem; }
.footer-list a {
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: inline-block;
}
.footer-list a:hover { color: #fff; padding-left: .3rem; }
.footer-list li:not(:has(a)) { color: rgba(255,255,255,.5); }

/* Contact list with icons */
.footer-contact-list { gap: .875rem !important; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-contact-item svg { flex-shrink: 0; margin-top: .2rem; color: var(--accent); }
.footer-contact-item a { color: rgba(255,255,255,.65); transition: var(--transition); }
.footer-contact-item a:hover { color: #fff; }
/* Bouton reveal dans le footer */
.footer-contact-item a.reveal-btn .reveal-label {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.footer-contact-item a.reveal-btn .reveal-number { color: #fff; font-weight: 600; }

/* Horaires */
.footer-hours-list {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.footer-hours-row {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8125rem;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-hours-row:last-child { border-bottom: none; }
.hours-day { color: rgba(255,255,255,.75); font-weight: 500; }
.hours-time { color: rgba(255,255,255,.5); text-align: right; }
.footer-hours-row.closed .hours-day,
.footer-hours-row.closed .hours-time { color: rgba(255,255,255,.3); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-bottom-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { max-height: 36px; width: auto; filter: brightness(0) invert(1) opacity(.85); }
.footer-logo-text { font-family: 'Conthrax', sans-serif; font-size: 1.1rem; font-weight: 600; color: rgba(255,255,255,.9); }
.footer-tagline { font-size: .8125rem; color: rgba(255,255,255,.4); }

.footer-social { display: flex; gap: .625rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.1);
}
.footer-social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-2px); }

.footer-copy { font-size: .8125rem; color: rgba(255,255,255,.35); }

/* ============================================================
   18. SCROLL TO TOP
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(62,146,204,.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
#scroll-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
#scroll-top:hover   { background: var(--accent-2); transform: translateY(-3px) scale(1.05); }

/* ============================================================
   19. FADE-UP ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   20. FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin-bottom: 2rem;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================================
   21. PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .625rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   22. PROSE (article content)
   ============================================================ */
.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 100%;
}
.prose h2, .prose h3, .prose h4 { color: var(--primary); margin-top: 2rem; margin-bottom: .875rem; line-height: 1.3; }
.prose h2 { font-size: 1.625rem; }
.prose h3 { font-size: 1.25rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose strong { font-weight: 700; color: var(--primary); }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-2); }
.prose img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}
.prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: .9rem;
  margin-bottom: 1.25rem;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.prose th, .prose td { padding: .75rem 1rem; border: 1px solid var(--border); }
.prose th { background: var(--bg-light); font-weight: 700; text-align: left; }

/* ============================================================
   23. TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin: .2rem;
  transition: var(--transition);
}
.tag:hover { background: var(--accent-light); color: var(--accent-2); border-color: var(--accent); }

/* ============================================================
   24. FEATURES GRID (service page)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { margin-bottom: 1rem; font-size: 2rem; }
.feature-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   25. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

/* ── Panneau info gauche ─────────────────────── */
.contact-info-panel { display: flex; flex-direction: column; gap: 1.5rem; }

.cip-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cip-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent-light);
}

.cip-subtitle {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cip-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}
.cip-item:last-child { border-bottom: none; }

.cip-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.cip-icon--wa { background: #dcfce7; color: #16a34a; }

.cip-text { display: flex; flex-direction: column; gap: .2rem; }
.cip-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.cip-value { font-size: .9375rem; color: var(--text); font-weight: 500; }
.cip-link { color: var(--primary); transition: var(--transition); }
.cip-link:hover { color: var(--accent); text-decoration: underline; }

/* Horaires */
.cip-block--hours { background: var(--bg-light); border: none; }
.cip-hours-list { display: flex; flex-direction: column; gap: 0; }
.cip-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.cip-hours-row:last-child { border-bottom: none; }
.cip-hours-row span:first-child { color: var(--text); font-weight: 500; }
.cip-hours-row span:last-child  { color: var(--text-muted); text-align: right; }
.cip-hours-row.is-closed span   { color: var(--text-light); }

/* Map */
.cip-map { border-radius: var(--radius-md); overflow: hidden; }
.cip-map iframe { display: block; width: 100%; min-height: 220px; border: none; }

/* ── Panneau formulaire droit ────────────────── */
.contact-form-panel {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.cfp-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .4rem;
}
.cfp-subtitle {
  font-size: .9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

/* Inputs / Textarea / Select */
.cfp-input {
  width: 100%;
  padding: .875rem 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  outline: none;
}
.cfp-input::placeholder { color: var(--text-light); }
.cfp-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62,146,204,.12);
}
.cfp-input:focus::placeholder { color: var(--text-muted); }

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

.cfp-select {
  cursor: pointer;
  color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
/* Placeholder color for select */
.cfp-select option[value=""] { color: var(--text-light); }

.cfp-submit {
  width: 100%;
  margin-top: .75rem;
  justify-content: center;
}

/* ── Formulaire generic (admin pages) ───────── */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: .45rem; }

/* .form-control used in contact + other pages */
.form-control,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  outline: none;
}
.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(62,146,204,.12);
}
.form-control.error, .form-textarea.error { border-color: #ef4444; }
.form-error-msg { font-size: .8125rem; color: #ef4444; margin-top: .3rem; display: none; }
.form-error-msg.visible { display: block; }
.form-textarea, textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control, .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.btn-full, .form-submit { width: 100%; }
.form-checkbox { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.form-checkbox input[type="checkbox"] { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px; cursor: pointer; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.form-checkbox span { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   26. FAQ (SEO pages)
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  gap: 1rem;
  user-select: none;
  transition: var(--transition);
}
.faq-question:hover { background: var(--accent-light); }
.faq-toggle { flex-shrink: 0; font-size: 1.25rem; color: var(--accent); transition: transform .25s ease; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 600px; padding: 0 1.5rem 1.5rem; }

/* ============================================================
   27. SECTION SPINNER
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   28. LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5,12,22,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px);
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 85vw; max-height: 75vh; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.lightbox-caption { margin-top: 1.25rem; text-align: center; }
.lightbox-caption h4  { color: #fff; font-size: 1.0625rem; margin-bottom: .25rem; }
.lightbox-caption span { font-size: .875rem; color: var(--accent); }
.lightbox-close {
  position: absolute; top: -3.5rem; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); }
.lightbox-prev svg, .lightbox-next svg, .lightbox-close svg { width: 18px; height: 18px; }

/* ============================================================
   29. REALIZATION DETAIL (template)
   ============================================================ */
.realization-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.realization-item { border-radius: var(--radius-md); overflow: hidden; cursor: pointer; position: relative; }
.realization-item img { width: 100%; height: 200px; object-fit: cover; transition: transform .3s ease; }
.realization-item:hover img { transform: scale(1.05); }
.realization-item-overlay {
  position: absolute; inset: 0;
  background: rgba(14,79,127,.5);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
}
.realization-item:hover .realization-item-overlay { opacity: 1; }

.project-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  padding: 1.5rem; background: var(--bg-light);
  border-radius: var(--radius-md); margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.project-meta-item { display: flex; flex-direction: column; gap: .25rem; }
.project-meta-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.project-meta-value { font-size: .9375rem; font-weight: 600; color: var(--primary); }

/* ============================================================
   30. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  :root { --container-pad: 1.25rem; }
  .container { padding-inline: 6%; }
  .nav-container { padding-inline: 6%; }
  .top-bar-inner { padding-inline: 6%; }

  .presentation-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .presentation-image-wrap img { height: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; flex-direction: column; gap: 1rem; }
  .footer-bottom-brand { justify-content: center; }

  .testimonial-card { flex: 0 0 calc(50% - .75rem); min-width: calc(50% - .75rem); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 1.5rem; }
  .cip-block { padding: 1.5rem; }

  .realizations-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --container-pad: 1rem; --nav-height: 64px; --topbar-height: 36px; }

  .container { padding-inline: 1.25rem; }
  .nav-container { padding-inline: 1.25rem; }
  .top-bar-inner { padding-inline: 1.25rem; }

  /* Mobile : cacher l'adresse top-bar, afficher les numéros directement partout */
  .top-bar-address { display: none; }
  .top-bar-reveal-btn .reveal-label,
  .reveal-btn .reveal-label { display: none; }
  .top-bar-reveal-btn .reveal-number,
  .reveal-btn .reveal-number { display: inline; }

  .section { padding-block: 3.5rem; }

  /* Nav */
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* Hero */
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Grids */
  .services-grid     { grid-template-columns: 1fr; }
  .atouts-grid       { grid-template-columns: 1fr; }
  .news-grid         { grid-template-columns: 1fr; }
  .news-grid-3       { grid-template-columns: 1fr; }
  .realizations-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid     { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonial-card { flex: 0 0 100%; min-width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-hours-row { font-size: .8125rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }

  /* Realization gallery */
  .realization-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .realizations-grid    { grid-template-columns: 1fr; }
  .realization-gallery  { grid-template-columns: 1fr; }
  .stats-grid           { grid-template-columns: 1fr 1fr; }
  .flash-container      { right: .75rem; max-width: calc(100% - 1.5rem); }
  #scroll-top           { bottom: 1.25rem; right: 1.25rem; }
  .pagination .page-btn { min-width: 34px; height: 34px; font-size: .8125rem; }
  .lightbox-prev { left: -2rem; }
  .lightbox-next { right: -2rem; }
}

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

@media print {
  #main-nav, .hero-dots, #scroll-top, .flash-container, .carousel-controls { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ============================================================
   SERVICES SWIPER (homepage — >= 4 services)
   ============================================================ */
.svc-swiper-wrap {
  position: relative;
  padding: 0 52px;          /* espace latéral pour les boutons nav */
}
.svc-swiper {
  overflow: hidden;          /* clip slides uniquement, arrows sont dehors */
  padding-bottom: 2.75rem;  /* espace pour la pagination dots */
}
/* Boutons nav externes (hors .swiper pour éviter le clipping) */
.svc-btn-prev,
.svc-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 1.4rem)); /* compense le padding-bottom pagination */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--primary);
  transition: background .2s, box-shadow .2s;
  z-index: 10;
  padding: 0;
}
.svc-btn-prev:hover,
.svc-btn-next:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.svc-btn-prev { left: 0; }
.svc-btn-next { right: 0; }
.svc-btn-prev.swiper-button-disabled,
.svc-btn-next.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}
.svc-swiper .swiper-pagination-bullet {
  background: var(--border);
  opacity: 1;
}
.svc-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  transform: scale(1.3);
}
@media (max-width: 639px) {
  .svc-swiper-wrap { padding: 0 40px; }
  .svc-btn-prev, .svc-btn-next { width: 36px; height: 36px; font-size: 1.3rem; }
}
.svc-slide {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  border-top: 4px solid var(--card-accent, var(--accent));
  transition: transform .2s, box-shadow .2s;
}
.svc-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.13);
}
.svc-slide-img {
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.svc-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.svc-slide:hover .svc-slide-img img {
  transform: scale(1.04);
}
.svc-slide-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}
.svc-slide-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.svc-slide-excerpt {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.svc-swiper .swiper-wrapper {
  align-items: stretch;
}
.svc-swiper .swiper-slide {
  height: auto;
}

/* ============================================================
   QUICK CONTACT FORM (formulaire question rapide — pages internes)
   ============================================================ */
.qcf-section { background: var(--bg-light); }

.qcf-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.qcf-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.qcf-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light, #e8f0fe);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qcf-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 .25rem;
}

.qcf-subtitle {
  font-size: .875rem;
  color: var(--text-muted);
  margin: 0;
}

.qcf-form { display: flex; flex-direction: column; gap: 1rem; }

.qcf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.qcf-field { display: flex; flex-direction: column; }

.qcf-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}

.qcf-success {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #16a34a;
  font-weight: 600;
  font-size: .9375rem;
}

.qcf-error {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #ef4444;
  font-size: .875rem;
}

@media (max-width: 640px) {
  .qcf-box { padding: 1.5rem; }
  .qcf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PORTFOLIO GALLERY (Mode 2 — galerie simple)
   ============================================================ */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.portfolio-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-light);
  aspect-ratio: 1 / 1;
}
.portfolio-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.portfolio-gallery-item:hover img { transform: scale(1.06); }
.portfolio-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 79, 127, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.portfolio-gallery-item:hover .portfolio-gallery-overlay { opacity: 1; }

/* ── Portfolio lightbox (modes 2 & 3) ─────────────────────── */
.portfolio-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.plb-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3999;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(6px);
}
.plb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.plb-content img {
  max-width: 85vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  display: block;
}
.plb-counter {
  margin-top: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  letter-spacing: .03em;
}
.plb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 4001;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.plb-close:hover { background: rgba(255,255,255,.25); }
.plb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4001;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.plb-nav:hover { background: rgba(255,255,255,.25); }
.plb-prev { left: 1.25rem; }
.plb-next { right: 1.25rem; }

@media (max-width: 768px) {
  .portfolio-gallery { grid-template-columns: repeat(2, 1fr); }
  .plb-nav { width: 38px; height: 38px; }
  .plb-prev { left: .5rem; }
  .plb-next { right: .5rem; }
}
@media (max-width: 480px) {
  .portfolio-gallery { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
}
