/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: #333; }
a { text-decoration: none; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: #0D3B66; color: #fff; position: sticky; top: 0; z-index: 1000; }
header .logo { font-weight: bold; font-size: 1.5em; }
nav ul { display: flex; gap: 20px; list-style: none; }
nav ul li a { color: #fff; transition: 0.3s; }
nav ul li a.active, nav ul li a:hover { color: #FFA500; }
.menu-toggle { display: none; font-size: 1.5em; cursor: pointer; }

/* Hero */
.hero { display: flex; justify-content: space-between; align-items: center; padding: 80px 30px; background: #f4f4f4; gap: 20px; }
.hero-text { max-width: 600px; }
.hero-text h1 { font-size: 2.5em; margin-bottom: 20px; color: #0D3B66; }
.hero-text p { font-size: 1.1em; margin-bottom: 30px; }
.btn { display: inline-block; background: #FFA500; color: #fff; padding: 12px 25px; border-radius: 5px; transition: 0.3s; }
.btn:hover { background: #e69500; }
.hero-image img { max-width: 100%; border-radius: 10px; }

/* Sections & cards */
section { padding: 60px 30px; text-align: center; }
h2 { color: #0D3B66; margin-bottom: 40px; font-size: 2em; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); flex: 1 1 250px; max-width: 300px; transition: 0.3s; }
.card:hover { transform: translateY(-5px); }
.card i { font-size: 2.5em; color: #0D3B66; margin-bottom: 15px; }
.card h3 { margin-bottom: 10px; color: #0D3B66; }

/* Footer */
footer { background: #0D3B66; color: #fff; padding: 20px 30px; text-align: center; }
footer .socials a { color: #fff; margin: 0 10px; font-size: 1.2em; transition: 0.3s; }
footer .socials a:hover { color: #FFA500; }

/* Responsive */
@media(max-width: 768px){
  .hero { flex-direction: column; }
  nav ul { display: none; flex-direction: column; background: #0D3B66; position: absolute; top: 60px; right: 0; width: 200px; padding: 20px; border-radius: 5px; }
  nav ul.active { display: flex; }
  .menu-toggle { display: block; }
}


/* Cards hover effect */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Hero image animation */
.hero-image img {
  transition: transform 0.5s;
}
.hero-image img:hover {
  transform: scale(1.05);
}

/* Buttons animation */
.btn {
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Form focus effect */
input, textarea {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  transition: 0.3s;
}
input:focus, textarea:focus {
  border-color: #0D3B66;
  box-shadow: 0 0 5px rgba(13,59,102,0.3);
  outline: none;
}



.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding: 60px 30px;
  justify-content: center;
}

.contact-form-container, .contact-info {
  flex: 1 1 350px;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contact-form-container h2, .contact-info h2 {
  color: #0D3B66;
  margin-bottom: 20px;
}

.contact-form-container p {
  margin-bottom: 30px;
  color: #555;
}

.form-group {
  margin-bottom: 20px;
}

input, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s;
}

input:focus, textarea:focus {
  border-color: #0D3B66;
  box-shadow: 0 0 5px rgba(13,59,102,0.3);
  outline: none;
}

textarea { resize: none; }

.btn {
  display: inline-block;
  background: #FFA500;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #e69500;
  transform: translateY(-2px);
}

.contact-info p {
  margin: 15px 0;
  color: #333;
}

.contact-info i {
  color: #0D3B66;
  margin-right: 10px;
}



/* Hero avec overlay */
.hero-about {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-about .hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.hero-about .hero-text {
  position: relative;
  z-index: 2;
}

/* Cards avec background images */
.card-bg {
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}
.card-bg::before {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
}
.card-bg h3, .card-bg ul {
  position: relative;
  z-index: 1;
}

/* Hero index */
.hero-index {
  position: relative;
  height: 90vh;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-index .hero-overlay {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5);
}
.hero-index .hero-text {
  position: relative;
  z-index: 2;
}
.hero-index .btn-primary {
  display:inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #ff6600;
  color:#fff;
  border-radius: 5px;
  text-decoration:none;
  transition: 0.3s;
}
.hero-index .btn-primary:hover {
  background: #e65c00;
}

/* Cards services */
.services-section .cards {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
  margin:40px 0;
}
.card-bg {
  flex:1 1 300px;
  min-height: 250px;
  color:#fff;
  border-radius:10px;
  padding:20px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background-size:cover;
  background-position:center;
  position:relative;
  transition: transform 0.3s;
}
.card-bg::before {
  content:"";
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  border-radius:10px;
}
.card-bg h3, .card-bg p {
  position:relative;
  z-index:1;
}
.card-bg:hover {
  transform: translateY(-5px);
}

/* Project cards */
.projects {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
  margin:40px 0;
}
.project-card {
  flex:1 1 300px;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.project-card img {
  width:100%;
  display:block;
}
.project-info {
  padding:15px;
  background:#fff;
  text-align:center;
}
.project-card:hover {
  transform: translateY(-5px);
}

/* Team */
.team-cards {
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  justify-content:center;
}
.team-card {
  flex:1 1 250px;
  text-align:center;
}
.team-card img {
  width:100%;
  border-radius:50%;
}

/* Contact */
.contact-section {
  text-align:center;
  padding:40px 20px;
}
.contact-section .btn-primary {
  background:#0077cc;
}
.contact-section .btn-primary:hover {
  background:#005fa3;
}

.services-section .card .card-title,
.services-section .card .card-icon {
  color: #fff;          /* blanc pur */
  background: transparent; /* pas de fond */
}

.services-section .card-bg p {
  color: #f5f5f5; /* texte plus clair */
  position: relative;
  z-index: 1;
  /* optionnel : fond léger pour encore plus de lisibilité */
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 5px;
}


.hero-index .hero-text h1 {
  background: rgba(200, 200, 200, 0.5); /* gris clair semi-transparent */
  padding: 10px 20px;                    /* espace autour du texte */
  border-radius: 8px;                     /* coins arrondis */
  display: inline-block;                  /* s'adapte à la largeur du texte */
}







/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { line-height: 1.6; color: #333; }
a { text-decoration: none; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: #0D3B66; color: #fff; position: sticky; top: 0; z-index: 1000; }
header .logo { font-weight: bold; font-size: 1.5em; }
nav ul { display: flex; gap: 20px; list-style: none; }
nav ul li a { color: #fff; transition: 0.3s; }
nav ul li a.active, nav ul li a:hover { color: #FFA500; }
.menu-toggle { display: none; font-size: 1.5em; cursor: pointer; }

/* Hero */
.hero-about {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  padding: 0;              /* on gère le padding via flex */
  height: 500px;           /* fixe une hauteur raisonnable */
}
.hero-about .hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); }
.hero-about .hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;         /* limite la largeur du texte */
}
.hero-about .hero-text h1 { 
  background: rgba(255,255,255,0.2);
  padding: 15px 25px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  color: #0D3B66;
  font-size: 2.5em;
  margin-bottom: 20px;
}
.hero-about .hero-text p {
  background: rgba(255,255,255,0.15);
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1em;
}

/* Cards Section */
.cards-section { padding: 80px 30px; text-align: center; }
.cards-section h2 { font-size: 2em; color: #0D3B66; margin-bottom: 50px; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.card { background: #fff; padding: 30px 20px; border-radius: 15px; flex: 1 1 280px; max-width: 300px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: transform 0.3s; }
.card i { font-size: 2.5em; color: #0D3B66; margin-bottom: 15px; transition: 0.3s; }
.card h3 { color: #0D3B66; margin-bottom: 15px; }
.card p { color: #555; }
.card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.card i:hover { color: #FFA500; transform: scale(1.2); }

/* Team Section */
.team-section { padding: 80px 30px; }
.team-section h2 { color: #0D3B66; margin-bottom: 50px; font-size: 2em; }
.team-cards { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.team-card { position: relative; flex: 1 1 250px; text-align: center; overflow: hidden; border-radius: 15px; transition: transform 0.3s; }
.team-card img {
  width: 200px;        /* taille fixe plus raisonnable */
  height: 200px;       /* carré parfait */
  object-fit: cover;   /* conserve le recadrage de l’image */
  border-radius: 50%;  /* garde le style rond */
  margin: 0 auto;      /* centre horizontalement */
  display: block;
}
.team-card:hover img { transform: scale(1.05); }
.team-card:hover::after {
  content: attr(data-role);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13,59,102,0.8);
  color: #fff;
  padding: 15px 0;
  font-weight: bold;
}

/* Footer */
footer { background: #0D3B66; color: #fff; padding: 20px 30px; text-align: center; }
footer .socials a { color: #fff; margin: 0 10px; font-size: 1.2em; transition: 0.3s; }
footer .socials a:hover { color: #FFA500; transform: scale(1.2); }

/* Responsive */
@media(max-width: 768px){
  .hero-about { padding: 100px 20px; }
  nav ul { display: none; flex-direction: column; background: #0D3B66; position: absolute; top: 60px; right: 0; width: 200px; padding: 20px; border-radius: 5px; }
  nav ul.active { display: flex; }
  .menu-toggle { display: block; }
  .cards, .team-cards { flex-direction: column; align-items: center; }
}





/* La page services */

/* Hero Services */
.hero-services {
  position: relative;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-services .hero-overlay {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5); /* Overlay sombre */
}
.hero-services .hero-text {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: rgba(255,255,255,0.1); /* léger cadre pour lisibilité */
  border-radius: 10px;
}
.hero-services h1 {
  font-size: 3em;
  margin-bottom: 15px;
  color: #FFA500;
}
.hero-services p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Cards services */
.services-section {
  padding: 60px 30px;
  text-align: center;
}
.services-section h2 {
  color: #0D3B66;
  margin-bottom: 40px;
  font-size: 2em;
}
.services-section .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}
.card-bg {
  position: relative;
  flex: 1 1 300px;
  min-height: 350px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-bg::before {
  content:"";
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.45); /* overlay sombre pour lisibilité texte */
}
.card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff;
}
.card-content i {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #FFA500; /* icône colorée */
}
.card-content h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #fff;
}
.card-content ul {
  list-style: disc inside;
  text-align: left;
  padding-left: 0;
  color: #eee; /* texte clair */
}
.card-bg:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}




/* La page contact */

/* Hero Contact */
.hero-contact {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-contact .hero-overlay {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5);
}
.hero-contact .hero-text {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}
.hero-contact h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFA500;
}
.hero-contact p {
  font-size: 1.2em;
}

/* Contact Form & Info */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  padding: 60px 30px;
}
.contact-form-container, .contact-info {
  flex: 1 1 350px;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.contact-form-container h2, .contact-info h2 {
  color: #0D3B66;
  margin-bottom: 20px;
}
.contact-form-container p {
  color: #555;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
input, textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: 0.3s;
}
input:focus, textarea:focus {
  border-color: #0D3B66;
  box-shadow: 0 0 8px rgba(13,59,102,0.3);
  outline: none;
}
.btn {
  background: #FFA500;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn:hover {
  background: #e69500;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Contact Info */
.contact-info p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 15px;
}
.contact-info i {
  color: #FFA500;
  margin-right: 10px;
}

/* Responsive */
@media(max-width: 768px){
  .contact-wrapper {
    flex-direction: column;
  }
}


/* Section partenaires */
.partners-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
  background: #f9f9fb;
}

.partners-card {
  max-width: 800px;
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid #eee;
}

.partners-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.partners-card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #1a1a40;
}

.partners-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}




/* Domaines d'expertise */
.expertise-section {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.expertise-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #222;
}

.expertise-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.expertise-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.expertise-card i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 20px;
}

.expertise-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #111;
}

.expertise-card p {
  font-size: 1rem;
  color: #555;
}
