/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== BASE DU SITE ===== */
body {
  font-family: "Manrope", sans-serif;
  font-size: 1em;
  background-color: #1f2039;
}

html,
main {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

section {
  padding: 0.8em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHIE ===== */
h1,
h2,
p,
li {
  text-align: center;
  color: #f9f8ff;
}

h1 {
  font-size: 3.5em;
  font-family: "Montserrat", sans-serif;
  color: #a5b4fc;
  margin: 2em 0 1em 0;
}

h2 {
  font-size: 2em;
  color: #a5b4fc;
  margin: 0.6em 0 0.4em 0;
}

p,
li {
  font-size: 1.1em;
  line-height: 1.6;
}

a {
  color: #242424;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav a.active {
  font-weight: bold;
  color: #a5b4fc;
}

.portfolio-section a {
  color: #a5b4fc;
}

.portfolio-section a:hover {
  color: #8788ba;
}

em {
  color: #a5b4fc;
  font-style: normal;
}

/* ===== HEADER ET NAVIGATION ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  padding: 1em 2em;
}

footer,
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

nav a {
  margin: 0 2em;
}

.lien-icone {
  margin-left: 0.1em;
}

.lien-icone:hover {
  opacity: 0.7;
}

.menu-deroulant {
  position: relative;
  display: inline-block;
}

.menu-deroulant .sous-menu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.menu-deroulant:hover .sous-menu {
  display: block;
}

.menu-deroulant .sous-menu a {
  display: block;
  padding: 0.5em;
  margin-top: 0.8em;
  color: #1f2039;
}

.menu-deroulant .sous-menu a:hover {
  background-color: #f1f1f1;
}

.Logoheader,
.Logofooter {
  max-height: 50px;
  height: 100%;
}

footer {
  background-color: #03041b;
  padding: 1em 2em;
  width: 100%;
  max-height: 80px;
}

.copyright {
  color: white;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3em;
}

/* ===== BOUTONS ===== */
.cta {
  display: inline-block;
  background: linear-gradient(#8e86b5, #acaeed);
  color: white;
  border-radius: 50px;
  padding: 0.5em 1.5em;
  font-size: 1em;
  margin-bottom: 2em;
}

.cta:hover {
  background: linear-gradient(#181044, #2d2d3b);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 0.5em;
  right: 0.5em;
  background: #a5b4fc;
  color: white;
  padding: 0.7em 1em;
  border-radius: 50%;
  font-size: 1.3em;
  z-index: 999;
  transition: background 0.3s;
}

.back-to-top:hover {
  background: #8788ba;
}

/* ===== SECTIONS SPÉCIFIQUES ===== */
.accueil-introduction {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1300px;
  margin: 3em auto 1em auto;
}

.accueil-introduction div {
  padding-right: 1em;
}

.accueil-introduction h1 {
  margin-top: 1.5em;
  font-size: 3.5em;
}

.accueil-introduction p {
  font-size: 1.2em;
  color: #ffffff;
  text-align: justify;
  width: 85%;
  padding-bottom: 1.5em;
}

.accueil-introduction img {
  max-width: 300px;
  aspect-ratio: 1/1.2;
  object-fit: cover;
  margin-top: 5em;
  border-radius: 10px;
}

.accueil-campagnes {
  background-color: #eef0f3;
  padding: 3em 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.textcontainer {
  flex: 1;
  width: 100%;
  max-width: 3000px;
  text-align: left;
}

.textcontainer h1,
.textcontainer p {
  color: #1f2039;
}

.video-container {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  padding: 0;
  margin-top: 0.1em;
}

.video-container video {
  width: 80%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.section-contact h2 {
  color: #a5b4fc;
  margin: 2.5em 0;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  color: white;
}

.form-nom-email {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

input,
textarea {
  padding: 15px;
  border-radius: 3px;
  border: none;
}

label {
  margin-bottom: 10px;
}

input[type="submit"] {
  width: 200px;
  margin: 30px auto 0 auto;
}

/* ===== BURGER MENU STYLES ===== */
.burger {
  display: none;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
  color: #1f2039;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
}

/* ===== RESPONSIVE DESIGN ===== */

/* --- Grand format tablette (max-width 996px) --- */
@media screen and (max-width: 996px) {
  /* ===== HEADER ===== */
  header {
    padding: 0.5em 1em; /* Header plus fin */
  }

  nav {
    flex-direction: row;
  }

  nav a {
    margin: 0.5em 0;
  }

  /* ===== MENU BURGER ===== */
  .burger {
    display: block;
    position: absolute;
    top: 1em;
    right: 1.2em;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #1f2039;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease; /* Animation douce */
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 1em 0;
    width: 100%;
    text-align: center;
  }

  /* ===== ACCUEIL INTRODUCTION ===== */
  .accueil-introduction {
    flex-direction: row; /* Toujours en ligne */
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6em; /* Ajuste pour pas cacher sous header */
  }

  .accueil-introduction div,
  .accueil-introduction img {
    flex: 1 1 45%;
    margin: 1em;
    max-width: 90%;
  }

  .accueil-introduction p {
    width: 100%;
    text-align: justify;
  }

  .accueil-introduction img {
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  /* ===== ACCUEIL CAMPAGNES ===== */
  .accueil-campagnes {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2em;
  }

  .textcontainer,
  .video-container {
    flex: 1 1 45%;
    margin: 1em;
    max-width: 90%;
    text-align: left;
  }

  .video-container video {
    width: 100%;
    max-height: 300px;
  }

  /* ===== SECTION CONTACT ===== */
  .section-contact h2 {
    text-align: center;
    font-size: 2em;
  }

  form {
    width: 90%;
    margin: auto;
  }

  .form-nom-email {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
  }

  input,
  textarea {
    width: 100%; /* Champs prennent toute la largeur */
  }

  input[type="submit"] {
    width: 200px;
    margin: 30px auto 0 auto;
  }
}

/* --- Petite tablette : max-width 768px --- */
@media screen and (max-width: 768px) {
  /* HEADER */
  header {
    padding: 0.5em 1em;
  }

  .Logoheader {
    max-height: 40px;
  }

  /* BURGER */
  .burger {
    font-size: 2em;
  }

  /* ACCUEIL INTRO */
  .accueil-introduction {
    margin-top: 7em;
  }

  .accueil-introduction div,
  .accueil-introduction img {
    flex: 1 1 90%;
    max-width: 100%;
  }

  /* CAMPAGNES */
  .textcontainer,
  .video-container {
    flex: 1 1 90%;
  }

  .video-container video {
    max-height: 250px;
  }

  /* FORMULAIRE */
  form {
    padding: 0 1em;
  }
}

/* --- Mobile : max-width 480px --- */
@media screen and (max-width: 480px) {
  /* HEADER */
  header {
    padding: 0.5em;
  }

  .Logoheader {
    max-height: 2em;
  }

  /* NAVIGATION */
  .burger {
    font-size: 2em;
  }

  .nav-links {
    padding: 0.8em;
  }

  nav a {
    font-size: 1em;
  }

  /* INTRO */
  .accueil-introduction {
    margin-top: 1em;
  }

  .accueil-introduction div,
  .accueil-introduction img {
    flex: 1 1 100%;
  }

  /* VIDEO */
  .video-container video {
    max-height: 200px;
    height: 100%;
  }

  .cta {
    margin-top: 1.5em;
    margin-left: 15%;
  }

  /* FORM */
  input,
  textarea {
    font-size: 1em;
    margin-bottom: 1em;
  }

  input[type="submit"] {
    width: 100%;
  }

  /* FOOTER */
  footer {
    flex-direction: row;
    align-items: center;
  }

  .copyright {
    font-size: 0.7em;
    margin-top: 1em;
  }

  /* BOUTON RETOUR HAUT */
  .back-to-top {
    font-size: 1em;
    padding: 0.5em;
    bottom: 1em;
    right: 1em;
  }
}
