:root {
  --blue: #2447a3;          /* bande / bouton */
  --blue-dark: #1d3a85;
  --blue-text: #3a52a0;     /* textes contact / mentions */
  --indigo: #5b6bb5;        /* "t" du logo + "tahitienne" */
  --orange: #f4a32b;        /* carré décoratif */
  --ink: #1a1a1a;
  --muted: #6b7280;
  --white: #ffffff;
  --maxw: 1024px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* footer ferré en bas : le hero absorbe l'espace restant */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  padding: 28px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; }
.logo img {
  display: block;
  width: auto;
  height: clamp(72px, 13vw, 104px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-login {
  background: var(--blue);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 1rem;
}
.btn-login:hover { background: var(--blue-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1 0 auto;            /* absorbe l'espace pour ferrer le footer en bas */
  display: flex;
  border-bottom: 56px solid var(--blue); /* la "bande bleue" */
}
.hero-media {
  flex: 1;
  min-height: clamp(280px, 42vw, 430px);
  background-image: url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-title {
  color: var(--white);
  text-align: right;
  font-weight: 400;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}
.hero-title span {
  display: block;
  font-size: clamp(2rem, 6.5vw, 4.4rem);
}

/* ---------- Footer / contact ---------- */
.site-footer {
  position: relative;
  background: var(--white);
  padding: 56px 0 64px;
}
.footer-grid {
  position: relative;
  display: grid;
  /* 1re colonne = espace réservé sous le carré orange */
  grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.contact { grid-column: 2; }
.legal { grid-column: 3; }

/* Carré orange décoratif : chevauche la bande bleue et le hero */
.deco-square {
  position: absolute;
  left: 24px;
  top: -190px;
  width: 240px;
  height: 240px;
  background: var(--orange);
  z-index: 2;
}

.contact, .legal { color: var(--blue-text); }
.contact h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact p { font-size: 1.05rem; }
.contact a:hover { text-decoration: underline; }

.legal {
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .btn-login { padding: 12px 20px; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact, .legal { grid-column: 1; }
  .deco-square {
    position: static;
    width: 120px;
    height: 120px;
    margin: -90px 0 8px auto;
  }
  .legal { order: 3; }
}

@media (max-width: 420px) {
  .header-inner { gap: 12px; }
}
