/* === BASE RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #2d5dd6;
}
a {
  text-decoration: none;
  color: inherit;
}


/* === NAVIGATION MENU === */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  align-items: center;
}
.site-nav li {
  position: relative;
}
.site-nav a {
  font-weight: bold;
  text-decoration: none;
  color: white;
  padding: 0.5rem 0;
  display: block;
}
.site-nav a:hover {
  text-decoration: underline;
}
.has-dropdown {
  position: relative;
}
.has-dropdown > a::after {
  content: " ▼";
  font-size: 0.7em;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 1001;
}
.has-dropdown:hover .dropdown {
  display: block;
}
.dropdown li {
  padding: 0;
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: #0077b6;
  font-size: 0.95rem;
  font-weight: 500;
}
.dropdown li a:hover {
  background-color: #f2f2f2;
  color: #005f8a;
}
.lang-select select {
  padding: 0.3rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* === TEAM PAGE – CARTE & ANIMATION === */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(to right, #81abe3, #3fc1e8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-row:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}
.team-row.reverse {
  flex-direction: row-reverse;
}
.team-photo {
  width: 240px;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-info h3 {
  font-size: 1.5rem;
  color: #0077b6;
  margin-bottom: 0.25rem;
}
.team-info p em {
  font-style: italic;
  color: #666;
}
.hover-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.5s ease;
  margin-top: 0.5rem;
  color: #333;
}
.team-row:hover .hover-details {
  max-height: 500px;
  opacity: 1;
  transform: translateX(0);
}
.btn-primary {
  color: #0077b6;
  font-weight: bold;
  margin-top: 0.5rem;
  text-decoration: none;
  display: inline-block;
  border: 1px solid #0077b6;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  background-color: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-primary:hover {
  background-color: #0077b6;
  color: #ffffff;
}

/* === BIO PAGE === */
.bio-page {
  padding: 4rem 1.5rem;
  background: #f9f9f9;
}
.bio-container {
  max-width: 1000px;
  margin: 0 auto;
}
.btn-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: #0077b6;
  font-weight: bold;
  text-decoration: none;
}
.btn-back:hover {
  text-decoration: underline;
}
.bio-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: linear-gradient(to right, #81abe3, #3fc1e8);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.bio-photo {
  flex: 0 0 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}
.bio-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.bio-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bio-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #0077b6;
}
.bio-text h3 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1.5rem;
}
.bio-text p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}


/* === IMPROVED DROPDOWN APPEARANCE === */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  max-width: 280px;
  padding: 0.5rem 0;
  z-index: 999;
  transition: all 0.3s ease;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li {
  width: 100%;
}

.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  font-weight: 500;
  color: #003d66;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover {
  background-color: #f2f9ff;
  color: #0077b6;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(to right, #0077b6, #00b4d8);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  background-color: white;
  color: #0077b6;
}

/* === VALEURS === */
.values {
  padding: 4rem 2rem;
  text-align: center;
  background: #f4f4f4;
}

.values h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.value-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.value-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  max-width: 300px;
}

.value-card h3 {
  margin-bottom: 0.5rem;
  color: #0077b6;
}

/* === PROJETS === */
.projects {
  padding: 4rem 2rem;
  background: #fff;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1rem;
  text-align: center;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover .overlay {
  opacity: 1;
}

/* === CALL TO ACTION === */
.cta {
  background: #0077b6;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}
.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta .btn-primary {
  background-color: white;
  color: #0077b6;
}
/* === CONTACT PAGE STYLES === */

.contact-page {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.contact-form-section {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 2rem auto;
  padding: 2.5rem;
}

.contact-form-section form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-section label {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.contact-form-section input,
.contact-form-section textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #81abe3;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
  border-color: #0077b6;
  outline: none;
}

.contact-form-section button.btn-primary {
 
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form-section button.btn-primary:hover {
  background-color: #005f8a;
}
.rgpd-page {
  background-color:#f2f9ff !important; /* or your preferred color */
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #0077b6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.value-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1.2rem;
  color: #003d66;
  letter-spacing: 0.2px;
}

.faq-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #005f8a;
  margin-bottom: 0.5rem;
}

body.index-page {
  background: url('assets/img/backindex.png') no-repeat center center fixed;
  background-size: cover;
  background-color: #2d5dd6; /* fallback */
  position: relative;
  z-index: 0;
}
body.index-page > * {
  position: relative;
  z-index: 1;
}




























@media (max-width: 900px) {
  .team-list {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .bio-content {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .bio-photo {
    flex: 0 0 100%;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .bio-text h1 {
    font-size: 1.4rem;
  }
  .bio-text h3 {
    font-size: 1rem;
  }
  .projects {
    padding: 2rem 0.5rem;
  }
  .card-grid {
    gap: 1rem;
  }
  .values {
    padding: 2rem 0.5rem;
  }
  .value-grid {
    gap: 1rem;
  }
  .contact-form-section {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 56px;
    font-size: 0.97rem;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    background: #2d5dd6;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    z-index: 1002;
    display: none;
  }
  .site-nav ul.active {
    display: flex;
  }
  .site-nav {
    position: relative;
  }
  .site-nav .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 10px;
    right: 16px;
    z-index: 1003;
    cursor: pointer;
  }
  .site-nav li {
    width: 100%;
  }
  .dropdown {
    position: static;
    min-width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }
  .team-row,
  .team-row.reverse {
    flex-direction: column !important;
    gap: 1rem;
    padding: 1rem;
    align-items: flex-start;
  }
  .team-photo {
    width: 100%;
    height: auto;
    max-width: 320px;
    margin: 0 auto;
  }
  .team-info h3 {
    font-size: 1.1rem;
  }
  .hover-details {
    font-size: 0.97rem;
  }
  .bio-page {
    padding: 2rem 0.5rem;
  }
  .bio-content {
    padding: 1rem 0.5rem;
  }
  .projects {
    padding: 1rem 0.2rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .project-card img {
    height: 160px;
  }
  .cta {
    padding: 2rem 0.5rem;
  }
  .values {
    padding: 1.5rem 0.2rem;
  }
  .value-card {
    max-width: 100%;
    padding: 1rem;
  }
  .contact-page {
    padding: 2rem 0.5rem;
  }
  .contact-form-section {
    padding: 1rem 0.5rem;
  }
  .btn-primary, .btn-back {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* Optionally, add a hamburger menu button in your HTML for .menu-toggle and toggle .active on .site-nav ul with JS for mobile nav. */