﻿/* ==========================================
   INTELGUARDS NORTH AFRICA – CSS Principal
   ========================================== */

:root {
  --red: #D91F26;
  --red-dark: #b01920;
  --red-light: #ff3a42;
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #222222;
  --gray-1: #2a2a2a;
  --gray-2: #3a3a3a;
  --gray-3: #8c8c8c;
  --gray-3-deep: #666666;
  --gray-4: #999999;
  --gray-5: #cccccc;
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-10: rgba(255,255,255,0.1);
  --white-5: rgba(255,255,255,0.05);
  --font-main: 'Inter', sans-serif;
  --font-title: 'Rajdhani', sans-serif;
  --transition: 0.3s ease;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-red: 0 4px 24px rgba(217,31,38,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 96px; }

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header.light .section-title,
.section-header.light .section-subtitle { color: var(--white); }

.section-tag {
  display: inline-block;
  background: rgba(217,31,38,0.15);
  color: var(--red);
  border: 1px solid rgba(217,31,38,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tag-red { background: rgba(217,31,38,0.2); border-color: rgba(217,31,38,0.4); }

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-4);
  max-width: 560px;
  margin: 0 auto;
}

.highlight { color: var(--red); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white-50);
}
.btn-outline:hover {
  border-color: var(--white);
  background: var(--white-10);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover {
  background: var(--white-10);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; padding: 16px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--white-10);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 58px;
  width: auto;
  transition: var(--transition);
}
.navbar.scrolled .logo-img { height: 50px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white-70);
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); background: var(--white-5); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
}
.nav-cta:hover { background: var(--red-dark) !important; box-shadow: var(--shadow-red); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217,31,38,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217,31,38,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--gray-5);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--red); }
  50% { box-shadow: 0 0 12px var(--red); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-4);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  display: block;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--white-10);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-4);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-4), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== À PROPOS ===== */
.apropos { background: var(--black-2); }

.apropos-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.apropos-visual { position: relative; }

.visual-card {
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.visual-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.card-accent {
  position: absolute;
  top: -60px; right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(217,31,38,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.apropos-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 24px;
}

.card-tag {
  display: inline-block;
  background: rgba(217,31,38,0.1);
  color: var(--red);
  border: 1px solid rgba(217,31,38,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--black-4);
  border: 1px solid var(--white-10);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  color: var(--white);
}

.floating-badge i { color: var(--red); }

.badge-1 { top: -16px; right: -24px; }
.badge-2 { bottom: 24px; left: -24px; }

.apropos-content .section-tag { margin-bottom: 12px; }

.apropos-text {
  color: var(--gray-4);
  margin-bottom: 16px;
  line-height: 1.8;
}
.apropos-text strong { color: var(--white); }

.apropos-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-5);
}
.value-item i { color: var(--red); font-size: 0.9rem; }

/* ===== SERVICES ===== */
.services { background: var(--black); }

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

.service-card {
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: rgba(217,31,38,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,31,38,0.04) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(217,31,38,0.1);
  border: 1px solid rgba(217,31,38,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--red);
  border-color: var(--red);
}
.service-icon i {
  font-size: 1.2rem;
  color: var(--red);
  transition: var(--transition);
}
.service-card:hover .service-icon i { color: var(--white); }

