/* Styles additionnels pour les images et le contenu */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cyber-security-lock.jpeg');
  background-size: cover;
  background-position: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon i {
  font-size: 3rem;
}

.formation-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Animation pour les éléments au scroll */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* Délai pour les animations en cascade */
.animate:nth-child(2) {
  transition-delay: 0.2s;
}

.animate:nth-child(3) {
  transition-delay: 0.4s;
}

.animate:nth-child(4) {
  transition-delay: 0.6s;
}

.animate:nth-child(5) {
  transition-delay: 0.8s;
}

.animate:nth-child(6) {
  transition-delay: 1s;
}

/* Style pour la section citation */
.quote-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.quote-content {
  max-width: 800px;
  margin: 0 auto;
}

.quote-content h3 {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: white;
}

.quote-content p {
  font-size: 1.2rem;
}

/* Styles pour les formulaires avec validation */
.form-control.error {
  border-color: #dc3545;
}

.form-message {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.form-message.success {
  display: block;
  color: #28a745;
}

.form-message.error {
  display: block;
  color: #dc3545;
}

/* Styles pour les tooltips */
.tooltip {
  position: absolute;
  background-color: var(--dark-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tooltip:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--dark-color);
}

/* Styles pour les statistiques */
.stats {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.counter {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Styles pour les badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.badge-accent {
  background-color: var(--accent-color);
  color: white;
}

/* Styles pour les cartes avec hover */
.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  margin-bottom: 1.5rem;
}

/* Styles pour les boutons flottants */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Styles pour le mode sombre */
.dark-mode {
  --primary-color: #3a86ff;
  --secondary-color: #38b000;
  --accent-color: #ff9e00;
  --dark-color: #121212;
  --light-color: #1e1e1e;
  --gray-color: #888888;
  
  background-color: var(--dark-color);
  color: #e0e0e0;
}

.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4, 
.dark-mode h5, 
.dark-mode h6 {
  color: #ffffff;
}

.dark-mode .card,
.dark-mode .service-card,
.dark-mode .formation-card,
.dark-mode .team-member,
.dark-mode .contact-form {
  background-color: #2a2a2a;
}

.dark-mode .form-control {
  background-color: #333333;
  border-color: #444444;
  color: #e0e0e0;
}

.dark-mode .form-control::placeholder {
  color: #888888;
}

.dark-mode header {
  background-color: rgba(30, 30, 30, 0.95);
}

.dark-mode header.scrolled {
  background-color: rgba(30, 30, 30, 0.98);
}

.dark-mode .nav-links a {
  color: #e0e0e0;
}

.dark-mode .hamburger span {
  background-color: #e0e0e0;
}

/* Styles pour les préférences d'accessibilité */
.high-contrast {
  --primary-color: #0066cc;
  --secondary-color: #00aa00;
  --accent-color: #ff6600;
  --dark-color: #000000;
  --light-color: #ffffff;
  --gray-color: #444444;
}

.large-text {
  font-size: 120%;
}

.large-text h1 {
  font-size: 4rem;
}

.large-text h2 {
  font-size: 3rem;
}

.large-text h3 {
  font-size: 2.1rem;
}

.large-text p {
  font-size: 1.32rem;
}

.large-text .btn {
  font-size: 1.2rem;
}

/* Styles pour les animations de chargement */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Styles pour les notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  background-color: white;
  color: var(--dark-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--secondary-color);
}

.notification.error {
  border-left: 4px solid #dc3545;
}

.notification.info {
  border-left: 4px solid var(--primary-color);
}

.notification-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Styles pour les médias */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .counter {
    font-size: 2rem;
  }
  
  .quote-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Styles pour la page About */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/cyber-security-lock.jpeg');
  background-size: cover;
  background-position: center;
  padding: 8rem 0 4rem;
  text-align: center;
  color: white;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.about-detailed {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.about-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.about-intro h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.about-intro .lead {
  font-size: 1.3rem;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto;
}

.about-content-detailed {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text-detailed {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text-detailed p {
  margin-bottom: 1.5rem;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.expertise-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 2rem;
}

.expertise-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-image-detailed img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-section {
  padding: 4rem 0;
  background-color: white;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.mission-content h3 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--gray-color);
}

.expertise-section {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.expertise-section h3 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.expertise-section > p {
  text-align: center;
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--gray-color);
  line-height: 1.8;
}

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

.benefit-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.benefit-item h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.benefit-item p {
  color: var(--gray-color);
  line-height: 1.6;
}

.testimonials-section {
  padding: 4rem 0;
  background-color: var(--dark-color);
  color: white;
}

.testimonials-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: white;
}

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

.testimonial-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
}

.team-detailed {
  padding: 4rem 0;
  background-color: white;
}

.team-detailed h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

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

.team-member-detailed {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.team-member-detailed:hover {
  transform: translateY(-5px);
}

.member-image-detailed {
  height: 250px;
  overflow: hidden;
}

.member-image-detailed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info-detailed {
  padding: 2rem;
  text-align: center;
}

.member-info-detailed h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.member-position-detailed {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.member-info-detailed p {
  color: var(--gray-color);
  line-height: 1.6;
}

.contact-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
}

.cta-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cta-highlight {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 !important;
  opacity: 1 !important;
}

.about-actions {
  margin-top: 2rem;
}

.about-actions .btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 0;
}

.about-actions .btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Responsive pour la page About */
@media (max-width: 992px) {
  .about-content-detailed {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid-detailed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 6rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .about-intro h2,
  .mission-content h3,
  .expertise-section h3,
  .testimonials-section h2,
  .team-detailed h2 {
    font-size: 2rem;
  }

  .benefits-grid,
  .testimonials-grid,
  .team-grid-detailed {
    grid-template-columns: 1fr;
  }

  .cta-content h3 {
    font-size: 1.8rem;
  }
}
