/* C'est ça qui est ça — white / red / black, stripped down */
:root {
  --red: #c8102e;
  --black: #111;
  --gray: #666;
  --line: #e4e4e4;
  --soft: #f5f5f5;
  --bg: #fff;
  --max: 1100px;
  --head: "Archivo", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--black);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.015em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Bilingual blocks written directly in HTML */
html[lang="fr"] [data-lang="en"], html[lang="en"] [data-lang="fr"] { display: none !important; }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 3px solid var(--black); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-family: var(--head); font-weight: 800; font-size: 1.15rem; color: var(--black); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--red); }
.bar-right { display: flex; align-items: center; gap: 12px; }
#nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
#nav a { color: var(--black); text-decoration: none; font-weight: 600; font-size: .95rem; }
#nav a:hover, #nav a[aria-current] { color: var(--red); }
.lang { border: 2px solid var(--black); background: #fff; color: var(--black); font: 700 .8rem/1 var(--head); padding: 7px 10px; cursor: pointer; letter-spacing: .05em; }
.lang:hover { background: var(--black); color: #fff; }
.menu-btn { display: none; width: 40px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--black); content: ""; }
.menu-btn span { top: 17px; }
.menu-btn span::before { top: -7px; left: 0; right: 0; }
.menu-btn span::after { top: 7px; left: 0; right: 0; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 3px solid var(--black); }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  #nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.kicker { font: 700 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 20px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.sub { font-size: 1.2rem; color: var(--gray); max-width: 580px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0; }
.section-head h2::before { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--red); margin-right: 14px; vertical-align: .18em; }
.section-head a { font-weight: 600; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--black); color: #fff; border: 2px solid var(--black); padding: 12px 22px; font: 700 1rem/1.2 var(--head); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn.ghost { background: #fff; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--black); }
a.card:hover h3 { color: var(--red); }
.card .ph { aspect-ratio: 4/3; background: var(--soft); display: grid; place-items: center; color: #aaa; font-size: .85rem; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 20px 22px; }
.card h3 { font-size: 1.25rem; margin-bottom: .35em; }
.card p { margin: 0; color: var(--gray); }
.tag { display: inline-block; font: 700 .72rem/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 10px; }
.date { font-size: .85rem; color: var(--gray); margin-bottom: 6px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.gallery button { padding: 0; border: 0; background: var(--soft); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.empty { color: var(--gray); font-style: italic; grid-column: 1 / -1; }

dialog.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(0,0,0,.94); color: #fff; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lb-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lb-inner img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lb-cap { margin-top: 14px; text-align: center; max-width: 700px; }
.lb-cap strong { display: block; font-family: var(--head); }
.lb-btn { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 8px 14px; line-height: 1; }
.lb-btn:hover { color: var(--red); }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */
form label { display: block; font-weight: 600; margin-bottom: 18px; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=file], textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #bbb; border-radius: 0; font: inherit; background: #fff; color: inherit;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.status.ok { color: #13702c; }
.status.err { color: var(--red); }
#turnstile { margin-bottom: 18px; min-height: 65px; }

.contact-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; }
.contact-grid > p.intro { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.info { border-left: 3px solid var(--red); padding-left: 20px; }
.info dl { margin: 0; }
.info dt { font: 700 .75rem/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--gray); margin-top: 18px; }
.info dt:first-child { margin-top: 0; }
.info dd { margin: 6px 0 0; font-weight: 600; }

/* ---------- Article ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 16px 80px; }
.article h1 { font-size: clamp(2rem, 6vw, 3rem); }
.article .cover { margin: 24px 0 32px; }
.article .content { font-size: 1.08rem; }
.article .content p { margin: 0 0 1.2em; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
footer.site { padding: 32px 0; font-size: .9rem; color: var(--gray); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--gray); }

/* ---------- Admin ---------- */
.admin-main { padding: 40px 0 80px; }
.tabs { display: flex; gap: 0; border-bottom: 3px solid var(--black); margin-bottom: 32px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 12px 20px; font: 700 1rem var(--head); cursor: pointer; color: var(--gray); }
.tabs button[aria-selected="true"] { background: var(--black); color: #fff; }
.panel { display: none; }
.panel.active { display: block; }
.login-box { max-width: 380px; margin: 80px auto; }
.admin-cols { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .admin-cols { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line); padding: 20px; }
.box h3 { font-size: 1.15rem; }
.msg { border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 12px; }
.msg header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.msg p { margin: 0; white-space: pre-wrap; }
.admin-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.admin-gallery figure { margin: 0; border: 1px solid var(--line); }
.admin-gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.admin-gallery figcaption { padding: 8px; font-size: .85rem; display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row .actions { gap: 6px; }
.muted { color: var(--gray); font-size: .9rem; }
.badge { font: 700 .7rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; border: 1px solid var(--gray); color: var(--gray); margin-left: 8px; }

/* ---------- Single-page additions ---------- */
section.block.last { border-bottom: 0; }
p.intro { color: var(--gray); max-width: 640px; margin: -12px 0 28px; font-size: 1.05rem; }
.form-narrow { max-width: 720px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

.posts { display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.post { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; padding-top: 0; }
.post:not(:has(.post-cover)) { grid-template-columns: 1fr; }
.post-cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.post h3 { font-size: 1.45rem; }
.post .content { color: #333; }
.post .content p { margin: 0 0 1em; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: 14px; } }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font: 700 .95rem var(--head); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.more-wrap { margin-top: 28px; }

.info-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.info-grid > div { border-left: 3px solid var(--red); padding-left: 16px; }
.info-grid dt { font: 700 .75rem/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--gray); }
.info-grid dd { margin: 8px 0 0; font-weight: 600; font-size: 1.05rem; }
.info-grid a { text-decoration: none; }
