/* =====================================================
   CONTINUUM BIM — HOME CSS
   Index pages only (FR, EN, AR homepages)
   Hero, SEO intro, Why BIM, Metiers, References,
   Partners, Blog, Contact CTA, all responsive overrides
   ===================================================== */

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #020617;
  padding-top: 76px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-video video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.6) contrast(1.15);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.2;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(14,165,233,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 40%),
    linear-gradient(180deg, rgba(2,6,23,0.6) 0%, rgba(11,17,32,0.3) 35%, rgba(11,17,32,0.5) 65%, rgba(15,23,42,0.95) 100%);
}
.hero-scanline {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(14,165,233,0.012) 2px, rgba(14,165,233,0.012) 4px);
}
.hero-orb { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; filter: blur(60px); }
.hero-orb-1 { width: 300px; height: 300px; background: rgba(14,165,233,0.12); top: 10%; left: 5%; animation: orbFloat1 12s ease-in-out infinite; }
.hero-orb-2 { width: 200px; height: 200px; background: rgba(6,182,212,0.1); bottom: 20%; right: 10%; animation: orbFloat2 15s ease-in-out infinite; }
.hero-orb-3 { width: 150px; height: 150px; background: rgba(16,185,129,0.08); top: 50%; left: 60%; animation: orbFloat3 10s ease-in-out infinite; }
@keyframes orbFloat1 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(40px,-30px); } }
@keyframes orbFloat2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-30px,20px); } }
@keyframes orbFloat3 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(20px,40px); } }

.hero-particles-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.h-particle {
  position: absolute; width: 3px; height: 3px; background: #38bdf8; border-radius: 50%;
  box-shadow: 0 0 6px rgba(56,189,248,0.6), 0 0 12px rgba(14,165,233,0.3);
  animation: particleRise linear infinite;
}
@keyframes particleRise {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { transform: translateY(-10vh) scale(1); opacity: 1; }
  90% { transform: translateY(-90vh) scale(0.5); opacity: 0.6; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

.hero .container { position: relative; z-index: 3; }

.hero-top {
  text-align: center;
  padding: 28px 0 20px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow, .hero h1, .hero-desc, .hero-actions {
  opacity: 0; transform: translateY(30px);
}
.hero-eyebrow.animate { animation: heroReveal 0.8s cubic-bezier(0.16,1,0.3,1) forwards; animation-delay: 0.2s; }
.hero h1.animate { animation: heroReveal 1s cubic-bezier(0.16,1,0.3,1) forwards; animation-delay: 0.5s; }
.hero-desc.animate { animation: heroReveal 0.8s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-desc.animate:nth-of-type(1) { animation-delay: 0.9s; }
.hero-desc.animate:nth-of-type(2) { animation-delay: 1.1s; }
.hero-actions.animate { animation: heroReveal 0.8s cubic-bezier(0.16,1,0.3,1) forwards; animation-delay: 1.3s; }
@keyframes heroReveal {
  0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #06b6d4; margin-bottom: 20px;
}
.hero-eyebrow::before, .hero-eyebrow::after { content: ''; width: 24px; height: 1px; background: rgba(6,182,212,0.4); }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800;
  color: rgba(255,255,255,0.92); margin-bottom: 20px;
  letter-spacing: -1px; line-height: 1.25;
}
.hero h1 .hl-bim {
  background: linear-gradient(135deg, #38bdf8, #0EA5E9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative;
}
.hero h1 .hl-bim::after {
  content: 'BIM'; position: absolute; inset: 0;
  background: linear-gradient(135deg, #38bdf8, #0EA5E9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: blur(20px); opacity: 0.5; animation: textGlow 3s ease-in-out infinite;
}
@keyframes textGlow { 0%,100%{ opacity: 0.3; } 50%{ opacity: 0.7; } }
.hero h1 .hl-teal {
  background: linear-gradient(135deg, #06b6d4, #2dd4bf);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-style: normal; position: relative;
}
.hero h1 .hl-teal::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, #06b6d4, #2dd4bf); opacity: 0.45;
}

.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.48);
  line-height: 1.75; margin: 0 auto 12px; max-width: 700px;
}
.hero-desc strong { color: #38bdf8; font-weight: 600; }
.hero-desc .desc-sep { color: rgba(6,182,212,0.5); margin: 0 2px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 12px 28px; font-size: 14px; border-radius: 0; font-weight: 700; position: relative; overflow: hidden; }
.hero-actions .btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}
@keyframes btnShimmer { 0%,100%{ left: -100%; } 50%{ left: 150%; } }
.hero-actions .btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.2); }
.hero-actions .btn-outline-light:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* Floating cards */
.hero-floats {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 48px auto 0;
  height: 220px;
}
.hero-float {
  position: absolute; z-index: 5;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-radius: 14px; padding: 18px 22px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s;
  opacity: 0; transform: translateY(20px);
}
.hero-float.animate { animation: floatPopup 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero-float:nth-child(1).animate { animation: floatPopup 0.7s cubic-bezier(0.16,1,0.3,1) forwards, cardDrift1 5s 3s ease-in-out infinite; animation-delay: 1.8s; }
.hero-float:nth-child(2).animate { animation: floatPopup 0.7s cubic-bezier(0.16,1,0.3,1) forwards, cardDrift2 6s 3.3s ease-in-out infinite; animation-delay: 2.1s; }
.hero-float:nth-child(3).animate { animation: floatPopup 0.7s cubic-bezier(0.16,1,0.3,1) forwards, cardDrift3 7s 3.6s ease-in-out infinite; animation-delay: 2.4s; }
.hero-float:nth-child(4).animate { animation: floatPopup 0.7s cubic-bezier(0.16,1,0.3,1) forwards, cardDrift4 5.5s 3.9s ease-in-out infinite; animation-delay: 2.7s; }
@keyframes floatPopup { 0%{ opacity: 0; transform: translateY(30px) scale(0.9); } 100%{ opacity: 1; transform: translateY(0) scale(1); } }
.hero-float:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 16px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(14,165,233,0.2), 0 0 40px rgba(14,165,233,0.1); }
@keyframes cardDrift1 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
@keyframes cardDrift2 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-6px); } }
@keyframes cardDrift3 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }
@keyframes cardDrift4 { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-7px); } }

