/* ===== Kerwen Hospitality — feuille de style principale ===== */

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/LibreBaskerville-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1F3327;
  --ink-soft: #5C6B5E;
  --gold: #B08D4F;
  --gold-light: #D9B978;
  --cream: #F5F1E8;
  --tinted: #EFE8D6;
  --line: #D8CEB2;
  --border-box: #F5F1E8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page { max-width: 1100px; margin: 0 auto; background: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 40px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { width: 34px; height: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); border-bottom-color: var(--gold); }
.nav-links a:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.rule { height: 3px; background: linear-gradient(90deg, var(--ink), var(--gold), var(--ink)); }

/* ---------- Section separator ---------- */
.sep { padding: 6px 40px; }
.sep-line { height: 1px; background: linear-gradient(to right, transparent 0%, var(--gold) 50%, transparent 100%); }

/* ---------- Generic section ---------- */
.section { padding: 64px 40px; }
.section.tinted { background: var(--tinted); }
.section.narrow { max-width: 720px; margin: 0 auto; }

.eyebrow { font-size: 12px; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 12px; text-align: center; }

h1 {
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  max-width: 720px;
  margin: 0 auto 18px;
  line-height: 1.35;
  text-align: center;
}
h2 {
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--ink);
  margin: 0 0 30px;
  text-align: center;
  position: relative;
  padding-bottom: 18px;
}
h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 96px; height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
}
.lead {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
}

.mini-rule { width: 26px; height: 1px; background: var(--gold); margin: 12px auto 16px; }
.gold-rule { width: 44px; height: 1px; background: var(--gold); margin: 0 auto 26px; }

