/* ============================================
   Guide Locataires — Stella Plage
   Thème "Côte d'Opale" : sable, mer, corail
   ============================================ */

:root {
  --sea-deep: #0f5c7a;
  --sea: #1c7ea6;
  --sea-light: #58a9c9;
  --sand: #f7efdd;
  --sand-dark: #ecdcb4;
  --coral: #e0723f;
  --coral-dark: #c65a2b;
  --ink: #2a2b28;
  --ink-soft: #5a5c56;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 40, 55, 0.1);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--sea-deep); }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--sea-deep);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand .wave { font-size: 1.4rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.lang-switch a {
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
}

.lang-switch a.active {
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sea-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 16px;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 10px;
    margin-top: 6px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 90px 20px;
  background-image:
    linear-gradient(180deg, rgba(10, 35, 48, 0.45) 0%, rgba(10, 35, 48, 0.35) 45%, rgba(10, 35, 48, 0.75) 100%),
    url("../img/hero-dunes-stella-plage.jpg");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 1.2rem;
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
    padding: 60px 18px;
    background-image:
      linear-gradient(180deg, rgba(10, 35, 48, 0.5) 0%, rgba(10, 35, 48, 0.4) 45%, rgba(10, 35, 48, 0.8) 100%),
      url("../img/hero-dunes-stella-plage-mobile.jpg");
  }
}

.page-hero {
  background: linear-gradient(160deg, var(--sea-deep), var(--sea));
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin: 0 0 8px;
}

.page-hero p { color: rgba(255,255,255,0.9); margin: 0; }

/* ---------- Sections & cards ---------- */

main { padding: 44px 0 70px; }

section { margin-bottom: 48px; }

h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--sea-deep);
  border-bottom: 2px solid var(--sand-dark);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

h3 { color: var(--coral-dark); font-size: 1.15rem; margin-bottom: 6px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease;
}

.card:hover { transform: translateY(-3px); }

.card .icon { font-size: 1.8rem; margin-bottom: 8px; display: block; }

.card h3 { margin: 0 0 6px; color: var(--sea-deep); }

.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.info-box {
  background: var(--white);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.info-box.emergency { border-left-color: #c62828; }

.todo {
  background: #fff6e5;
  border: 1px dashed #d9a441;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #7a5410;
  margin-top: 8px;
}

.todo strong { color: #a3690b; }

/* ---------- Accordion (appliance guides) ---------- */

.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--coral);
}

.accordion-item[open] summary::after { content: "\2212"; }

.accordion-item .accordion-body {
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

.accordion-body ul { padding-left: 20px; }
.accordion-body li { margin-bottom: 6px; }

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand-dark);
}

th { background: var(--sand-dark); color: var(--sea-deep); }

tr:last-child td { border-bottom: none; }

/* ---------- Embedded office websites ---------- */

.embed-frame {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-dark);
  background: var(--white);
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .embed-frame { height: 420px; }
}

.card .btn-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--coral-dark);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--sea-deep);
  color: rgba(255,255,255,0.85);
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a { color: var(--white); }

/* ---------- Utilities ---------- */

.lead { font-size: 1.1rem; color: var(--ink-soft); }
.small { font-size: 0.85rem; color: var(--ink-soft); }
