@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins";
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 650;
  color: #003366;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo small {
  font-size: 0.6rem;
  color: #6c757d;
  font-weight: 400;
  margin-top: 5px;
  text-transform: none;
}
.logo span {
  color: #c0392b;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
nav ul li a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
}
nav ul li a:hover,
nav ul li a.active {
  color: #c0392b;
}

main {
  flex: 1;
  width: 100%;
}

.hero {
  background-image:
    linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.8)),
    url(../Images/Hero.jpg);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 5%;
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.btn {
  display: inline-block;
  margin-right: 0.5rem;
  background-color: #c0392b;
  color: white;
  padding: 0.9rem 2.1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s,
    background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #8a261d;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: #003366;
  display: inline-block;
  margin-bottom: 10px;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #c0392b;
  margin: 15px auto auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}
.card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 5px;
  overflow: hidden;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

footer {
  background-color: #1a252f;
  color: #adb5bd;
  padding: 4rem 5% 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 3rem;
}
.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  border-bottom: 2px solid #c0392b;
  display: inline-block;
  padding-bottom: 5px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  line-height: 2rem;
}
.footer-col a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: white;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #34495e;
  padding-top: 2rem;
}

.presentation {
  display: grid;
  grid-template-columns: 1fr 25.5rem;
  gap: 50px;
  background: white;
  padding: 50px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.image-univ img {
  margin-top: 10px;
  border-radius: 4px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cycle {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 3rem 0 2rem 0;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  font-weight: 300;
}
.cycle strong {
  font-weight: bold;
}

.formations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.formation-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 5px;
  overflow: hidden;
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  display: flex;
  flex-direction: column;
}
.formation-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
.image-formation {
  height: 220px;
  position: relative;
}
.image-formation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.description-formation {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.description-formation h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #2c3e50;
}
.description-formation p {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 20px;
  flex: 1;
}

.gallery-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: #2c3e50;
  border-bottom: 2px solid #ddd;
  margin: 3rem 0 2rem 0;
  padding-bottom: 10px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}
.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

.image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image:hover .overlay {
  opacity: 1;
}
.overlay h5 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.overlay p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 50px;
  text-align: center;
}

.infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: inherit;
  background: #fafafa;
}
.form label {
  text-align: justify;
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
}

#telephone::-webkit-inner-spin-button,
#telephone::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
