/* Général */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
}

/* Boutons */
button, button[type="submit"] {
  padding: 1em;
  background-color: #007bff;
  color: white;
  font-size: 1em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}
button[type="submit"]:hover {
  background-color: #005bbf;
}

/* Header */
.header {
  background-color: #FFFFFF;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100px;
}
.header img {
  max-height: 200px;
  width: auto;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0.8);
}
.hero-text {
  background-color: #fff;
  padding: 2em;
}
.hero-form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2em;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.hero-form form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.hero-form input,
.hero-form button {
  padding: 0.8em;
  font-size: 1em;
  border: 1px solid #000;
  border-radius: 4px;
}

/* Services */
.services {
  background: #003366;
  color: white;
  padding: 3em 2em;
}
.services h2 {
  text-align: center;
  font-size: 2em;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 2em;
}
.service-grid div {
  background: white;
  color: #333;
  border-radius: 10px;
  padding: 2em 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.service-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1em;
}
.service-grid p {
  margin: 0;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  color: #003366;
}
.service-grid span {
  font-size: 0.95em;
  margin-top: 0.5em;
  display: block;
}

/* Section combinée */
.info-section-split {
  display: flex;
  flex-wrap: wrap;
}
.benefits-box,
.info-highlight-box {
  flex: 1 1 50%;
  box-sizing: border-box;
}
.benefits-box {
  background-color: #f5f5f5;
  padding: 3em 2em;
}
.benefits-box h2 {
  font-size: 2em;
  color: #003366;
  margin-bottom: 1em;
}
.benefit-list {
  list-style: none;
  padding: 0;
}
.benefit-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1.2em;
  font-size: 1.05em;
  color: #333;
}
.benefit-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #007bff;
  font-weight: bold;
}
.info-highlight-box {
  background-color: #003366;
  color: white;
  padding: 3em 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-highlight-box.with-bg {
  background-image: url("images/inspecteur-formulaire.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.info-highlight-box.with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.info-highlight-box.with-bg .info-text {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  padding: 2em;
  border-radius: 10px;
  color: white;
}
.info-highlight-box.with-bg .info-text h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
}
.info-highlight-box.with-bg .info-text p {
  font-size: 1.1em;
  line-height: 1.6em;
  color: #eee;
}

/* Section coeur */
.section-heart {
  background-color: #003366;
  color: white;
  padding: 3em 2em;
  text-align: center;
}
.heart-container {
  max-width: 800px;
  margin: auto;
}
.section-heart h2 {
  font-size: 2em;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-heart p {
  font-size: 1.1em;
  line-height: 1.8em;
  margin-bottom: 1.5em;
  color: #f0f0f0;
}

/* Étapes */
.steps {
  background: #f1f1f1;
  padding: 3em 2em;
}
.steps h2 {
  text-align: center;
  color: #003366;
  font-size: 1.8em;
  margin-bottom: 2em;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
}
.steps-grid div {
  background: white;
  border-radius: 10px;
  padding: 2em 1em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.steps-grid div:hover {
  transform: translateY(-5px);
}
.steps-grid img {
  width: 60px;
  height: 60px;
  margin-bottom: 1em;
}
.steps-grid p {
  font-size: 1.1em;
  color: #003366;
  font-weight: bold;
  margin: 0;
}

/* Formulaire */
.formulaire-bleu {
  background-color: #003366;
  padding: 3em 1em;
  display: flex;
  justify-content: center;
  color: white;
}
.form-box {
  max-width: 700px;
  width: 100%;
  padding: 2em;
  border-radius: 8px;
}
.form-header h2 {
  font-size: 1.3em;
  margin-bottom: 1.5em;
  text-align: center;
  line-height: 1.4;
}
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  width: 100%;
}
.form-row label {
  color: white;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.name-row input {
  flex: 1 1 50%;
}
.form-row input,
.form-row select,
.form-row textarea {
    font-family: Arial, sans-serif;
  padding: 0.75em;
  font-size: 1em;
  border-radius: 4px;
  border: none;
  background: #f2f2f2;
  color: #333;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
}
.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: #f2f2f2;
  padding: 1em;
  border-radius: 6px;
  gap: 0.3em 0.8em;
    border: 1px solid #000;
}
.checkboxes label {
  color: #003366;
  font-size: 0.95em;
  font-weight: 500;

}
.checkboxes input[type="checkbox"] {
  margin-right: 0.5em;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.form-footer {
  margin-top: 1em;
  font-size: 0.9em;
  color: #ddd;
  text-align: center;
}
.form-footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* Footer */
footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1em;
}

/* Align nom et prénom on the same line */
.name-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.name-row input {
  flex: 1 1 48%;
}

/* Align courriel et téléphone on the same line */
.email-phone-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.email-phone-row input {
  flex: 1 1 48%;
}

/* Reduce height of textarea */
textarea {
  min-height: 80px;
}

/* === Organisation en deux colonnes === */
.form-row.two-columns {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.form-row.two-columns input,
.form-row.two-columns select,
.form-row.two-columns textarea {
  flex: 1 1 48%;
  box-sizing: border-box;

}



/* Force 2 colonnes dans les rangées de champs */
.form-row.two-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.form-row.two-columns input {
  flex: 1 1 calc(48% - 0.5em);
  min-width: 240px;

}

/* Réduire la hauteur de la zone de texte */
.form-row textarea {
  min-height: 80px;
}

/* Responsive - empile sur mobile */
@media (max-width: 600px) {
  .form-row.two-columns input {
    flex: 1 1 100%;
  }
}
.hero-form .form-double {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.hero-form .form-double input {
  flex: 1 1 48%;
}
.form-row.double {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-bottom: 1em;

}

.form-row.double .form-field {
  flex: 1 1 50%;
  min-width: 240px;
}

.form-row.double .form-field input {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border-radius: 4px;
  border: none;
  background: #f2f2f2;
  color: #333;
  box-sizing: border-box;
}

/* Ajustement zone texte */
.form-row textarea {
  min-height: 60px;
}

/* Mobile */
@media (max-width: 600px) {
  .form-row.double .form-field {
    flex: 1 1 100%;
  }
}
.form-three-columns {
  width: 100%;
  max-width: 1000px;
  margin: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    font-family: Arial, sans-serif;
  width: 100%;
  padding: 0.8em;
  font-size: 1em;
  border-radius: 4px;
  border: none;
  background: #f2f2f2;
  box-sizing: border-box;
}

.form-button-center {
  text-align: center;
  margin-top: 2em;
}

.form-button-center button {
  width: auto;
  padding: 1em 2.5em;
  border-radius: 50px;
  font-size: 1.1em;
}

/* Section des cases à cocher */
.checkboxes-container {
  margin-top: 1em;
}

.checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5em 1em;
  background: #f2f2f2;
  padding: 1em;
  border-radius: 6px;
}

.checkboxes label {
  color: #003366;
  font-size: 0.95em;
  font-weight: 500;
}

.checkboxes input[type="checkbox"] {
  margin-right: 0.5em;
  float: left;
}
/* === MODIFICATIONS HERO === */
.hero {
  position: relative;
  text-align: center;
  /* Supprimé : max-height: 480px; */
  overflow: visible;
}

/* === BOÎTE DU FORMULAIRE === */
.hero-form {
  position: center;
  top: 40%; /* légèrement plus bas */
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1em; /* augmenté */
  border-radius: 8px;
  max-width: 900px; /* plus large */
  width: 95%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .hero-form {
    display: none; /* Cache le formulaire dans le hero en mobile */
  }

  .hero {
    padding-bottom: 1em; /* Ajoute un peu d'espace sous le hero pour éviter l'effet de chevauchement */
  }
}

/* --- Ajustements desktop seulement --- */
@media (min-width: 769px) {
  .hero-form {
    background-color: rgba(0,51,102, 0.55); /* opacité réduite */
  }
}

/* --- Contours des champs dans le formulaire HERO --- */
.hero-form input,
.hero-form select,
.hero-form textarea {
  border: 1px solid #000000 !important;
  background: #ffffff;
  box-sizing: border-box;
}

.hero-form input:focus,
.hero-form select:focus,
.hero-form textarea:focus {
  outline: none;
  border: 1px solid #000000;
}
.secteur-desservi {
  padding: 3em 2em;
  background-color: #fff;
  color: #003366;
  text-align: center;
}
.secteur-desservi h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #003366;
}
.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}
.secteur-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.secteur-col li {
  margin-bottom: 0.8em;
}
.secteur-col a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: color 0.3s;
}
.secteur-col a:hover {
  color: #005bbf;
}
@media (max-width: 600px) {
  .secteurs-grid {
    grid-template-columns: 1fr;
  }
}
.secteurs-desservis {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
}

.secteurs-desservis h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.secteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.secteur-col h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.secteur-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.secteur-col li {
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.secteur-col li a {
  color: #0056b3;
  text-decoration: none;
}

.secteur-col li a:hover {
  text-decoration: underline;
}


