/* ========================================
   Fly & View — Global stylesheet
   Inspiration : aventure/sport, énergique
   ======================================== */

:root {
  --orange: #FF6B35;
  --orange-dark: #e85a26;
  --teal: #1B998B;
  --teal-dark: #167a6e;
  --ink: #1a1a1a;
  --ink-soft: #2d2d2d;
  --paper: #fafaf7;
  --paper-2: #f3f2ee;
  --line: #e6e4dd;
  --muted: #6b7280;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ===== Boutons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; transition: all .2s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,107,53,.35); color: #fff; }
.btn-secondary { background: var(--teal); color: #fff; }
.btn-secondary:hover { background: var(--teal-dark); transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Compensation header sticky pour les ancres (#activities, #community, etc.) */
section[id], div[id].community-section {
  scroll-margin-top: 72px;
}
.site-header .nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; position: relative;
}
.brand {
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--orange); }

/* ===== Hamburger (mobile) ===== */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px; margin: -8px;
  border-radius: 8px; transition: background .15s;
}
.nav-hamburger:hover { background: rgba(0,0,0,.06); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 700px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: -20px; right: -20px;
    background: rgba(250,250,247,.98);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.09);
    padding: 6px 20px 14px;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 15px 0; font-size: 16px; font-weight: 500;
    border-bottom: 1px solid var(--line); color: var(--ink);
  }
  .nav-links a:last-child { border-bottom: none; }
  .site-header .nav { padding: 12px 0; }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,107,53,.1); color: var(--orange);
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.05; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--orange), var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 18px; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--orange), var(--teal));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img, .hero-visual video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.3));
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 40px; }
}

