*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 10px;
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f7f5;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #666666;
  text-decoration: none;
}

a:visited,
a:hover,
a:active {
  color: #999999;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.hero-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);
  padding: 18px;
  margin-bottom: 24px;
}

.hero-link {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 18px auto;
}

.hero-link img {
  width: 100%;
  border-radius: 14px;
}

.top-actions,
.bottom-actions {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.top-actions a,
.bottom-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-actions img,
.bottom-actions img {
  width: 42px;
  height: auto;
}

.separator {
  border: none;
  border-top: 1px solid #d8d8d8;
  margin: 18px 0;
}

.menu-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 4px;
}

/* Style local pour Menu_Mautors.php sans toucher au fichier partagé */
.menu-shell .mautors-menu {
  width: 100%;
}

.menu-shell .menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.menu-shell .menu-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  padding: 0;
  margin: 0;
}

.menu-shell .menu-col a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  background: #f3f3f3;
  border: 1px solid #d3d3d3;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  color: #666666;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-shell .menu-col a:hover {
  background: #ebebeb;
  transform: translateY(-1px);
}

.menu-shell .menu-col {
  font-size: 0;
}

/* Comme les séparateurs | sont dans le PHP, on les remet visibles mais plus discrets */
.menu-shell .menu-col::before,
.menu-shell .menu-col::after {
  content: "";
}

.section-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 18px 0;
  text-align: center;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #333;
}

.info-list {
  display: grid;
  gap: 18px;
}

.info-item {
  padding: 16px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fcfcfc;
}

.info-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: #444;
  text-align: center;
}

.info-item p {
  margin: 6px 0;
  text-align: center;
}

.info-item .address {
  color: #444;
  font-weight: 600;
}

.info-item .meta {
  color: #666;
}

.site-link {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.footer-anchor {
  height: 1px;
}

@media (min-width: 700px) {
  .info-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .info-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 8px;
  }

  .hero-card,
  .section-card {

    padding: 14px;
    border-radius: 14px;
  }

  .menu-shell .menu-col {
    gap: 8px;
  }

  .menu-shell .menu-col a {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .top-actions img,
  .bottom-actions img {
    width: 38px;
  }
}