/* ---------- Buttons ---------- */
.btn-wrap { text-align: center; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 30px;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: #16241b; }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* ---------- Card grids (with fading divider lines + K mark) ---------- */
.card-grid-wrap { position: relative; }
.card-grid {
  display: grid;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid > div {
  padding: 36px 34px;
  text-align: center;
}
.grid-vline { position: absolute; width: 1px; }
.grid-hline { position: absolute; height: 1px; }
.grid-mark { position: absolute; width: 30px; height: auto; transform: translate(-50%, -50%); }

.card-title { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.card-photo { width: 100%; max-width: 320px; height: auto; border-radius: 6px; margin: 0 auto 16px; }
.c-icon { display: block; margin: 0 auto 14px; }

@media (max-width: 720px) {
  .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .card-grid > div { border-top: 1px solid var(--line); }
  .card-grid > div:first-child { border-top: none; }
  .card-grid-wrap .grid-vline,
  .card-grid-wrap .grid-hline,
  .card-grid-wrap .grid-mark { display: none; }
}

/* ---------- Hero photo with text overlay ---------- */
.hero-photo-wrap { position: relative; min-height: 420px; overflow: hidden; }
.hero-photo-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 90px 40px 34px;
  background: linear-gradient(180deg, rgba(15,22,17,0) 0%, rgba(15,22,17,0.35) 45%, rgba(15,22,17,0.82) 100%);
}
.eyebrow-photo { font-size: 12px; letter-spacing: 0.16em; color: #EAD9AE; margin-bottom: 10px; text-shadow: 0 1px 4px rgba(0,0,0,0.55); }
.h1-photo {
  font-weight: 400;
  font-size: clamp(21px, 3.6vw, 31px);
  color: #F7F4EC;
  text-align: left;
  margin: 0 0 12px;
  max-width: 640px;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.lead-photo {
  color: #E4E0D3;
  font-size: clamp(13px, 1.6vw, 16px);
  text-align: left;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ---------- Timeline (numbered steps) ---------- */
.tl-wrap { padding: 4px 0; max-width: 640px; margin: 0 auto; }
.tl-row { display: flex; gap: 26px; text-align: left; }
.tl-badge-col { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0; }
.tl-badge {
  width: 42px; height: 42px; min-height: 42px;
  border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gold); flex-shrink: 0;
}
.tl-line { width: 1px; flex: 1; min-height: 28px; margin-top: 6px; background: linear-gradient(to bottom, var(--gold) 0%, var(--line) 70%, transparent 100%); }
.tl-content { flex: 1; padding-bottom: 34px; }
.tl-row:last-child .tl-content { padding-bottom: 2px; }
.tl-title { font-size: 17px; color: var(--ink); margin-bottom: 7px; }
.tl-text { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Stats band ---------- */
.stats-grid {
  display: grid;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.stats-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stats-grid > div { padding: 26px 18px; text-align: center; font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.stat-title { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.stat-sub { color: var(--ink-soft); }
@media (max-width: 720px) {
  .stats-grid.cols-3, .stats-grid.cols-5 { grid-template-columns: 1fr; }
  .stats-grid > div { border-top: 1px solid var(--line); }
  .stats-grid > div:first-child { border-top: none; }
}

/* ---------- Team cards ---------- */
.team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 10px; }
.team-row.solo { grid-template-columns: 1fr; }
.team-card { background: var(--border-box); border-radius: 4px; padding: 32px; text-align: left; }
.team-card.centered { text-align: center; }
.team-card-inner { display: flex; align-items: center; gap: 22px; }
.team-card.centered .team-card-inner { flex-direction: column; }
.team-avatar-photo { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.team-card.centered .team-avatar-photo { width: 140px; height: 140px; border: 1px solid var(--gold); padding: 4px; box-sizing: border-box; }
.team-card.centered .team-avatar-photo-inner { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.team-avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-initials {
  width: 100px; height: 100px; border-radius: 50%; background: #E4DBC1;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink); flex-shrink: 0;
}
.team-role { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.team-text { font-size: 14px; color: var(--ink-soft); line-height: 1.65; max-width: 440px; }
@media (max-width: 640px) {
  .team-row { grid-template-columns: 1fr; }
}

/* ---------- Lists with dash ---------- */
.dash-list { max-width: 620px; margin: 0 auto; }
.dash-list li { display: flex; gap: 12px; margin-bottom: 14px; list-style: none; }
.dash-list li:last-child { margin-bottom: 0; }
.dash-list .dash { color: var(--gold); }
.dash-list span.txt { font-size: 15px; color: #3E4A3F; line-height: 1.65; }

/* ---------- Form ---------- */
.form-wrap { max-width: 520px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 11px; letter-spacing: 0.05em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 7px; }
.form-field {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 3px;
  padding: 13px 15px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.form-field::placeholder { color: #9a9488; }
textarea.form-field { min-height: 100px; resize: vertical; }
.upload-box { border: 1px dashed var(--gold); border-radius: 4px; padding: 26px; text-align: center; background: var(--cream); }
.upload-title { font-size: 15px; color: var(--ink); margin-bottom: 5px; }
.upload-sub { font-size: 12.5px; color: var(--ink-soft); }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Footer ---------- */
footer { padding: 30px 40px 50px; text-align: center; }
footer .foot-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
footer .foot-links a { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.03em; }
footer .foot-links a:hover { color: var(--ink); }
footer .copyright { font-size: 12px; color: #8b9089; }

@media (max-width: 640px) {
  .nav { padding: 18px 22px; justify-content: center; text-align: center; }
  .nav-links { justify-content: center; }
  .section { padding: 48px 22px; }
  .sep { padding: 4px 22px; }
  .hero-photo-wrap { min-height: 360px; }
  .hero-photo-overlay { padding: 60px 22px 24px; }
  footer { padding: 26px 22px 40px; }
}

/* Home hero: brand monogram above a single-line title */
.hero-photo-wrap img.hero-logo { position: static; inset: auto; display: block; width: 180px; height: auto;
  object-fit: contain; margin: 0 auto 18px; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.55)); }
.h1-photo.h1-oneline { max-width: none; }
@media (min-width: 900px) { .h1-photo.h1-oneline { white-space: nowrap; } }
@media (max-width: 720px) { .hero-photo-wrap img.hero-logo { width: 130px; margin: 0 auto 12px; } }

/* Home hero: content block vertically centred, equal space above the logo and below the gold rule */
.hero-photo-overlay.hero-centered { top: 0; display: flex; flex-direction: column; justify-content: center; padding: 40px 40px; }
@media (max-width: 720px) { .hero-photo-overlay.hero-centered { padding: 28px 22px; } }

/* Language switcher FR | EN */
.nav-links { margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 7px; margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--line); }
.lang-switch a { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.lang-switch a:hover, .lang-switch a.active { color: var(--ink); border-bottom-color: var(--gold); }
.lang-switch span { font-size: 11px; color: var(--line); }
@media (max-width: 640px) {
  .nav-links { margin-left: 0; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: none; width: 100%; justify-content: center; }
}

/* Home hero: double height, logo + title centred in the middle */
.hero-photo-wrap.hero-home { min-height: 840px; }
.hero-home .hero-photo-overlay.hero-centered { align-items: center; text-align: center; }
.hero-home .h1-photo { text-align: center; margin: 0; }
@media (max-width: 640px) { .hero-photo-wrap.hero-home { min-height: 560px; } }

/* ---------- Mentions légales ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h3 { font-weight: 400; font-size: 18px; color: var(--ink); margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal h3:first-of-type { margin-top: 10px; }
.legal p, .legal li { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal strong { font-weight: 400; color: var(--ink); }
.legal a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.legal .updated { font-size: 12.5px; color: #8b9089; margin-top: 36px; }
.form-note a { color: var(--ink); border-bottom: 1px solid var(--gold); }

/* ---------- Pleine largeur : fonds et photos bord à bord, contenu centré sur 1020 px ---------- */
:root { --gutter: max(40px, calc((100% - 1020px) / 2)); }
@media (max-width: 640px) { :root { --gutter: 22px; } }
.page { max-width: none; }
.nav, .section, .sep, footer, .hero-photo-overlay { padding-left: var(--gutter); padding-right: var(--gutter); }
.hero-photo-wrap:not(.hero-home) { min-height: clamp(420px, 30vw, 600px); }
@media (max-width: 640px) { .hero-photo-wrap:not(.hero-home) { min-height: 360px; } }
.hero-home > img { object-position: 42% center; }
