:root{
  --brand:#0a192f;
  --secondary:#1e3a8a;
  --accent:#3b82f6;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --white:#ffffff;
  --muted:#6c757d;
  --bg-soft:#f8fafc;
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
  font-family: 'Inter', 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background:var(--bg-soft);
  color:var(--brand);
  line-height: 1.6;
}

/* Logo SVG intégré */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 45px;
  height: 45px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .logo-svg {
  transform: rotate(5deg) scale(1.05);
}

.navbar{
  background:rgba(10,25,47,0.95)!important;
  backdrop-filter:blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  background:rgba(10,25,47,0.98)!important;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: white !important;
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.hero {
  padding: 10rem 0 8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="2" fill="%23ffffff" opacity="0.1"/></svg>');
  opacity: 0.3;
  animation: floatPattern 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 1s ease-out;
}

.hero p {
  font-size: 1.35rem;
  max-width: 700px;
  margin: auto;
  opacity: 0.95;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-buttons {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero-buttons .btn {
  animation: pulse 2s ease-in-out infinite;
}

.hero-buttons .btn:hover {
  animation: none;
  transform: translateY(-3px);
}

/* Animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPattern {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-hero {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-hero-primary {
  background: rgba(255,255,255,0.95);
  color: var(--brand);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  background: white;
  color: var(--brand);
}

.btn-hero-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

.section-title h2{
  font-weight:700;
  color:var(--brand);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p{
  color:var(--muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.py-6 {
  padding: 6rem 0;
}

.card-glass{
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:25px;
  box-shadow:var(--shadow-soft);
  transition:all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.card-glass:hover {
  transform:translateY(-8px);
  box-shadow:var(--shadow-hover);
}

.card-glass:hover::before {
  left: 100%;
}

.feature-icon{
  width:80px;
  height:80px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background: var(--gradient-primary);
  color:var(--white);
  font-size:32px;
  margin:auto;
  margin-bottom:20px;
  position: relative;
  overflow: hidden;
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.card-glass:hover .feature-icon::after {
  width: 100px;
  height: 100px;
}

.portfolio-item{
  position:relative;
  overflow:hidden;
  border-radius:25px;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  transition: all 0.4s ease;
}
.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.portfolio-item:hover::before {
  opacity: 0.1;
}
.portfolio-item img{
  transition:transform 0.5s ease;
  width:100%;
  height: 280px;
  object-fit: cover;
}
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.portfolio-item:hover img{
  transform:scale(1.05);
}
.portfolio-overlay{
  position:absolute;
  inset:0;
  background:rgba(10,25,47,0.9);  /* Le fond est maintenant visible */
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  opacity:1;  /* Changé de 0 à 1 pour être toujours visible */
  transition:all 0.4s ease;
  z-index: 2;
}
.portfolio-item:hover .portfolio-overlay{
  opacity:1;  /* Reste à 1 au survol */
  background:rgba(10,25,47,0.95);  /* Optionnel: légèrement plus opaque au survol */
}
.portfolio-overlay h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.visit-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: #ffd700;
  font-size: 14px;
}

.team-card{
  background:#fff;
  border-radius:25px;
  box-shadow:var(--shadow-soft);
  padding:30px 25px;
  text-align:center;
  transition:all 0.4s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.team-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-hover);
}

.team-card img{
  border-radius:50%;
  width:140px;
  height:140px;
  object-fit:cover;
  margin-bottom:20px;
  border: 4px solid var(--accent);
  transition: all 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.team-card h6 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.2);
}

.form-control {
  border-radius: 15px;
  border: 2px solid #e5e7eb;
  padding: 12px 20px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.btn-submit {
  background: var(--gradient-primary);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.contact-info {
  background: white;
  padding: 3rem;
  border-radius: 25px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Uniformiser les icônes sur mobile */
.contact-info-item i {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
  }

  .contact-info-item i {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    font-size: 18px;
    flex-shrink: 0; /* Empêche l'icône de rétrécir */
  }

  .contact-info-item > div {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .contact-info-item i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 16px;
  }
}

footer{
  background: var(--gradient-primary);
  color:var(--white);
  padding:3rem 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="20" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="20" cy="80" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="80" r="2" fill="%23ffffff" opacity="0.05"/></svg>');
}

footer .container {
  position: relative;
  z-index: 2;
}

footer a{
  color:#e0e7ff;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer a:hover{
  color:#fff;
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.floating-whatsapp{
  position:fixed;
  bottom:25px;
  right:25px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color:#fff;
  border-radius:20px;
  width:65px;
  height:65px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  box-shadow:0 8px 30px rgba(37, 211, 102, 0.4);
  z-index:1000;
  transition:all 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover{
  transform:scale(1.1) rotate(5deg);
  color:#fff;
  box-shadow:0 12px 40px rgba(37, 211, 102, 0.6);
}

/* Animations d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-hero { min-width: 200px; }
  .section-title h2 { font-size: 2rem; }
  .py-6 { padding: 4rem 0; }
  .contact-form, .contact-info { padding: 2rem; }
}
