/**
 * DDS - Dubos Demange Solutions
 * Styles personnalisés
 * 
 * Palette sobre B2B :
 * - Primaire : #1a365d (bleu marine professionnel)
 * - Secondaire : #2d4a6f (bleu intermédiaire)
 * - Accent : #3182ce (bleu vif pour CTA)
 * - Texte : #1a202c (quasi noir)
 * - Fond : #f8fafc (gris très clair)
 * - Bordures : #e2e8f0
 */

/* Import police carrée pour le logo */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@600;700&display=swap');

/* ============================================
   LOGO DDS
   ============================================ */
.logo-dds {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dds-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
}

.logo-dds:hover {
  color: var(--dds-primary);
  text-decoration: none;
}

.logo-dds-symbol {
  font-size: 1.1em;
  opacity: 0.9;
}

.logo-dds-white {
  color: #ffffff;
}

.logo-dds-white:hover {
  color: #ffffff;
}

.logo-dds-sm {
  font-size: 1.2rem;
}

.logo-dds-lg {
  font-size: 2rem;
}

/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
  --dds-primary: #1a365d;
  --dds-primary-light: #2d4a6f;
  --dds-accent: #3182ce;
  --dds-accent-hover: #2c6cb0;
  --dds-accent-glow: rgba(49, 130, 206, 0.25);
  --dds-gradient-start: #1a365d;
  --dds-gradient-end: #2c5282;
  --dds-gradient-accent: linear-gradient(135deg, #3182ce 0%, #63b3ed 100%);
  --dds-text: #1a202c;
  --dds-text-muted: #4a5568;
  --dds-bg: #f8fafc;
  --dds-bg-white: #ffffff;
  --dds-border: #e2e8f0;
  --dds-success: #38a169;
  --dds-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --dds-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
  --dds-shadow-glow: 0 0 30px var(--dds-accent-glow);
  --dds-radius: 0.5rem;
  --page-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --dds-transition: 0.2s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Masquer la scrollbar tout en gardant le scroll fonctionnel */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dds-text);
  background-color: var(--dds-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */
/* Page transitions désactivées pour éviter le flickering */

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--dds-primary);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

p {
  color: var(--dds-text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--dds-accent);
  text-decoration: none;
  transition: color var(--dds-transition);
}

a:hover,
a:focus {
  color: var(--dds-accent-hover);
  text-decoration: none;
}

/* Focus visible pour accessibilité */
:focus-visible {
  outline: 2px solid var(--dds-accent);
  outline-offset: 2px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-dds {
  background-color: var(--dds-bg-white);
  border-bottom: 1px solid var(--dds-border);
  padding: 0.75rem 0;
  box-shadow: var(--dds-shadow);
  z-index: 1030;
}

.navbar-dds .navbar-brand {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dds-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-dds .navbar-brand:hover {
  color: var(--dds-primary);
  text-decoration: none;
}

.navbar-dds .navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-dds .nav-link {
  color: var(--dds-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--dds-radius);
  transition: background-color var(--dds-transition), color var(--dds-transition);
}

.navbar-dds .nav-link:hover,
.navbar-dds .nav-link:focus {
  background-color: var(--dds-bg);
  color: var(--dds-accent);
  text-decoration: none;
}

.navbar-dds .nav-link.active {
  color: var(--dds-accent);
  background-color: rgba(49, 130, 206, 0.1);
}

.navbar-toggler {
  border: 1px solid var(--dds-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.25);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--dds-primary) 0%, var(--dds-primary-light) 100%);
  color: #ffffff;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: 200px;
  opacity: 0.5;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
}

.hero-section .lead {
  font-size: 1.35rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--dds-bg-white);
}

