/* ============================================================
   LINKS SOLUTIONS — components.css
   Topbar, Navigation, Hero, Stats, Trust Strip, Services,
   Process, Témoignages, Pourquoi nous, Secteurs,
   Contact, Formulaire, Footer, Back to Top, Lang Switcher
   ============================================================ */

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--bleu);
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  padding: 0.5rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.03em;
}

.topbar-side { display: flex; align-items: center; gap: 1.4rem; }
.topbar-sep  { width: 1px; height: 13px; background: rgba(255,255,255,0.12); }

.topbar a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}

.topbar a:hover { color: white; }
.topbar strong  { color: white; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 2.5px solid var(--rouge);
  padding: 0.8rem 5rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: box-shadow 0.3s var(--transition), padding 0.3s;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }

.nav-links a {
  display: block;
  color: var(--bleu);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta):hover { color: var(--rouge); background: var(--rouge-pale); }

.nav-cta {
  background: var(--rouge) !important;
  color: white !important;
  padding: 0.58rem 1.5rem !important;
  margin-left: 0.5rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--rouge-vif) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--rouge-glow) !important;
}

/* Lien "⚡ Estimer" dans la navbar */
.nav-devis {
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(139,0,0,0.35);
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}
.nav-devis:hover {
  background: rgba(139,0,0,0.12);  /* fond rouge très léger au hover */
  border-color: rgba(139,0,0,0.6);
  color: white;
}

/* Lien "👤 Espace client" dans la navbar */
.nav-client {
  color: rgba(255,255,255,0.5);     /* plus discret que les autres liens */
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}
.nav-client:hover {
  color: white;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* Bouton hero "⚡ Estimer mon projet" */
.btn-ghost-red {
  border-color: rgba(139,0,0,0.45); /* bordure rouge subtile */
  color: rgba(255,255,255,0.75);
}
.btn-ghost-red:hover {
  background: rgba(139,0,0,0.12);
  border-color: var(--rouge);
  color: white;
}

/* Hamburger */
.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.ham span { display: block; width: 22px; height: 2px; background: var(--bleu); border-radius: 2px; transition: all 0.3s; }
.ham.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ham.open span:nth-child(2) { opacity: 0; transform: translateX(6px); }
.ham.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(148deg, var(--dark) 0%, #0f1e38 45%, #182d58 100%);
  min-height: 95vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 5rem 5rem 5rem;
}

/* Dot grid pattern */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

/* Red glow blob */
.hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  right: -150px; top: -100px;
  background: radial-gradient(circle, rgba(139,0,0,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 6rem;
  align-items: center; width: 100%;
  position: relative; z-index: 2;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  padding: 0.42rem 1.1rem 0.42rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 0.7s 0.3s forwards;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
  animation: ping 2s ease-in-out infinite;
}

@keyframes ping {
  0%,100%{ box-shadow: 0 0 0 3px rgba(46,204,113,0.2); }
  50%    { box-shadow: 0 0 0 7px rgba(46,204,113,0.08); }
}

.badge-text {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* Headline */
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.6rem;
  opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  letter-spacing: 0.04em;
  color: white;
  line-height: 0.93;
  margin-bottom: 0.8rem;
  opacity: 0; animation: fadeUp 0.9s 0.45s forwards;
}

.hero-title .line-accent { 
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  display: block;
}

.hero-title .line-red { color: var(--rouge-vif); display: block; }
.hero-title .line-white { color: white; display: block; }

.hero-slogan {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.7s 0.6s forwards;
  border-left: 2px solid var(--rouge);
  padding-left: 1rem;
}

.hero-desc {
  font-size: 0.93rem; line-height: 1.85;
  color: rgba(255,255,255,0.55);
  max-width: 470px; margin-bottom: 2.8rem;
  opacity: 0; animation: fadeUp 0.7s 0.7s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.85s forwards;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 2; opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.hero-scroll span {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
}

.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100%{ transform: scaleY(1); opacity: 0.6; }
  50%    { transform: scaleY(0.6); opacity: 1; }
}

/* Hero Visual — 3D floating card stack */
.hero-visual {
  opacity: 0; animation: fadeIn 1s 0.8s forwards;
  display: flex; align-items: center; justify-content: center;
}

.hero-cards {
  position: relative;
  width: 320px; height: 400px;
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--transition);
}

.hero-card:nth-child(1) {
  width: 240px;
  top: 20px; right: 0;
  background: rgba(139,0,0,0.15);
  border-color: rgba(139,0,0,0.3);
  animation: float1 5s ease-in-out infinite;
}

.hero-card:nth-child(2) {
  width: 220px;
  top: 130px; left: 0;
  background: rgba(26,42,74,0.6);
  border-color: rgba(255,255,255,0.1);
  animation: float2 6s ease-in-out infinite;
}

.hero-card:nth-child(3) {
  width: 200px;
  bottom: 20px; right: 10px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  animation: float3 4.5s ease-in-out infinite;
}

@keyframes float1 { 0%,100%{transform:translateY(0px) rotate(-2deg)} 50%{transform:translateY(-12px) rotate(-2deg)} }
@keyframes float2 { 0%,100%{transform:translateY(0px) rotate(1.5deg)} 50%{transform:translateY(-8px) rotate(1.5deg)} }
@keyframes float3 { 0%,100%{transform:translateY(0px) rotate(3deg)} 50%{transform:translateY(-10px) rotate(3deg)} }

.card-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }

