/* Global Variables */
:root {
  /* Colors */
  --primary-dark: #1a1a2e;
  --primary: #16213e;
  --secondary: #0f3460;
  --accent-fuchsia: #ff0080;
  --accent-mint: #00ffd5;
  --accent-yellow: #f9ca24;
  --text-light: #ffffff;
  --text-dark: #16213e;
  --text-muted: #adb5bd;
  --bg-light: #f8f9fa;
  --bg-dark: #16213e;
  --bg-card: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  
  /* Font Size */
  --fs-xs: 0.75rem;   /* 12px */
  --fs-sm: 0.875rem;  /* 14px */
  --fs-base: 1rem;    /* 16px */
  --fs-md: 1.125rem;  /* 18px */
  --fs-lg: 1.25rem;   /* 20px */
  --fs-xl: 1.5rem;    /* 24px */
  --fs-2xl: 1.875rem; /* 30px */
  --fs-3xl: 2.25rem;  /* 36px */
  --fs-4xl: 3rem;     /* 48px */
  
  /* Font Weight */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Box Shadow */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.06);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: var(--fs-base);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-sm);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--primary);
}

h1 {
  font-size: var(--fs-3xl);
}

h2 {
  font-size: var(--fs-2xl);
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-fuchsia), var(--accent-mint));
  border-radius: var(--radius-full);
}

h3 {
  font-size: var(--fs-xl);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--accent-fuchsia);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-mint);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding:100px 0 !important;
}

/* Header Styles */
.site-header {
  background-color: var(--primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-small {
  width: 160px;
}

.logo-svg {
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-light);
  transition: var(--transition-normal);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links li a {
  color: var(--text-light);
  font-weight: var(--fw-medium);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-mint);
}

.nav-cta {
  background-color: var(--accent-fuchsia);
  color: var(--text-light) !important;
  padding: var(--space-xs) var(--space-md) !important;
  border-radius: var(--radius-full);
  transition: background-color var(--transition-normal) !important;
}

.nav-cta:hover {
  background-color: var(--accent-mint) !important;
  color: var(--text-dark) !important;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}



.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-content .logo-container {
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--text-light);
  line-height: 1.1;
  font-weight: var(--fw-bold);
}

.hero-content p {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
  color: var(--text-light);
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-fuchsia);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background-color: var(--accent-mint);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.hero-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.hero-image {
  flex: 0 0 45%;
  margin-left: auto;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
}

/* About Section */
.about-section {
  background-color: var(--bg-light);
  padding: var(--space-xl) 0;
}

.about-content {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-section {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--space-xl) 0;
}

.services-section h2 {
  color: var(--text-light);
  text-align: center;
}

.services-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-mint);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon.conformite {
  background-color: var(--accent-fuchsia);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z'%3E%3C/path%3E%3C/svg%3E");
  mask-size: 36px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 36px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.service-icon.audit-interne {
  background-color: var(--accent-mint);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z'%3E%3C/path%3E%3C/svg%3E");
  mask-size: 36px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 36px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.service-icon.analyse-risques {
  background-color: var(--accent-yellow);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'%3E%3C/path%3E%3C/svg%3E");
  mask-size: 36px;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: 36px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.service-card h3 {
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.service-link {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--accent-mint);
  font-weight: var(--fw-medium);
  transition: all var(--transition-fast);
}

.service-link:hover {
  transform: translateX(5px);
}

/* Advantages Section */
.advantages-section {
  background-color: var(--bg-light);
  padding: var(--space-xl) 0;
}

.advantages-section h2 {
  text-align: center;
}

.advantages-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.advantage-item {
  background-color: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition-normal);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.advantage-number {
  position: absolute;
  top: -15px;
  left: var(--space-md);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent-fuchsia);
  opacity: 0.2;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--space-xl) 0;
}

.testimonials-section h2 {
  color: var(--text-light);
  text-align: center;
}

.testimonials-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  flex: 1;
  min-width: 200px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

.quote {
  font-style: italic;
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: var(--space-md);
}

.quote::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -20px;
  font-size: 70px;
  color: var(--accent-mint);
  opacity: 0.3;
  font-family: serif;
}

