/* SCI IKEAG — feuille de style unique. Aucune ressource externe (polices système). */

:root {
  --bg: #f4efe7;
  --surface: #fbf8f3;
  --ink: #1d2529;
  --muted: #56626a;
  --line: #ddd4c6;
  --art: #cdbfa9;
  --accent: #8a4b24;
  --accent-ink: #ffffff;
  --focus: #1d5fbf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191c;
    --surface: #1b2226;
    --ink: #ebe5da;
    --muted: #a3adb3;
    --line: #2e383d;
    --art: #3b474d;
    --accent: #e0a174;
    --accent-ink: #14191c;
    --focus: #8fb8ff;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999rem; top: 0;
  background: var(--surface); color: var(--ink);
  padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 2rem; flex-wrap: wrap; min-height: 4.5rem; padding-block: .75rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .24em; }

.mark-house { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.mark-door { fill: var(--accent); }

.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding-block: .25rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Bandeau d'accueil */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(3rem, 8vw, 6rem); }
.hero .wrap { position: relative; }
.hero-text { position: relative; z-index: 1; max-width: 38rem; }
.eyebrow {
  margin: 0 0 1rem; color: var(--accent);
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
h1 {
  margin: 0 0 1.5rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5.25rem); line-height: 1.02; letter-spacing: -.01em;
}
.lead { margin: 0 0 2.25rem; font-size: clamp(1.125rem, 2.2vw, 1.3rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 0; }
.btn {
  display: inline-block; padding: .8rem 1.45rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

.hero-art {
  position: absolute; right: -1rem; top: 50%; transform: translateY(-50%);
  width: clamp(16rem, 34vw, 25rem); height: auto; color: var(--art); pointer-events: none;
}
.hero-art .art-lines { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-art .art-door { fill: none; stroke: var(--accent); stroke-width: 1.6; }
@media (max-width: 52rem) { .hero-art { display: none; } }

/* Sections */
.section { border-top: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5.5rem); }
.grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 4rem; } }
h2 {
  margin: 0 0 1rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem); line-height: 1.15;
}
.section p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: .92rem; padding-top: .1rem; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 36rem) { .facts div { grid-template-columns: 1fr; gap: .15rem; } }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem 1.6rem; }
.card h3 {
  margin: 0 0 .6rem; color: var(--muted);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.card p, .card address { margin: 0; font-style: normal; font-size: 1.1rem; line-height: 1.55; }
.card .big { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.card .big:hover { color: var(--accent); }

/* Pages de texte (mentions légales, 404) */
.page-head { padding-block: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.75rem); margin-bottom: 1rem; }
.prose { max-width: 44rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.updated { margin-top: 2.5rem !important; color: var(--muted); font-size: .92rem; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

@media print {
  .site-nav, .hero-art, .actions, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .site-header, .site-footer { border-color: #bbb; }
}