/* ===== Stats bar ===== */
.stats-bar {
  background: var(--ink); color: #fff;
  padding: 24px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; text-align: center;
}
.stat-num { font-size: 32px; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -.02em;
}
.section-title .accent {
  background: linear-gradient(120deg, var(--orange), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle { font-size: 17px; color: var(--muted); max-width: 720px; margin-bottom: 48px; }
.section-dark .section-subtitle { color: rgba(255,255,255,.7); }

/* ===== Filtres catégories ===== */
.category-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}
.cat-pill {
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all .2s;
}
.cat-pill:hover { border-color: var(--orange); color: var(--orange); }
.cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Activity cards ===== */
.activities-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.activity-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all .25s;
  display: flex; flex-direction: column; cursor: pointer;
  text-decoration: none; color: inherit;
}
.activity-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent;
  color: inherit;
}
.activity-card-image {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--orange), var(--teal));
  position: relative; overflow: hidden;
}
.activity-card-image img { width: 100%; height: 100%; object-fit: cover; }
.activity-card-emoji {
  position: absolute; top: 14px; left: 14px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center; font-size: 26px;
  backdrop-filter: blur(6px);
}
.activity-card-cat {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.activity-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.activity-card-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.activity-card-desc { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 16px; }
.activity-card-meta {
  display: flex; gap: 16px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.activity-card-meta b { color: var(--ink); }
.activity-card-cta {
  margin-top: 16px; color: var(--orange); font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 6px;
}
.activity-card:hover .activity-card-cta { gap: 10px; }
.activity-card.inactive { opacity: .5; pointer-events: none; }

/* ===== Activity detail ===== */
.detail-hero {
  position: relative; padding: 60px 0 40px;
  background: var(--ink); color: #fff;
  overflow: hidden;
}
.detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 80% 20%, rgba(255,107,53,.25), transparent 60%),
              radial-gradient(60% 50% at 20% 80%, rgba(27,153,139,.25), transparent 60%);
}
.detail-hero-content { position: relative; }
.detail-hero-eyebrow {
  display: inline-block; padding: 6px 14px;
  background: rgba(255,255,255,.1); border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.detail-hero h1 {
  font-size: clamp(36px, 5vw, 60px); line-height: 1.05;
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px;
}
.detail-hero h1 .accent {
  background: linear-gradient(120deg, #FFB088, #6DD5C7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.detail-hero p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 24px; }
.detail-meta-bar {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.detail-meta-bar div { font-size: 14px; color: rgba(255,255,255,.7); }
.detail-meta-bar b { color: #fff; font-size: 18px; display: block; }

.gallery { padding: 32px 0; background: var(--paper); }
.gallery-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px;
  aspect-ratio: 16/8;
}
/* Chaque cellule est une carte arrondie indépendante */
.gallery-grid > * { background: #ddd; overflow: hidden; border-radius: var(--radius-lg); }
.gallery-grid img, .gallery-grid video { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid > :first-child { grid-row: span 2; }

/* Variante galerie : photo hero + bloc texte */
.gallery-grid--text {
  grid-template-columns: 3fr 2fr;
  /* pas d'aspect-ratio fixe : le grid s'adapte à la hauteur du contenu */
}
.gallery-grid--text > :first-child { grid-row: auto; min-height: 380px; }
.gallery-text-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 44px; background: var(--paper);
  border: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  /* overflow: visible par défaut — le bloc grandit avec le texte */
}
.gallery-text-panel h2 { font-size: 1.5rem; margin: 0 0 16px; color: var(--dark); }
.gallery-text-panel h2 .accent { color: var(--orange); }
.gallery-text-panel p { color: #555; line-height: 1.75; font-size: 1rem; margin: 0; }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; aspect-ratio: auto; }
  .gallery-grid > :first-child { aspect-ratio: 16/10; grid-row: auto; }
  .gallery-grid > * { aspect-ratio: 16/10; }
  .gallery-grid--text { grid-template-columns: 1fr; aspect-ratio: auto; }
  /* Le panel texte ignore l'aspect-ratio générique et s'adapte à son contenu */
  .gallery-text-panel { padding: 24px 20px; aspect-ratio: auto; min-height: 0; }
}

.feature-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.feature-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.section-dark .feature-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--muted); }
.section-dark .feature-card p { color: rgba(255,255,255,.7); }

.timeline { display: grid; gap: 24px; }
.timeline-step {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
.timeline-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  display: grid; place-items: center; font-size: 26px; color: #fff;
}
.timeline-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.timeline-step p { color: var(--muted); }

.tips-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tips-block h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.tips-block ul li {
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  display: flex; gap: 10px;
}
.tips-block ul li::before { content: '→'; color: var(--orange); font-weight: 700; }

.testimonials-grid {
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  padding: 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.testimonial-text { font-style: italic; font-size: 16px; line-height: 1.7; margin-bottom: 16px; color: rgba(255,255,255,.9); }
.testimonial-author { font-weight: 700; color: var(--orange); }

/* ===== Inscription form ===== */
.signup-section {
  padding: 80px 0; position: relative;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  color: #fff;
}
.signup-card {
  max-width: 720px; margin: 0 auto;
  background: #fff; color: var(--ink);
  padding: 40px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.signup-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.signup-card .lead { color: var(--muted); margin-bottom: 28px; }
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font: inherit; background: #fff;
  transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.dates-list { display: grid; gap: 10px; }
.date-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: all .15s;
}
.date-option:hover { border-color: var(--orange); }
.date-option input { margin: 0; }
.date-option.selected { border-color: var(--orange); background: rgba(255,107,53,.05); }
.date-option .date-label { flex: 1; font-weight: 600; }
.date-option .date-remaining { font-size: 12px; color: var(--muted); }
.date-option.full { opacity: .5; pointer-events: none; }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .signup-card { padding: 24px; }
}

.signup-success, .signup-error {
  padding: 16px; border-radius: var(--radius-sm);
  margin-top: 20px; font-weight: 500;
}
.signup-success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.signup-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== Équipement en location ===== */
.equipment-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.equipment-item { border: 1.5px solid #e5e5e5; border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.equipment-item:has(.eq-checkbox:checked) { border-color: var(--orange); background: #fff8f5; }
.equipment-check {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; width: 100%;
}
.equipment-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.equipment-info { display: flex; flex-direction: column; flex: 1; }
.equipment-name { font-weight: 600; font-size: 15px; color: var(--dark); }
.equipment-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.equipment-price { font-weight: 700; color: var(--orange); white-space: nowrap; font-size: 15px; }
.equipment-size {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px 46px; border-top: 1px dashed #e5e5e5;
  font-size: 14px; color: var(--dark);
}
.equipment-size select { padding: 4px 8px; border: 1.5px solid var(--orange); border-radius: 6px; font-size: 14px; cursor: pointer; }
.equipment-total {
  margin-top: 10px; padding: 10px 14px;
  background: #fff3ee; border: 1.5px solid var(--orange); border-radius: 8px;
  font-size: 14px; color: var(--dark);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: #fff;
  padding: 56px 0 24px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-top h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; color: rgba(255,255,255,.6); }
.footer-top a, .footer-top p { color: rgba(255,255,255,.85); display: block; padding: 4px 0; }
.footer-top a:hover { color: var(--orange); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; color: rgba(255,255,255,.6); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; } }

/* ===== Admin ===== */
.admin-shell { display: grid; grid-template-rows: auto 1fr; min-height: 100vh; background: var(--paper); }
.admin-header {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
}
.admin-tabs { display: flex; gap: 8px; }
.admin-tab {
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
}
.admin-tab.active { background: var(--ink); color: #fff; }
.admin-main { padding: 32px 24px; max-width: 1280px; margin: 0 auto; width: 100%; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.admin-stat-card {
  background: #fff; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.admin-stat-num { font-size: 28px; font-weight: 800; color: var(--orange); }
.admin-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.admin-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--line); margin-bottom: 24px;
}
.admin-card h2 {
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left; padding: 12px; border-bottom: 1px solid var(--line);
}
.admin-table th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.admin-table tr:hover td { background: var(--paper-2); }

.admin-list { display: grid; gap: 12px; }
.admin-row {
  background: var(--paper-2); padding: 16px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.admin-row-info { display: flex; align-items: center; gap: 14px; flex: 1; }
.admin-row-emoji { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-row.inactive { opacity: .55; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: grid; place-items: center; z-index: 100;
  padding: 24px; overflow-y: auto;
}
.modal-card {
  background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 32px;
}
.modal-card h2 { margin-bottom: 18px; font-size: 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

.field-row { display: grid; gap: 16px; margin-bottom: 16px; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .field-row.cols-2, .field-row.cols-3 { grid-template-columns: 1fr; } }

.repeater-item {
  display: grid; gap: 8px; padding: 12px; background: var(--paper-2);
  border-radius: var(--radius-sm); margin-bottom: 8px;
}
.repeater-item .row { display: flex; gap: 8px; align-items: flex-start; }
.repeater-item .row > input, .repeater-item .row > textarea { flex: 1; }
.repeater-add { font-size: 13px; color: var(--orange); font-weight: 600; cursor: pointer; }

.media-strip {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px;
}
.media-thumb {
  width: 88px; height: 88px; border-radius: var(--radius-sm);
  background: var(--paper-2); position: relative; overflow: hidden;
}
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb button {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; font-size: 14px;
  display: grid; place-items: center;
}

.toggle {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer;
}
.toggle input { display: none; }
.toggle .switch {
  width: 40px; height: 22px; background: #ccc; border-radius: 999px;
  position: relative; transition: background .2s;
}
.toggle .switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.toggle input:checked + .switch { background: var(--success); }
.toggle input:checked + .switch::after { transform: translateX(18px); }

/* Login page */
.login-shell {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  padding: 24px;
}
.login-card {
  background: #fff; padding: 40px; border-radius: var(--radius);
  width: 100%; max-width: 400px; box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 24px; margin-bottom: 8px; }
.login-card p { color: var(--muted); margin-bottom: 24px; }

.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(20px); transition: all .25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* ===== Section Communauté ===== */
.community-section {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d2b2b 100%);
  padding: 80px 0; color: #fff; position: relative; overflow: hidden;
}
.community-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(108,99,255,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(27,153,139,.15) 0%, transparent 60%);
  pointer-events: none;
}
.community-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.community-badge {
  display: inline-block; background: rgba(108,99,255,.25); border: 1px solid rgba(108,99,255,.5);
  color: #a8a3ff; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.community-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; color: #fff;
}
.community-text h2 .accent { color: #FF6B35; }
.community-text > p { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.community-perks { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.community-perks li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 15px; }
.community-perks li::before { content: '✓'; background: rgba(27,153,139,.3); border: 1px solid rgba(27,153,139,.6);
  color: #4dd9c9; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.community-counter {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; color: rgba(255,255,255,.7);
}
.community-counter strong { color: #fff; font-size: 18px; font-weight: 800; }
.community-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px); border-radius: 20px; padding: 36px;
}
.community-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.community-card > p { color: rgba(255,255,255,.55); font-size: 13px; margin-bottom: 24px; }
.community-form { display: flex; flex-direction: column; gap: 12px; }
.community-form input {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; padding: 13px 16px; border-radius: 10px; font-size: 15px;
  font-family: inherit; transition: border-color .2s; outline: none; width: 100%; box-sizing: border-box;
}
.community-form input::placeholder { color: rgba(255,255,255,.4); }
.community-form input:focus { border-color: rgba(108,99,255,.7); background: rgba(255,255,255,.13); }
.community-form button {
  background: linear-gradient(135deg, #FF6B35, #e85a27); color: #fff; border: none;
  padding: 14px 24px; border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.community-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,.4); }
.community-form button:disabled { opacity: .6; cursor: default; transform: none; }
.community-msg { margin-top: 12px; font-size: 14px; min-height: 20px; text-align: center; }
.community-msg.ok { color: #4dd9c9; }
.community-msg.err { color: #fca5a5; }
@media (max-width: 768px) {
  .community-inner { grid-template-columns: 1fr; gap: 40px; }
  .community-section { padding: 56px 0; }
}
