/* ==========================================================================
   Color Run des Beaumettes — feuille de style commune
   ========================================================================== */

:root {
  /* Palette Octobre Rose — reprise de l'affiche */
  --magenta: #ff2d87;          /* rose principal */
  --magenta-dark: #c9145f;
  --cyan: #ff6a3d;             /* corail (accent chaud de l'affiche) */
  --cyan-dark: #d1481f;
  --violet: #ff5b9e;           /* rose clair */
  --violet-dark: #c9145f;
  --yellow: #ffc09f;           /* pêche, pastilles */
  --lime: #2fd07a;             /* vert fonctionnel (validation), hors identité */
  --orange: #ff7a45;

  --ink: #241a1e;
  --ink-light: #7c6a70;
  --paper: #fdf7f4;
  --paper-alt: #f8ebe4;
  --line: #f2ddd3;
  --white: #ffffff;

  --grad: linear-gradient(120deg, #ff2d87 0%, #ff4f7a 52%, #ff7a45 100%);
  --grad-soft: linear-gradient(120deg, #fff0f6 0%, #fff3ee 55%, #ffeee6 100%);

  --shadow: 0 14px 38px rgba(36, 26, 30, 0.12);
  --shadow-sm: 0 4px 14px rgba(36, 26, 30, 0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

a { color: var(--violet-dark); text-decoration: none; }
a:hover { color: var(--magenta-dark); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
.section-alt { background: var(--paper-alt); }
.section-title { text-align: center; margin-bottom: 10px; }
.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--ink-light);
  font-size: 1.05rem;
}
.text-center { text-align: center; }
.muted { color: var(--ink-light); }
.small { font-size: 0.88rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--grad);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.logo-img { height: 52px; width: auto; flex-shrink: 0; }
.logo small {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-weight: normal;
  font-size: 0.68rem;
  color: var(--ink-light);
  letter-spacing: 0.12em;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover { background: var(--paper-alt); color: var(--violet-dark); }
.main-nav a.active { background: var(--grad); color: var(--white); }
.main-nav a.nav-admin {
  border: 1.5px solid var(--line);
  color: var(--ink-light);
  font-size: 0.85rem;
  padding: 7px 12px;
}
.main-nav a.nav-admin:hover { border-color: var(--violet); color: var(--violet-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--ink);
}

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

.btn {
  display: inline-block;
  background: var(--grad);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 45, 135, 0.28);
  transition: transform 0.16s, box-shadow 0.16s, opacity 0.16s;
  font-family: inherit;
  text-align: center;
}
.btn:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 45, 135, 0.34);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-outline {
  background: transparent;
  color: var(--violet-dark);
  border: 2px solid var(--violet);
  box-shadow: none;
  margin-left: 10px;
}
.btn-outline:hover { background: var(--violet); color: var(--white); }
.btn-sm { padding: 7px 15px; font-size: 0.85rem; box-shadow: none; }
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--paper-alt); color: var(--ink); }
.btn-danger { background: linear-gradient(120deg, #ff5252, #d1006c); box-shadow: none; }
.btn-ok { background: linear-gradient(120deg, var(--lime), #16a34a); box-shadow: none; }

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  background: var(--magenta) url("hero-color-run-mobile.jpg") center 45% / cover no-repeat;
  color: var(--white);
  padding: 96px 0 104px;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 701px) {
  .hero { background-image: url("hero-color-run.jpg"); }
}
/* Voile sombre : sans lui, le texte blanc devient illisible sur la photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 10, 22, 0.62) 0%,
    rgba(28, 10, 22, 0.42) 45%,
    rgba(28, 10, 22, 0.74) 100%);
}
@media (max-width: 700px) {
  /* photo recadree serree sur mobile : on assombrit un peu plus */
  .hero::before {
    background: linear-gradient(180deg,
      rgba(28, 10, 22, 0.72) 0%,
      rgba(28, 10, 22, 0.58) 45%,
      rgba(28, 10, 22, 0.80) 100%);
  }
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: var(--white); text-shadow: 0 3px 18px rgba(0,0,0,0.55); }
.hero .subtitle {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 30px;
  opacity: 0.97;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero-date {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}
.hero .btn { background: var(--white); color: var(--violet-dark); }
.hero .btn:hover { color: var(--magenta-dark); }
.hero .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.hero .btn-outline:hover { background: var(--white); color: var(--violet-dark); }

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.countdown div {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 88px;
}
.countdown strong { display: block; font-size: 1.9rem; line-height: 1.1; }
.countdown span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }

/* -------------------- Page header -------------------- */

.page-header {
  background: var(--grad-soft);
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 6px; }
.breadcrumb { color: var(--ink-light); font-size: 0.9rem; }

/* -------------------- Grilles & cartes -------------------- */

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  border-top: 4px solid var(--magenta);
}
.card.cyan { border-top-color: var(--cyan); }
.card.violet { border-top-color: var(--violet); }
.card.yellow { border-top-color: var(--yellow); }
.card.lime { border-top-color: #ff8fb8; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

/* Tarifs */
.price-card { text-align: center; position: relative; }
.price-card .amount {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: "Trebuchet MS", sans-serif;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  text-align: left;
  font-size: 0.94rem;
}
.price-card ul li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }
.badge-pop {
  position: absolute;
  top: -12px; right: 18px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Timeline / programme */
.timeline { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.timeline-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.timeline-item .date {
  font-weight: 800;
  font-size: 1.15rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.timeline-item p { margin: 0; color: var(--ink-light); font-size: 0.94rem; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .label { color: var(--ink-light); }

.rules-list { counter-reset: rule; list-style: none; padding: 0; }
.rules-list > li {
  counter-increment: rule;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 22px 68px;
  position: relative;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.rules-list > li::before {
  content: counter(rule);
  position: absolute;
  left: 22px; top: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.rules-list h3 { margin-bottom: 6px; font-size: 1.05rem; }
.rules-list p { margin: 0; color: var(--ink-light); }

/* Bandeau couleurs */
.color-bar { height: 10px; background: var(--grad); }

/* -------------------- Onglets -------------------- */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  margin-bottom: 30px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink-light);
  cursor: pointer;
}
.tab-btn:hover { color: var(--violet-dark); }
.tab-btn.active { color: var(--magenta-dark); border-bottom-color: var(--magenta); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.form-field { display: flex; flex-direction: column; }
.form-field.full, .form-grid > fieldset, .form-grid > .form-note,
.form-grid > .checkbox-row, .form-grid > .price-line, .form-grid > h3,
.form-grid > .full { grid-column: 1 / -1; }
.form-field label, fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="password"], input[type="search"], select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(255, 45, 135, 0.16);
}
input[type="file"] {
  font-family: inherit;
  padding: 10px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  width: 100%;
  background: var(--paper-alt);
}
fieldset {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0;
}
.radio-row { display: flex; flex-direction: column; gap: 10px; }
.radio-row label { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; font-size: 0.95rem; }
.radio-row input { margin-top: 4px; flex-shrink: 0; width: auto; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { margin-top: 5px; flex-shrink: 0; width: auto; }
.checkbox-row label { font-size: 0.93rem; }
.form-note {
  background: var(--grad-soft);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--ink-light);
}
.price-line {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.price-line strong { font-size: 1.6rem; color: var(--yellow); }
.field-error { color: var(--magenta-dark); font-size: 0.82rem; margin-top: 4px; min-height: 1em; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--magenta); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-weight: 600;
  border: 1.5px solid;
}
.alert-ok { background: #eafaf1; border-color: var(--lime); color: #146c43; }
.alert-err { background: #fdeef4; border-color: var(--magenta); color: var(--magenta-dark); }
.alert-info { background: #eef6ff; border-color: var(--cyan); color: var(--cyan-dark); }
.alert-warn { background: #fff8e6; border-color: var(--yellow); color: #92670a; }

/* -------------------- Galerie photos -------------------- */

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-light);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--violet); color: var(--violet-dark); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(27,20,48,0.82));
  color: var(--white);
  padding: 26px 14px 12px;
  font-size: 0.88rem;
  font-weight: 600;
}
.gallery-item.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  background: var(--grad-soft);
  cursor: default;
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-light);
  background: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(27, 20, 48, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-caption { color: var(--white); text-align: center; margin-top: 14px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* -------------------- Admin -------------------- */

.admin-body { background: var(--paper-alt); }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--grad);
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 34px;
  width: 100%;
  max-width: 420px;
}
.login-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-card .form-field { margin-bottom: 16px; }
.login-card .btn { width: 100%; }

.admin-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side {
  background: #2b1a20;
  color: #e7d5da;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-side .brand {
  color: var(--white);
  font-weight: 800;
  font-family: "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  line-height: 1.3;
  font-size: 1rem;
}
.admin-side .brand small { display: block; font-weight: normal; font-size: 0.7rem; color: #b8a1a9; letter-spacing: 0.1em; }
.admin-side button.side-link {
  background: none;
  border: none;
  color: #e7d5da;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.admin-side button.side-link:hover { background: rgba(255,255,255,0.09); color: var(--white); }
.admin-side button.side-link.active { background: var(--grad); color: var(--white); }
.admin-side .side-foot { margin-top: auto; font-size: 0.78rem; color: #b8a1a9; }
.admin-side .side-foot a { color: #ffd7e4; }
.pill {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-main { padding: 30px 34px 60px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--magenta);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.stat.cyan { border-left-color: var(--cyan); }
.stat.violet { border-left-color: var(--violet); }
.stat.lime { border-left-color: var(--lime); }
.stat b { display: block; font-size: 1.9rem; font-family: "Trebuchet MS", sans-serif; line-height: 1.1; }
.stat span { font-size: 0.82rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.06em; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type="search"], .toolbar select { width: auto; min-width: 180px; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-alt); font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: #faf8ff; }
td .btn { margin-right: 4px; margin-bottom: 4px; }

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-attente { background: #fff4d6; color: #92670a; }
.tag-valide  { background: #e6f8ee; color: #146c43; }
.tag-paye    { background: #e7f4ff; color: #0b6a8a; }
.tag-refuse  { background: #fdeef4; color: var(--magenta-dark); }
.tag-nouveau { background: #f1e9ff; color: var(--violet-dark); }
.tag-lu      { background: var(--paper-alt); color: var(--ink-light); }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mod-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mod-card img { width: 100%; height: 160px; object-fit: cover; }
.mod-card .mod-body { padding: 12px 14px; }
.mod-card .mod-body p { margin: 0 0 8px; font-size: 0.88rem; }

.msg-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.msg-card header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-card h4 { margin: 0; font-size: 1rem; }

.settings-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; max-width: 780px; }
.settings-form .form-field { margin-bottom: 16px; }
.settings-form h3 { margin: 26px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.settings-form h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }

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

.site-footer {
  background: #2b1a20;
  color: #e7d5da;
  padding: 54px 0 26px;
  margin-top: 20px;
}
.site-footer h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: #e7d5da; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { padding: 4px 0; font-size: 0.93rem; }
.footer-grid p { font-size: 0.93rem; }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.social-links a:hover { background: var(--magenta); color: var(--white); }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; min-width: 0; }
.newsletter-form .btn { padding: 11px 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 34px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #b8a1a9;
}

/* -------------------- Divers -------------------- */

.poster-feature {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.poster-feature img { border-radius: var(--radius-sm); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 34px; }
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .poster-feature { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .side-foot { margin-top: 0; width: 100%; }
  .admin-main { padding: 22px 18px 50px; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 16px 18px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
  .hero { padding: 60px 0 70px; }
}


/* -------------------- Ruban Octobre Rose & chiffres clés -------------------- */

.hero-ribbon {
  display: inline-block;
  background: var(--white);
  color: var(--magenta-dark);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin-top: -96px;
  position: relative;
  z-index: 5;
}
.key-facts > div { text-align: center; padding: 6px 10px; }
.key-facts > div + div { border-left: 1px solid var(--line); }
.key-facts strong {
  display: block;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.key-facts span { font-size: 0.85rem; color: var(--ink-light); }

@media (max-width: 780px) {
  .key-facts { grid-template-columns: repeat(2, 1fr); margin-top: -60px; padding: 18px; }
  .key-facts > div:nth-child(odd) { border-left: none; }
  .key-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (max-width: 420px) {
  .key-facts { grid-template-columns: 1fr; margin-top: -40px; }
  .key-facts > div + div { border-left: none; border-top: 1px solid var(--line); padding-top: 14px; }
}

/* -------------------- Choix de formule (cartes cliquables) -------------------- */

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.choice { display: block; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-body {
  display: block;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px 20px;
  height: 100%;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.choice-body strong { display: block; font-size: 1.05rem; }
.choice-body em {
  display: block;
  font-style: normal;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 2px 0 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.choice-body small { color: var(--ink-light); font-size: 0.86rem; }
.choice:hover .choice-body { border-color: var(--violet); }
.choice input:checked + .choice-body {
  border-color: var(--magenta);
  background: var(--grad-soft);
  box-shadow: 0 0 0 3px rgba(255, 45, 135, 0.14);
}
.choice input:focus-visible + .choice-body { outline: 2px solid var(--violet); outline-offset: 3px; }

/* -------------------- Choix de la taille de t-shirt -------------------- */

.size-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.size-group-label {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-light);
  margin-top: 4px;
}
.size { cursor: pointer; position: relative; }
.size input { position: absolute; opacity: 0; width: 0; height: 0; }
.size span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.size:hover span { border-color: var(--violet); }
.size input:checked + span {
  border-color: transparent;
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(255, 45, 135, 0.28);
}
.size input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }

.price-line .small { font-weight: 400; opacity: 0.85; }
.price-line strong { white-space: nowrap; }

@media (max-width: 560px) {
  .choice-grid { grid-template-columns: 1fr; }
  .size span { min-width: 54px; height: 46px; padding: 0 12px; }
}

/* -------------------- Pages légales -------------------- */

.legal { max-width: 880px; }
.legal .section-title { text-align: left; margin-top: 36px; }
.legal .section-lead { text-align: left; max-width: none; margin: 0 0 26px; }
.legal p { color: var(--ink-light); margin-bottom: 14px; }
.legal .info-list { margin-bottom: 18px; }
.legal .table-wrap { margin-bottom: 10px; }
.legal .alert { margin-bottom: 26px; }
.legal .rules-list { margin-top: 22px; }
.legal code {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.9em;
}
mark { background: #fff2a8; color: var(--ink); padding: 0 5px; border-radius: 4px; }
.footer-bottom a { text-decoration: underline; }
