* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  background-color: #fffaf5;
}

/* HEADER */
header {
  background-color: #a67c52;
  color: white;
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  flex: 1;
  justify-content: flex-start;
}

.header-right {
  flex: 1;
  justify-content: flex-end;
}

.logo {
  max-height: 60px;
  max-width: 132px;
  width: auto;
  object-fit: contain;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* NAVIGATION */
#main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

#main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem;
  transition: background-color 0.2s;
}

#main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* MAIN + IFRAME */
main {
  flex-grow: 1;
  margin-top: 80px;
  margin-bottom: 80px;
  height: 100%;
}

iframe#content-frame {
  width: 100%;
  height: calc(100vh - 160px);
  border: none;
}

/* PRESENTATION (accueil) */
.presentation {
  padding: 20px;
  max-width: 800px;
  margin: auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  text-align: center;
}

.welcome {
  font-size: 1.8rem;
  color: #a67c52;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

.highlight {
  color: #e63946;
  font-weight: bold;
  text-transform: uppercase;
}

.mention {
  color: #4CAF50;
  font-weight: bold;
}

/* FOOTER */
footer {
  background-color: #222;
  padding: 0.4rem 1rem;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  line-height: 1.2;
}

.footer-credit {
  font-size: 0.8rem;
  color: #bbb;
  margin: 0.2rem 0;
}

.footer-credit a {
  color: #f6d55c;
  text-decoration: none;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* CAPTCHA POPUP */
.captcha-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.captcha-box {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.captcha-box input {
  padding: 0.5rem;
  font-size: 1rem;
  margin: 0.5rem 0;
  width: 80%;
}

.captcha-box button {
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  font-size: 0.9rem;
  background-color: #a67c52;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.captcha-box button:hover {
  background-color: #8b6443;
}

/* FRECCIA ANIMATA */
.res-link {
  display: inline-block;
  font-weight: bold;
  color: #a67c52;
  font-size: 0.95rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* MAP */
.map-container {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a svg {
  width: 32px;
  height: 32px;
}

/* POWERED BOX */
.powered-box {
  border: 1px solid #bbb;
  padding: 0.5rem;
  border-radius: 5px;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #bbb;
}

.powered-box a {
  color: #f6d55c;
  text-decoration: none;
}

.powered-box a:hover {
  text-decoration: underline;
}

/* VISITED LINK COLOR */
a:visited {
  color: #a78d7a;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    background-color: #8e6844;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
  }

  #main-nav.open {
    display: flex;
  }

  #main-nav a {
    padding: 1rem;
  }

  header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-left,
  .header-right {
    justify-content: space-between;
    flex: none;
    width: 100%;
  }

  .logo {
    margin: 0 0.5rem;
    max-width: 150px;
    max-height: 50px;
    align-self: center;
  }

  footer {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }

  .presentation {
    padding: 1rem;
  }
}