.hero-float h4 { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-vivid); margin-bottom: 6px; font-weight: 800; }
.hero-float-value { font-family: var(--font-heading); font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; }
.hero-float-sub { font-size: 11px; color: #94a3b8; margin-top: 4px; font-weight: 500; }
.float-1 { top: 0; left: 0; }
.float-2 { top: 10px; right: 0; }
.float-3 { bottom: 0; left: 60px; }
.float-4 { bottom: 10px; right: 60px; }
@media (max-width: 1200px) {
  .float-3 { left: 40px; }
  .float-4 { right: 40px; }
}
.status-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-label { font-size: 12px; color: #475569; font-weight: 500; }
.mini-bars { display: flex; gap: 4px; align-items: flex-end; height: 36px; margin-top: 10px; }
.mini-bar {
  width: 10px; border-radius: 3px;
  background: linear-gradient(to top, var(--accent-vivid), var(--accent-light));
  animation: barGrow 1.5s cubic-bezier(0.16,1,0.3,1) forwards;
  transform-origin: bottom; transform: scaleY(0);
}
.mini-bar:nth-child(1) { animation-delay: 3.0s; }
.mini-bar:nth-child(2) { animation-delay: 3.1s; }
.mini-bar:nth-child(3) { animation-delay: 3.2s; }
.mini-bar:nth-child(4) { animation-delay: 3.3s; }
.mini-bar:nth-child(5) { animation-delay: 3.4s; }
.mini-bar:nth-child(6) { animation-delay: 3.5s; }
@keyframes barGrow { 0%{ transform: scaleY(0); } 100%{ transform: scaleY(1); } }

@media (max-width: 1024px) {
  .hero-top { padding: 36px 0 24px; }
  .hero-floats { height: 180px; }
  .hero-float { padding: 14px 18px; }
  .hero-float-value { font-size: 24px; }
  .float-3 { left: 20px; }
  .float-4 { right: 20px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 76px; }
  .hero-top { padding: 28px 0 20px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.5px; }
  .hero-floats { display: none; }
  .hero-orb { display: none; }
  #heroCanvas { display: none; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn { width: auto; min-width: 260px; max-width: 90vw; justify-content: center; }
  .hero-desc { font-size: 13px; white-space: normal; }
}

/* ===== SEO INTRO ===== */
.seo-intro {
  padding: 64px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.seo-intro-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

.seo-intro-text strong {
  color: var(--text);
  font-weight: 600;
}

.seo-intro-logo {
  display: inline-block;
  height: 22px;
  width: auto;
  vertical-align: middle;
  margin: 0 2px -2px 0;
}

html[dir="rtl"] .seo-intro-text {
  text-align: right;
  font-family: var(--font-arabic);
}

.seo-intro-text a {
  color: var(--accent-vivid);
  font-weight: 600;
  transition: var(--transition);
}

.seo-intro-text a:hover {
  color: #0369A1;
  text-decoration: underline;
}

/* ===== WHY BIM ===== */
.why-bim {
  background: var(--bg-white);
}

.why-bim-header {
  text-align: center;
  margin-bottom: 64px;
}

html[dir="rtl"] .why-bim-header {
  text-align: right;
}

.why-bim-header .section-desc {
  margin: 0 auto;
}

html[dir="rtl"] .why-bim-header .section-desc {
  margin: 0;
}

.why-bim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 36px 32px;
  transition: var(--transition);
  border-top: 3px solid transparent;
}

.why-card:hover {
  border-top-color: var(--accent-vivid);
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-subtle), #BAE6FD);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary);
}

html[dir="rtl"] .why-card h3 {
  font-family: var(--font-arabic);
}

.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

html[dir="rtl"] .why-card p {
  font-family: var(--font-arabic);
  text-align: right;
}

/* ===== METIERS / SERVICES ===== */
.metiers {
  background: var(--bg);
}

.metiers-header {
  margin-bottom: 64px;
}

.metiers-header .section-desc {
  margin: 0;
}

.metiers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.metier-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 36px 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex: 0 1 calc(33.333% - 16px);
  min-width: 300px;
}

