/* style.css */

/* Reset et styles de base */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 1rem;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

/* Header */
.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  background-color: #fff;
}

.logo img {
  max-width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

.nav-top-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

.nav-top-contact li {
  margin: 0.3rem 0;
}

.nav-top-contact a {
  color: #007bff;
  text-decoration: none;
}

.nav-top-contact a:hover {
  text-decoration: underline;
}

/* Navigation principale */
.nav {
  margin-top: 1rem;
}

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  list-style: none;
  margin: 0;
}

.main-nav li {
  margin: 0.5rem 0;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
}

.main-nav a:hover {
  color: #007bff;
}

.btn-devis {
  background-color: #007bff;
  color: white !important;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
}

.btn-devis:hover {
  background-color: #0056b3;
}

/* Sections de contenu */
.section-content {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  gap: 1rem;
}

.section-content .text-block, 
.section-content .image-block {
  width: 100%;
}

.section-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Paragraphes et listes */
p, ul {
  margin: 0.5rem 0 1rem 0;
  padding: 0;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.5rem;
}

.indentation-gauche {
  padding-left: 1rem;
}

.para-decal {
  margin-bottom: 1rem;
}

/* Footer */
.footer-links {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  background-color: #f4f4f4;
  gap: 2rem;
}

.footer-links .column {
  margin-bottom: 2rem;
}

.footer-links h3 {
  margin-bottom: 1rem;
  color: #222;
}

.footer-links p {
  margin-bottom: 0.6rem;
  color: #555;
}

.footer-bottom {
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  background-color: #222;
  color: #eee;
}

/* Media queries pour tablettes et plus */
@media (min-width: 768px) {
  /* Header en ligne */
  .header-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
  }

  .nav-top-contact {
    text-align: right;
  }

  /* Navigation horizontale */
  .main-nav {
    flex-direction: row;
    justify-content: flex-end;
  }

  .main-nav li {
    margin: 0 1rem;
  }

  /* Sections en ligne */
  .section-content {
    flex-direction: row;
    gap: 2rem;
  }

  /* Inverser l’ordre des sections paires */
  .section-content.layout-left-text:nth-child(even) {
    flex-direction: row-reverse;
  }

  .section-content .text-block, 
  .section-content .image-block {
    width: 50%;
    margin-bottom: 0;
  }

  /* Footer en colonnes */
  .footer-links {
    flex-direction: row;
    justify-content: space-around;
    padding: 3rem 2rem;
  }

  .footer-links .column {
    margin-bottom: 0;
    width: 23%;
  }
}

/* Media queries pour grands écrans */
@media (min-width: 1024px) {
  body {
    padding: 0 4rem;
  }
}