/* Variables et styles de base */
:root {
  /* Couleurs principales */
  --main: #1B4B53;         /* Bleu canard profond */
  --accent: #0D8287;       /* Bleu-vert intense */
  --accent2: #0C8388;      /* Variation du bleu-vert */
  --secondary: #48ABB0;     /* Bleu-vert clair */
  --green-grey: #2F6464;    /* Vert-gris */
  --highlight: #FFB200;     /* Jaune or pour les accents */
  --highlight-light: #FFD700; /* Jaune or clair */
  --white: #FFFFFF;         /* Blanc pur */
  --offwhite: #F8F9FA;      /* Blanc cassé pour les fonds */
  --light-grey: #E9ECEF;    /* Gris très clair */
  --medium-grey: #CED4DA;   /* Gris moyen */
  --dark-grey: #495057;     /* Gris foncé */
  --text: #333333;          /* Texte principal */
  --text-light: #6C757D;    /* Texte secondaire */
  --success: #28A745;       /* Couleur de succès */
  --error: #DC3545;         /* Couleur d'erreur */
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section:nth-child(even):not(.hero) {
  background: var(--offwhite);
}

.tech-data.section {
  background: var(--secondary);
  color: var(--main);
  padding-top: 40px; /* Maintien du padding haut existant ou ajusté */
  padding-bottom: 40px; /* Ajout/Ajustement du padding bas pour l'espacement */
}

.stats.section {
  background: var(--secondary);
  color: var(--main);
}

/* Section headers */
.section-header {
  margin-bottom: 30px;
}

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

.section-subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-description-1 {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-description {
    color: whitesmoke;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-description-3 {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-description-4 {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  color: var(--main);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 { 
  font-size: 3.5rem; 
  line-height: 1.1;
}

h2 { 
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--highlight);
  border-radius: 2px;
}

h3 { 
  font-size: 1.75rem; 
  color: var(--accent);
  margin-bottom: 1.25rem;
}

h4 { 
  font-size: 1.5rem; 
  color: var(--green-grey);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
  text-decoration: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--highlight);
  margin: 20px auto 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--main);
  color: var(--white);
  padding: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(0) !important; /* Assure que le header reste toujours visible */
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(27, 75, 83, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--highlight);
}

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--highlight);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--highlight);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - 70px);
  background: var(--main);
  z-index: 1001; /* Au-dessus de l'overlay */
  overflow-y: auto;
  padding: 20px 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  margin: 0;
  border: none;
  border-radius: 0;
}

.mobile-menu.active {
  right: 0;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 15px 25px;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--highlight);
  padding-left: 30px;
}

.mobile-cta {
  margin: 20px 25px 0;
  text-align: center;
  padding: 12px 25px;
  width: auto;
  align-self: center;
}

/* Bouton burger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: all 0.3s ease;
  position: relative;
  gap: 4px;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: all 0.3s ease;
  position: relative;
}

/* Animation du bouton burger vers croix */
.mobile-menu-toggle.active {
  gap: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--white);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--white);
}

/* Overlay pour le menu mobile */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000; /* En dessous du menu mais au-dessus du contenu */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  will-change: opacity;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0, -7px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--main);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links li {
  margin: 20px 0;
}

.mobile-nav-link {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-link:hover {
  color: var(--highlight);
}

.mobile-cta {
  margin-top: 30px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 130, 135, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--highlight);
  margin: 20px auto 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--main) 0%, var(--main) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 140px 0 80px;
  margin-top: 80px;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 400px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #f8f9fa;
  margin: 0 auto;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-portrait:hover {
  transform: scale(1.03);
}

.highlight {
  color: var(--highlight);
  font-weight: 600;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(27, 75, 83, 0.1) 0%, rgba(13, 130, 135, 0.2) 100%),
    url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle fill="%23ffffff" opacity="0.05" cx="30" cy="30" r="2"/></g></svg>');
  opacity: 0.4;
}

.hero .container {
  /* padding-top: 30px;
  /* padding-bottom: 30px; */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 25px;
  color: var(--white);
}

.hero-text h1 .highlight {
  color: var(--highlight);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Expertise grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Force 3 colonnes sur les écrans desktop moyens et grands */
@media (min-width: 993px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.expertise-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.expertise-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.expertise-title {
  font-weight: 700;
  color: var(--main);
  margin-bottom: 15px;
}

.expertise-desc {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.5rem;
}

.card-link:hover {
  color: var(--accent2);
  transform: translateX(5px);
}

/* Stats section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--main);
  font-weight: 500;
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tech-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.tech-item:hover {
  background: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.tech-item h3 {
  font-weight: 600;
  color: var(--main);
  margin-bottom: 10px;
}

.tech-item p {
  color: var(--text-light);
  line-height: 1.5;
}

/* Contact section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 1.5rem;
  padding: 10px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main);
  margin-bottom: 5px;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent2);
}

/* Contact form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--light-grey);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 130, 135, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.form-message--success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message--error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--error);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Footer */
.footer {
  background: var(--main);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--highlight);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--highlight);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--accent2);
  transform: translateY(-3px);
}

