/* ===== Style global ===== */
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif; /* fallback ajouté */
  background-color: #F1EFEA;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

main {
  flex: 1; /* prend tout l'espace restant pour pousser le footer en bas */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ===== Titres ===== */
h1 {
  color: rgba(252, 25, 33, 1);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800; /* ExtraBold corrigé */
  font-size: 40px;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
}

h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800; /* ExtraBold corrigé */
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
}

/* ===== Logo ===== */
header {
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  padding-bottom:20px;
}

header .logo {
  height: 135px;
  display: block;
  position: relative;
  z-index: 1;
}

/* ===== Grille principale ===== */
.grid-container {
  display: grid;
  grid-template-columns: 1fr; /* mobile = 1 colonne */
  gap: 30px;
  max-width: 1440px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: start;
  }
}

/* ===== Colonne gauche (texte) ===== */
.left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.text-box {
  background: white;
  width: 680px;
  padding: 40px 32px;
  box-shadow: -8px 4px 16px 0 rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.small-logo {
  height: 48px;
  position: relative;
  margin-left: 60px;
  margin-top: 0;
}

/* ===== Colonne droite (image) ===== */
.image-box {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

.image-box .main-img {
  height: 500px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  margin-top: 20px;
  margin-right: 0;
}

/* ===== Responsive Mobile ===== */
@media (max-width: 767px), (pointer: coarse) {
  header {
    position: relative;
  }

  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 59px;
    background-color: rgba(241, 239, 234, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 0;
  }

  .grid-container {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .left-col {
    order: 2;
    width: 100%;
  }

  .image-box {
    order: 1;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .image-box .main-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 0;
  }

  .text-box {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
  }

  .small-logo {
    margin-left: 60px;
    margin-top: 0 !important;
  }
}

/* ===== Footer ===== */
footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  margin-top: auto;
  position: relative;
}

footer .footer-content {
  width: 100%;
  max-width: 1400px;
  height: 120px;
  background-image: url('footer.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  position: relative;
}

footer .footer-content p {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
  margin: 0;
}