.service-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white-5);
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray-4);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.service-list li {
  font-size: 0.8rem;
  color: var(--gray-5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  position: relative;
  z-index: 1;
  transition: gap var(--transition), color var(--transition);
}
.service-link i { transition: transform var(--transition); }
.service-card:hover .service-link i,
.service-link:hover i { transform: translateX(4px); }
.service-link:hover { color: var(--red-light); }

/* ===== INTELOSOLUTION ===== */
.intelosolution {
  background: linear-gradient(135deg, var(--black-3) 0%, var(--black-2) 100%);
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
}

.intelosolution-inner { text-align: center; }

.partner-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.partner-feature {
  background: var(--black-4);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.partner-feature:hover {
  border-color: rgba(217,31,38,0.3);
  transform: translateY(-4px);
}

.pf-icon {
  width: 56px;
  height: 56px;
  background: rgba(217,31,38,0.1);
  border: 1px solid rgba(217,31,38,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.pf-icon i { color: var(--red); font-size: 1.3rem; }

.partner-feature h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.partner-feature p {
  font-size: 0.85rem;
  color: var(--gray-4);
  line-height: 1.6;
}

.partner-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== POURQUOI ===== */
.pourquoi { background: var(--black-2); }

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

.pourquoi-card {
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.pourquoi-card:hover {
  border-color: rgba(217,31,38,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pq-icon {
  width: 52px;
  height: 52px;
  background: rgba(217,31,38,0.1);
  border: 1px solid rgba(217,31,38,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pq-icon i { color: var(--red); font-size: 1.2rem; }

.pourquoi-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.pourquoi-card p {
  font-size: 0.875rem;
  color: var(--gray-4);
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.ci-icon {
  width: 44px;
  height: 44px;
  background: rgba(217,31,38,0.1);
  border: 1px solid rgba(217,31,38,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-icon i { color: var(--red); font-size: 1rem; }

.ci-content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.ci-content p {
  color: var(--white-90);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-social h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.social-links { display: flex; gap: 12px; }

.social-link {
  width: 40px;
  height: 40px;
  background: var(--white-5);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-4);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* FORM */
.contact-form {
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black-4);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--black-3);
  box-shadow: 0 0 0 3px rgba(217,31,38,0.1);
}

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

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: var(--black-3); color: var(--white); }

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-3);
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black-2);
  border-top: 1px solid var(--white-10);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray-4);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--gray-3) !important;
}
.footer-location i { color: var(--red); font-size: 0.8rem; }

.footer-links h2,
.footer-contact h2 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-4);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--red); padding-left: 4px; }

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-4);
  margin-bottom: 10px;
}
.footer-contact i { color: var(--red); width: 16px; }

.footer-bottom {
  border-top: 1px solid var(--white-10);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-3);
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== ACCESSIBILITÉ : LIEN D'ÉVITEMENT ===== */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 2000;
  background: var(--red);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ===== ACCESSIBILITÉ : FOCUS CLAVIER VISIBLE ===== */
:focus-visible {
  outline: 2px solid var(--red-light);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.social-link:focus-visible,
.to-top:focus-visible { outline-offset: 4px; }
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline-offset: 1px; }

/* ===== LIEN DE NAVIGATION ACTIF ===== */
.nav-links a.active { color: var(--red); }
.nav-links a.nav-cta.active { color: var(--white) !important; }

/* ===== VERROU DE DÉFILEMENT QUAND LE MENU EST OUVERT ===== */
body.menu-open { overflow: hidden; }

/* ===== LIENS DANS LES BLOCS DE CONTACT ===== */
.ci-content a,
.footer-contact a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.ci-content a:hover,
.footer-contact a:hover {
  color: var(--red);
  border-bottom-color: rgba(217,31,38,0.5);
}

/* ===== PARTICULES DU HERO ===== */
.hero-particles { position: absolute; inset: 0; }
.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: rgba(217,31,38,var(--opacity));
  border-radius: 50%;
  animation: floatParticle var(--duration) ease-in-out var(--delay) infinite;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  33%      { transform: translate(10px, -20px); opacity: 0.8; }
  66%      { transform: translate(-10px, 10px); opacity: 0.5; }
}

/* ===== FORMULAIRE : VALIDATION & ÉTATS ===== */
.req { color: var(--red); }

.optional {
  color: var(--text-muted, #8a93a5);
  font-weight: 400;
  font-size: 0.78em;
}

.field-error {
  font-size: 0.75rem;
  color: var(--red-light);
  margin-top: 6px;
  min-height: 0;
}
.field-error:empty { display: none; }

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(217,31,38,0.12);
}

/* Piège à robots : masqué sans display:none (certains bots l'ignorent) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  accent-color: var(--red);
  appearance: auto;
  -webkit-appearance: checkbox;
  flex-shrink: 0;
  cursor: pointer;
}
.form-consent input[type="checkbox"]:focus { box-shadow: none; }
.form-consent label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-5);
  line-height: 1.6;
  margin-bottom: 0;
  cursor: pointer;
}
.form-consent label a {
  color: var(--red);
  border-bottom: 1px solid rgba(217,31,38,0.4);
}
.form-consent label a:hover { color: var(--red-light); }
.form-consent .field-error { grid-column: 1 / -1; margin-top: 0; }

.form-status {
  text-align: center;
  font-size: 0.825rem;
  line-height: 1.6;
  margin-top: 14px;
}
.form-status:empty { display: none; }
.form-status.is-ok { color: #4ade80; }
.form-status.is-error { color: var(--red-light); }

.btn[disabled] { opacity: 0.65; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; box-shadow: none; }
.btn.is-loading i { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BOUTON RETOUR EN HAUT ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
}
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ===== PIED DE PAGE : MENTIONS LÉGALES ===== */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--gray-3);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--red); }

