/*
Theme Name: Cyber-Soft
Theme URI: https://cyber-soft.fr
Author: Emmanuel Drouet
Author URI: https://cyber-soft.fr
Description: Thème WordPress professionnel pour Emmanuel Drouet, expert en cybersécurité, automatisation de logiciels et informatique.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cybersoft
Tags: cybersécurité, automatisation, informatique, responsive
*/

/* Variables pour les couleurs principales */
:root {
  --primary-color: #0056b3; /* Bleu principal */
  --secondary-color: #003366; /* Bleu foncé */
  --accent-color: #00a8e8; /* Bleu clair pour les accents */
  --dark-color: #1a1a1a; /* Presque noir */
  --light-color: #f8f9fa; /* Blanc cassé */
  --gray-color: #6c757d; /* Gris pour le texte secondaire */
  --success-color: #28a745; /* Vert pour les messages de succès */
  --danger-color: #dc3545; /* Rouge pour les alertes */
}

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  background-color: var(--dark-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Header fixe lors du défilement */
.site-header.fixed {
  padding: 0.5rem 0;
  background-color: rgba(26, 26, 26, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* Animation de chargement de la page */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-loaded {
  opacity: 1;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  max-height: 60px;
  margin-right: 1rem;
}

.site-title {
  font-size: 1.8rem;
  margin: 0;
}

.site-title a {
  color: var(--light-color);
}

.site-description {
  color: var(--gray-color);
  margin: 0;
  font-size: 0.9rem;
}

/* Navigation */
.main-navigation {
  display: flex;
  justify-content: flex-end;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  position: relative;
  margin-left: 1.5rem;
  transition: all 0.3s ease;
}

.main-navigation a {
  color: var(--light-color);
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.main-navigation a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Effet de soulignement au survol */
.main-navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* Style pour l'élément actif */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
  color: var(--accent-color);
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current-menu-parent > a::after {
  width: 100%;
  background-color: var(--accent-color);
}

/* Styles pour les sous-menus */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dark-color);
  min-width: 220px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 4px;
  padding: 0.5rem 0;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInDown 0.4s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-navigation .sub-menu li {
  margin: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideInRight 0.3s ease forwards;
}

.main-navigation .sub-menu li:nth-child(1) { animation-delay: 0.1s; }
.main-navigation .sub-menu li:nth-child(2) { animation-delay: 0.2s; }
.main-navigation .sub-menu li:nth-child(3) { animation-delay: 0.3s; }
.main-navigation .sub-menu li:nth-child(4) { animation-delay: 0.4s; }
.main-navigation .sub-menu li:nth-child(5) { animation-delay: 0.5s; }

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

.main-navigation .sub-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.main-navigation .sub-menu a:hover {
  background-color: var(--primary-color);
  color: white;
  padding-left: 1.5rem;
}

.main-navigation .sub-menu a::after {
  display: none;
}

.main-navigation .menu-item-has-children > a:after {
  content: '\25BC';
  font-size: 0.7em;
  margin-left: 0.5em;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.main-navigation .menu-item-has-children:hover > a:after {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 4px;
  outline: none;
}

/* Animation du bouton hamburger */
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--light-color);
  transition: all 0.3s ease;
  left: 8px;
}

.menu-toggle::before {
  top: 14px;
  box-shadow: 0 8px 0 var(--light-color);
}

.menu-toggle::after {
  bottom: 14px;
}

.menu-toggle.active::before {
  top: 19px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 transparent;
}

.menu-toggle.active::after {
  bottom: 19px;
  transform: rotate(-45deg);
}

/* Styles responsives pour la navigation */
@media screen and (max-width: 992px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .main-navigation {
    width: 100%;
    margin-top: 1rem;
  }
  
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .menu-toggle:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
  }
  
  .main-navigation ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .main-navigation.toggled ul {
    display: flex;
    max-height: 1000px;
    animation: slideDown 0.5s ease forwards;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .main-navigation li {
    margin-left: 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .main-navigation li:nth-child(1) { animation-delay: 0.1s; }
  .main-navigation li:nth-child(2) { animation-delay: 0.15s; }
  .main-navigation li:nth-child(3) { animation-delay: 0.2s; }
  .main-navigation li:nth-child(4) { animation-delay: 0.25s; }
  .main-navigation li:nth-child(5) { animation-delay: 0.3s; }
  .main-navigation li:nth-child(6) { animation-delay: 0.35s; }
  .main-navigation li:nth-child(7) { animation-delay: 0.4s; }
  .main-navigation li:nth-child(8) { animation-delay: 0.45s; }
  
  .main-navigation a::after {
    display: none;
  }
  
  .main-navigation .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    border-radius: 4px;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
  }
  
  .main-navigation .menu-item-has-children:hover > .sub-menu {
    display: none;
    animation: none;
  }
  
  .main-navigation .menu-item-has-children.active > .sub-menu {
    display: block;
    max-height: 500px;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
  }
  
  .main-navigation .menu-item-has-children > a:after {
    content: '\25BC';
    float: right;
    transition: transform 0.3s ease;
  }
  
  .main-navigation .menu-item-has-children.active > a:after {
    content: '\25BC';
    transform: rotate(180deg);
  }
  
  .main-navigation .sub-menu li {
    animation: none;
    opacity: 1;
    transform: none;
    border-bottom: none;
  }
  
  .main-navigation .sub-menu a:hover {
    background-color: transparent;
    padding-left: 1.5rem;
  }
}

/* Hero Section */
.hero-section {
  background-color: var(--dark-color);
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/cybersecurity-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-color);
  padding: 8rem 0;
  text-align: center;
}

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

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-color);
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--light-color);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services-section {
  padding: 5rem 0;
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.service-content {
  padding: 1.5rem;
}

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

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: #f5f7fa;
}

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

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--dark-color);
  color: var(--light-color);
}

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

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-position {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Blog Section */
.blog-section {
  padding: 5rem 0;
}

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

.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-thumbnail {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.blog-date {
  margin-right: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 600;
  color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: #f5f7fa;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.submit-button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: var(--accent-color);
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h3 {
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

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

.footer-widget li {
  margin-bottom: 0.75rem;
}

.footer-widget a {
  color: #aaa;
}

.footer-widget a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-color);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: #aaa;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    padding: 1rem;
  }
  
  .main-navigation.active ul {
    display: flex;
  }
  
  .main-navigation li {
    margin: 0 0 1rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

/* RGPD Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  margin-bottom: 1rem;
}

.cookie-details {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-accept,
.cookie-decline,
.cookie-settings {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cookie-accept {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.cookie-accept:hover {
  background-color: var(--secondary-color);
}

.cookie-settings {
  background-color: var(--accent-color);
  color: var(--light-color);
}

.cookie-settings:hover {
  background-color: var(--primary-color);
}

.cookie-decline {
  background-color: var(--gray-color);
  color: var(--light-color);
}

.cookie-decline:hover {
  background-color: var(--dark-color);
}

/* Modal de paramètres des cookies */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background-color: var(--light-color);
  color: var(--dark-color);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-settings-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-color);
  transition: color 0.3s ease;
}

.cookie-settings-close:hover {
  color: var(--dark-color);
}

.cookie-settings-body {
  padding: 1rem;
}

.cookie-settings-options {
  margin-top: 1rem;
}

.cookie-option {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-option-header label {
  font-weight: 600;
  cursor: pointer;
}

.cookie-option-description {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin: 0;
}

.cookie-settings-footer {
  padding: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.cookie-settings-save,
.cookie-settings-accept-all {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cookie-settings-save {
  background-color: var(--gray-color);
  color: var(--light-color);
}

.cookie-settings-save:hover {
  background-color: var(--dark-color);
}

.cookie-settings-accept-all {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.cookie-settings-accept-all:hover {
  background-color: var(--secondary-color);
}