.metier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-vivid), var(--accent-light));
  transition: height 0.4s ease;
}

html[dir="rtl"] .metier-card::before {
  left: auto;
  right: 0;
}

.metier-card:hover::before {
  height: 100%;
}

.metier-card:hover {
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.metier-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  background: linear-gradient(135deg, #CBD5E1, #E2E8F0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.metier-card:hover .metier-number {
  background: linear-gradient(135deg, var(--accent-vivid), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
}

.metier-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  transition: color 0.3s;
}

html[dir="rtl"] .metier-card h3 {
  font-family: var(--font-arabic);
}

.metier-card:hover h3 {
  color: var(--accent-vivid);
}

.metier-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

html[dir="rtl"] .metier-card p {
  font-family: var(--font-arabic);
  text-align: right;
}

.metier-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  color: var(--accent-vivid);
  margin-top: 20px;
  transition: var(--transition);
  align-self: flex-end;
  text-decoration: none;
}

.metier-link:hover {
  background: var(--accent-vivid);
  color: #fff;
  transform: translateX(4px);
}

html[dir="rtl"] .metier-link:hover {
  transform: translateX(-4px);
}

.metier-link svg {
  width: 20px;
  height: 20px;
}

/* Glossary ticket */
.metier-ticket {
  margin: 40px auto 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  max-width: 850px;
  box-shadow: var(--shadow-sm);
}

.metier-ticket:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-vivid);
  transform: translateY(-2px);
}

.metier-ticket-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

.metier-ticket-text h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
  transition: color 0.3s;
}

.metier-ticket:hover h3 {
  color: var(--accent-vivid);
}

.metier-ticket-text p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.metier-ticket .metier-link {
  margin-top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* ===== REFERENCES ===== */
.references {
  background: var(--bg-white);
}

.references-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}


.section.références { background: var(--bg-white); }
.références-header {
  margin-bottom: 48px;
}

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

.ref-card {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.ref-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.ref-card:hover img {
  transform: scale(1.03);
}

.ref-card-featured {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 480px;
}

.ref-card-small {
  min-height: 228px;
}

.ref-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: var(--transition);
}

.ref-card:hover .ref-card-overlay {
  background: linear-gradient(to top, rgba(15,23,42,.9) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
}

.ref-tag {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.8), rgba(6,182,212,.8));
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ref-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.ref-card-featured h3 {
  font-size: 22px;
}