.card-label {
  font-size: 0.65rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rouge-vif); margin-bottom: 0.35rem;
}

.card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 0.05em;
  color: white; line-height: 1;
}

.card-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem; }

/* Network orb in background */
.hero-orb {
  position: absolute;
  width: 280px; height: 280px;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.hero-orb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  animation: orb-rotate 20s linear infinite;
}

.hero-orb-ring:nth-child(2) { inset: 20%; border-color: rgba(139,0,0,0.15); animation-direction: reverse; animation-duration: 15s; }
.hero-orb-ring:nth-child(3) { inset: 40%; border-color: rgba(255,255,255,0.07); animation-duration: 10s; }

@keyframes orb-rotate { to { transform: rotate(360deg); } }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--rouge);
  padding: 0;
  position: relative; overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 80px
  );
}

.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.stat-item {
  padding: 2.8rem 2rem;
  text-align: center;
  color: white;
  border-right: 1px solid rgba(255,255,255,0.12);
  position: relative; overflow: hidden;
  transition: background 0.3s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.06); }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem; line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  display: flex; align-items: baseline; justify-content: center; gap: 0.1rem;
}

.stat-num .counter { transition: all 0.05s; }
.stat-num .suffix { font-size: 2.2rem; opacity: 0.8; }
.stat-lbl { font-size: 0.73rem; opacity: 0.75; letter-spacing: 0.1em; text-transform: uppercase; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-bg { background: var(--off-white); }

.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 4rem;
}

.services-header .section-sub { margin-bottom: 0; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.8rem 2.4rem 2.2rem;
  border-radius: var(--radius-md);
  transition: all 0.4s var(--transition);
  position: relative; overflow: hidden;
  cursor: none;
}

/* Gradient top bar */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--rouge), var(--bleu-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--transition);
}

/* Background number watermark */
.service-card::after {
  content: attr(data-num);
  position: absolute; bottom: -1rem; right: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem; line-height: 1;
  color: var(--border);
  transition: color 0.4s, transform 0.4s;
  pointer-events: none;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after  { color: rgba(139,0,0,0.06); transform: scale(1.08); }

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: transparent;
}

.service-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--rouge-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 1.8rem;
  transition: background 0.3s, transform 0.3s;
  position: relative; z-index: 1;
}

.service-card:hover .service-icon-wrap {
  background: rgba(139,0,0,0.15);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.02rem; font-weight: 600; color: var(--bleu);
  margin-bottom: 0.8rem; position: relative; z-index: 1;
  transition: color 0.2s;
}

.service-card:hover h3 { color: var(--rouge); }

.service-card p {
  font-size: 0.84rem; color: var(--gray);
  line-height: 1.78; position: relative; z-index: 1;
  margin-bottom: 1.4rem;
}

.service-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--rouge-pale);
  color: var(--rouge);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s;
  position: relative; z-index: 1;
}

.service-pill:hover { background: rgba(139,0,0,0.18); gap: 0.6rem; }

/* ============================================================
   PROCESS (HOW IT WORKS) — NEW SECTION
   ============================================================ */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
  list-style: none; padding-left: 0;
}

