/* ==========================================================================
   Camping la Charbonniere — refonte statique
   Mobile-first • Responsive • Sans framework • Lisible & maintenable
   ========================================================================== */

:root{
  --bg: #ffffff;
  --surface: #f6f7f8;
  --surface-2: #eef2ef;

  --text: #1f2937;
  --muted: #6b7280;

  --brand: #2f6b3f;
  --brand-2: #1f4d2c;
  --accent: #f59e0b;
  --border: rgba(31,41,55,.12);

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --max: 1100px;

  --h1: clamp(28px, 5vw, 44px);
  --h2: clamp(22px, 3.5vw, 30px);
  --p: 16px;
  --lh: 1.6;
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh);
}

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

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

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

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  background: #fff;
}

.brand .title{
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand .title strong{
  font-size: 15px;
  letter-spacing: .2px;
}

.brand .title span{
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display: none;
  align-items: center;
  gap: 6px;
}

.nav a{
  padding: 10px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.nav a[aria-current="page"]{
  background: var(--surface-2);
  color: var(--brand-2);
}

.burger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.burger svg{ width: 22px; height: 22px; }

@media (min-width: 900px){
  .burger{ display: none; }
  .nav{ display: flex; }
}

/* Mobile nav */
.mobile-nav{
  display: none;
  border-top: 1px solid var(--border);
  padding: 8px 0 14px;
}

.mobile-nav.open{ display: block; }

.mobile-nav a{
  display: block;
  padding: 12px 0;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a[aria-current="page"]{ color: var(--brand-2); }

/* Hero */
.hero{
  position: relative;
  min-height: 48vh;
  display: grid;
  place-items: end start;
  padding: 36px 0;
  color: white;
  overflow: hidden;
  background: #111;
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.45) 100%);
  z-index: 0;
}

.hero .hero-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

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

.hero h1{
  margin: 0 0 10px;
  font-size: var(--h1);
}

.hero p{
  margin: 0;
  max-width: 62ch;
  color: rgba(255,255,255,.92);
}

.hero .cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 800;
}

.btn:hover{ text-decoration: none; background: rgba(255,255,255,.18); }

.btn.primary{
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.85);
  color: #111;
}

.btn.primary:hover{ background: rgba(245,158,11,.95); }

/* Sections */
.section{ padding: 44px 0; }

.section h2{
  font-size: var(--h2);
  margin: 0 0 14px;
}

.section p{ margin: 0 0 14px; font-size: var(--p); }

.grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

@media (min-width: 860px){
  .grid-2{ grid-template-columns: 1.1fr .9fr; }
  .grid-2.reverse{ grid-template-columns: .9fr 1.1fr; }
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card .pad{ padding: 18px; }

.kicker{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
  color: var(--brand-2);
  background: rgba(47,107,63,.08);
  border: 1px solid rgba(47,107,63,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* Tarifs */
.pricing{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

@media (min-width: 700px){
  .pricing{ grid-template-columns: 1fr 1fr; }
}

.price-item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
}

.price-item strong{ font-size: 15px; }
.price-item span{ font-weight: 900; color: var(--brand-2); }

.note{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 600px){ .gallery{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px){ .gallery{ grid-template-columns: repeat(4, 1fr); } }

.gallery a{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.gallery img{
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* Contact */
.form{ display: grid; gap: 12px; }
.input{ display: grid; gap: 6px; }

.input label{
  font-weight: 900;
  font-size: 13px;
  color: var(--muted);
}

.input input,
.input textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
}

.input textarea{ min-height: 140px; resize: vertical; }

.help{ color: var(--muted); font-size: 13px; }

/* Map */
#map{
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer{
  margin-top: 30px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 26px 0;
  align-items: center;
}

@media (min-width: 760px){
  .footer-inner{ grid-template-columns: 1.3fr 1fr; }
}

.footer-inner small{ color: var(--muted); }

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-start;
}

.footer-links a{
  font-weight: 800;
  color: var(--brand-2);
}

.visually-hidden{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
