* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #202537;
  color: #fff;
  overflow-x: hidden;
}


.navbar {
  width: 100%;
  height: 80px;
  padding: 0 3rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 50px;
}


.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff3066;
}


.dropdown {
  position: relative;
}


.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dropdown-toggle:hover {
  color: #ff3066;
}


.dropdown-toggle .dropdown-arrow {
  transition: transform 0.3s ease;
}


.dropdown.open .dropdown-toggle .dropdown-arrow {
  transform: rotate(180deg);
}


.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  background-color: #2a2f44;
  border: 1px solid #444;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  padding: 1rem;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}


.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.dropdown-menu a:hover {
  color: #4a90e2;
}


.dropdown.open .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}


.account-btn .btn-account {
  padding: 0.5rem 1.2rem;
  border: 2px solid #4a90e2;
  border-radius: 20px;
  background: transparent;
  color: #4a90e2;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-account:hover {
  background: #4a90e2;
  color: #fff;
}


.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.slideshow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(32, 37, 55, 0.9), rgba(32, 37, 55, 0.2));
}


.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(42, 47, 68, 0.95), rgba(42, 47, 68, 0.3));
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
}

.hero h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-style: italic;
  margin-bottom: 2rem;
}

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

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  border: 2px solid #4a90e2;
  background: transparent;
  color: #fff;
}

.btn-primary:hover {
  background: #4a90e2;
}

.btn-secondary {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #202537;
}


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

.presentation-section {
  background-color: #202537;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.presentation-container {
  max-width: 800px;
}

.section-title {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #4a90e2;
  margin: 0.8rem auto 0;
}

.section-title.left {
  text-align: left;
}

.section-title.left::after {
  margin-left: 0;
}

.presentation-text {
  color: #d1d1d1;
  font-size: 1.15rem;
  line-height: 1.8;
  font-weight: 400;
}

.btn-presentation {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #4a90e2;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
}

.btn-presentation:hover {
  background-color: #4a90e2;
  transform: translateY(-2px);
}

.gallery-section {
  background-color: #1a1f2e;
  padding: 5rem 2rem;
  text-align: center;
}

.gallery-title {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.gallery-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.tag {
  padding: 0.6rem 1.4rem;
  background-color: #2a2f44;
  color: #fff;
  border: none;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.tag:hover,
.tag.active {
  background-color: #4a90e2;
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border: 2px solid #2a2f44;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item {
  display: block;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 20, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-content {
  background-color: #2a2f44;
  padding: 2rem;
  border: 1px solid #444;
  max-width: 800px;
  width: 90%;
  text-align: center;
  color: #fff;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.lightbox-content img {
  max-width: 100%;
  margin-bottom: 1rem;
  border: 2px solid #4a90e2;
}

.lightbox-content h3 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.lightbox-content p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.lightbox-content small {
  font-style: italic;
  color: #bbb;
}

.close-btn {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

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

.devenir-civil {
  background: url('../img/background/background3.png') no-repeat center center/cover;
  padding: 3rem 2rem;
  color: white;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.devenir-civil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 40, 0.8);
  z-index: 1;
}

.devenir-civil .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.conditions {
  flex: 1 1 60%;
}

.conditions h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.conditions ul {
  list-style: none;
  padding-left: 0;
}

.conditions ul li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cta {
  flex: 1 1 30%;
  text-align: right;
}

.btn-postule {
  background-color: #4a90e2;
  padding: 0.9rem 2rem;
  border: none;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

.btn-postule:hover {
  background-color: #367ac8;
}

.contact-section {
  background-color: #1b1f2e;
  padding: 4rem 2rem;
  color: white;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  margin-bottom: 2rem;
  color: #ccc;
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input {
  padding: 0.9rem 1.2rem;
  border: none;
  background-color: #2a2f44;
  color: white;
  font-size: 1rem;
}

textarea {
  padding: 1rem;
  background-color: #2a2f44;
  color: white;
  border: none;
  font-size: 1rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #999;
}

.btn-submit {
  align-self: center;
  padding: 0.8rem 2rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #367ac8;
}


.site-footer {
  background-color: #181b29;
  color: white;
  padding: 4rem 2rem 2rem;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  max-width: 400px;
}

.footer-logo {
  height: 100px;
  margin-bottom: 1rem;
}

.footer-desc {
  color: #bbb;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-right {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-links,
.footer-legal {
  min-width: 160px;
}

.footer-links h4,
.footer-legal h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.footer-legal a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #4a90e2;
}

.footer-social {
  text-align: center;
  margin-top: 2rem;
}

.social-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  background-color: #2a2f44;
  color: #fff;
  margin: 0 8px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: #4a90e2;
  transform: scale(1.1);
}

.footer-copyright {
  margin-top: 2rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #333;
  color: #888;
  font-size: 0.85rem;
}


.page-banner {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.page-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 37, 55, 0.5);
  z-index: 1;
}

.page-banner .content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-banner p {
  font-size: 1.2rem;
}
.banner-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #2a2f44 100%, rgba(42, 47, 68, 0.1) 100%);
  top: 0;
  left: 0;
  z-index: 1;
}

.page-banner .container {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #ccc;
}

.legal-section {
  padding: 3rem 2rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.legal-summary h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.summary-box {
  background-color: #2a2f44;
  padding: 1rem;
  border-left: 4px solid #4a90e2;
}

.summary-box ul {
  list-style: none;
  padding: 0;
}

.summary-box li {
  margin: 10px 0;
}

.summary-box a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.summary-box a:hover {
  color: #4a90e2;
}

.legal-details h1.presentation-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.legal-details h3 {
  margin-top: 2rem;
  color: #4a90e2;
}

.legal-details a {
  color: #4a90e2;
  text-decoration: none;
}

.legal-details a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.legend-section {
  padding: 1rem 0;
  background: #202537;
  color: #fff;
}

.legend-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.legend-box {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 3px;
}

.gallery-section {
  padding: 4rem 2rem;
  background: #1a1f2e;
  color: #fff;
}

.gallery-tags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  background-color: #2a2f44;
  color: #fff;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.tag.active,
.tag:hover {
  background-color: #ff3066;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 1300px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.team-card {
  background-color: #2a2f44;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 120%;
  margin-bottom: 1rem;
}

.role-dir {
  font-weight: bold;
  color: #ff3066;
}

.role-staff {
  font-weight: bold;
  color: #ff9e29;
}

.role-tech {
  font-weight: bold;
  color: #299e75;
}

.desc {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}


.candidature-container {
  max-width: 1500px;
  margin: 30px auto;
  padding: 20px 25px;
  background-color: #2c2c2c;
  border-left: 6px solid #4a90e2;
}

.form-wrapper {
  max-width: 1500px;
  margin: 40px auto;
  padding: 30px;
}

.step { display: none; }
.step.active { display: block; }

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #333;
  margin-bottom: 25px;
}

.progress {
  height: 100%;
  background-color: #4a90e2;
  width: 0%;
  transition: width 0.3s ease;
}

.form-section {
  margin-bottom: 20px;
}

.form-section label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  transition: border 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #4a90e2;
  outline: none;
}

textarea { resize: vertical; }

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

button {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #4a90e2;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #4a90e2;
  transform: translateY(-2px);
}

#submitBtn {
  background-color: #4a90e2;
}

