/* Basic, clean CSS (no dependencies) */
:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1100px, 92vw); margin: 0 auto; }
.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.1) blur(6px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.header-centered { flex-direction: column; justify-content: center; align-items: center; height: auto; padding: 18px 0; gap: 12px; }
.brand { display: inline-flex; align-items: center; justify-content: center; }
.brand-logo { width: 300px; height: auto; border: none; background: none; border-radius: 0; display: inline-block; }
.nav { display: flex; gap: 16px; }
.nav a { margin: 0; color: var(--muted); }
.nav a:hover { color: var(--text); }

.banner { width: 100%; height: 280px; overflow: hidden; border-radius: var(--radius); background: #e5e7eb; margin: 28px 0 0; }
.banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .banner { height: 180px; } }

/* Page Infos générales */
.about { padding-top: 18px; }
.about-title { font-size: 32px; letter-spacing: -.01em; margin-bottom: 18px; max-width: 44ch; }
.about-lead { font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--text); max-width: 62ch; margin: 0 0 22px; }
.about-body { display: grid; gap: 16px; max-width: 68ch; }
.about-body p { line-height: 1.75; color: var(--muted); margin: 0; }
.about-tagline { margin: 30px 0 0; padding: 18px 22px; border-left: 3px solid var(--text); background: var(--card); border-radius: 0 12px 12px 0; font-style: italic; font-size: 17px; font-weight: 600; max-width: 62ch; }
@media (max-width: 640px) { .about-title { font-size: 26px; } .about-lead { font-size: 17px; } }

.owner-card { margin: 40px 0 0; padding: 24px; max-width: 480px; display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.owner-avatar { width: 56px; height: 56px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1f2937, #4b5563); color: #fff; font-weight: 700; font-size: 17px; }
.owner-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.owner-name { font-size: 18px; font-weight: 800; }
.owner-company { color: var(--muted); font-size: 14px; margin-top: 2px; }
.owner-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.owner-link { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; transition: background .15s ease, border-color .15s ease; }
.owner-link:hover { background: var(--bg); border-color: var(--text); }
@media (max-width: 480px) { .owner-card { flex-direction: column; align-items: flex-start; padding: 20px; } }

.controls { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin: 22px 0; }
input[type="search"], select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: block; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: box-shadow .15s ease, transform .05s ease; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); transform: translateY(-1px); }
.card-head { display: flex; align-items: center; gap: 12px; }
.logo { width: 76px; height: 76px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: linear-gradient(135deg, #fff, #f3f4f6); font-weight: 700; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.card-title { font-weight: 700; }
.card-sub { color: var(--muted); font-size: 14px; }

.section-title { margin: 24px 0 10px; font-size: 20px; font-weight: 800; }
.empty { color: var(--muted); padding: 18px; }

.backlink { color: var(--muted); font-size: 14px; }
.detail { padding: 26px 0; }
.detail-head { display: flex; align-items: center; gap: 16px; }
.info-grid { margin-top: 16px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.info label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.info .value a { text-decoration: underline; }

.site-footer { margin-top: 40px; border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); }

/* Réseaux sociaux */
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-badge { width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.social-badge:hover { filter: brightness(1.08); }

/* Galerie photos */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 640px; margin: 20px auto 0; justify-content: center; }
.gallery-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); cursor: zoom-in; transition: transform .15s ease; }
.gallery-thumb:hover { transform: scale(1.02); }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* Formulaire "Ajouter ma fiche" */
.join-page { max-width: 720px; }
.join-form { margin-top: 24px; display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: inherit; font-weight: 400; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; width: 100%;
}
.field textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.form-note a { text-decoration: underline; }
.hidden-field { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.submit-btn {
  justify-self: start; padding: 12px 22px; border: none; border-radius: 12px; background: var(--text); color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: opacity .15s ease;
}
.submit-btn:hover { opacity: .9; }
.submit-btn:disabled { opacity: .6; cursor: default; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.ok { color: #15803d; font-weight: 600; }
.form-status.error { color: #b91c1c; font-weight: 600; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
