/* =========================
   Reset de base
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

/* =========================
   Typo & fond général
========================= */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f6f6f6 url("img/bg-pattern.jpg") repeat;
}

/* =========================
   Conteneur principal
========================= */
.wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* =========================
   Header
========================= */
header {
  background: #234058 url("img/hero.jpg") center/cover no-repeat;
  color: #fff;
  padding: 15px 30px;
  text-align: center;
}

header h1 {
  font-size: 42px;
  letter-spacing: 3px;
}

header h2 {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 0.6;
}

/* =========================
   Bloc coordonnées sous header
========================= */
.top-contact {
  background: #f0f4f7;
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid #dde3e8;
}

.top-contact a {
  color: #234058;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   Navigation
========================= */
nav {
  background: #234058;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
}

nav a:hover,
nav a.active {
  background: #3b6284;
}

/* =========================
   Contenu
========================= */
main {
  padding: 20px 35px 30px 35px;
}

h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #234058;
}

p {
  margin-bottom: 15px;
}

.main-img img {
  max-width: 100%;   /* pour qu’elle ne dépasse pas la colonne */
  height: auto;      /* garde les proportions */
  width: 400px;      /* ajuste ici la taille souhaitée (200, 300, 350…) */
  display: block;
  margin: 0 auto;    /* centre l’image si tu veux */
  margin-bottom: 10px;
}

/* =========================
   Colonnes d’accueil (page index)
========================= */
.home-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.home-columns > div {
  flex: 1 1 250px;
}

/* Liste des problématiques */
ul.problemes {
  list-style: disc;
  margin-left: 20px;
}

/* Portrait (page index) */
.portrait {
  max-width: 260px;
  margin: 0 auto 20px auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.portrait img {
  width: 100%;
  display: block;
}

/* =========================
   Portrait inline (Qui suis-je)
========================= */
.portrait-inline {
  float: left;
  margin: 0 20px 15px 0;
}

.portrait-inline img {
  display: block;
  width: 242px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* =========================
   Logos certifications
========================= */
.logos-certifs {
  margin-top: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Taille NGH */
.logo-ngh {
  height: 40px;
  width: auto;
}

/* Taille FFHTB + bordure noire */
.logo-ffhtb {
  height: 35px;
  width: auto;
  border: 1px solid #000;
  padding: 4px;
  box-sizing: border-box;
}

/* =========================
   Témoignages
========================= */
.temoignage {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dotted #ccc;
  font-style: italic;
}

.temoignage strong {
  font-style: normal;
}

/* =========================
   Formulaires
========================= */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
  margin-bottom: 15px;
}

textarea {
  min-height: 120px;
}

button,
input[type="submit"] {
  background: #234058;
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
}

button:hover,
input[type="submit"]:hover {
  background: #3b6284;
}

/* =========================
   Bouton partager (page index)
========================= */
.share {
  text-align: center;
  margin-top: 15px;
}

.share-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #234058;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
  border: 1px solid #1a2f3f;
  transition: background 0.2s ease, transform 0.1s ease;
}

.share-btn:hover {
  background: #3b6284;
  color: #ffffff;
  transform: translateY(-1px);
}

/* =========================
   Carte (page contact)
========================= */
.map-container {
  margin: 20px 0 30px 0;
  border: 1px solid #ddd;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 300px;
}

/* =========================
   Footer
========================= */
footer {
  background: #234058;
  color: #fff;
  padding: 20px;
  font-size: 13px;
  text-align: center;
}

footer p {
  margin-bottom: 0px;
}

.zones-desservies {
  display: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 600px) {

  header {
    padding: 25px 15px;
  }

  header h1 {
    font-size: 30px;
  }

  nav a {
    padding: 10px;
    font-size: 12px;
  }

  .portrait-inline {
    float: none;
    margin: 0 auto 15px auto;
    text-align: center;
  }
}
