/* ===== CONFIGURATION PERSONNALISÉE ===== */

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Variables CSS pour la palette de couleurs */
:root {
  /* Couleurs basées sur le logo TechnoSolutions */
  --primary-color: #1B4F72;      /* Bleu foncé professionnel du logo */
  --secondary-color: #E74C3C;    /* Rouge accent moderne */
  --accent-color: #3498DB;       /* Bleu tech clair */
  --text-color: #2C3E50;         /* Gris foncé pour le texte */
  --background-color: #FFFFFF;   /* Blanc pur */
  --light-gray: #F8F9FA;         /* Gris très clair */
  --medium-gray: #E9ECEF;        /* Gris moyen */
  --dark-gray: #6C757D;          /* Gris foncé */
  --success-color: #27AE60;      /* Vert tech */
  --warning-color: #F39C12;      /* Orange tech */
  
  /* Gradients adaptés aux nouvelles couleurs */
  --primary-gradient: linear-gradient(135deg, #1B4F72 0%, #3498DB 100%);
  --secondary-gradient: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  --accent-gradient: linear-gradient(135deg, #3498DB 0%, #5DADE2 100%);
}
}

/* Configuration de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

/* Classes utilitaires personnalisées */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light-custom { background-color: var(--light-gray) !important; }

.btn-primary-custom {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 75, 120, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 75, 120, 0.4);
  color: white;
  text-decoration: none;
}

.btn-secondary-custom {
  background: var(--secondary-gradient);
  border: none;
  color: var(--text-color);
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(247, 179, 43, 0.3);
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 179, 43, 0.4);
  color: var(--text-color);
  text-decoration: none;
}

.btn-outline-primary-custom {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  color: white;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-outline-primary-custom:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Navigation */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand-custom {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Logo responsive dans la navbar */
.navbar-brand-custom img {
  transition: all 0.3s ease;
  max-height: 50px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(27, 79, 114, 0.1));
}

.navbar-custom.scrolled .navbar-brand-custom img {
  max-height: 45px;
}

.navbar-brand-custom:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(27, 79, 114, 0.2));
}

/* Responsive logo pour mobile */
@media (max-width: 768px) {
  .navbar-brand-custom img {
    max-height: 45px;
  }
  
  .navbar-custom.scrolled .navbar-brand-custom img {
    max-height: 40px;
  }
}

/* Très petit écran */
@media (max-width: 480px) {
  .navbar-brand-custom img {
    max-height: 40px;
  }
  
  .navbar-custom.scrolled .navbar-brand-custom img {
    max-height: 35px;
  }
}

.nav-link-custom {
  color: var(--text-color) !important;
  font-weight: 500;
  padding: 10px 20px !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link-custom:hover {
  color: var(--primary-color) !important;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 50%;
  background: var(--secondary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 80%;
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  position: relative;
  margin-bottom: 60px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--secondary-gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title.text-left::after {
  left: 0;
  transform: none;
}

/* Cartes */
.card-custom {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(27, 79, 114, 0.85) 0%, rgba(52, 152, 219, 0.75) 100%),
              url('../img/logo on desk.png') center/cover;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  background-attachment: fixed;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Animations personnalisées */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s ease forwards;
}

/* Logo partenaires */
.partner-logo {
  filter: grayscale(100%);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Footer */
.footer-custom {
  background: var(--primary-color);
  color: white;
}

.footer-custom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-custom a:hover {
  color: var(--secondary-color);
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--secondary-color);
  color: var(--text-color);
  transform: translateY(-3px);
}

/* Formulaire de contact */
.form-control-custom {
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  padding: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(10, 75, 120, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.7rem; }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .btn-primary-custom,
  .btn-secondary-custom {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Swiper personnalisations */
.swiper-pagination-bullet {
  background: var(--primary-color);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--secondary-color);
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
}

/* États de chargement */
.loading {
  opacity: 0;
  transform: translateY(20px);
}

.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Animation pulse pour attirer l'attention */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Tooltip pour le bouton WhatsApp */
.whatsapp-float::before {
    content: "Contactez-nous sur WhatsApp";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
    
    .whatsapp-float::before {
        display: none;
    }
    
    .whatsapp-float::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
}

/* Ajustement pour éviter le conflit avec le bouton back-to-top sur mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 85px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 75px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
}

/* ===== HERO LOGO STYLES ===== */
.hero-logo-container {
    perspective: 1000px;
}

.hero-logo-container .logo-card {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.hero-logo-container:hover .logo-card {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Animation pour les éléments décoratifs du hero */
@keyframes float-decorative {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-15px) rotate(180deg); 
    }
}

.hero-decorative {
    animation: float-decorative 4s ease-in-out infinite;
}

/* Effet de pulsation pour les éléments décoratifs */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
        transform: scale(1.1);
    }
}

.bg-secondary-color {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Responsive pour le hero avec logo */
@media (max-width: 1024px) {
    .hero-section .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-logo-container .logo-card {
        max-width: 350px;
        margin: 0 auto;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-logo-container .logo-card {
        max-width: 280px;
        padding: 1.5rem;
    }
    
    .hero-decorative {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-buttons a {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 85vh;
        padding: 1.5rem 0;
    }
    
    .hero-logo-container .logo-card {
        max-width: 240px;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.4;
    }
    
    .hero-buttons a {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    /* Slogan responsive */
    .hero-title .text-3xl {
        font-size: 1.5rem !important;
    }
    
    .hero-title .md\\:text-4xl {
        font-size: 1.75rem !important;
    }
}

/* ===== RESPONSIVE DESIGN GLOBAL ===== */

/* Navigation responsive */
@media (max-width: 1024px) {
    .navbar-custom {
        padding: 0.75rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navigation mobile */
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
        background: none;
        color: var(--primary-color);
    }
    
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }
    
    /* Sections padding mobile */
    .section-padding {
        padding: 3rem 0 !important;
    }
    
    /* Titres responsive */
    .section-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    /* Grilles responsive */
    .grid-cols-1.md\\:grid-cols-2,
    .grid-cols-1.md\\:grid-cols-3,
    .grid-cols-1.lg\\:grid-cols-3,
    .grid-cols-1.lg\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Cards responsive */
    .card-custom {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    /* Boutons responsive */
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-outline-primary-custom {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Texte responsive */
    p, .text-lg {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    .text-xl {
        font-size: 1.1rem !important;
    }
    
    /* Footer responsive */
    .footer-custom .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Très petits écrans */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .section-padding {
        padding: 2rem 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .card-custom {
        padding: 1rem !important;
        margin-bottom: 0.75rem;
    }
    
    /* Espacement réduit */
    .gap-8 {
        gap: 1rem !important;
    }
    
    .gap-6 {
        gap: 0.75rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-12 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Text très petit écran */
    .text-sm {
        font-size: 0.8rem !important;
    }
    
    p {
        font-size: 0.9rem !important;
    }
}