.section-alt {
  background-color: var(--dds-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card-dds {
  background-color: var(--dds-bg-white);
  border: 1px solid var(--dds-border);
  border-radius: var(--dds-radius);
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.card-dds .card-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(49, 130, 206, 0.1);
  border-radius: var(--dds-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--dds-accent);
  font-size: 1.5rem;
}

.card-dds h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-dds p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Card produit (Grafo, Campus) */
.card-product {
  background-color: var(--dds-bg-white);
  border: 1px solid var(--dds-border);
  border-radius: var(--dds-radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.card-product:hover {
  box-shadow: var(--dds-shadow-lg);
}

.card-product .card-img-top {
  height: 200px;
  object-fit: cover;
  background-color: var(--dds-bg);
}

.card-product .card-body {
  padding: 1.5rem;
}

.card-product .badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* ============================================
   BOUTONS
   ============================================ */
.btn-dds-primary {
  background: linear-gradient(135deg, var(--dds-accent) 0%, #2b6cb0 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-dds-primary:hover,
.btn-dds-primary:focus {
  background: linear-gradient(135deg, #2b6cb0 0%, var(--dds-accent) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
  text-decoration: none;
}

.btn-dds-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(49, 130, 206, 0.3);
}

.btn-dds-outline {
  background-color: transparent;
  border: 2px solid var(--dds-accent);
  color: var(--dds-accent);
  font-weight: 600;
  padding: 0.8125rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-dds-outline:hover,
.btn-dds-outline:focus {
  background: linear-gradient(135deg, var(--dds-accent) 0%, #2b6cb0 100%);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.3);
  text-decoration: none;
}

.btn-dds-outline:active {
  transform: translateY(0);
}

.btn-dds-white {
  background-color: #ffffff;
  border: none;
  color: var(--dds-primary);
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-dds-white:hover,
.btn-dds-white:focus {
  background-color: #ffffff;
  color: var(--dds-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn-dds-white:active {
  transform: translateY(0);
}

/* ============================================
   FEATURES LIST
   ============================================ */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--dds-border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dds-success);
  font-weight: bold;
}

/* ============================================
   GALERIE SCREENSHOTS
   ============================================ */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot-item {
  position: relative;
  border-radius: var(--dds-radius);
  overflow: hidden;
  box-shadow: var(--dds-shadow);
  transition: transform var(--dds-transition), box-shadow var(--dds-transition);
  cursor: pointer;
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: var(--dds-shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background-color: var(--dds-border);
}

.screenshot-item .screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
  padding: 1rem;
  font-size: 0.875rem;
}

/* Placeholder pour images manquantes */
.img-placeholder {
  background: linear-gradient(135deg, var(--dds-border) 0%, #cbd5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dds-text-muted);
  font-size: 0.875rem;
  text-align: center;
  min-height: 200px;
}

/* ============================================
   TIMELINE (MÉTHODOLOGIE)
   ============================================ */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--dds-accent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  background-color: var(--dds-accent);
  border-radius: 50%;
  border: 3px solid var(--dds-bg-white);
  box-shadow: var(--dds-shadow);
  transform: translateX(-7px);
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
}

.timeline-item p {
  margin-bottom: 0;
}

/* ============================================
   FORMULAIRE
   ============================================ */
.form-dds .form-label {
  font-weight: 500;
  color: var(--dds-text);
  margin-bottom: 0.5rem;
}

.form-dds .form-control,
.form-dds .form-select {
  border: 1px solid var(--dds-border);
  border-radius: var(--dds-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color var(--dds-transition), box-shadow var(--dds-transition);
}

.form-dds .form-control:focus,
.form-dds .form-select:focus {
  border-color: var(--dds-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.form-dds .form-text {
  font-size: 0.875rem;
  color: var(--dds-text-muted);
}

.form-dds textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-dds {
  background-color: var(--dds-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-dds h5 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-dds a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer-dds a:hover,
.footer-dds a:focus {
  color: #ffffff;
  text-decoration: none;
}

.footer-dds ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-dds ul li {
  margin-bottom: 0.5rem;
}

.footer-dds .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}

.footer-dds .footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ============================================
   BADGES
   ============================================ */
.badge-dds {
  background-color: rgba(49, 130, 206, 0.1);
  color: var(--dds-accent);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--dds-radius);
  font-size: 0.8rem;
}

.badge-success-dds {
  background-color: rgba(56, 161, 105, 0.1);
  color: var(--dds-success);
}

/* ============================================
   ACCORDÉON
   ============================================ */
.accordion-dds .accordion-button {
  font-weight: 500;
  color: var(--dds-text);
  background-color: var(--dds-bg-white);
}

.accordion-dds .accordion-button:not(.collapsed) {
  color: var(--dds-accent);
  background-color: rgba(49, 130, 206, 0.05);
}

.accordion-dds .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
  border-color: var(--dds-accent);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-dds {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb-dds .breadcrumb-item a {
  color: var(--dds-text-muted);
}

.breadcrumb-dds .breadcrumb-item.active {
  color: var(--dds-text);
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-primary-dds {
  color: var(--dds-primary) !important;
}

.text-accent-dds {
  color: var(--dds-accent) !important;
}

.bg-primary-dds {
  background-color: var(--dds-primary) !important;
}

.bg-accent-dds {
  background-color: var(--dds-accent) !important;
}

.border-dds {
  border-color: var(--dds-border) !important;
}

/* Espacement cohérent */
.py-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .py-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Skip link pour accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dds-accent);
  color: #ffffff;
  padding: 0.5rem 1rem;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar-dds,
  .footer-dds,
  .btn-dds-primary,
  .btn-dds-outline {
    display: none !important;
  }
  
  body {
    background: #ffffff;
    color: #000000;
  }
  
  .hero-section {
    background: #f0f0f0 !important;
    color: #000000 !important;
  }
  
  .hero-section h1,
  .hero-section p {
    color: #000000 !important;
  }
}

