/* ===============================
   DJERBA LA DOUCE - MAIN STYLES
   =============================== */

/* --- Base setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #14213d;
  background-color: #ffffff;
  line-height: 1.6;
}

/* --- Containers & Sections --- */
.container {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

/* --- Headings & Text --- */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1fb6b3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #14213d;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  color: #14213d;
}

.nav a[aria-current="page"] {
  background: #1fb6b3;
  color: #fff;
}

/* --- Hero Banner --- */
.hero {
  background-size: cover;
  background-position: center;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  padding: 2rem;
}

.hero__kicker {
  text-transform: uppercase;
  font-weight: 700;
}

.hero__title {
  font-size: 2.2rem;
  margin-top: 0.5rem;
}

.hero__subtitle {
  max-width: 600px;
  margin-top: 0.5rem;
}

/* --- Grid & Cards --- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 800px) {
  .grid--2, .grid--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #f7fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card__media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card__body {
  padding: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: #1fb6b3;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  background: #17a29f;
}

/* --- Forms --- */
.form {
  display: grid;
  gap: 1rem;
  background: #f7fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
}

.form__row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.label {
  font-weight: 700;
}

.input, .textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: #eaf9f9;
  border-top: 1px solid #d0f0f0;
  margin-top: 3rem;
}

.footer__inner {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 2rem 0;
}

.footer h4 {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #14213d;
}

/* --- Page Accent Colors --- */
#page-discover .hero { border-bottom: 5px solid #f2c14e; }
#page-accommodations .hero { border-bottom: 5px solid #1fb6b3; }
#page-cuisine .hero { border-bottom: 5px solid #e35d5b; }
#page-attractions .hero { border-bottom: 5px solid #3b82f6; }
#page-contact .hero { border-bottom: 5px solid #0d9488; }