.client-info {
  display: flex;
  flex-direction: column;
}

.client-name {
  font-weight: var(--fw-semibold);
  color: var(--accent-mint);
}

.client-position {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Contact Form Section */
.contact-section {
  background-color: var(--bg-light);
  padding: var(--space-xl) 0;
}

.contact-section h2 {
  text-align: center;
}

.contact-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.form-container {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  align-items: center;
}

.contact-form {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-card);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-image {
  flex: 1;
  display: none;
}

.form-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--fw-medium);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-fuchsia);
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.checkbox-group input {
  width: auto;
}

.checkbox-group label {
  margin-bottom: 0;
}

.submit-button {
  background-color: var(--accent-fuchsia);
  color: var(--text-light);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: none;
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 100%;
}

.submit-button:hover {
  background-color: var(--accent-mint);
  color: var(--text-dark);
}

/* Location Section */
.location-section {
  padding: var(--space-xl) 0;
  background-color: var(--primary);
  color: var(--text-light);
}

.location-section h2 {
  color: var(--text-light);
  text-align: center;
}

.location-section h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.location-container {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.contact-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.contact-item {
  margin-bottom: var(--space-md);
}

.contact-item h3 {
  color: var(--accent-mint);
  margin-bottom: var(--space-xs);
  font-size: var(--fs-md);
}

.map-container {
  flex: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-container iframe {
  border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-about {
  flex: 2;
  min-width: 200px;
}

.footer-about h3 {
  color: var(--text-light);
}

.footer-links {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
}
.legal-section h1{
    text-align: center;
}
.footer-nav, .footer-legal, .footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  color: var(--accent-mint);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-md);
}

.footer-links ul li {
  margin-bottom: var(--space-xs);
}

.footer-links ul li a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
  color: var(--accent-mint);
}

.copyright {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Cookie Consent */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  padding: var(--space-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  color: var(--text-light);
  flex: 1;
  min-width: 200px;
}

.cookie-button {
  background-color: var(--accent-mint);
  color: var(--text-dark);
  border: none;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: var(--fw-medium);
  transition: all var(--transition-normal);
}

.cookie-button:hover {
  background-color: var(--accent-fuchsia);
  color: var(--text-light);
}

/* Form Error Messages */
.form-errors {
  background-color: rgba(255, 0, 128, 0.1);
  border-left: 4px solid var(--accent-fuchsia);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.error-message {
  color: var(--accent-fuchsia);
  margin-bottom: 5px;
}

.error-message:last-child {
  margin-bottom: 0;
}

/* Ensure form elements show validity state */
.form-group input:invalid,
.form-group select:invalid {
  border-color: var(--accent-fuchsia);
}

/* Thank You Page Styles */
.thank-you-message {
  background-color: rgba(0, 255, 213, 0.1);
  border-left: 4px solid var(--accent-mint);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.error-thank-you-message {
  background-color: rgba(255, 0, 128, 0.1);
  border-left: 4px solid var(--accent-fuchsia);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-content .logo-container {
    margin: 0 auto var(--space-lg);
  }
  
  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .about-content {
    flex-direction: column-reverse;
  }
  
  .form-container {
    flex-direction: column;
  }
  .hero-content h1{
    font-size: 2rem;
  }
  .form-image {
    display: block;
    order: -1;
  }
  
  .location-container {
    flex-direction: column;
  }
  
  .map-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    flex-direction: column;
    background-color: var(--primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    gap: 0;
    padding-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
  }
  
  .nav-links li {
    margin: 0;
    width: 100%;
  }
  
  .nav-links li a {
    display: block;
    padding: var(--space-sm);
    width: 100%;
    border-radius: 0;
  }
  
  .menu-toggle:checked ~ .nav-links {
    left: 0;
  }
  
  .menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .advantages-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-slider {
    flex-direction: column;
  }
  
  section {
    padding: var(--space-md) 0;
  }
  
  h1 {
    font-size: var(--fs-2xl);
  }
  
  h2 {
    font-size: var(--fs-xl);
  }
} 