/* Les Courants d'Arts — feuille de style commune */

:root {
  --teal: #134a4b;
  --teal-dark: #0c3435;
  --teal-soft: #dfe9e6;
  --cream: #f6f1e7;
  --paper: #fbf8f2;
  --rust: #b0532a;
  --rust-soft: #f1ddd0;
  --ink: #1d2221;
  --muted: #5d6664;
  --line: #ddd5c6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 52, 53, .10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--rust); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--teal-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust); font-weight: 600; margin-bottom: .8em; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--teal-dark); }
.brand img { height: 44px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.nav .nav-space { border: 1px solid var(--teal); color: var(--teal); margin-left: 6px; }
.nav .nav-space:hover, .nav .nav-space[aria-current="page"] { background: var(--teal); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
  .nav .nav-space { margin: 6px 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--teal);
  background: var(--teal); color: var(--white); text-decoration: none;
  font: 600 .98rem var(--sans); cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal); color: var(--white); }
.btn.rust { background: var(--rust); border-color: var(--rust); }
.btn.rust:hover { background: #8f411f; border-color: #8f411f; }
.btn.light { background: var(--cream); border-color: var(--cream); color: var(--teal-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Héros ---------- */
.hero {
  position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,52,53,.10) 0%, rgba(12,52,53,.45) 40%, rgba(12,52,53,.90) 100%); }
.hero h1, .hero .lead, .hero .eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero .wrap { position: relative; z-index: 1; padding: 0 0 64px; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #f3c9ad; }
.hero-small { min-height: 46vh; }

.ribbon { background: var(--teal); color: var(--cream); }
.ribbon .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 26px 0; }
.ribbon strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--white); }
.ribbon span { font-size: .95rem; opacity: .9; }
@media (max-width: 760px) { .ribbon .wrap { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--cream); }
section.dark { background: var(--teal-dark); color: var(--cream); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark .lead { color: rgba(246,241,231,.8); }
.section-head { max-width: 760px; margin-bottom: 44px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack .photo:first-child { grid-row: span 2; }
.photo-stack .photo { aspect-ratio: 4/3; }
.photo-stack .photo:first-child { aspect-ratio: auto; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .35em; }
.card .tag { align-self: flex-start; }
.card-img { padding: 0; overflow: hidden; }
.card-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-img .card-body { padding: 22px 24px 26px; }
.card .meta { font-size: .88rem; color: var(--muted); }
.card .price { font-family: var(--serif); font-size: 2rem; color: var(--teal-dark); line-height: 1; margin: .2em 0 .1em; }
.card ul { padding-left: 1.1em; margin: .6em 0 1.2em; }
.card ul li { margin-bottom: .3em; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card.featured { border: 2px solid var(--teal); }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark);
}
.tag.rust { background: var(--rust-soft); color: #7d3816; }
.tag.grey { background: #ece8df; color: var(--muted); }
.tag.ok { background: #dcefdc; color: #24572a; }

/* ---------- Espaces du lieu ---------- */
.spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.space { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.space .m2 { font-family: var(--serif); font-size: 1.6rem; color: var(--rust); }
.space h4 { margin: .2em 0 .2em; font-size: 1.08rem; }
.space p { margin: 0; font-size: .92rem; color: var(--muted); }
.level-title { display: flex; align-items: baseline; gap: 14px; margin: 36px 0 16px; }
.level-title h3 { margin: 0; }

/* ---------- Agenda ---------- */
.events { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.event .date { text-align: center; background: var(--teal); color: var(--white); border-radius: 12px; padding: 10px 6px; }
.event .date b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.event .date span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.event h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.event p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 620px) { .event { grid-template-columns: 72px 1fr; } .event .tag { grid-column: 2; justify-self: start; } }

/* ---------- Galerie ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.mosaic figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic .w2 { grid-column: span 2; }
.mosaic .h2 { grid-row: span 2; }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(12,52,53,.82); color: var(--white); font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* ---------- Bandeau de vues (accueil) ---------- */
.band { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1.3fr; gap: 6px; height: 440px; background: var(--teal-dark); }
.band figure { margin: 0; position: relative; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.band figure:hover img { transform: scale(1.05); }
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(12,52,53,.85)); color: var(--white); font-size: .88rem;
}
@media (max-width: 860px) {
  .band { grid-template-columns: 1fr 1fr; height: auto; }
  .band figure { aspect-ratio: 3/4; }
  .band figure:nth-child(2), .band figure:nth-child(4) { aspect-ratio: 3/4; }
}

/* ---------- Grande photo avec citation ---------- */
.photo-break { position: relative; min-height: 76vh; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.photo-break > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,52,53,.88) 0%, rgba(12,52,53,.55) 45%, rgba(12,52,53,0) 75%); }
.photo-break .wrap { position: relative; z-index: 1; }
.photo-break blockquote { margin: 0; max-width: 560px; }
.photo-break blockquote p { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; color: var(--white); }
.photo-break cite { font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #f3c9ad; }
@media (max-width: 760px) { .photo-break::after { background: rgba(12,52,53,.6); } }

/* ---------- Avant / pendant ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo .label { position: absolute; top: 12px; left: 12px; background: var(--cream); color: var(--teal-dark); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* ---------- Rouillerie ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line);
}
.feature img { height: 100%; object-fit: cover; }
.feature .body { padding: 48px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature .body { padding: 30px; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--teal-soft); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); }
.timeline li.next::before { background: var(--white); border: 2px solid var(--rust); }
.timeline b { display: block; font-family: var(--serif); color: var(--teal-dark); }

/* ---------- Formulaires ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, fieldset legend { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfc6b5; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(19,74,75,.25); border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 6px; margin: 0 0 18px; }
.choice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .97rem; }
.choice input { margin-top: 5px; accent-color: var(--teal); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.radio-cards label {
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: var(--white);
  display: flex; flex-direction: column; gap: 2px;
}
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.radio-cards b { font-family: var(--serif); font-size: 1.1rem; color: var(--teal-dark); }
.radio-cards span { font-size: .86rem; color: var(--muted); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
@media (max-width: 620px) { .form-card { padding: 22px; } }
.notice { border-radius: 12px; padding: 14px 18px; background: var(--teal-soft); color: var(--teal-dark); font-size: .93rem; margin-bottom: 18px; }
.notice.rust { background: var(--rust-soft); color: #6d3013; }
.notice.success { background: #dcefdc; color: #24572a; }

.dropzone {
  border: 2px dashed #cfc6b5; border-radius: 12px; padding: 18px; text-align: center; background: var(--paper);
  color: var(--muted); font-size: .92rem; cursor: pointer; display: block;
}
.dropzone:hover { border-color: var(--teal); color: var(--teal); }
.dropzone input { display: none; }
.dropzone.filled { border-style: solid; border-color: #6aa36f; color: #24572a; background: #f1f8f1; }

.sig-pad { border: 1px solid #cfc6b5; border-radius: 10px; background: var(--white); width: 100%; height: 160px; touch-action: none; cursor: crosshair; }

/* ---------- Espaces membres ---------- */
.auth { min-height: 70vh; display: grid; place-items: center; padding: 60px 16px; background: var(--cream); }
.auth .form-card { width: min(460px, 100%); }
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 40px 0 80px; }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } }
.side { position: sticky; top: 92px; align-self: start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
@media (max-width: 860px) { .side { position: static; display: flex; overflow-x: auto; gap: 6px; } }
.side .who { padding: 10px 12px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
@media (max-width: 860px) { .side .who { display: none; } }
.side .who b { display: block; font-family: var(--serif); color: var(--teal-dark); }
.side button {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 11px 12px; border-radius: 10px;
  font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.side button:hover { background: var(--paper); }
.side button[aria-selected="true"] { background: var(--teal); color: var(--white); }
.panel[hidden] { display: none; }
.panel h2 { font-size: 1.9rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
@media (max-width: 620px) { .stat-row { grid-template-columns: 1fr; } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--teal-dark); line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--muted); }

.doc-list { list-style: none; padding: 0; margin: 0 0 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc-list li { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .ico { width: 40px; height: 48px; border-radius: 6px; background: var(--rust-soft); color: #7d3816; font-size: .7rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.doc-list .t { flex: 1; min-width: 0; }
.doc-list .t b { display: block; font-weight: 600; }
.doc-list .t span { font-size: .85rem; color: var(--muted); }
.doc-list a.dl { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

table.tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .95rem; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--cream); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; margin-bottom: 26px; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.checklist .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc6b5; flex-shrink: 0; display: grid; place-items: center; font-size: .75rem; color: var(--white); }
.checklist .done .dot { background: #4f8f55; border-color: #4f8f55; }

.demo-banner { background: var(--rust); color: var(--white); text-align: center; font-size: .86rem; padding: 8px 16px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--teal-dark); color: rgba(246,241,231,.85); padding: 64px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: .8em; }
.site-footer a { color: rgba(246,241,231,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer .logo { height: 70px; width: auto; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .84rem; opacity: .8; }

/* ---------- Partenaires ---------- */
.partners-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 28px; }
.partners-footer > span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.partners-footer .logo-region { height: 64px; width: auto; }
.partners-footer .logo-cc { height: 64px; width: auto; }
/* La charte de la ville impose un cartouche blanc sur fond coloré. */
.partners-footer .ville { display: block; background: #fff; padding: 8px 10px; border-radius: 4px; line-height: 0; }
.partners-footer .ville img { height: 80px; width: auto; }
.site-footer .partners-footer + .legal { margin-top: 24px; }

.partners { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; gap: 28px; } }
.partner-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner-logos .wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .partner-logos { grid-template-columns: 1fr; } }
.partner-logo {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  text-decoration: none; color: var(--ink); min-height: 190px;
}
.partner-logo:hover { border-color: var(--teal); color: var(--ink); }
.partner-logo img { max-width: 100%; height: auto; }
.partner-logo .region { width: 340px; }
.partner-logo .ville { height: 130px; width: auto; }
.partner-logo .cc { height: 100px; width: auto; }
.partner-logo b { font-family: var(--serif); font-size: 1.05rem; color: var(--teal-dark); }
.partner-logo span { font-size: .85rem; color: var(--muted); }

.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); filter: saturate(.85); }