.nav-simple .nav-links {
  position: static;
  flex-direction: row;
  transform: none;
  background: none;
  border: none;
  padding: 0;
  gap: 4px;
  overflow: visible;
  inset: auto;
}
.nav-simple .nav-links a { width: auto; padding: 8px 12px; font-size: 0.8rem; }

/* ===== PAGES LÉGALES ===== */
.legal-page { padding: 160px 0 100px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}
.legal-updated { color: var(--gray-3); font-size: 0.825rem; margin-bottom: 40px; }
.legal-page h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--white);
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
}
.legal-page p,
.legal-page li { color: var(--gray-4); line-height: 1.8; margin-bottom: 12px; }
.legal-page a { color: var(--red); border-bottom: 1px solid rgba(217,31,38,0.4); }
.legal-page a:hover { color: var(--red-light); }
.legal-page ul { margin: 0 0 16px 0; }
.legal-page ul li { padding-left: 18px; position: relative; }
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-features { grid-template-columns: repeat(2, 1fr); }
  .pourquoi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .apropos-grid { grid-template-columns: 1fr; gap: 48px; }
  .apropos-visual { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--black-2);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-top: 1px solid var(--white-10);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 1rem; width: 100%; }

  .hamburger { display: flex; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .partner-features { grid-template-columns: 1fr; }
  .pourquoi-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .service-card, .pourquoi-card { padding: 24px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 768px) {
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .legal-page { padding: 120px 0 72px; }
}

/* ===== RESPECT DE prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .hero-particles, .scroll-line { display: none; }
  .btn:hover, .service-card:hover, .pourquoi-card:hover,
  .partner-feature:hover, .to-top:hover, .social-link:hover { transform: none; }
}

/* ===== ARTICLES ===== */
.articles { background: var(--black-2); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.article-card:hover {
  border-color: rgba(217,31,38,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-meta { font-size: 0.78rem; color: var(--gray-3); margin-bottom: 12px; }
.article-cat {
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 12px;
}
.article-card h3 a { color: var(--white); transition: var(--transition); }
.article-card h3 a:hover { color: var(--red); }
.article-card > p:not(.article-meta) {
  font-size: 0.875rem;
  color: var(--gray-4);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* Page article */
.article-page .article-meta { margin-bottom: 32px; }
.article-page h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--white);
  margin: 24px 0 8px;
}
.article-page ol { margin: 0 0 16px 20px; }
.article-page ol li { color: var(--gray-4); line-height: 1.8; margin-bottom: 8px; }
.article-cta {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid rgba(217,31,38,0.3);
  border-radius: var(--radius-lg);
  background: rgba(217,31,38,0.06);
}
.article-cta p { margin-bottom: 16px; }
.article-cta .btn { border-bottom: none; color: var(--white); }

/* Identifiants légaux du pied de page */
.footer-ids {
  font-size: 0.78rem;
  color: var(--gray-3);
  text-align: center;
  padding: 16px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--white-10);
}

@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-card { padding: 24px; }
}

/* ===== PAGE EXPERTISE (veille.html) ===== */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  background: var(--black);
  overflow: hidden;
  border-bottom: 1px solid var(--white-10);
}
.page-hero-content { position: relative; z-index: 2; max-width: 860px; }
.page-hero .hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.page-hero .hero-actions { margin-bottom: 0; }
.breadcrumb { font-size: 0.8rem; color: var(--gray-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--gray-4); transition: var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.nav-links a[aria-current="page"] { color: var(--red); }

.section-alt { background: var(--black-2); }
.services-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split .apropos-text { margin-bottom: 18px; }
.split .btn { margin-top: 12px; }
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.check-list i { color: var(--red); font-size: 1.1rem; margin-top: 4px; width: 22px; text-align: center; }
.check-list strong { display: block; font-family: var(--font-title); font-size: 1.05rem; }
.check-list span { font-size: 0.85rem; color: var(--gray-4); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: none;
}
.step {
  position: relative;
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217,31,38,0.15);
  color: var(--red);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-title); font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--gray-4); line-height: 1.7; }

