:root {
  --bleu-ciel: #aadcf2;
  --bleu-fonce: #0c4a6e;
  --bleu-accent: #1684c2;
  --bleu-bordure: #cdeaf7;
  --fond: #f2f9fd;
  --texte: #333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #d6eefb 0%, #f4faf6 45%, #f7efda 100%);
  background-attachment: fixed;
  color: var(--texte);
  line-height: 1.6;
}

header {
  position: relative;
  text-align: center;
  padding: 6rem 1rem;
  background-image: linear-gradient(135deg, rgba(22, 132, 194, 0.55), rgba(12, 74, 110, 0.65)), url("maison.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,22 C150,44 350,2 600,22 C850,40 1050,2 1200,22 L1200,40 L0,40 Z' fill='%23d6eefb'/%3E%3C/svg%3E");
  background-size: 100% 34px;
  background-repeat: no-repeat;
  background-position: bottom;
}

header h1 {
  margin: 0;
  font-size: 3rem;
}

.sous-titre {
  margin: 0.5rem 0 0;
  font-style: italic;
  opacity: 0.9;
}

.accroche {
  margin: 0.8rem 0 0;
  font-size: 1.2rem;
  font-style: italic;
  letter-spacing: 0.3px;
}

.en-bref {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.en-bref li {
  background: var(--bleu-ciel);
  color: var(--bleu-fonce);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.cartes-hebergements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.carte-hebergement {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--bleu-bordure);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.carte-hebergement:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(12, 74, 110, 0.15);
}

.carte-hebergement img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.carte-hebergement-texte {
  padding: 0.8rem 1rem 1rem;
}

.carte-hebergement-texte h3 {
  margin: 0 0 0.4rem;
  color: var(--bleu-accent);
}

.carte-hebergement-texte p {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.carte-hebergement-lien {
  font-weight: 600;
  color: var(--bleu-accent);
}

@media (max-width: 560px) {
  .cartes-hebergements {
    grid-template-columns: 1fr;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem;
  background: white;
  border-bottom: 1px solid var(--bleu-bordure);
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--bleu-accent);
  padding: 0.3rem 0.2rem;
}

nav a:hover {
  text-decoration: underline;
}

nav a.actif {
  border-bottom: 2px solid var(--bleu-accent);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

main section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(12, 74, 110, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  color: var(--bleu-accent);
  border-bottom: 2px solid var(--bleu-accent);
  padding-bottom: 0.3rem;
}

a {
  color: var(--bleu-accent);
}

.qui-suis-je-contenu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.photo-portrait {
  width: 220px;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .qui-suis-je-contenu {
    flex-direction: column;
  }

  .photo-portrait {
    width: 100%;
    max-width: 100%;
  }
}

.carte {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

.points-forts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.points-forts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.equipements {
  columns: 3 230px;
  column-gap: 2rem;
}

.categorie {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.categorie h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--bleu-fonce);
}

#equipements .categorie h3 {
  cursor: pointer;
  user-select: none;
}

#equipements .categorie h3::after {
  content: " ▾";
  font-size: 0.8em;
}

#equipements .categorie.replie h3::after {
  content: " ▸";
}

#equipements .categorie.replie ul,
#equipements .categorie.replie p.note {
  display: none;
}

.categorie p.note {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.5rem;
}

.aide-clic {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin: -0.5rem 0 1.2rem;
}

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

.categorie li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.categorie li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e8b57;
  font-weight: bold;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  background: #eef3f6;
  color: #555;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
}

.badge-gratuit {
  background: #e3f4ea;
  color: #2e8b57;
}

.regle {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--bleu-bordure);
}

.regle-titre {
  flex: 0 0 190px;
  font-weight: 600;
}

#regles .regle-titre {
  cursor: pointer;
  user-select: none;
}

#regles .regle-titre::after {
  content: " ▾";
  font-size: 0.8em;
}

#regles .regle.replie .regle-titre::after {
  content: " ▸";
}

#regles .regle.replie .regle-contenu {
  display: none;
}

.regle-contenu {
  flex: 1;
}

.regle-contenu p {
  margin: 0 0 0.5rem;
}

.regle-contenu p:last-child {
  margin-bottom: 0;
}

.tarifs {
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  min-width: 280px;
}

.tarifs th,
.tarifs td {
  border: 1px solid var(--bleu-bordure);
  padding: 0.5rem 1rem;
  text-align: left;
}

.tarifs th {
  background: var(--bleu-ciel);
  color: var(--bleu-fonce);
}

.a-completer {
  background: #fff3bf;
  color: #8a6d00;
  font-weight: 600;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.mentions h2 {
  margin-top: 1.8rem;
}

.credit-site {
  font-style: italic;
  font-size: 0.8rem;
  color: #888;
}

.tarifs-note {
  font-size: 0.9rem;
  color: #555;
  margin: 0.25rem 0;
}

.tarifs-note.note-chiens,
.tarifs-note.note-importante {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bleu-fonce);
}

.liste-tirets {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 1rem;
}

.liste-tirets li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.liste-tirets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--bleu-accent);
}

.liens-utiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.liens-utiles a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bleu-ciel);
  color: var(--bleu-fonce);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.liens-utiles a:hover {
  background: var(--bleu-accent);
  color: #fff;
}

.table-lits {
  border-collapse: collapse;
  margin: 0.5rem 0;
}

.table-lits td {
  border: 1px solid var(--bleu-bordure);
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .regle {
    flex-direction: column;
    gap: 0.3rem;
  }

  .regle-titre {
    flex-basis: auto;
  }
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.galerie img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
  z-index: 1000;
}

