/* Camping RP WL — site public V2 (vitrine + règlement). DA 3z : noir, vert néon, boussole. */
@font-face { font-family: "Michroma"; src: url("fonts/Michroma-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --vert: #10B058;
  --vert-fonce: #089048;
  --neon: #2EE07A;
  --fond: #0B0F0D;
  --fond-2: #111814;
  --carte: #141c17;
  --ligne: rgba(46, 224, 122, .16);
  --texte: #EEF3EF;
  --doux: #A9B8AE;
  --titre: "Michroma", system-ui, sans-serif;
  --corps: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.65 var(--corps);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11, 15, 13, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ligne);
}
.marque { display: flex; align-items: center; gap: 10px; color: var(--texte); font-family: var(--titre); font-size: 14px; letter-spacing: .08em; }
.marque:hover { text-decoration: none; }
.marque img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(46, 224, 122, .5)); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--doux); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--texte); background: rgba(46, 224, 122, .08); text-decoration: none; }
.nav a.cta { color: #04130a; background: var(--vert); font-weight: 600; }
.nav a.cta:hover { background: var(--neon); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--ligne); color: var(--texte); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-plein { background: var(--vert); color: #04130a; box-shadow: 0 0 24px rgba(16, 176, 88, .35); }
.btn-plein:hover { background: var(--neon); box-shadow: 0 0 32px rgba(46, 224, 122, .5); }
.btn-ligne { border-color: var(--ligne); color: var(--texte); background: rgba(255, 255, 255, .03); }
.btn-ligne:hover { border-color: var(--vert); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) clamp(16px, 4vw, 48px); max-width: 1180px; margin: 0 auto; }
.surtitre { font-family: var(--titre); color: var(--neon); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin: 0 0 14px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-family: var(--titre); font-size: clamp(22px, 3vw, 32px); font-weight: 400; letter-spacing: .02em; }
.chapo { color: var(--doux); max-width: 640px; margin: 16px 0 0; font-size: 17px; }
.trait { width: 64px; height: 2px; background: linear-gradient(90deg, var(--neon), transparent); margin: 22px 0 0; border: 0; }

/* ---------- Héros ---------- */
.pastilles { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pastille { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ligne); background: rgba(11,15,13,.7); color: var(--neon); }
.heros { position: relative; }
.heros-visuel {
  position: relative; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%;
  background: var(--fond) url("banniere.webp") center top / cover no-repeat;
}
.heros-visuel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,13,0) 55%, var(--fond) 100%); }
.heros-contenu { position: relative; z-index: 1; padding: 8px clamp(16px, 4vw, 48px) 24px; max-width: 1180px; margin: -40px auto 0; width: 100%; text-align: center; }
.heros .pastilles { justify-content: center; }
.heros h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(24px, 3.4vw, 40px); letter-spacing: .02em; max-width: 900px; margin: 0 auto; }
.heros p { max-width: 620px; color: var(--doux); font-size: 18px; margin: 18px auto 28px; }
.heros .actions { justify-content: center; }.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Présentation ---------- */
.deux-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.deux-col p { color: var(--doux); }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chiffre { padding: 22px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--carte); }
.chiffre b { display: block; font-family: var(--titre); font-weight: 400; font-size: 22px; color: var(--neon); }
.chiffre span { color: var(--doux); font-size: 14px; }