/* Connecting line between steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 52px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--rouge), var(--bleu-light), var(--rouge));
  z-index: 0;
}

.process-step {
  text-align: center; padding: 0 1.5rem;
  position: relative; z-index: 1;
}

.process-num-wrap {
  width: 56px; height: 56px; margin: 0 auto 1.8rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--bleu);
  transition: all 0.3s var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.process-step:hover .process-num-wrap {
  background: var(--rouge);
  border-color: var(--rouge);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 24px var(--rouge-glow);
}

.process-step h3 {
  font-size: 0.92rem; font-weight: 600;
  color: var(--bleu); margin-bottom: 0.55rem;
  transition: color 0.2s;
}

.process-step:hover h3 { color: var(--rouge); }

.process-step p {
  font-size: 0.82rem; color: var(--gray); line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS — NEW SECTION
   ============================================================ */
.testimonials-bg { background: var(--bleu); }

.testimonials-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
  margin-top: 1rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  transition: all 0.35s var(--transition);
  position: relative; overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 5rem; line-height: 1;
  color: rgba(139,0,0,0.2);
  pointer-events: none;
}

.testimonial-card:hover {
  background: rgba(139,0,0,0.12);
  border-color: rgba(139,0,0,0.3);
  transform: translateY(-6px);
}

.stars {
  display: flex; gap: 3px; margin-bottom: 1.2rem;
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
  line-height: 1.8; margin-bottom: 1.8rem;
  font-style: italic;
}

.testimonial-author {
  display: flex; align-items: center; gap: 1rem;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rouge), var(--bleu-light));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; color: white;
  flex-shrink: 0;
}

.author-name { font-size: 0.88rem; font-weight: 600; color: white; }
.author-role { font-size: 0.73rem; color: rgba(255,255,255,0.38); margin-top: 0.1rem; }

/* ============================================================
   TRUST BADGES — NEW SECTION
   ============================================================ */
.trust-strip {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5rem;
}

.trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}

.trust-label {
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gray-light);
  white-space: nowrap;
}

.trust-items { display: flex; gap: 2.5rem; flex-wrap: wrap; }

.trust-item {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.82rem; font-weight: 500; color: var(--bleu);
  opacity: 0.65; transition: opacity 0.2s;
}

.trust-item:hover { opacity: 1; }

.trust-icon {
  width: 36px; height: 36px;
  background: white; border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}

.why-visual {
  background: linear-gradient(148deg, var(--bleu) 0%, var(--bleu-mid) 100%);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative; overflow: hidden;
}

.why-visual::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(139,0,0,0.2) 0%, transparent 70%);
}

.why-visual::after {
  content: '';
  position: absolute; bottom: -50px; left: -50px;
  width: 180px; height: 180px;
  border: 50px solid rgba(255,255,255,0.02);
  border-radius: 50%;
}

.why-item {
  display: flex; gap: 1.3rem; position: relative; z-index: 1;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.why-item:last-child { border-bottom: none; padding-bottom: 0; }
.why-item:first-child { padding-top: 0; }

.why-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem; line-height: 1;
  color: var(--rouge-vif);
  opacity: 0.6; min-width: 2.8rem;
  transition: opacity 0.2s;
}

.why-item:hover .why-num { opacity: 1; }

.why-item h3 {
  font-size: 0.92rem; font-weight: 600;
  color: white; margin-bottom: 0.35rem; letter-spacing: 0.02em;
}

.why-item p { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.65; }

.why-text { padding: 0.5rem 0; }
.why-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.95rem; color: var(--bleu);
  margin-bottom: 1.1rem; line-height: 1.22;
}

.why-text > p { color: var(--gray); font-size: 0.93rem; margin-bottom: 2rem; line-height: 1.85; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2.8rem; }

.checklist li {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.88rem; color: var(--bleu);
}

.check-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--rouge); color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700;
}

/* ============================================================
   SECTORS
   ============================================================ */
.secteurs-bg { background: var(--dark); }

.secteurs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.secteur-card {
  background: var(--dark);
  padding: 2.4rem 1.6rem;
  text-align: center;
  transition: background 0.3s var(--transition), transform 0.3s;
  cursor: none; position: relative; overflow: hidden;
}

.secteur-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--rouge);
  transform: scaleX(0); transition: transform 0.3s;
}