.lightbox.ouvert {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
}

.lightbox-fermer,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-fermer:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-fermer {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prec {
  left: 1rem;
}

.lightbox-suiv {
  right: 1rem;
}

.choix-logement,
.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.choix-logement button,
.onglets button {
  font: inherit;
  padding: 0.4rem 1rem;
  border: 1px solid var(--bleu-accent);
  background: #fff;
  color: var(--bleu-accent);
  border-radius: 6px;
  cursor: pointer;
}

.choix-logement button.actif,
.onglets button.actif {
  background: var(--bleu-accent);
  color: #fff;
}

.galerie-vide {
  color: #888;
  font-style: italic;
}

.menu-pdj {
  margin-bottom: 1.5rem;
}

.menu-pdj-titre {
  text-align: center;
  color: var(--bleu-accent);
}

.menu-pdj-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem 1.5rem;
}

.menu-pdj-cols h4 {
  margin: 0 0 0.3rem;
  color: var(--bleu-fonce);
  border-bottom: 1px solid var(--bleu-bordure);
  padding-bottom: 0.2rem;
}

.menu-pdj-cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-pdj-cols li {
  padding: 0.15rem 0;
  font-size: 0.95rem;
}

.legende {
  display: flex;
  gap: 1.5rem;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.pastille {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.3rem;
}

.pastille.libre {
  background: #fff;
  border: 1px solid #2e8b57;
}

.pastille.reserve {
  background: #f8d7da;
  border: 1px solid #842029;
}

#cal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.mois h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--bleu-fonce);
  text-transform: capitalize;
}

table.cal {
  border-collapse: collapse;
}

.cal th,
.cal td {
  width: 2.2rem;
  height: 2.2rem;
  text-align: center;
  font-size: 0.85rem;
}

.cal th {
  color: #888;
  font-weight: 600;
}

.cal td.libre {
  border: 1px solid var(--bleu-bordure);
}

.cal td.reserve {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5b9bf;
}

.cal td.passe {
  color: #ccc;
}

.admin-info {
  font-size: 0.95rem;
  color: #555;
}

.admin-stats {
  display: inline-block;
  font-weight: 500;
  color: var(--bleu-fonce);
  background: var(--bleu-ciel);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  margin: 0 0 0.5rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}

.admin-actions button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid var(--bleu-accent);
  background: var(--bleu-accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.admin-actions #reinit {
  background: #fff;
  color: var(--bleu-accent);
}

.bouton-admin {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: transparent;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.bouton-admin:hover,
.bouton-admin:focus {
  opacity: 1;
  color: #fff;
  background: var(--bleu-accent);
}

#admin-login input {
  padding: 0.4rem;
  font: inherit;
  min-width: 220px;
}

#admin-login button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid var(--bleu-accent);
  background: var(--bleu-accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.login-erreur {
  color: #842029;
  margin-left: 0.5rem;
}

.form-contact label {
  display: block;
  margin: 0.6rem 0;
}

.form-contact input,
.form-contact textarea,
.form-contact select {
  width: 100%;
  padding: 0.4rem;
  font: inherit;
}

.form-contact button {
  font: inherit;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--bleu-accent);
  background: var(--bleu-accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 0.5rem;
}

.form-retour {
  display: block;
  margin-top: 0.5rem;
}

.form-retour.succes {
  color: #2e8b57;
}

.form-retour.erreur {
  color: #842029;
}

.form-rgpd {
  margin-top: 1rem;
  color: #666;
  line-height: 1.4;
}

.champ-cache {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.message-item {
  border: 1px solid var(--bleu-bordure);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}

.msg-coord {
  font-size: 0.9rem;
  color: #555;
}

.msg-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.2rem;
}

.message-item.est-traitee {
  opacity: 0.7;
  border-left: 4px solid #2e8b57;
}

.msg-statut {
  display: inline-block;
  float: right;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.msg-statut.oui {
  background: #e3f4ea;
  color: #2e8b57;
}

.msg-statut.non {
  background: #fde8e8;
  color: #842029;
}

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.msg-actions button {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--bleu-accent);
  background: #fff;
  color: var(--bleu-accent);
  border-radius: 6px;
  cursor: pointer;
}

.msg-actions .btn-suppr {
  border-color: #842029;
  color: #842029;
}

.form-tarifs label {
  display: block;
  margin: 0.5rem 0;
}

.form-tarifs input {
  width: 100%;
  padding: 0.4rem;
  font: inherit;
}

.form-tarifs h3 {
  color: var(--bleu-fonce);
  margin: 1rem 0 0.3rem;
}

.tarifs-message {
  margin-left: 0.5rem;
  color: var(--bleu-accent);
}

.points-forts-detail {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 1.5rem;
}

.points-forts-detail li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.pf-icone {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.pf-desc {
  color: #555;
  font-size: 0.9rem;
}

.apercu-galerie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.apercu-galerie img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.lien-photos {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--bleu-accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.panneau-attention {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0.8rem 1rem;
  background: #f0f8fc;
  border: 1px solid var(--bleu-bordure);
  border-radius: 8px;
  color: var(--bleu-fonce);
}

footer {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: 0.9rem;
  background: #aadcf2;
  color: #0c4a6e;
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -27px;
  height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0,10 C150,28 350,-6 600,10 C850,26 1050,-6 1200,10 L1200,28 L0,28 Z' fill='%23aadcf2'/%3E%3C/svg%3E");
  background-size: 100% 28px;
  background-repeat: no-repeat;
  background-position: top;
}

.footer-liens {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
}

.footer-liens a {
  color: var(--bleu-fonce);
}