.ref-card-meta {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}

.ref-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.ref-card-row2 {
  min-height: 220px;
}

/* ===== PARTNERS ===== */
.partners {
  background: var(--bg);
  text-align: center;
}

/* Partners marquee */
.partners-marquee{margin-top:48px;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 8%,#000 92%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0%,#000 8%,#000 92%,transparent 100%)}.partners-track{display:flex;gap:24px;width:max-content;animation:partnersScroll 40s linear infinite}.partners-track:hover{animation-play-state:paused}.partner-slide{flex-shrink:0;width:200px;height:120px;background:var(--bg-white);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;padding:12px;transition:var(--transition)}.partner-slide:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.partner-slide a{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.partner-slide img{max-height:none;max-width:85%;height:auto;width:auto;object-fit:contain;filter:grayscale(100%);opacity:0.5;transition:var(--transition)}.partner-slide:hover img{filter:grayscale(0%);opacity:1}@keyframes partnersScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ===== BLOG ===== */
.blog {
  background: var(--bg-white);
}

.blog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}


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

.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}

.blog-card:hover {
  box-shadow: var(--shadow-accent);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.blog-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-vivid), var(--accent-light), var(--emerald));
}

.blog-card-body {
  padding: 24px;
}

.blog-date {
  font-size: 12px;
  color: var(--accent-vivid);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0;
  line-height: 1.4;
}

html[dir="rtl"] .blog-card h3 {
  font-family: var(--font-arabic);
  text-align: right;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 12px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-read-more:hover {
  gap: 12px;
  color: #EA580C;
}

html[dir="rtl"] .blog-read-more {
  flex-direction: row-reverse;
}

/* ===== CONTACT CTA SECTION ===== */
.contact-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(3,105,161,.2) 0%, transparent 60%);
}

.contact-section { padding: 48px 0; }
.contact-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
}

.contact-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
  justify-content: center;
}

.contact-cta-label::before {
  content: '';
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #0EA5E9, #06b6d4);
}

.contact-cta-title {
  font-size: clamp(22px, 3vw, 32px);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.contact-cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

html[dir="rtl"] .contact-cta-desc {
  font-family: var(--font-arabic);
}

.contact-cta-btn {
  font-size: 14px;
  padding: 12px 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ===== HOME RESPONSIVE ===== */

/* 1100px: hide hero cards on smaller screens */
@media (max-width: 1100px) {
  .hero-cards {
    display: none !important;
  }

  .hero-content {
    max-width: 640px;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .why-bim-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .metiers-grid .metier-card {
    flex: 0 1 calc(50% - 12px) !important;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 768px */


/* ===== ACCESSIBILITY ===== */
/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-vivid);
  color: #fff;
  padding: 12px 24px;
  z-index: 100000;
  font-weight: 700;
  font-size: 14px;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* Ensure all interactive elements meet 44x44 minimum touch target */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .metier-link {
    width: 48px;
    height: 48px;
  }
  
  .faq-question {
    min-height: 48px;
  }
  
  .blog-card {
    min-height: 48px;
  }
}


/* hero-desc spacing mobile */
.hero-desc-2 { margin-top: 0; margin-bottom: 24px; }
@media (max-width: 768px) {
  .hero-desc-2 { margin-top: 12px; margin-bottom: 20px; }
}

/* Project cards - mobile font sizes only (layout unchanged) */
@media (max-width: 768px) {
  .ref-card-overlay { padding: 16px; }
  .ref-tag {
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
  }
  .ref-card h3 { font-size: 13px; line-height: 1.25; }
  .ref-card-featured h3 { font-size: 15px; }
  .ref-card-meta { font-size: 10px; margin-top: 4px; line-height: 1.3; }

  /* Row 2 (3 cards bas) : tag au top pour ne pas cacher l'image */
  .ref-card-row2 .ref-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    margin-bottom: 0;
    z-index: 2;
  }
}
@media (max-width: 480px) {
  .ref-card-overlay { padding: 12px; }
  .ref-tag { font-size: 8px; padding: 2px 6px; }
  .ref-card h3 { font-size: 11px; }
  .ref-card-featured h3 { font-size: 13px; }
  .ref-card-meta { font-size: 9px; }
  .ref-card-row2 .ref-tag { top: 10px; left: 10px; }
}