.secteur-card:hover { background: rgba(139,0,0,0.18); }
.secteur-card:hover::after { transform: scaleX(1); }
.secteur-card:hover .secteur-icon { transform: scale(1.2) translateY(-3px); }

.secteur-icon {
  font-size: 2.2rem; margin-bottom: 0.9rem;
  display: block; transition: transform 0.3s var(--transition);
}

.secteur-card h3 {
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.7); letter-spacing: 0.04em;
  transition: color 0.2s;
}

.secteur-card:hover h3 { color: white; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
}

.contact-info-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem; color: var(--bleu);
  margin-bottom: 0.9rem; line-height: 1.28;
}

.contact-info > p { color: var(--gray); font-size: 0.92rem; line-height: 1.85; margin-bottom: 2.5rem; }

.contact-cards { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2.5rem; }

.contact-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.15rem 1.4rem;
  background: var(--off-white);
  border-left: 3px solid var(--rouge);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-decoration: none;
  transition: all 0.25s var(--transition);
}

.contact-card:hover { background: var(--bleu-pale); transform: translateX(4px); }

.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--rouge); color: white;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
  transition: transform 0.2s;
}

.contact-card:hover .contact-card-icon { transform: scale(1.08); }

.contact-card-text strong {
  display: block; font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rouge); margin-bottom: 0.2rem;
}

.contact-card-text span { font-size: 0.88rem; color: var(--bleu); font-weight: 500; }

.contact-alts { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.alt-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.76rem; font-weight: 500; color: var(--bleu);
  text-decoration: none;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}

.alt-btn:hover { background: var(--bleu); color: white; border-color: var(--bleu); transform: translateY(-2px); }

/* ── Form ── */
.form-card {
  background: var(--bleu);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative; overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(139,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.form-header { margin-bottom: 2.2rem; position: relative; }

.form-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: white; margin-bottom: 0.4rem;
}

.form-header p { font-size: 0.8rem; color: rgba(255,255,255,0.38); }

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

.fg {
  display: flex; flex-direction: column; gap: 0.45rem;
  margin-bottom: 1.1rem; position: relative;
}

.fg label {
  font-size: 0.67rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.fg input, .fg select, .fg textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.88rem 1.1rem;
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none; resize: none; width: 100%;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,0.2); }
.fg select option { background: #1a2a4a; }

.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--rouge);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(139,0,0,0.12);
}

/* Validation states */
.fg.valid input, .fg.valid textarea, .fg.valid select {
  border-color: rgba(46,204,113,0.5);
}

.fg.invalid input, .fg.invalid textarea, .fg.invalid select {
  border-color: rgba(192,57,43,0.6);
}

.fg-indicator {
  position: absolute; right: 12px; top: calc(0.88rem + 1.35rem);
  font-size: 0.85rem; opacity: 0; transition: opacity 0.2s;
}

.fg.valid .fg-indicator::after   { content: '✓'; color: #2ecc71; opacity: 1; }
.fg.invalid .fg-indicator::after { content: '✗'; color: #e74c3c; opacity: 1; }

.fg.valid .fg-indicator, .fg.invalid .fg-indicator { opacity: 1; }

.fg textarea { height: 118px; }

.form-alert {
  display: none; align-items: flex-start; gap: 0.85rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem; font-size: 0.84rem;
  animation: fadeUp 0.4s forwards;
}

.form-alert.success { display: flex; background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.3); color: #2ecc71; }
.form-alert.error   { display: flex; background: rgba(192,57,43,0.12); border: 1px solid rgba(192,57,43,0.35); color: #e74c3c; }

.btn-submit {
  width: 100%; display: flex; align-items: center;
  justify-content: center; gap: 0.7rem;
  padding: 1.05rem 2rem;
  background: var(--rouge); color: white;
  border: none; cursor: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--transition);
  position: relative; overflow: hidden;
}

.btn-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.07));
  opacity: 0; transition: opacity 0.25s;
}

.btn-submit:hover:not(:disabled) {
  background: var(--rouge-vif);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--rouge-glow);
}

.btn-submit:hover::after { opacity: 1; }

.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinAnim 0.65s linear infinite;
  display: none;
}

.btn-submit.loading .spin { display: block; }

@keyframes spinAnim { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 5rem 5rem 2rem;
}

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 50px; width: auto;
  opacity: 0.85;
  margin-bottom: 1.4rem; display: block;
}

