:root {
  --primary: #107EC2;
  --secondary: #004080;
  --light: #f9f9f9;
  --dark: #222;
  --accent: #e0f3ff;
}

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

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 80px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.5rem 2rem;
  background-color: white;
  color: #333;

  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* vraie ombre douce */
  z-index: 1000;
}


.footer {
  text-align: center;
  padding: 1rem;
  background-color: white;
  color: #333;
}

.nav-info span {
  margin-left: 1rem;
  font-size: 1rem;
}

.color {
  background-color: var(--primary);
  color: #FFD700;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 0.5rem;
}


.header {
  height: 45vh;
  background: url('images/Image-header.jpg') no-repeat center center/cover;
  position: relative;
  margin-top: auto;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.4);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay h1 {
  color: white;
  font-size: 1.6rem;
  text-align: center;
}

.about-section {
  background-color: #ffffff;
  padding: 3rem 2rem;
}

.about-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.about-text {
  flex: 2;
  min-width: 300px;
  max-width: 100%;
  text-align: center;
}

.about-text h2 {
  color: #107EC2;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

.main-content {
  padding: 1rem;
  background-color: #f9f9f9;
}

.concours-section {
  max-width: auto;
  margin: auto;
  text-align: center;
}

.concours-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.concours-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.concours-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flyer-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

.concours-card h3 {
  margin-bottom: 0.5rem;
  color: #004080;
}

.concours-card a {
  margin-top: 0.5rem;
  display: inline-block;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.concours-card a:hover {
  text-decoration: underline;
}

.filiere-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: #ffffff;
  text-align: center;
}

.filiere-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.filiere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.filiere-card {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filiere-card h3 {
  margin-bottom: 1rem;
  color: #004080;
}

.concours-card:hover,
.filiere-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.download-btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: medium;
  transition: transform 0.2s ease, background-color 0.2s;
}

.download-btn:hover {
  background-color: var(--secondary);
  transform: scale(1.05);
}

.contact-section {
  background-color: #f0f7ff;
  padding: 3rem 2rem;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}


.contact-text h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.contact-btn {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.contact-btn:hover {
  background-color: var(--secondary);
}

.contact-logo {
  flex: 1;
  max-width: 150px;
}

.contact-logo img {
  width: 100%;
  height: auto;
}


@media (min-width: 768px) {

  .header {
    height: 70vh;
    background: url('images/Image-header.jpg') no-repeat center center/cover;
    position: relative;
    margin-top: auto;
  }

  .main-content {
    padding: 2rem;
    background-color: #f9f9f9;
  }

  .overlay h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 1px 1px 2px #000;
    text-align: center;
    line-height: 1.5;
  }

  .concours-list {
    flex-direction: row;
    justify-content: center;
  }

  .concours-card {
    width: 45%;
  }

  .about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .about-text {
    padding-top: 1rem;
  }

  .about-image,
  .about-text {
    min-width: 300px;
    max-width: 500px;
  }

  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-logo {
    margin-top: 1rem;
  }

}