:root {
  --ink: #17231d;
  --domaine-blue: #075f7d;
  --green: #234e3b;
  --gold: #b08a4b;
  --cream: #f7f4ec;
  --white: #fff;
  --line: rgba(23, 35, 29, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

.sidebar {
  width: 270px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3rem;
  padding: 2.2rem 1.7rem;
  background: var(--white);
  border-right: 1px solid var(--line);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}
.brand { display: block; color: var(--ink); text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
nav { display: flex; flex-direction: column; gap: .45rem; }
.tab { width: 100%; min-height: 48px; padding: .85rem .9rem; display: flex; align-items: center; gap: .65rem; color: var(--ink); background: transparent; border: 0; border-left: 3px solid transparent; text-align: left; font: inherit; font-weight: 650; cursor: pointer; }
.nav-icon { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.tab:hover, .tab.active { color: var(--green); background: rgba(35,78,59,.07); border-left-color: var(--gold); }

main, footer { margin-left: 270px; }
main { min-height: calc(100vh - 90px); overflow: hidden; }
.page-panel { animation: reveal .28s ease-out; }
.page-panel[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#accueil {
  min-height: calc(100vh - 90px);
  background-image:
    linear-gradient(rgba(247,244,236,.84), rgba(247,244,236,.90)),
    url('./assets/fond-accueil-panneaux.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero {
  max-width: 1050px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 6rem) 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.08; }
h1 { margin: 0 0 1.2rem; font-size: clamp(2.7rem, 5.5vw, 5.8rem); letter-spacing: -.04em; }
.primary-link { display: inline-block; padding: .9rem 1.35rem; color: white; background: var(--domaine-blue); border: 0; border-radius: 12px; text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; }
.hero-image { width: 100%; margin: 0; position: relative; }
.hero-image img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: contain; background: #eee8dc; border: 1px solid #111; border-radius: 12px; box-shadow: 0 22px 55px rgba(23,35,29,.16); }
.hero-image figcaption { margin-top: 1rem; color: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; font-weight: 600; }

.intro { max-width: 850px; margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) 5vw; text-align: center; }
.section-emblem { width: 58px; height: 58px; margin: 0 0 1.25rem; border-radius: 15px; object-fit: cover; box-shadow: 0 8px 22px rgba(8,75,107,.16); }
.intro h2 { margin: 0 0 1.2rem; font-size: clamp(2.2rem, 4vw, 4rem); }
.intro > p:last-child { margin: 0; font-size: 1.15rem; }
.residence-copy { margin-top: 2.5rem; padding: clamp(1.6rem, 4vw, 3rem); background: rgba(255,255,255,.94); border-top: 4px solid var(--green); box-shadow: 0 24px 70px rgba(23,35,29,.14); text-align: left; }
.residence-copy h3 { margin: 1.8rem 0 .45rem; color: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.residence-copy p { margin: 0; }
.organisation-chart { display: block; width: 100%; height: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.employees-card { max-width: 520px; margin: 1rem auto 0; text-align: center; }
.employees-card img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 45px rgba(23,35,29,.14); }
.employees-card figcaption { margin-top: .8rem; color: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 600; }
.content-panel { min-height: calc(100vh - 90px); padding: clamp(4rem, 8vw, 8rem) 5vw; }
.content-panel {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
#video { background-image: linear-gradient(rgba(247,244,236,.86), rgba(247,244,236,.93)), url('./assets/fond-residence.png'); }
#plan { background-image: linear-gradient(rgba(247,244,236,.88), rgba(247,244,236,.95)), url('./assets/fond-residence.png'); }
#informations { background-image: linear-gradient(rgba(247,244,236,.80), rgba(247,244,236,.90)), url('./assets/fond-informations.png'); }
#actualites { background-image: linear-gradient(rgba(247,244,236,.80), rgba(247,244,236,.90)), url('./assets/fond-actualites.png'); }
#fonctionnement { background-image: linear-gradient(rgba(247,244,236,.80), rgba(247,244,236,.90)), url('./assets/fond-fonctionnement.png'); }
.single-card { max-width: 900px; margin: 0 auto; padding: clamp(2rem, 5vw, 5rem); background: rgba(255,255,255,.94); border-top: 4px solid var(--green); box-shadow: 0 24px 70px rgba(23,35,29,.14); backdrop-filter: blur(4px); }
.plan-card { max-width: 1100px; text-align: center; }
.domain-map-link { display: block; margin: 2rem auto 1rem; }
.domain-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(23,35,29,.14); }
.map-help { margin: 0 0 1.5rem; color: rgba(23,35,29,.72); }
.card-number { color: var(--gold); font-weight: 800; letter-spacing: .1em; }
.single-card h2 { margin: 1rem 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.single-card > h3 { margin: 2rem 0 .7rem; color: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.video-player { display: block; width: 100%; height: auto; margin-top: 1rem; background: #063f59; border: 1px solid #111; border-radius: 12px; box-shadow: 0 18px 45px rgba(23,35,29,.14); }
.pool-info { margin: 2rem 0; padding: 1.4rem 1.5rem; color: white; background: var(--domaine-blue); border-radius: 12px; box-shadow: 0 12px 30px rgba(7,95,125,.18); }
.pool-info h3 { margin: 0 0 .65rem; color: #f5bf31; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.pool-info p { margin: .35rem 0; }
.news-list { display: grid; gap: 0; margin-top: 2rem; }
.news-list article { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.news-list h3 { margin: 0 0 .35rem; color: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 600; }
.news-list p { margin: 0; }
.pool-photo { display: block; width: 100%; height: auto; margin-top: 2rem; border: 1px solid #111; border-radius: 12px; box-shadow: 0 18px 45px rgba(23,35,29,.14); }
footer { padding: 2.5rem 5vw 1.5rem; color: rgba(255,255,255,.90); background: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; }
.footer-heading { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-bottom: 2rem; }
.footer-heading img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.footer-heading p { margin: 0; color: white; font-family: Georgia, serif; font-size: 1.3rem; font-style: italic; }
.contact-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .75fr 1.55fr .7fr; }
.contact-item { min-width: 0; padding: .3rem clamp(1rem, 2.2vw, 2rem); }
.contact-item + .contact-item { border-left: 1px solid rgba(255,255,255,.24); }
.contact-item span { display: block; margin-bottom: .55rem; color: #f5bf31; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-item p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.contact-item a { color: white; text-decoration: none; overflow-wrap: anywhere; }
.email-contact p { font-size: clamp(.82rem, 1.05vw, 1rem); }
.email-contact a { white-space: nowrap; overflow-wrap: normal; }
.contact-item a:hover { text-decoration: underline; }
.club-note { margin: 2rem 0 0; color: rgba(255,255,255,.5); font-size: .8rem; text-align: center; text-transform: uppercase; letter-spacing: .15em; }

@media (max-width: 760px) {
  .sidebar { width: 100%; height: auto; padding: .85rem 5vw 0; gap: .7rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { width: 150px; margin: 0 auto; }
  .brand img { max-height: 68px; }
  nav { flex-direction: row; gap: 0; overflow-x: auto; }
  .tab { width: auto; flex: 0 0 auto; padding: .7rem .85rem; border-left: 0; border-bottom: 3px solid transparent; }
  .tab:hover, .tab.active { border-left-color: transparent; border-bottom-color: var(--gold); }
  main, footer { margin-left: 0; }
  main { padding-top: 126px; }
  .hero { padding-top: 3rem; }
  .content-panel { min-height: calc(100vh - 126px); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-item { padding: 1.2rem; border-top: 1px solid rgba(255,255,255,.18); }
  .contact-item + .contact-item { border-left: 0; }
  .contact-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.18); }
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item:nth-child(even) { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.charter-document { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.charter-document h3 { margin: 0 0 .65rem; color: var(--domaine-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.charter-document p { margin: 0 0 1.25rem; }
.document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.document-download { color: var(--domaine-blue); font-weight: 650; text-underline-offset: .2em; }