/* ---------- Portes (livret / règlement / boutique) ---------- */
.portes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.porte {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border-radius: 16px; border: 1px solid var(--ligne);
  background: linear-gradient(180deg, var(--carte), var(--fond-2)); color: var(--texte);
  transition: border-color .2s, transform .2s, box-shadow .2s; min-height: 250px; overflow: hidden;
}
.porte:hover { text-decoration: none; border-color: var(--vert); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(46,224,122,.15); }
.porte .icone { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(46,224,122,.1); color: var(--neon); }
.porte h3 { font-family: var(--titre); font-weight: 400; font-size: 17px; margin-top: 8px; }
.porte p { color: var(--doux); margin: 0; font-size: 15px; flex: 1; }
.porte .suite { color: var(--neon); font-weight: 600; font-size: 14px; }
.porte.livret { background: linear-gradient(160deg, #2a2418 0%, #15120c 60%); border-color: rgba(214, 190, 140, .25); }
.porte.livret .icone { background: rgba(214,190,140,.12); color: #e7d3a6; }
.porte.livret .suite { color: #e7d3a6; }
.porte.livret:hover { border-color: #cfb27a; }

/* ---------- Étapes ---------- */
.etapes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: e; }
.etapes li { position: relative; padding: 26px 22px 22px; border-radius: 14px; background: var(--carte); border: 1px solid var(--ligne); counter-increment: e; }
.etapes li::before { content: "0" counter(e); font-family: var(--titre); color: var(--neon); font-size: 13px; letter-spacing: .1em; }
.etapes h3 { font-size: 17px; margin: 10px 0 6px; }
.etapes p { margin: 0; color: var(--doux); font-size: 14.5px; }
.etapes a { font-weight: 600; }

/* ---------- Équipe & donateurs ---------- */
.equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 36px; }
.membre { padding: 26px; border-radius: 16px; background: var(--carte); border: 1px solid var(--ligne); }
.membre .role { color: var(--neon); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.membre h3 { font-family: var(--titre); font-weight: 400; font-size: 20px; margin: 6px 0 10px; }
.membre p { margin: 0; color: var(--doux); font-size: 15px; }
.donateurs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.donateur { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); font-weight: 500; font-size: 14px; }
.donateur img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--ligne); padding: 40px clamp(16px, 4vw, 48px); color: var(--doux); font-size: 14px; }
.pied-int { max-width: 1180px; margin: 0 auto; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.pied nav { display: flex; gap: 18px; flex-wrap: wrap; }
.pied nav a { color: var(--doux); }
.pied small { display: block; margin-top: 6px; opacity: .7; }

/* ---------- Règlement ---------- */
.regl-tete { padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px) 32px; max-width: 1180px; margin: 0 auto; }
.regl-tete h1 { font-family: var(--titre); font-weight: 400; font-size: clamp(28px, 4vw, 44px); }
.regl-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.regl { display: grid; grid-template-columns: 260px 1fr; gap: 48px; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 96px; }
.sommaire { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.recherche { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ligne); background: var(--carte); color: var(--texte); font: inherit; font-size: 14px; }
.recherche::placeholder { color: #6f7f74; }
.sommaire ol { list-style: none; padding: 0; margin: 18px 0 0; }
.sommaire li a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--doux); font-size: 14px; }
.sommaire li a span { font-family: var(--titre); font-size: 11px; color: var(--neon); padding-top: 3px; min-width: 18px; }
.sommaire li a:hover, .sommaire li a.actif { background: rgba(46,224,122,.08); color: var(--texte); text-decoration: none; }
.partie { padding: 8px 0 36px; border-bottom: 1px solid var(--ligne); margin-bottom: 36px; }
.partie:last-of-type { border-bottom: 0; }
.partie h2 { display: flex; gap: 14px; align-items: baseline; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 18px; }
.partie h2 .num { color: var(--neon); }
.partie > p { color: var(--doux); }
.citation { margin: 0 0 20px; padding: 14px 18px; border-left: 2px solid var(--vert); background: rgba(46,224,122,.05); border-radius: 0 10px 10px 0; color: #cfe0d4; font-style: italic; }
.article { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 12px; border-radius: 10px; margin: 0 -12px; transition: background .2s; }
.article:target, .article.surligne { background: rgba(46,224,122,.09); }
.article .ref {
  font-family: var(--titre); font-size: 12px; color: var(--neon); background: none; border: 0; padding: 4px 0 0; text-align: left; cursor: pointer; height: fit-content;
}
.article .ref:hover { text-decoration: underline; }
.article p { margin: 0; color: var(--texte); }
.article p b { color: #fff; }
mark { background: rgba(46,224,122,.3); color: #fff; border-radius: 3px; padding: 0 2px; }
.vide { color: var(--doux); display: none; }
.accord { margin-top: 12px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--carte); font-weight: 600; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--vert); color: #04130a; font-weight: 600; padding: 10px 18px; border-radius: 10px; transition: .25s; pointer-events: none; z-index: 99; }
.toast.vu { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .deux-col, .regl { grid-template-columns: 1fr; }
  .portes { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr 1fr; }
  .sommaire { position: static; max-height: none; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 12px; background: var(--fond); border-bottom: 1px solid var(--ligne); }
  .nav.ouvert { display: flex; }
  .etapes { grid-template-columns: 1fr; }
  .chiffres { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- GeoBase ---------- */
.geobase { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 20px 24px; border-radius: 16px; border: 1px solid rgba(220, 48, 48, .3); background: linear-gradient(90deg, rgba(220,48,48,.08), var(--carte) 60%); color: var(--texte); }
.geobase:hover { text-decoration: none; border-color: #dc3030; }
.geobase img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.geobase b { display: block; font-family: var(--titre); font-weight: 400; font-size: 16px; margin-bottom: 4px; }
.geobase span { color: var(--doux); font-size: 15px; }
.geobase .suite { margin-left: auto; color: #ff8a8a; font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .geobase { flex-wrap: wrap; } .geobase .suite { margin-left: 0; } }

.serree { padding-top: 0; }
.bloc { display: block; }
.exemple { color: var(--doux); }

/* ---------- Protection anti-copie ---------- */
html { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img, svg { -webkit-user-drag: none; user-drag: none; }
@media print { body { display: none !important; } html::after { content: "L'impression de ce site est désactivée."; display: block; padding: 40px; font: 16px sans-serif; } }
.equipe .fondateurs { grid-column: 1 / -1; text-align: center; }
.fondateurs h3 { margin-bottom: 0; font-size: 24px; }
