/* ===============================================
   AstroWind Template - Clean Light Theme
   =============================================== */

/* Variables CSS - Light Theme Only */
:root {
  /* Palette Acier & Modernité - Optimisée */
  --aw-color-primary: #263238;   /* Gris anthracite profond */
  --aw-color-primary-light: #37474F; /* Gris anthracite plus clair */
  --aw-color-primary-dark: #1C2428;  /* Gris anthracite plus foncé */
  --aw-color-secondary: #CFD8DC; /* Gris clair moderne */
  --aw-color-accent: #B71C1C;    /* Rouge industriel */
  --aw-color-accent-light: #D32F2F; /* Rouge plus clair */
  --aw-color-bg-page: #FAFAFA;   /* Blanc cassé moderne */
  --aw-color-text-default: #455A64; /* Bleu-gris équilibré */

  /* Nuances métalliques supplémentaires */
  --aw-color-steel: #607D8B;     /* Bleu acier */
  --aw-color-steel-light: #90A4AE; /* Bleu acier clair */
  --aw-color-steel-dark: #455A64;  /* Bleu acier foncé */
  --aw-color-silver: #B0BEC5;    /* Argent moderne */
  --aw-color-iron: #546E7A;      /* Fer industriel */

  /* Couleurs de fond optimisées */
  --aw-color-bg-light: #F8FAFC;  /* Gris très clair avec nuance bleue */
  --aw-color-bg-alt: #F1F5F9;    /* Variante avec nuance acier */
  --aw-color-bg-card: #FFFFFF;   /* Blanc pur pour les cartes */

  /* Couleurs de texte */
  --aw-color-text-heading: var(--aw-color-primary); 
  --aw-color-text-muted: #78909C; 
  --aw-color-text-page: var(--aw-color-text-default);
  --aw-color-text-link: var(--aw-color-accent);

  /* Couleurs de bordure */
  --aw-color-border: #CFD8DC;
  --aw-color-border-light: #ECEFF1;

  /* Couleurs des boutons */
  --aw-color-button-primary: var(--aw-color-accent); /* Rouge profond */
  --aw-color-button-primary-hover: #9A0007; 
  --aw-color-button-secondary: var(--aw-color-primary); /* Gris anthracite */
  --aw-color-button-secondary-hover: #37474F; 

  /* Typographie industrielle moderne */
  --aw-font-sans: 'Inter', 'SF Pro Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --aw-font-serif: 'Inter', ui-serif, Georgia, 'Times New Roman', serif;
  --aw-font-heading: 'Inter', 'SF Pro Display', system-ui, sans-serif;
  --aw-font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
  
  /* Poids de police pour le thème industriel */
  --aw-font-weight-light: 300;
  --aw-font-weight-normal: 400;
  --aw-font-weight-medium: 500;
  --aw-font-weight-semibold: 600;
  --aw-font-weight-bold: 700;
  --aw-font-weight-extrabold: 800;
  
  /* Espacement de lettres pour l'aspect industriel */
  --aw-letter-spacing-tight: -0.025em;
  --aw-letter-spacing-normal: 0em;
  --aw-letter-spacing-wide: 0.025em;

  /* Ombres */
  --aw-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --aw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --aw-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --aw-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --aw-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Rayons de bordure */
  --aw-radius: 0.5rem;
  --aw-radius-sm: 0.25rem;
  --aw-radius-lg: 1rem;

  /* Transitions */
  --aw-transition: all 0.15s ease-in-out;
}

