/* Park View — Conseil Syndical
   Palette : bleu marine, gris clair, blanc cassé */

:root {
  /* Palette fresque botanique Park View (Clara Langelez) — hall double hauteur :
     - bleu marine encre (feuillages, contours)
     - terracotta saumon (feuillages chauds, portes)
     - crème quasi blanc (murs, plafond) */
  --pv-primary: #1c2d4a;        /* bleu marine encre */
  --pv-primary-dark: #131e35;   /* bleu marine profond */
  --pv-accent: #a06477;         /* vieux rose / mauve poudré — texte titres, CTA */
  --pv-accent-warm: #804d5d;    /* rose-mauve profond (hover) */
  --pv-accent-cool: #8aa3c6;    /* bleu poudré (feuillages clairs fresque) */
  --pv-orange: #d68870;         /* NOTRE ORANGE — terracotta saumon (icônes, filets, accents chauds) */
  --pv-orange-deep: #b56654;    /* notre orange profond (hover) */
  --pv-vieux-gris: #a39e92;     /* vieux gris (gris taupe chaud, cassé) */
  --pv-accent-rose: var(--pv-orange); /* alias rétro-compatible */
  --pv-bg: #b3c5d9;             /* bleu acier poudré (feuillages bleus fresque) */
  --pv-surface: #c8d5e5;        /* bleu acier + clair (sections alt) */
  --pv-text: #1a1a1a;           /* noir charbon (encre Langelez) */
  --pv-muted: #5a6a7e;          /* gris bleu (cohérent avec fond) */
  --pv-border: #c4d2e2;         /* bleu ciel assombri (traits discrets) */
  --pv-success: #2f7d4a;
  --pv-warning: #b8860b;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--pv-text);
  background: var(--pv-bg);
  line-height: 1.6;
}

/* Charte : tous les titres en NOTRE ORANGE.
   Sur fond clair → orange profond (--pv-orange-deep, ratio ~3.5:1)
   Sur fond foncé (hero, cards, page-header) → orange clair (--pv-orange) */
h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pv-orange-deep);
}

.pv-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.pv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pv-border);
}

.pv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.pv-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--pv-primary);
}

.pv-brand img {
  height: 40px;
  width: auto;
}

.pv-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pv-brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.pv-brand-sub {
  font-size: 0.78rem;
  color: var(--pv-muted);
  font-weight: 500;
}

.pv-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.pv-nav a {
  color: var(--pv-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.pv-nav a:hover, .pv-nav a.active {
  color: var(--pv-primary);
  border-bottom-color: var(--pv-accent-rose);
}

.pv-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.pv-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pv-primary);
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .pv-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--pv-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--pv-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .pv-nav.open { display: flex; }
  .pv-burger { display: block; }
}

/* Hero */
.pv-hero {
  background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-dark) 100%);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.pv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.pv-hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  position: relative;
}

.pv-hero p {
  font-size: 1.15rem;
  max-width: 720px;
  opacity: 0.92;
  position: relative;
}

.pv-hero-tag {
  display: inline-block;
  background: transparent;
  border: none;
  color: #a06477;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  position: relative;
}

/* Page header (intérieur) */
.pv-page-header {
  background: var(--pv-primary);
  color: white;
  padding: 3rem 0 2.5rem;
}

.pv-page-header h1 {
  color: white;
  font-size: 2rem;
}

.pv-page-header .pv-breadcrumb {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.pv-page-header .pv-breadcrumb a {
  color: white;
  text-decoration: none;
}

/* Sections */
section {
  padding: 4rem 0;
}

section.pv-section-alt {
  background: var(--pv-surface);
}

.pv-section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.pv-section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  position: relative;
  padding-bottom: 0.6rem;
}

.pv-section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--pv-orange);
  border-radius: 2px;
}

