/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #002f5f;
  --secondary: #004a8f;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --text: #333;
  --primary-light: #60a5fa;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header et Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white !important;
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 1rem 0;
}

.header.scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  padding: 6rem 2rem 2rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin-bottom: 1.5rem;
}

.mobile-nav a {
  display: block;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  margin: 0;
  display: block;
  order: 1;
}

.dropdown-menu li:nth-child(1) { order: 1; } /* Conformité */
.dropdown-menu li:nth-child(2) { order: 2; } /* Développement */
.dropdown-menu li:nth-child(3) { order: 3; } /* Formation */

.dropdown-menu a {
  display: block;
  padding: 0.3rem 1.5rem;
  color: var(--primary);
  font-size: 0.9rem;
  white-space: nowrap;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.dropdown-menu a:hover {
  background-color: var(--light);
  border-left-color: var(--secondary);
  padding-left: 2rem;
}

.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-menu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: block;
}

.mobile-dropdown-menu li {
  margin-bottom: 0.5rem;
}

.mobile-dropdown-menu a {
  font-size: 1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('images/grc-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  padding: 8rem 0 5rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 47, 95, 0.9), rgba(0, 47, 95, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  color: white;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.hero-text h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: white;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: white;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: white;
}

.expertise-line {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 1.5rem;
}

.expertise-description {
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.services-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-height: none;
  overflow: visible;
  position: relative;
}

.services-card h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  text-align: left;
  position: relative;
  padding-bottom: 0.5rem;
}

.services-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: white;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
}

.services-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: white;
}

.services-list li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.services-list li a:hover {
  color: #60a5fa;
}

.about-section, .commitment-section {
  margin-top: 0.5rem;
}

.about-content h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

.about-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.commitment-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.commitment-list li {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.1rem;
}

.commitment-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: white;
}

/* Section Services */
.services {
  position: relative;
  padding: 3.5rem 0;
  background-image: url('images/grc-bg-old.png');
  background-size: cover;
  background-position: center;
  color: white;
}

.services-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 47, 95, 0.9), rgba(0, 47, 95, 0.7));
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.section-title h2 {
  font-size: 2.5rem;
  color: white;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

.grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-icon img {
  width: 48px;
  height: 48px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.service-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Media Queries */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1.8fr 1fr;
  }

  .services-card {
    max-height: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p,
  .services-list li {
    font-size: 1rem;
  }

  .services-card {
    padding: 1.2rem;
    max-height: none;
  }

  .services-card h2 {
    font-size: 1.3rem;
  }

  .services-list li {
    font-size: 0.9rem;
  }

  .about-content h2 {
    font-size: 1.8rem;
  }
}

/* Section GRC */
.grc {
  padding: 3.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.grc .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.grc .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grc-item {
  margin-bottom: 2rem;
}

.grc-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 47, 95, 0.08);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s;
  border-left: 4px solid var(--primary);
  margin-bottom: 2rem;
}

.grc-card:hover {
  transform: translateY(-5px);
}

.grc-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.grc-card h4 {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.grc-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.grc-list {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
  list-style: none;
}

.grc-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--gray);
  position: relative;
  padding-left: 1rem;
}

.grc-list li::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: 0;
}

.grc-image-small {
  margin: 1rem 0;
  text-align: center;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grc-image-small img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 47, 95, 0.1);
}

.grc-card .contact-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  margin-top: 1rem;
}

.grc-card .contact-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .grc-card {
    height: calc(100% - 2rem);
  }
  
  .grc-item {
    margin-bottom: 0;
  }
}

/* Section Development */
.development {
  padding: 3.5rem 1rem;
  background-color: var(--light);
}

.development .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.development .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.dev-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.dev-text {
  flex: 1;
}

.dev-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  max-width: 600px;
}

.dev-features {
  margin: 2rem 0;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-icon {
  background-color: rgba(0, 47, 95, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  line-height: 1.4;
}

.feature-text p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.dev-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 47, 95, 0.1);
  max-height: 400px;
  object-fit: cover;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  text-decoration: none;
  margin-top: 1rem;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  .dev-content {
    flex-direction: row;
  }
  
  .dev-text {
    padding-right: 2rem;
  }
}

/* Styles des titres */
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  position: relative;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Media Queries pour les titres */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }
}

/* Section Équipe */
.team-section {
  color: white;
  padding: 5rem 0;
  background: linear-gradient(to right, rgba(0, 47, 95, 0.9), rgba(0, 47, 95, 0.7));
}

.team-section h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.team-section h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.team-section p {
  color: white;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.team-list {
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.team-list li {
  color: white;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.team-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: white;
}

@media (max-width: 768px) {
  .team-section h2 {
    font-size: 2rem;
  }

  .team-section h3 {
    font-size: 1.5rem;
  }

  .team-section p,
  .team-list {
    font-size: 1rem;
  }
}

/* Section Formation */
.formation {
  padding: 3.5rem 1rem;
  position: relative;
  overflow: hidden;
  background-color: var(--light);
}

.formation .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.formation .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.formation-item {
  margin-bottom: 2rem;
}

.formation-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 47, 95, 0.08);
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s;
  border-left: 4px solid var(--primary);
}

.formation-card:hover {
  transform: translateY(-5px);
}