.footer-desc {
  font-size: 0.83rem; color: rgba(255,255,255,0.3);
  line-height: 1.95; max-width: 275px; margin-bottom: 2rem;
}

.footer-socials { display: flex; gap: 0.6rem; }

.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; text-decoration: none;
  transition: all 0.2s var(--transition);
}

.social-icon:hover {
  background: var(--rouge); border-color: var(--rouge);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--rouge-glow);
}

.footer-col-title {
  font-size: 0.66rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rouge-vif);
  margin-bottom: 1.5rem; font-weight: 600;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.33);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.45rem;
  transition: color 0.2s, gap 0.2s;
}

.footer-links a::before { content: '→'; font-size: 0.6rem; opacity: 0.4; transition: opacity 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); gap: 0.65rem; }
.footer-links a:hover::before { opacity: 1; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: rgba(255,255,255,0.18);
  flex-wrap: wrap; gap: 0.5rem;
}

.footer-rouge { color: var(--rouge-vif); }

.footer-staff { display: flex; gap: 1.2rem; }
.footer-staff a { font-size: 0.62rem; color: rgba(255,255,255,0.1); text-decoration: none; transition: color 0.3s; }
.footer-staff a:hover { color: rgba(255,255,255,0.45); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed; bottom: 2.5rem; right: 2.5rem;
  width: 46px; height: 46px;
  background: var(--rouge); color: white;
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 24px var(--rouge-glow);
  cursor: none; z-index: 400;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--rouge-vif); transform: translateY(-3px); box-shadow: 0 12px 32px var(--rouge-glow); }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 100px; overflow: hidden;
  margin-left: 1rem; flex-shrink: 0;
}
.lang-btn {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--gray);
  border: none; cursor: pointer;
  transition: all 0.2s var(--transition);
  font-family: 'DM Sans', sans-serif; white-space: nowrap;
}
.lang-btn .flag { font-size: 0.9rem; }
.lang-btn.active { background: var(--rouge); color: white; }
.lang-btn:not(.active):hover { background: var(--rouge-pale); color: var(--rouge); }


/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--rouge), var(--rouge-vif));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   ACCESSIBILITY — focus visibles
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--rouge);
  outline-offset: 2px;
  border-radius: 2px;
}
.btn:focus-visible        { outline-color: white; }
.btn-submit:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.social-icon:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.ham:focus-visible { outline: 2px solid var(--rouge); outline-offset: 4px; border-radius: 4px; }
.lang-btn:focus-visible { outline: 2px solid var(--rouge); outline-offset: 1px; }

/* Skip to content */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--rouge); color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Back to top repositioned to accommodate WhatsApp button */
.back-top { bottom: 7rem !important; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 2.5rem; right: 2.5rem;
  z-index: 450;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 0.75rem;
}

.wa-btn {
  width: 58px; height: 58px;
  background: #25D366; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: transform 0.25s var(--transition), box-shadow 0.25s;
  position: relative; text-decoration: none;
}
.wa-btn:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 10px 36px rgba(37,211,102,0.65); }
.wa-btn:focus-visible { outline: 3px solid #25D366; outline-offset: 4px; }
.wa-btn::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(37,211,102,0.4);
  animation: wa-pulse 2.2s ease-out infinite;
}
.wa-btn::after {
  content: ''; position: absolute; inset: -14px;
  border-radius: 50%; border: 1.5px solid rgba(37,211,102,0.2);
  animation: wa-pulse 2.2s ease-out 0.55s infinite;
}
@keyframes wa-pulse { 0%{transform:scale(0.9);opacity:1} 100%{transform:scale(1.55);opacity:0} }

.wa-icon { width: 28px; height: 28px; fill: white; }