.pv-section-title p {
  color: var(--pv-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Grid cards */
.pv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pv-card {
  background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.75rem;
  color: rgba(255, 255, 255, 0.92);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.pv-card > * {
  position: relative;
}

.pv-card:hover {
  border-color: var(--pv-accent-rose);
  box-shadow: 0 10px 28px rgba(28, 45, 74, 0.35);
  transform: translateY(-2px);
}

.pv-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pv-accent-rose), #b56654);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-primary-dark);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.pv-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.pv-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.pv-card a {
  color: var(--pv-accent);
  text-decoration: none;
  font-weight: 500;
}

.pv-card a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Content (article) */
.pv-prose {
  max-width: 760px;
  margin: 0 auto;
}

.pv-prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.pv-prose h3 {
  font-size: 1.18rem;
  margin: 2rem 0 0.75rem;
}

.pv-prose p, .pv-prose li {
  color: var(--pv-text);
  margin-bottom: 1rem;
}

.pv-prose ul, .pv-prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.pv-prose ul li {
  list-style: disc;
}

.pv-prose ol li {
  list-style: decimal;
}

.pv-prose a {
  color: var(--pv-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pv-prose strong {
  font-weight: 600;
  color: var(--pv-primary);
}

.pv-prose blockquote {
  border-left: 3px solid var(--pv-accent-rose);
  background: #f5ebef;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: normal;
  color: var(--pv-text);
}

.pv-prose blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--pv-muted);
  font-style: normal;
}

/* Buttons */
.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.pv-btn-primary {
  background: var(--pv-orange);
  color: var(--pv-primary-dark);
}

.pv-btn-primary:hover {
  background: var(--pv-orange-deep);
  transform: translateY(-1px);
}

.pv-btn-outline {
  background: var(--pv-orange);
  border-color: var(--pv-orange);
  color: var(--pv-primary-dark);
}

.pv-btn-outline:hover {
  background: var(--pv-orange-deep);
  border-color: var(--pv-orange-deep);
  transform: translateY(-1px);
}

.pv-btn-ghost {
  background: var(--pv-surface);
  color: var(--pv-primary);
  border-color: var(--pv-border);
}

.pv-btn-ghost:hover {
  border-color: var(--pv-primary);
}

.pv-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Communiqués (timeline) */
.pv-timeline {
  max-width: 820px;
  margin: 0 auto;
}

.pv-com-item {
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.pv-com-date {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--pv-muted);
  background: var(--pv-bg);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.pv-com-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.pv-com-item p {
  color: var(--pv-text);
}

.pv-com-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pv-accent-rose);
  background: rgba(214, 136, 112, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* FAQ */
.pv-faq details {
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.pv-faq summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--pv-primary);
}

.pv-faq summary::-webkit-details-marker { display: none; }

.pv-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s;
}

.pv-faq details[open] summary::after {
  content: "−";
}

.pv-faq details > *:not(summary) {
  padding: 0 1.25rem 1.25rem;
  color: var(--pv-text);
}

/* Tables */
.pv-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pv-surface);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--pv-border);
}

.pv-table th {
  background: var(--pv-bg);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pv-primary);
  border-bottom: 1px solid var(--pv-border);
}

.pv-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--pv-border);
  font-size: 0.93rem;
}

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

.pv-table tr:hover td {
  background: var(--pv-bg);
}

/* Alerts */
.pv-alert {
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.pv-alert-info {
  background: #eef4fb;
  border-color: var(--pv-primary);
  color: var(--pv-primary-dark);
}

.pv-alert-warning {
  background: #fdf6e3;
  border-color: var(--pv-warning);
  color: #6b5108;
}

.pv-alert-success {
  background: #ecf6ef;
  border-color: var(--pv-success);
  color: #1c4d2e;
}

/* Footer */
.pv-footer {
  background: var(--pv-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.pv-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.pv-footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.pv-footer ul {
  list-style: none;
}

.pv-footer ul li {
  margin-bottom: 0.5rem;
}

.pv-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.pv-footer a:hover {
  color: var(--pv-accent);
}

.pv-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

/* Form */
.pv-form {
  background: var(--pv-surface);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--pv-border);
  max-width: 640px;
  margin: 0 auto;
}

.pv-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--pv-primary);
}

.pv-form input,
.pv-form select,
.pv-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--pv-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 1rem;
  background: var(--pv-surface);
  color: var(--pv-text);
  transition: border-color 0.15s;
}

.pv-form input:focus,
.pv-form select:focus,
.pv-form textarea:focus {
  outline: none;
  border-color: var(--pv-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.pv-form textarea {
  min-height: 130px;
  resize: vertical;
}

.pv-form .pv-form-help {
  font-size: 0.8rem;
  color: var(--pv-muted);
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

/* Utils */
.pv-text-center { text-align: center; }
.pv-text-muted { color: var(--pv-muted); }
.pv-mt-2 { margin-top: 2rem; }
.pv-mb-1 { margin-bottom: 1rem; }

@media (max-width: 640px) {
  section { padding: 2.5rem 0; }
  .pv-hero { padding: 3rem 0 2.5rem; }
  .pv-card { padding: 1.25rem; }
  .pv-form { padding: 1.5rem; }
}

/* === Charte couleurs sur fonds foncés (hero, page-header, cards) ===
   Titres → orange clair / Texte → vieux gris */
.pv-hero h1,
.pv-page-header h1,
.pv-card h3 {
  color: var(--pv-orange) !important;
}
.pv-hero p,
.pv-page-header p,
.pv-page-header .pv-breadcrumb,
.pv-page-header .pv-breadcrumb a,
.pv-card p {
  color: var(--pv-vieux-gris) !important;
}
.pv-card a { color: var(--pv-orange) !important; }
.pv-card   { color: var(--pv-vieux-gris); }