.formation-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.formation-card h4 {
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.formation-list {
  margin: 1rem 0 0;
  padding-left: 1.5rem;
}

.formation-list li {
  margin-bottom: 0.75rem;
  position: relative;
}

.formation-list li::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: -1rem;
}

.formation-image-small {
  margin: 1rem 0;
  text-align: center;
}

.formation-image-small img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 47, 95, 0.1);
  max-height: 250px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .formation-card {
    height: calc(100% - 2rem);
  }
  
  .formation-item {
    margin-bottom: 0;
  }
}

/* Section Témoignages */
.testimonials {
  padding: 3.5rem 1rem;
  background-color: var(--light);
}

.testimonials .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.testimonials .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.testimonial-card {
  perspective: 1000px;
  height: 420px;
  margin-bottom: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 47, 95, 0.1);
  width: 100%;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.testimonial-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.card-front {
  background-color: white;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 1.5rem;
}

.card-back {
  background-color: var(--primary);
  color: white;
  transform: rotateY(180deg);
  padding: 1.5rem;
}

.testimonial-content {
  overflow-y: auto;
  padding-right: 0.5rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0, 47, 95, 0.1);
  background-color: white;
  padding: 2px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-info h4 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-info p {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.back-content {
  height: 100%;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.back-content h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
  text-align: center;
}

.back-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.back-content li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.4;
}

.back-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(350px, 1fr));
  }
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: minmax(300px, 1fr);
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    height: 500px;
  }
}

@media (max-width: 400px) {
  .testimonial-card {
    height: 520px;
  }
}

/* Section Contact */
.contact {
  padding: 3.5rem 1rem;
  background-color: var(--light);
}

.contact .section-title h2 {
  font-size: 2.5rem;
  color: var(--primary) !important;
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.contact .section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary) !important;
  border-radius: 2px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-form {
  flex: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: flex;
  gap: 2rem;
}

.form-group {
  flex: 1;
}

.input-wrapper {
  position: relative;
}

input, textarea {
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}

label {
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--gray);
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gray-light);
  transition: all 0.3s ease;
}

input:focus + label,
input:valid + label,
textarea:focus + label,
textarea:valid + label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
}

input:focus ~ .input-line,
textarea:focus ~ .input-line {
  background-color: var(--primary);
  height: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--primary), #2c5282);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn:hover {
  background: linear-gradient(45deg, #2c5282, var(--primary));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 47, 95, 0.2);
}

.btn:hover::before {
  left: 100%;
}

.btn svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover svg {
  transform: rotate(360deg) translateX(4px);
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.form-message.error {
  background-color: #fee2e2;
  color: #dc2626;
}

.contact-info {
  flex: 1;
}

.info-card {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 47, 95, 0.08);
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.info-card p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .icon-wrapper {
  background-color: #60a5fa;
  color: white;
  transform: translateY(-3px);
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.contact-item p {
  margin-bottom: 0;
  color: var(--gray);
}

.contact-item p a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item p a:hover {
  color: var(--primary);
}

.social-links h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  background-color: #60a5fa;
  color: white;
}

@media (min-width: 992px) {
  .contact-content {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }
}

.select-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

select {
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

.select-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gray-light);
  transition: all 0.3s ease;
}

select:focus + .select-line {
  background-color: var(--primary);
  height: 2px;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary);
  pointer-events: none;
}

.honeypot {
  display: none;
}

input[type="tel"] {
  width: 100%;
  padding: 1rem 0;
  font-size: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}

input[type="tel"]::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

.recaptcha-wrapper {
  margin: 1rem 0;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.form-group:last-child {
  margin-top: 0;
}

/* Styles du footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem; /* Ajusté pour correspondre au padding du footer Astro */
}

.footer-content {
    display: flex; /* Changé de grid à flex pour correspondre à Astro */
    flex-direction: column; /* Ajouté pour correspondre à Astro */
    align-items: center; /* Ajouté pour centrer les éléments */
    gap: 2rem;
    margin-bottom: 2rem; /* Ajouté pour l'espace au-dessus du footer-bottom */
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Ajouté pour rendre le logo blanc */
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap; /* Ajouté pour le responsive */
    justify-content: center; /* Ajouté pour centrer les éléments */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem; /* Ajusté pour l'espacement entre les liens */
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem; /* Ajusté pour correspondre à Astro */
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--gray-light);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1); /* Ajusté pour correspondre à Astro */
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Ajusté pour correspondre à Astro */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem; /* Ajusté pour correspondre à Astro */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem; /* Ajusté pour correspondre à Astro */
    color: rgba(255, 255, 255, 0.7); /* Ajusté pour correspondre à Astro */
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Revenir à row pour les grands écrans */
        justify-content: space-between;
        align-items: center;
    }
}

/* Styles pour le menu déroulant du footer */
.footer-dropdown {
    position: relative;
}

.footer-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.footer-dropdown:hover .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.footer-dropdown-menu li {
    margin: 0;
    display: block;
    order: 1; /* Assure l'ordre correct des éléments */
}

.footer-dropdown-menu li:nth-child(1) { order: 1; } /* Conformité */
.footer-dropdown-menu li:nth-child(2) { order: 2; } /* Développement */
.footer-dropdown-menu li:nth-child(3) { order: 3; } /* Formation */

.footer-dropdown-menu a {
    display: block;
    padding: 0.3rem 1.5rem;
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.footer-dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary);
    padding-left: 2rem;
} 