/* ===== ABOUT PAGE ===== */
.page-header {
  background: linear-gradient(135deg, var(--main) 0%, var(--main) 50%, var(--accent) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
}

.page-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
}

.about-section {
  padding: 100px 0;
}

.about-content {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.about-text h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 2rem;
  font-weight: 500;
}

.about-details p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.experience-item,
.values-item {
  margin: 3rem 0;
}

.experience-item h4,
.values-item h4 {
  font-size: 1.5rem;
  color: var(--main);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.experience-item h4:after,
.values-item h4:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.experience-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-item li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.experience-item li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: var(--light);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.value-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}

.value-card h5 {
  font-size: 1.25rem;
  color: var(--main);
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.about-image {
  position: relative;
  text-align: center;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.about-image:hover .profile-image {
  transform: scale(1.02);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: white;
  padding: 1.5rem;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.experience-badge .text {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.2;
  max-width: 80px;
}

.cta-about {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

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

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.testimonial-content p {
  font-style: italic;
  color: var(--dark-gray);
  line-height: 1.8;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-content p:before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

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

.author-info h5 {
  margin: 0;
  color: var(--main);
  font-size: 1.1rem;
}

.author-info span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--main) 0%, var(--accent) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.cta-content p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta-buttons .btn i {
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */

/* ==========================================================================
   Pages légales (mentions légales, politique de confidentialité)
   ========================================================================== */

.main-content {
  padding-top: 100px; /* Compenser la hauteur du header fixe */
  min-height: calc(100vh - 200px);
}

.legal-page {
  padding: 60px 0;
  background: var(--offwhite);
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--main);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-description {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--main);
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}

.legal-section p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text);
}

.legal-section ul {
  margin: 15px 0;
  padding-left: 30px;
}

.legal-section li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--text);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  transition: var(--transition);
}

.legal-section a:hover {
  color: var(--main);
}

.legal-section strong {
  color: var(--main);
  font-weight: 600;
}

/* Footer avec état actif pour les liens légaux */
.footer-links a.active {
  color: var(--highlight);
  font-weight: 600;
}

/* Responsive pour les pages légales */
@media (max-width: 768px) {
  .main-content {
    padding-top: 80px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .legal-content {
    padding: 30px 20px;
    margin: 0 20px;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
  
  .legal-section ul {
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .legal-content {
    margin: 0 10px;
    padding: 25px 15px;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }
  
  .page-description {
    font-size: 1.1rem;
  }
}

/*--------------------------------------------------------------
# Projects Section
--------------------------------------------------------------*/
.projects-grid {
  display: flex; /* Changé de grid à flex */
  flex-wrap: wrap; /* Permet le retour à la ligne des éléments */
  justify-content: center; /* Centre les éléments sur la ligne, y compris la dernière ligne si incomplète */
  gap: 30px; /* Espace entre les cartes */
  margin-top: 40px;
}

.project-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Calcul pour 3 colonnes avec un gap de 30px: (100% - 2 * 30px) / 3 */
  flex-basis: calc((100% - 60px) / 3);
  min-width: calc((100% - 60px) / 3); /* Empêche le rétrécissement excessif */
  box-sizing: border-box; /* Assure que padding et border sont inclus dans la largeur/hauteur */
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-logo {
  margin-bottom: 20px;
  height: 60px; /* Fixed height for logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo img {
  max-height: 100%;
  max-width: 150px; /* Adjust as needed, ensures logo isn't too wide */
  object-fit: contain;
}

.project-content {
  flex-grow: 1; /* Allows content to take available space */
}

.project-title {
  font-size: 1.4rem;
  color: var(--main);
  margin-bottom: 10px;
  font-weight: 700;
}

.project-desc {
  line-height: 1.6;
  color: #6c757d;
}

/* FAQ Section */
.faq {
  background-color: var(--offwhite);
  margin-bottom: 20px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  text-align: left;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--light-grey);
  color: var(--accent);
}

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  color: var(--accent);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: var(--white);
  padding: 0 25px;
}

.faq-answer p {
  padding: 0 0 20px;
  margin: 0;
  line-height: 1.7;
  color: var(--dark-grey);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Ajustez selon la longueur de votre contenu le plus long */
  transition: max-height 0.5s ease-in;
}

/* Animation pour l'ouverture/fermeture en douceur */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-answer {
  animation: fadeIn 0.3s ease-out;
}

/*--------------------------------------------------------------
# Approach Section
--------------------------------------------------------------*/
.approach.section {
  background-color: var(--accent-light);
  padding-top: 20px; /* 80px original + 20px */
  padding-bottom: 20px; /* 80px original + 20px */
}

.approach-content {
  max-width: 800px;
  margin: 0 auto; /* Center the content block */
  text-align: center; /* Center the text and button within the block */
}

.approach-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: 20px;
  margin-left: 10px;
  margin-right: 10px;
}

.about-description p {
  color: #6c757d;
}

.approach-text {
  line-height: 1.7;
  color: #6c757d;
  margin-bottom: 30px;
  margin-left: 10px;
  margin-right: 10px;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about.section {
  padding-top: 0px;
  padding-bottom: 0px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto; /* Center the content block */
  text-align: center; /* Center the text and button within the block */
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--main);
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 30px;
}
