:root{
  --bg:#fbf7f2;
  --surface:#ffffff;
  --text:#211a14;
  --muted:#6c625a;

  /* Orange directement inspiré du logo fourni */
  --brand-orange:#f87b03;
  --primary:#b84e00;
  --primary-dark:#8a3900;
  --accent:#f87b03;

  --border:#ead9c8;
  --border-strong:#d8b794;
  --danger:#9f2222;
  --danger-bg:#fff1f1;
  --soft-orange:#fff2e4;
  --soft-orange-2:#ffe7cf;
  --shadow:0 16px 45px rgba(97,53,14,.10);
  --radius:18px;
}

*{box-sizing:border-box}

html{
  font-size:18px;
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
}

a{color:var(--primary-dark)}

a:hover{color:var(--primary)}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:4px solid #ffb15d;
  outline-offset:3px;
}

.wrap{
  width:min(1120px,calc(100% - 32px));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:10px;
  background:#fff;
  padding:12px 16px;
  z-index:999;
  border:2px solid var(--primary);
}

.skip-link:focus{left:10px}

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

.site-header{
  background:#fff;
  border-top:5px solid var(--brand-orange);
  border-bottom:1px solid var(--border);
  box-shadow:0 5px 20px rgba(69,40,18,.04);
}

.header-inner{
  min-height:124px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding-block:10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
  text-decoration:none;
  color:var(--text);
}

.brand:hover{color:var(--text)}

.brand-logo{
  display:block;
  width:142px;
  height:auto;
  flex:0 0 auto;
  border-radius:8px;
}

.brand-event{
  display:flex;
  flex-direction:column;
  min-width:130px;
}

.brand-event strong{
  color:var(--primary-dark);
  font-size:1.02rem;
  line-height:1.2;
}

.brand-event small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-weight:700;
}

.main-nav{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.main-nav a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 12px;
  border-radius:10px;
  color:var(--primary-dark);
  font-weight:800;
  text-decoration:none;
}

.main-nav a:hover{
  background:var(--soft-orange);
  color:var(--primary-dark);
}

/* ---------- Contenu ---------- */

.main-content{
  padding-block:48px 72px;
}

.hero{
  background:linear-gradient(135deg,#8a3900 0%,#b84e00 48%,#d86600 100%);
  color:#fff;
  border-radius:28px;
  padding:48px;
  box-shadow:var(--shadow);
  margin-bottom:28px;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  right:-80px;
  bottom:-110px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:rgba(248,123,3,.34);
  pointer-events:none;
}

.hero h1{
  position:relative;
  z-index:1;
  font-size:clamp(2rem,5vw,3.5rem);
  line-height:1.05;
  margin:0 0 16px;
}

.hero p,
.hero-actions{
  position:relative;
  z-index:1;
}

.hero p{
  max-width:760px;
  font-size:1.1rem;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}

/* ---------- Boutons ---------- */

.button,
.button-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:11px 18px;
  border-radius:12px;
  border:2px solid transparent;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
  font-size:1rem;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}

.button{
  background:var(--primary);
  color:#fff;
}

.button:hover{
  background:var(--primary-dark);
  color:#fff;
}

.button:active,
.button-secondary:active{
  transform:translateY(1px);
}

.hero .button{
  background:#fff;
  color:var(--primary-dark);
}

.hero .button:hover{
  background:#fff5eb;
  color:var(--primary-dark);
}

.button-secondary{
  background:#fff;
  border-color:var(--border);
  color:var(--text);
}

.button-secondary:hover{
  border-color:var(--brand-orange);
  color:var(--primary-dark);
  background:#fffaf5;
}

/* ---------- Cartes ---------- */

.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

.card,
.form-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
}

.card h2,
.form-card h1{
  margin-top:0;
}

.notice{
  border-left:5px solid var(--brand-orange);
  padding:16px 18px;
  background:var(--soft-orange);
  border-radius:10px;
  margin:18px 0;
}

.notice.warning{
  border-color:#c36b08;
  background:#fff3df;
}

.notice.error{
  border-color:var(--danger);
  background:var(--danger-bg);
}

.error-summary{
  border:3px solid var(--danger);
  background:#fff4f4;
  border-radius:14px;
  padding:18px;
  margin:0 0 22px;
}

.error-summary h2{
  margin-top:0;
  color:var(--danger);
}

/* ---------- Formulaires ---------- */

fieldset{
  border:0;
  padding:0;
  margin:0 0 26px;
}

legend{
  font-size:1.2rem;
  font-weight:900;
  margin-bottom:14px;
}

.field{
  margin-bottom:18px;
}