/* Gradient de texte - Correction complète */
.bg-gradient-text {
  background: linear-gradient(135deg, var(--aw-color-accent) 0%, var(--aw-color-steel) 50%, var(--aw-color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* Fallback pour les navigateurs qui ne supportent pas background-clip */
}

/* Alternative avec le gradient industrial existant */
.bg-gradient-industrial-text {
  background: linear-gradient(135deg, var(--aw-color-accent) 0%, var(--aw-color-steel-light) 50%, var(--aw-color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* Reset et base */
* {
  box-sizing: border-box;
}

html {
  font-family: var(--aw-font-sans);
  color: var(--aw-color-text-page);
  background-color: var(--aw-color-bg-page);
  
}

body {
  font-family: var(--aw-font-sans);
  color: var(--aw-color-text-page);
  background-color: var(--aw-color-bg-page);
}

/* Utilitaires de couleur personnalisés */
.text-primary {
  color: var(--aw-color-primary);
}

.text-secondary {
  color: var(--aw-color-secondary);
}

.text-accent {
  color: var(--aw-color-accent);
}

.text-default {
  color: var(--aw-color-text-default);
}

.text-muted {
  color: var(--aw-color-text-muted);
}

.text-heading {
  color: var(--aw-color-text-heading);
}

.text-page {
  color: var(--aw-color-text-page);
}

.text-link {
  color: var(--aw-color-text-link);
}

.bg-light {
  background-color: var(--aw-color-bg-light);
}

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

.bg-primary {
  background-color: var(--aw-color-primary);
}

.bg-secondary {
  background-color: var(--aw-color-secondary);
}

.bg-accent {
  background-color: var(--aw-color-accent);
}

.border-default {
  border-color: var(--aw-color-border);
}

.border-light {
  border-color: var(--aw-color-border-light);
}

/* Classes utilitaires pour les nuances métalliques */
.text-steel {
  color: var(--aw-color-steel);
}

.text-steel-light {
  color: var(--aw-color-steel-light);
}

.text-steel-dark {
  color: var(--aw-color-steel-dark);
}

.text-silver {
  color: var(--aw-color-silver);
}

.text-iron {
  color: var(--aw-color-iron);
}

.bg-steel {
  background-color: var(--aw-color-steel);
}

.bg-steel-light {
  background-color: var(--aw-color-steel-light);
}

.bg-silver {
  background-color: var(--aw-color-silver);
}

.bg-card {
  background-color: var(--aw-color-bg-card);
}



/* Gradients métalliques */
.bg-gradient-steel {
  background: linear-gradient(135deg, var(--aw-color-steel-light) 0%, var(--aw-color-steel-dark) 100%);
}

.bg-gradient-industrial {
  background: linear-gradient(135deg, var(--aw-color-primary) 0%, var(--aw-color-steel) 50%, var(--aw-color-accent) 100%);
}

.bg-gradient-silver {
  background: linear-gradient(145deg, var(--aw-color-bg-card) 0%, var(--aw-color-silver) 100%);
}

/* Classes utilitaires typographiques */
.font-light {
  font-weight: var(--aw-font-weight-light);
}

.font-normal {
  font-weight: var(--aw-font-weight-normal);
}

.font-medium {
  font-weight: var(--aw-font-weight-medium);
}

.font-semibold {
  font-weight: var(--aw-font-weight-semibold);
}

.font-bold {
  font-weight: var(--aw-font-weight-bold);
}

.font-extrabold {
  font-weight: var(--aw-font-weight-extrabold);
}

.tracking-tight {
  letter-spacing: var(--aw-letter-spacing-tight);
}

.tracking-normal {
  letter-spacing: var(--aw-letter-spacing-normal);
}

.tracking-wide {
  letter-spacing: var(--aw-letter-spacing-wide);
}

.font-mono {
  font-family: var(--aw-font-mono);
}

/* Système de boutons cohérent */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--aw-radius);
  transition: var(--aw-transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.25;
  min-width: fit-content;
}

.btn-primary {
  background-color: var(--aw-color-button-primary);
  color: white;
  box-shadow: var(--aw-shadow-sm);
}

.btn-primary:hover {
  background-color: var(--aw-color-button-primary-hover);
  box-shadow: var(--aw-shadow);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--aw-color-button-secondary);
  color: white;
  box-shadow: var(--aw-shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--aw-color-button-secondary-hover);
  box-shadow: var(--aw-shadow);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-white {
  background-color: white;
  color: var(--aw-color-text-heading);
  border-color: var(--aw-color-border);
  box-shadow: var(--aw-shadow-sm);
}

.btn-white:hover {
  background-color: var(--aw-color-bg-light);
  box-shadow: var(--aw-shadow);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Styles pour les liens */
a {
  color: var(--aw-color-text-link);
  text-decoration: none;
  transition: var(--aw-transition);
}

a:hover {
  text-decoration: underline;
}

/* Styles pour les titres - Thème industriel */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--aw-font-heading);
  font-weight: var(--aw-font-weight-bold);
  color: var(--aw-color-text-heading);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: var(--aw-letter-spacing-tight);
}

h1 {
  font-size: 2.5rem;
  font-weight: var(--aw-font-weight-extrabold);
  letter-spacing: -0.05em;
}

h2 {
  font-size: 2rem;
  font-weight: var(--aw-font-weight-bold);
}

h3 {
  font-size: 1.625rem;
  font-weight: var(--aw-font-weight-semibold);
}

h4 {
  font-size: 1.375rem;
  font-weight: var(--aw-font-weight-semibold);
}

h5 {
  font-size: 1.125rem;
  font-weight: var(--aw-font-weight-medium);
}

h6 {
  font-size: 1rem;
  font-weight: var(--aw-font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--aw-letter-spacing-wide);
}

/* Titres avec accents industriels */
.heading-industrial {
  position: relative;
  padding-left: 1rem;
}

.heading-industrial::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--aw-color-accent) 0%, var(--aw-color-steel) 100%);
}

.heading-steel {
  color: var(--aw-color-steel-dark);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Paragraphes */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Listes */
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--aw-radius);
}