#submitBtn:hover {
  background-color: #4a90e2;
}

.alert-status {
  max-width: 1500px;
  margin: 30px auto;
  padding: 20px 25px;
  background-color: #2c2c2c;
  border-left: 6px solid #ff9800;
}

.alert-dispos {
  max-width: 1500px;
  margin: 30px auto;
  padding: 20px 25px;
  background-color: #2c2c2c;
  border-left: 6px solid #299e75;
}

.alert-refus {
  max-width: 1500px;
  margin: 30px auto;
  padding: 20px 25px;
  background-color: #2c2c2c;
  border-left: 6px solid #9e2929;
}

a {
  color: #4a90e2;
  text-decoration: none; 
  position: relative;
  transition: color 0.3s ease; 
}


.underline-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #4a90e2; 
  transition: width 0.3s ease;
}


.underline-link:hover::after {
  width: 100%;
}


.underline-link:hover {
  color: #4a90e2;
}

@media (max-width: 768px) {
  .register-box {
      width: 90%;
      padding: 30px;
  }

  h1 {
      font-size: 28px;
  }

  .form-row {
      flex-direction: column;
  }
}

.faq-text {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 50px;
  line-height: 1.7;
}

.faq-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.faq-item {
  border: 1px solid #ddd;
  width: calc(50% - 10px);
  box-sizing: border-box;
  background-color: #181d2e;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 18px 10px;
  cursor: pointer;
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #202537;
  transition: max-height 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 15px 20px 20px 20px;
  max-height: 1000px;
}

.devenirbenevole-section,
.devenirbenevole-form-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.devenirbenevole-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.devenirbenevole-text {
  font-size: 1rem;
  line-height: 1.6;
}

.devenirbenevole-checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.devenirbenevole-checklist li::before {
  content: "✔️ ";
  margin-right: 8px;
}

.devenirbenevole-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.devenirbenevole-form input,
.devenirbenevole-form select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.devenirbenevole-btn {
  padding: 12px 24px;
  background-color: #444;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.devenirbenevole-btn:hover {
  background-color: #000;
}

.devenirbenevole-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.condfonc-hero {
  background-color: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
}

.condfonc-container {
  max-width: 900px;
  margin: auto;
}

.condfonc-title {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 10px;
}

.condfonc-subtitle {
  font-size: 1.2em;
  color: #555;
}

.condfonc-main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

.condfonc-section {
  margin-bottom: 50px;
}

.condfonc-section-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.condfonc-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.condfonc-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.condfonc-content li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}

.condfonc-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #555;
  font-size: 1.2em;
}