:root {
  --primary-color: #0099ff;
  --primary-dark: #0077cc;
  --primary-light: #33adff;
  --background-dark: #1a1a1a;
  --background-darker: #141414;
  --background-light: #2a2a2a;
  --text-color: #ffffff;
  --text-muted: #b3b3b3;
  --border-color: #333333;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--background-dark);
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid var(--primary-color);
  position: fixed;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header h1 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.9rem;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

main {
  flex: 1;
  padding-top: 100px;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(
    45deg,
    var(--background-darker),
    var(--primary-color),
    var(--background-dark),
    var(--primary-dark)
  );
  background-size: 300% 300%;
  animation: gradientAnimation 15s ease infinite;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.25"/></svg>');
  background-size: 30px 30px;
  opacity: 0.1;
  z-index: 2;
  animation: fadeIn 2s ease-out;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero strong {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
  font-weight: 700;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white !important;
}

.services {
  padding: 4rem 0;
  background-color: var(--background-darker);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services h2,
.about h2,
.actualites h2,
.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: var(--text-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-grid a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.service-item {
  background: var(--background-dark);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: var(--text-color);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.service-grid a:hover .service-item {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.service-item i {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.service-item h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.service-item p {
  color: var(--text-muted);
  max-width: 250px;
  margin: 0 auto;
  line-height: 1.5;
}

.actualites {
  padding: 4rem 0;
  background-color: var(--background-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-item {
  background: var(--background-darker);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  position: relative;
  min-height: 200px;
}

.news-content {
  padding: 2rem;
  padding-bottom: 4rem;
  height: 100%;
  position: relative;
}

.date {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.news-item h3 {
  margin: 1rem 0;
  color: var(--text-color);
}

.news-item p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.read-more {
  position: absolute;
  bottom: 0;
  left: 2rem;
  padding-bottom: 2rem;
  text-decoration: none;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.read-more:hover {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.read-more i {
  font-size: 0.8em;
  transition: transform 0.3s;
}

.read-more:hover i {
  transform: translateX(4px);
}

.contact {
  padding: 4rem 0;
  background-color: var(--background-darker);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
}

.contact-method {
  text-align: center;
  padding: 2rem;
  background: var(--background-dark);
  border-radius: 10px;
}

.contact-method i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-method h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-method p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-method a:not(.cta-button) {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-method a:not(.cta-button):hover {
  color: var(--primary-light);
}

.contact-form {
  background: var(--background-dark);
  padding: 2rem 2rem 0 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-of-type {
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: var(--background-darker);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
  transition: border-color 0.3s;
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form .cta-button {
  margin: 0 auto;
  display: block;
  min-width: 200px;
  margin-bottom: 0;
}

footer {
  background: var(--background-darker);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2.5rem;
  }

  .contact-content {
    gap: 2rem;
  }

  .service-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--background-dark);
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

.contact-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--background-darker);
  border-radius: 0 0 10px 10px;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.stat-item i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.stat-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-notice {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  opacity: 0.7;
}

.form-notice i {
  color: var(--primary-color);
  font-size: 2rem;
  margin-top: -2rem;
}

.error-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.error-container h1 {
  font-size: 6rem;
  margin: 0;
  color: #333;
}

.error-container p {
  font-size: 1.5rem;
  margin: 1rem 0 2rem;
  color: #666;
}

.error-container .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.error-container .btn:hover {
  background-color: #555;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
}

.modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--background-dark);
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  transition: transform var(--transition-speed) ease-in-out;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-content h2 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-content ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-speed);
}

.close-modal:hover {
  color: var(--primary-color);
}

.about {
  padding: 4rem 0;
  background-color: var(--background-darker);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  text-align: right;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    text-align: center;
  }
}

img {
  width: 50%; /* Réduit la largeur à 50% de son conteneur */
  height: auto; /* Maintient le ratio d'aspect */
}

.postuler-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(45deg, #7289DA, #5865F2);
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(114, 137, 218, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.postuler-button:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.postuler-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(114, 137, 218, 0.6);
}

.postuler-button:hover:before {
  left: -100%;
  top: -100%;
}

.postuler-button:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(114, 137, 218, 0.4);
}