/* Formulaires */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--aw-color-border);
  border-radius: var(--aw-radius-sm);
  background-color: white;
  color: var(--aw-color-text-default);
  font-size: 0.9375rem;
  transition: var(--aw-transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--aw-color-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Cards */
.card {
  background-color: white;
  border: 1px solid var(--aw-color-border);
  border-radius: var(--aw-radius);
  padding: 1.5rem;
  box-shadow: var(--aw-shadow-sm);
  transition: var(--aw-transition);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

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

/* Utility classes */
.shadow-custom {
  box-shadow: var(--aw-shadow);
}

.shadow-custom-lg {
  box-shadow: var(--aw-shadow-lg);
}

.transition-custom {
  transition: var(--aw-transition);
}

/* Effets métalliques et industriels */
.metallic-shine {
  position: relative;
  overflow: hidden;
}

.metallic-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.1) 50%, 
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.metallic-shine:hover::before {
  transform: translateX(100%);
}

.steel-texture {
  background-image: 
    linear-gradient(45deg, rgba(255,255,255,.1) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255,255,255,.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.1) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.industrial-border {
  border: 2px solid var(--aw-color-steel);
  border-left: 4px solid var(--aw-color-accent);
  position: relative;
}

.industrial-border::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--aw-color-accent);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

/* Boutons avec effet métallique */
.btn-metallic {
  background: linear-gradient(145deg, var(--aw-color-steel-light), var(--aw-color-steel-dark));
  color: white;
  border: 1px solid var(--aw-color-steel);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-metallic:hover {
  background: linear-gradient(145deg, var(--aw-color-steel), var(--aw-color-primary));
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Styles pour les formulaires Symfony */
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--aw-radius);
  transition: var(--aw-transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.25;
  min-width: fit-content;
  background-color: var(--aw-color-button-primary);
  color: white;
  box-shadow: var(--aw-shadow-sm);
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--aw-color-button-primary-hover);
  box-shadow: var(--aw-shadow);
  transform: translateY(-1px);
  text-decoration: none;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--aw-color-border);
  border-radius: var(--aw-radius-sm);
  background-color: var(--aw-color-bg-card);
  color: var(--aw-color-text-default);
  font-size: 0.9375rem;
  transition: var(--aw-transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--aw-color-primary);
  box-shadow: 0 0 0 3px rgba(38, 50, 56, 0.1);
}

.form-label {
  color: var(--aw-color-text-heading);
  font-weight: var(--aw-font-weight-semibold);
}

/* Styles spécifiques pour les boutons submit de formulaire */
button[class*="btn"],
input[class*="btn"] {
  cursor: pointer;
}

/* Responsive utilities */
@media (max-width: 768px) {

  .btn-primary,
  .btn-secondary,
  .btn-white,
  .btn-outline {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Navigation spécifique */
nav a {
  color: var(--aw-color-text-default);
  transition: var(--aw-transition);
}

nav a:hover {
  color: var(--aw-color-text-link);
  text-decoration: none;
}

/* Header */
header {
  background-color: white;
  border-bottom: 1px solid var(--aw-color-border);
}

/* Footer */
footer {
  background-color: var(--aw-color-bg-light);
  border-top: 1px solid var(--aw-color-border);
}

/* Sections */
section {
  position: relative;
}

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

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

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  min-width: 160px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: var(--aw-color-text-default);
  text-align: left;
  background-color: white;
  border: 1px solid var(--aw-color-border);
  border-radius: var(--aw-radius);
  box-shadow: var(--aw-shadow-lg);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.375rem 1rem;
  clear: both;
  font-weight: 400;
  color: var(--aw-color-text-default);
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: var(--aw-transition);
}

.dropdown-menu a:hover {
  background-color: var(--aw-color-bg-light);
  color: var(--aw-color-text-heading);
}

/* Optimisations d'impression */
@media print {
  .no-print {
    display: none !important;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Mode de contraste élevé */
@media (prefers-contrast: high) {
  :root {
    --aw-color-border: rgb(0 0 0);
    --aw-color-text-muted: rgb(0 0 0);
  }
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Gradient pour le texte hero des services */
.bg-gradient-text-hero {
  background: linear-gradient(135deg, var(--aw-color-accent) 0%, var(--aw-color-accent-light) 50%, #FF6B6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Animation bounce pour l'indicateur de scroll */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Backdrop blur pour navigateurs compatibles */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Gradient pour le titre des services */
.bg-gradient-text-services {
  background: linear-gradient(135deg, var(--aw-color-accent) 0%, var(--aw-color-steel) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Gradient animé pour le nom de l'entreprise */
.bg-gradient-welcome {
  background: linear-gradient(135deg, 
    var(--aw-color-accent) 0%, 
    var(--aw-color-accent-light) 50%, 
    var(--aw-color-accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* Animation du gradient */
@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Animation ping pour le badge */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Ombre accentuée au survol */
.shadow-accent {
  box-shadow: 0 20px 50px -12px rgba(183, 28, 28, 0.5);
}

/* Animation fadeIn avec délai */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