label{
  display:block;
  font-weight:800;
  margin-bottom:7px;
}

.hint{
  display:block;
  color:var(--muted);
  font-size:.92rem;
  margin-top:4px;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=number],
input[type=password],
input[type=search],
select,
textarea{
  width:100%;
  min-height:50px;
  border:2px solid var(--border);
  border-radius:11px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
  color:var(--text);
  appearance:auto;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

input[type=text]:hover,
input[type=email]:hover,
input[type=tel]:hover,
input[type=date]:hover,
input[type=number]:hover,
input[type=password]:hover,
input[type=search]:hover,
select:hover,
textarea:hover{
  border-color:var(--border-strong);
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=date]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=search]:focus,
select:focus,
textarea:focus{
  border-color:var(--brand-orange);
  box-shadow:0 0 0 4px rgba(248,123,3,.16);
  outline:none;
}

/* neutralise le petit rendu natif très étroit de search sur certains navigateurs */
input[type=search]{
  -webkit-appearance:none;
  appearance:none;
}

input[type=search]::-webkit-search-cancel-button{
  cursor:pointer;
}

textarea{
  min-height:120px;
  resize:vertical;
}

.choice-list{
  display:grid;
  gap:9px;
}

.choice{
  display:flex;
  gap:11px;
  align-items:flex-start;
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}

.choice:hover{
  border-color:var(--border-strong);
  background:#fffaf6;
}

.choice input{
  width:22px;
  height:22px;
  margin-top:2px;
  flex:0 0 auto;
  accent-color:var(--brand-orange);
}

.choice label{
  margin:0;
  font-weight:650;
}

.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.price-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:var(--soft-orange);
  border:2px solid #f0bf8e;
  padding:18px;
  border-radius:14px;
  margin:18px 0;
}

.price{
  font-size:1.8rem;
  font-weight:900;
  color:var(--primary-dark);
}

.required{
  color:var(--danger);
}

.actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:24px;
}

.hp{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}

/* ---------- Admin / statuts / tableaux ---------- */

.status{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#f1ece7;
  color:#3a322c;
  font-weight:800;
  font-size:.86rem;
}

.status.paid{
  background:var(--soft-orange-2);
  color:var(--primary-dark);
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th,
td{
  text-align:left;
  padding:11px 10px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}

th{
  font-size:.88rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:20px 0;
}

.stat{
  background:#fff;
  border:1px solid var(--border);
  padding:18px;
  border-radius:14px;
}

.stat strong{
  display:block;
  font-size:1.8rem;
  color:var(--primary-dark);
}

.admin-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 22px;
}

.admin-nav a{
  background:#fff;
  border:1px solid var(--border);
  color:var(--primary-dark);
  padding:8px 11px;
  border-radius:9px;
  text-decoration:none;
  font-weight:800;
}

.admin-nav a:hover{
  border-color:var(--brand-orange);
  background:var(--soft-orange);
}

.admin-filter-card{
  margin-bottom:18px;
}

.admin-results-meta{
  display:flex;
  gap:7px;
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 12px;
  color:var(--muted);
}

/* ---------- Pagination V1.0.2 ---------- */

.pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:20px;
}

.pagination-pages{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.pagination-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  padding:7px 11px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:var(--primary-dark);
  text-decoration:none;
  font-weight:800;
}

.pagination-link:hover{
  border-color:var(--brand-orange);
  background:var(--soft-orange);
}

.pagination-link.current{
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.pagination-link.disabled{
  opacity:.45;
  cursor:not-allowed;
}

.pagination-ellipsis{
  padding:0 4px;
  color:var(--muted);
  font-weight:800;
}

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

.site-footer{
  border-top:1px solid var(--border);
  background:#fff;
  padding:30px 0;
  color:var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width:900px){
  .header-inner{
    align-items:flex-start;
    flex-direction:column;
    padding-block:14px;
  }

  .main-nav{
    justify-content:flex-start;
  }
}

@media (max-width:800px){
  html{font-size:17px}

  .brand-logo{
    width:120px;
  }

  .brand-event{
    min-width:0;
  }

  .hero{
    padding:30px 22px;
  }

  .grid,
  .two-cols,
  .stats{
    grid-template-columns:1fr;
  }

  .main-content{
    padding-top:28px;
  }

  .pagination{
    justify-content:center;
  }
}

@media (max-width:520px){
  .brand{
    align-items:flex-start;
  }

  .brand-logo{
    width:105px;
  }

  .brand-event strong{
    font-size:.94rem;
  }

  .main-nav{
    width:100%;
  }

  .main-nav a{
    width:100%;
    border:1px solid var(--border);
  }
}