.wa-tooltip {
  background: white; color: var(--bleu);
  font-size: 0.78rem; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 100px;
  box-shadow: var(--shadow-md); white-space: nowrap;
  opacity: 0; transform: translateX(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.wa-float:hover .wa-tooltip,
.wa-float:focus-within .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 9000; display: flex; flex-direction: column; gap: 0.7rem;
  pointer-events: none; align-items: center;
}
.toast {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.95rem 1.6rem; border-radius: 100px;
  font-size: 0.84rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  pointer-events: all; min-width: 260px; max-width: 420px;
  animation: toastIn 0.4s var(--transition) forwards;
}
.toast.success { background: #0f3d25; color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.toast.error   { background: #2d0a0a; color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
@keyframes toastIn  { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes toastOut { from{opacity:1;transform:translateY(0)}    to{opacity:0;transform:translateY(-10px)} }

/* ============================================================
   PORTFOLIO / RÉALISATIONS
   ============================================================ */
.portfolio-bg { background: var(--dark); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portfolio-card { border-radius: var(--radius-md); overflow: hidden; }

.portfolio-img {
  height: 280px;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: default;
  overflow: hidden;
}

/* Placeholder gradients tant que les vraies photos ne sont pas ajoutées */
/* .portfolio-img-1 { background: linear-gradient(135deg, #1a2a4a 0%, #0d3b6e 50%, #1a2a4a 100%); } */
/* .portfolio-img-2 { background: linear-gradient(135deg, #1a3a2a 0%, #0d5e3b 50%, #1a3a2a 100%); } */
/* .portfolio-img-3 { background: linear-gradient(135deg, #3a1a1a 0%, #6e0d0d 50%, #3a1a1a 100%); } */
/* .portfolio-img-4 { background: linear-gradient(135deg, #2a1a3a 0%, #4a0d6e 50%, #2a1a3a 100%); } */

.portfolio-img-1 { background-image: url('../assets/portfolio/portfolio-maintenance.jpg'); background-size:cover; background-position:center; }
.portfolio-img-2 { background-image: url('../assets/portfolio/portfolio-reseau.jpg');      background-size:cover; background-position:center; }
.portfolio-img-3 { background-image: url('../assets/portfolio/portfolio-cctv.jpg');        background-size:cover; background-position:center; }
.portfolio-img-4 { background-image: url('../assets/portfolio/portfolio-starlink.jpg');    background-size:cover; background-position:center; }

/* Add emoji icon for visual interest */
.portfolio-img::before {
  content: attr(aria-label);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.8rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  transform: translateY(30%);
  transition: transform 0.4s var(--transition);
}

.portfolio-card:hover .portfolio-overlay { transform: translateY(0); }
.portfolio-card:hover .portfolio-img::before { opacity: 0.06; }

.portfolio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--rouge);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
}

.portfolio-overlay h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.4rem;
}

.portfolio-overlay p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--transition), opacity 0.4s;
  opacity: 0;
}

.portfolio-card:hover .portfolio-overlay p {
  max-height: 80px;
  opacity: 1;
}

/* Note d'ajout de photos réelles */
.portfolio-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-bg { background: var(--off-white); }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0.4rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--bleu);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--rouge); }
.faq-q:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; border-radius: 4px; }

.faq-arrow {
  width: 28px; height: 28px;
  background: var(--rouge-pale);
  color: var(--rouge);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 300;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.3s, color 0.2s;
}
.faq-q[aria-expanded="true"] .faq-arrow {
  transform: rotate(45deg);
  background: var(--rouge);
  color: white;
}

.faq-a {
  padding: 0 0.4rem 1.4rem;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.85;
  animation: fadeUp 0.3s var(--transition) forwards;
}
.faq-a strong { color: var(--bleu); }
.faq-a[hidden] { display: none; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8000;
  background: var(--bleu);
  border-top: 2px solid var(--rouge);
  padding: 1rem 5rem;
  transform: translateY(100%);
  transition: transform 0.45s var(--transition);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
}
.cookie-banner.show { transform: translateY(0); }

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-icon { font-size: 1.5rem; flex-shrink: 0; }

.cookie-text {
  flex: 1;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  min-width: 220px;
}

.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }

.cookie-btn {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  border: none;
}
.cookie-btn-accept  { background: var(--rouge); color: white; }
.cookie-btn-accept:hover  { background: var(--rouge-vif); transform: translateY(-1px); }
.cookie-btn-decline { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.12); }
.cookie-btn-decline:hover { background: rgba(255,255,255,0.14); color: white; }
.cookie-btn:focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* ============================================================
   GOOGLE MAPS EMBED
   ============================================================ */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-embed iframe { display: block; }

@media (max-width: 600px) {
  .cookie-banner { padding: 1rem 1.5rem; }
  .cookie-inner  { flex-direction: column; align-items: flex-start; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-img  { height: 220px; }
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
