/* ============================================================
   ORA / Petit Lac — Site vitrine ANRU
   Palette validée : marine #123262 + or #be822f + vert #306339
   ============================================================ */

:root {
  /* Marine — structure */
  --marine: #123262;
  --marine-dark: #092142;
  --marine-50: #e9eef4;

  /* Or / ambre — accents */
  --or: #be822f;
  --or-clair: #dec097;
  --or-fonce: #824920;

  /* Vert — positifs, scénario recommandé */
  --vert: #306339;
  --vert-clair: #f2fdf5;

  /* Crèmes & neutres */
  --creme: #fdf8ed;
  --neutre: #f6f8fc;
  --blanc: #ffffff;
  --texte: #1a1a1a;
  --texte-doux: #4a5568;
  --bordure: #d8dde6;

  /* Typo */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Espacements */
  --container: 1200px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(18, 50, 98, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 50, 98, 0.12);
  --shadow-lg: 0 12px 32px rgba(9, 33, 66, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--marine); text-decoration: none; transition: color .15s; }
a:hover { color: var(--or); }
ul, ol { padding-left: 1.4em; }

/* ---------- Typo ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--marine);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
h2::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 64px; height: 3px; background: var(--or);
}
h3 { font-size: 1.35rem; margin-bottom: .5rem; }
h4 { font-size: 1.1rem; color: var(--or-fonce); }
p { margin-bottom: 1rem; color: var(--texte); }
.lead { font-size: 1.2rem; color: var(--texte-doux); max-width: 720px; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }
section.alt { background: var(--neutre); }
section.creme { background: var(--creme); }
section.marine { background: var(--marine); color: var(--blanc); }
section.marine h2, section.marine h3 { color: var(--blanc); }
section.marine h2::after { background: var(--or-clair); }
section.marine p { color: rgba(255,255,255,.85); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem;
  color: var(--marine);
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--marine), var(--or));
  display: grid; place-items: center; color: white; font-weight: 800; font-size: .9rem;
  font-family: var(--font-sans);
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--marine); font-weight: 500; font-size: .95rem;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--or); border-bottom-color: var(--or);
}

/* Mobile menu */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.5rem; color: var(--marine);
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: white; border-top: 1px solid var(--bordure);
    padding: 1rem 1.5rem;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: all .2s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--bordure); }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: var(--r-md);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
  transition: all .15s;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--marine); color: var(--blanc); }
.btn-primary:hover { background: var(--marine-dark); color: var(--blanc); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--or); color: var(--blanc); }
.btn-secondary:hover { background: var(--or-fonce); color: var(--blanc); }
.btn-ghost { border-color: var(--blanc); color: var(--blanc); }
.btn-ghost:hover { background: var(--blanc); color: var(--marine); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  background: linear-gradient(rgba(9,33,66,.55), rgba(9,33,66,.7)),
              url('../img/hero-entree.jpg') center/cover no-repeat;
  color: white;
}
.hero h1 { color: white; }
.hero .container { padding: 6rem 1.5rem; }
.hero .eyebrow {
  display: inline-block;
  color: var(--or-clair); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; font-size: .85rem;
  margin-bottom: 1rem;
}
.hero p { color: rgba(255,255,255,.9); max-width: 640px; font-size: 1.15rem; }

/* ---------- KPI cards ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.kpi {
  background: white;
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--or);
  border-radius: var(--r-md);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi.vert { border-top-color: var(--vert); }
.kpi .value {
  font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 700;
  color: var(--marine);
  line-height: 1;
}
.kpi .value.vert { color: var(--vert); }
.kpi .unit { font-size: .9rem; color: var(--texte-doux); margin-top: .25rem; }
.kpi .label {
  font-size: .85rem; font-weight: 600;
  color: var(--or-fonce);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .5rem;
}

/* ---------- Cartes (composantes / contenu) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  background: white;
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.4rem 1.4rem; flex: 1; }
.card h3 { margin-bottom: .4rem; font-size: 1.15rem; font-family: var(--font-sans); color: var(--marine); }
.card p { font-size: .92rem; color: var(--texte-doux); margin: 0; }
.card .amount {
  display: inline-block; margin-top: .8rem;
  font-weight: 600; color: var(--or-fonce);
  font-size: .85rem;
}

/* ---------- Tableau ---------- */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
table.data {
  width: 100%; border-collapse: collapse;
  background: white;
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: .92rem;
}
table.data thead { background: var(--marine-50); }
table.data th {
  text-align: left; padding: .9rem 1rem;
  font-weight: 600; color: var(--marine);
  border-bottom: 2px solid var(--bordure);
}
table.data td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--bordure);
}
table.data tbody tr:nth-child(even) { background: var(--neutre); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .ok { color: var(--vert); font-weight: 600; }
table.data .warn { color: var(--or-fonce); font-weight: 600; }
table.data tfoot td { font-weight: 700; background: var(--marine-50); border-top: 2px solid var(--marine); }

/* ---------- Panels comparatifs (12 vs 15) ---------- */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }
.panel {
  border-radius: var(--r-md);
  padding: 1.75rem;
  border: 1px solid var(--bordure);
}
.panel.creme { background: var(--creme); border-left: 4px solid var(--or); }
.panel.vert { background: var(--vert-clair); border-left: 4px solid var(--vert); }
.panel h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--or-fonce); margin-bottom: 1rem;
}
.panel.vert h3 { color: var(--vert); }
.panel ul { list-style: none; padding: 0; }
.panel li {
  display: flex; justify-content: space-between;
  padding: .65rem 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
  font-size: .95rem;
}
.panel li:last-child { border-bottom: 0; }
.panel li strong { color: var(--marine); font-weight: 600; }
.panel.vert li strong { color: var(--vert); }
.badge-star {
  display: inline-block; margin-left: .5rem;
  background: var(--vert); color: white;
  padding: .15rem .55rem; border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .05em;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 2rem; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px;
  width: 2px; background: var(--or-clair);
}
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.75rem; top: .4rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--or); border: 3px solid white;
  box-shadow: 0 0 0 2px var(--or);
}
.timeline-item .when {
  font-weight: 600; color: var(--or-fonce); font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.timeline-item h4 { font-family: var(--font-sans); color: var(--marine); margin: .2rem 0 .3rem; }
.timeline-item p { margin: 0; color: var(--texte-doux); font-size: .95rem; }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.gallery figure {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.gallery figure img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  transition: transform .4s;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(9,33,66,.85));
  color: white; padding: 1.5rem 1rem .8rem;
  font-size: .9rem; font-weight: 500;
}

/* ---------- Highlight callout ---------- */
.callout {
  background: var(--vert-clair);
  border-left: 4px solid var(--vert);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  margin: 1.5rem 0;
}
.callout strong { color: var(--vert); }

/* ---------- Footer ---------- */
.footer {
  background: var(--marine-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .container { grid-template-columns: 1fr; } }
.footer h4 {
  color: var(--or-clair); font-family: var(--font-sans);
  font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 1rem;
}
.footer a { color: rgba(255,255,255,.85); display: block; padding: .25rem 0; font-size: .9rem; }
.footer a:hover { color: var(--or-clair); }
.footer .brand-block { max-width: 320px; }
.footer .brand-block p { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem; padding-top: 1.5rem;
  text-align: center; font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom strong { color: var(--or-clair); }

/* ---------- Utilitaires ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.confidential {
  display: inline-block;
  background: var(--marine-50);
  color: var(--marine);
  font-size: .75rem; font-weight: 600;
  padding: .25rem .75rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 1rem;
}

/* Two-column block */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.two-col img { border-radius: var(--r-md); box-shadow: var(--shadow-md); }
