/* =========================================================================
   DIGITAL TECHNOLOGY - HUMAIN & IA | Stylesheet
   ========================================================================= */

:root {
  /* Colors */
  --bg-dark: #FDFBFF;
  --bg-darker: #F7F6FA;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  
  --text-main: #1A1C1E;
  --text-muted: #44474E;
  
  --accent-cyan: #1A4288;
  --accent-cyan-hover: #123066;
  --accent-cyan-glow: rgba(26, 66, 136, 0.2);
  
  --accent-purple: #5c3b99;
  
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-strong: rgba(0, 0, 0, 0.15);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --spacing-section: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   RESET & FOUNDATION
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* =========================================================================
   LAYOUT UTILITIES
   ========================================================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* =========================================================================
   COMPONENTS
   ========================================================================= */
/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05), transparent 40%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #000;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.btn-primary:hover {
  background-color: var(--accent-cyan-hover);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass-strong);
  padding: 1rem 1.5rem;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(253, 251, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.logo-bold {
  font-weight: 800;
  color: var(--text-main);
}

.logo-branch {
  font-weight: 400;
  color: var(--accent-cyan);
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-cyan);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for header */
}

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

.badge {
  display: inline-block;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-glow);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.8;
}

/* Background Effects */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: rgba(0, 240, 255, 0.2);
}

.orb-2 {
  bottom: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(139, 92, 246, 0.15);
  animation-delay: -5s;
}

/* Manifeste */
.manifeste-card {
  text-align: center;
  padding: 4.5rem 2rem;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.manifeste-card p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Services */
.service-card {
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-glass-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Cas d'Usage */
.cas-usage-grid {
  gap: 2.5rem;
}

.use-case-card {
  background: var(--bg-darker);
  border: 1px solid var(--border-glass);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.use-case-card:hover {
  border-color: var(--border-glass-strong);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.use-case-card:hover .use-case-image {
  transform: scale(1.05);
}

.use-case-image {
  height: 220px;
  background-color: #1a2333;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Simulated images with abstract CSS gradients */
.rh-bg { background: linear-gradient(135deg, #091223, #15243E, #2A1B38); }
.vente-bg { background: linear-gradient(135deg, #15243E, #1F385C, #0E4B65); }
.admin-bg { background: linear-gradient(135deg, #2A1B38, #3D2248, #0E293F); }

.use-case-content {
  padding: 2.5rem 2rem;
  flex-grow: 1;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.use-case-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.use-case-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Expertise */
.expertise {
  position: relative;
}

.expertise::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass-strong), transparent);
}

.expertise-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--bg-dark);
  background: var(--accent-cyan);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.expertise-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.shield-container {
  position: relative;
}

.shield-icon {
  font-size: 8rem;
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.shield-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
}

/* CTA & Form */
.cta-section {
  padding-bottom: 6rem;
}

.cta-card {
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.6) 0%, rgba(7, 11, 20, 0.8) 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.cta-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-info .section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.book-download {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-glass-strong);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.book-download span {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.book-btn {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.book-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.book-btn small {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 0.25rem;
  display: block;
}

.cta-form-container {
  background: rgba(255, 255, 255, 0.7);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border-glass);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass-strong);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.02);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--border-glass-strong);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 0.8rem;
  font-weight: bold;
}

.form-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.form-checkbox label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 400;
  cursor: pointer;
}

.form-success {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 0.5rem;
  color: #34d399;
  text-align: center;
  font-weight: 500;
  animation: fadeInUp 0.5s ease-out;
}

.hidden {
  display: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 4rem 0 2rem;
  background: var(--bg-darker);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-main);
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

/* Entrance Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* =========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================= */
@media (max-width: 1024px) {
  .expertise-container,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .expertise-visual {
    order: -1;
    height: 250px;
  }
  
  .shield-icon {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  
  .nav {
    display: none; /* Hide on mobile, should have a hamburger in production */
  }
  
  .nav-btn {
    display: none;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3rem);
  }
  
  .hero {
    padding-top: 120px;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 3rem;
  }
  
  .badge {
    margin: 0 auto 2rem;
  }
  
  .manifeste-card {
    padding: 3rem 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .cta-form-container {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
}