.faq-container { max-width: 860px; }
.faq-item {
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: var(--transition);
}
.faq-item[open] { border-color: rgba(217,31,38,0.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 22px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1.4rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 20px; color: var(--gray-4); line-height: 1.75; font-size: 0.92rem; }

.cta-band {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217,31,38,0.35);
  background: linear-gradient(135deg, rgba(217,31,38,0.14), rgba(217,31,38,0.03));
}
.cta-band h2 { font-family: var(--font-title); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--gray-4); max-width: 620px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

@media (max-width: 1024px) {
  .services-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 130px 0 64px; }
  .services-grid.grid-4, .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 20px; }
}

/* ===== PHOTOS & BLOCS ILLUSTRÉS ===== */
/* Barre supérieure (téléphone / email) */
.topbar {
  background: var(--black);
  border-bottom: 1px solid var(--white-10);
  font-size: 0.78rem;
  color: var(--gray-4);
  margin: -20px 0 16px;
  transition: var(--transition);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar i { color: var(--red); margin-right: 6px; }
.topbar-right { display: flex; gap: 24px; }
.topbar a { color: var(--gray-4); transition: var(--transition); }
.topbar a:hover { color: var(--white); }
.navbar.scrolled .topbar { display: none; }

/* Photo de fond des en-têtes */
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black) 15%, rgba(10,10,10,0.75) 55%, rgba(10,10,10,0.35) 100%),
              linear-gradient(0deg, var(--black) 0%, transparent 35%);
}

/* À propos : photo */
.visual-card.has-photo { padding: 0; }
.visual-photo { display: block; width: 100%; height: 420px; object-fit: cover; }
.visual-card.has-photo .card-tag {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
}

/* Blocs image + texte alternés */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-row + .media-row { margin-top: 96px; }
.media-row.reverse .media-img { order: 2; }
.media-img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-10);
  box-shadow: var(--shadow);
}
.media-text .section-title { margin-bottom: 20px; }
.media-text .apropos-text { margin-bottom: 16px; }
.media-text .btn { margin-top: 12px; display: inline-flex; gap: 10px; align-items: center; }
.pillars { list-style: none; margin: 0 0 16px; display: grid; gap: 10px; }
.pillars li {
  color: var(--gray-4);
  padding-left: 18px;
  border-left: 3px solid var(--red);
  line-height: 1.6;
}
.pillars strong { color: var(--white); }
.split-photo { max-height: 260px; margin: 8px 0 20px; display: block; }

/* Cartes solutions avec photo */
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.solution-card {
  background: var(--black-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.solution-card:hover { border-color: rgba(217,31,38,0.3); transform: translateY(-4px); box-shadow: var(--shadow); }
.solution-card img { display: block; width: 100%; height: 260px; object-fit: cover; }
.solution-body { padding: 32px; }
.solution-body h3 { font-family: var(--font-title); font-size: 1.4rem; margin-bottom: 12px; }
.solution-body p { color: var(--gray-4); font-size: 0.92rem; line-height: 1.75; margin-bottom: 20px; }

/* Vignettes d'articles */
.article-card.has-thumb { padding: 0; overflow: hidden; }
.article-card.has-thumb > :not(.article-thumb) { margin-left: 28px; margin-right: 28px; }
.article-card.has-thumb > .article-meta { margin-top: 24px; }
.article-card.has-thumb > .service-link { margin-bottom: 28px; }
.article-thumb { display: block; overflow: hidden; }
.article-thumb img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 8px 0 32px;
  border: 1px solid var(--white-10);
}

@media (max-width: 1024px) {
  .media-row, .solutions-grid { grid-template-columns: 1fr; gap: 32px; }
  .media-row.reverse .media-img { order: 0; }
  .media-row + .media-row { margin-top: 72px; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .visual-photo { height: 300px; }
  .solution-card img { height: 200px; }
  .solution-body { padding: 24px; }
}
