@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Bricolage;
  src: url('./assets/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --round: 24px;
  --edge: clamp(16px, 3.2vw, 42px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--material-canvas);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}
button, textarea, select, input { font: inherit; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #874816; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip:not(:focus), .sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 20;
  padding: 10px 16px;
  background: white;
}
.top {
  border-bottom: 1px solid var(--material-border);
  background: var(--material-header);
}
.top-inner, .page {
  max-width: 1440px;
  padding-inline: var(--edge);
  margin-inline: auto;
}
.top-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Bricolage, system-ui, sans-serif;
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
  white-space: nowrap;
}
.top nav { display: flex; flex-wrap: wrap; gap: 3px; }
.top nav a, .console {
  color: var(--muted);
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}
.top a[aria-current], .console:hover, .top nav a:hover {
  background: var(--material-card);
  color: var(--ink);
}
.console { border: 1px solid var(--material-border); }
.page { padding-block: clamp(24px, 4vw, 48px) 60px; }
.page:focus { outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.03; font-family: Bricolage, system-ui, sans-serif; }
h1 { font-size: clamp(34px, 5.2vw, 66px); font-weight: 700; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: clamp(21px, 3vw, 30px); letter-spacing: -.04em; }
p { margin: 0; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(400px, 45vw, 580px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: clamp(24px, 3vw, 38px);
  background: radial-gradient(ellipse at 88% 100%, #efd0ac, transparent 70%), var(--material-card);
  border: 1px solid var(--material-border);
  box-shadow: var(--material-shadow);
  overflow: hidden;
  animation: arrive .48s var(--ease) both;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(25px, 5.4vw, 84px);
}
.hero-copy h1 { font-size: clamp(43px, 6.8vw, 102px); }
.hero-copy > p:not(.overline) { color: #594438; margin-top: 21px; max-width: 38ch; }
.hero-copy .actions { margin-top: 26px; }
.overline {
  color: #744519;
  font-weight: 760;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 12px;
}
.hero-art, .compose-art {
  position: relative;
  overflow: hidden;
  background-color: #b28159;
  background-image: linear-gradient(110deg, #7349205c, transparent 42%, #42250b35), var(--material-ambre);
  background-size: cover;
  background-position: center;
}
.hero-art { height: 100%; }
.hero-art i {
  position: absolute;
  display: block;
  width: 36%;
  aspect-ratio: 1;
  top: 21%;
  left: 52%;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 25%, #fff3cd 0%, #e1b987 38%, #a67043 72%, #805031 100%);
  box-shadow: 23px 34px 52px #50271449, inset -4px -6px 26px #62371338;
  animation: float 10s ease-in-out infinite;
}
.hero-art i + i {
  width: 57%;
  top: 58%;
  left: -9%;
  opacity: .88;
  background: radial-gradient(circle at 40% 14%, #e5ba94, #b27b54 44%, #6f4831 83%);
  animation-delay: -5s;
}
@keyframes float { 50% { transform: translate3d(0, -13px, 0) rotate(-5deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #c9ab92;
  background: var(--material-card);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
  cursor: pointer;
  transition: background .2s, box-shadow .22s, transform .2s var(--ease);
}
.button.primary, .button.primary:not([disabled]):hover {
  background: linear-gradient(125deg, #51351f 4%, #291a13 87%);
  border-color: #402414;
  color: #fff7ea;
}
.button:not([disabled]):hover { box-shadow: 0 5px 12px #48271229; transform: translateY(-2px); }
.button[disabled] { opacity: .63; cursor: wait; }
.bento, .cards, .compose, .workbench { display: grid; gap: clamp(14px, 2vw, 25px); }
.bento { margin-top: clamp(14px, 2vw, 25px); grid-template-columns: 1.12fr 1fr; }
.compte-resume { margin-bottom: clamp(14px, 2vw, 25px); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.panel {
  background: var(--material-card);
  border: 1px solid var(--material-border);
  border-radius: var(--round);
  box-shadow: var(--material-shadow);
}
.panel-empty { padding: clamp(24px, 6vw, 68px); }
.panel-empty p, .tile p, .page-heading p, .card-copy p:not(.overline), .pane-head p { color: var(--muted); margin-top: 8px; }
.tile {
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.tile.secondary { background: linear-gradient(129deg, #f8efe2, #ecd4ba); }
.tile > span { color: #754116; }
.tile:hover, .project-card:hover { transform: translateY(-4px); box-shadow: 0 17px 29px #58381824; }
.project-card {
  display: block;
  text-decoration: none;
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.art-strip { block-size: 130px; background: var(--material-ambre) center 46% / cover; }
.art-strip.ivoire { background-image: var(--material-ivoire); }
.card-copy { padding: 23px; }
.page-heading {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.back { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; color: #744519; margin-bottom: 10px; }
.detail .hero-copy h1 { font-size: clamp(41px, 5.2vw, 78px); }
dl { margin-bottom: 0; }
dt { font-weight: 700; margin-top: 14px; }
dd { margin: 0; }
.compose { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.form-panel { padding: clamp(19px, 4vw, 48px); }
.standalone { max-width: 760px; }
.form-panel > p:not(.overline) { margin-top: 14px; }
.form-panel form { margin-top: 24px; }
.compose-art { border-radius: var(--round); min-height: 280px; }
form { display: grid; gap: 12px; }
form .button { justify-self: start; }
label { font-weight: 680; }
textarea, select, input[type="file"], input[type="text"] {
  width: 100%;
  min-height: 44px;
  background: #fffcf6;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid #bca08b;
  border-radius: 12px;
}
textarea { resize: vertical; }
.error { color: #78271a; background: #fff2eb; border: 1px solid #d5ab99; border-radius: 10px; padding: 10px; }
.notification { padding: 14px; color: var(--muted); }
.workbench { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); align-items: stretch; }
.conversation, .preview { min-width: 0; overflow: hidden; min-height: 540px; }
.pane-head, .retouch { border-bottom: 1px solid var(--material-border); padding: 18px; }
.conversation { display: grid; grid-template-rows: auto minmax(140px, 1fr) auto; align-items: start; }
.chat { list-style: none; padding: 15px; margin: 0; overflow: auto; max-height: 370px; align-self: stretch; }
.bubble { padding: 9px 13px; border-radius: 14px; margin-bottom: 12px; overflow-wrap: anywhere; }
.bubble.user { background: #eedccd; margin-left: 18px; }
.bubble.ai { background: #fffcf7; border: 1px solid #e8d8c6; margin-right: 18px; }
.bubble strong, .history time { font-size: 13px; }
.retouch { border: 0; border-top: 1px solid var(--material-border); align-self: end; }
.preview { display: flex; flex-direction: column; background: var(--material-stage); }
.preview iframe { width: 100%; flex: 1; min-height: 440px; border: 0; background-color: white; }
.preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--material-header); }
.preview .error { margin: 8px; }
.preview.expanded { position: fixed; inset: 0; z-index: 5; border-radius: 0; min-height: 0; }
.preview.expanded iframe { min-height: 0; }
.preview-expanded { overflow: hidden; }
.history { margin-top: 22px; padding: 21px; }
.history ol { list-style: none; padding: 0; margin-bottom: 0; }
.history li { padding: 10px 0; border-top: 1px solid var(--material-border); display: flex; gap: 10px 20px; flex-wrap: wrap; }
.history time { color: var(--muted); }
dialog { width: min(94vw, 530px); border: 1px solid #c6ad98; border-radius: 21px; padding: 25px; color: var(--ink); }
dialog::backdrop { background: #2d1f17a0; }
dialog .actions { justify-content: flex-end; }

@media (max-width: 760px) {
  .top-inner { gap: 2px 6px; min-height: 66px; padding-block: 9px; }
  .top nav { order: 2; width: 100%; margin-top: 3px; }
  .top nav a, .console { padding: 11px 10px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-copy { padding-block: 29px; }
  .hero-art { min-height: 190px; max-height: 38svh; flex: 1; }
  .hero-art i { width: min(36%, 125px); top: 12%; }
  .hero-art i + i { width: min(57%, 200px); }
  .compose, .workbench { grid-template-columns: minmax(0, 1fr); }
  .compose-art { min-height: 180px; }
  .bento { grid-template-columns: 1fr; }
  .workbench .preview { grid-row: 1; min-height: 0; }
  .workbench .conversation { min-height: 380px; }
  .preview iframe { min-height: 320px; }
  .preview.expanded { min-height: 0; }
  .preview.expanded iframe { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

#conception, .compare-form { max-width: 930px; }
#conception fieldset, .design-text {
  min-inline-size: 0;
  margin: 0;
  padding: clamp(13px, 2.4vw, 23px);
  border: 1px solid var(--material-border);
  border-radius: 15px;
}
#conception legend, .design-text summary { font-weight: 750; }
#conception fieldset p, .design-text p { margin: 11px 0; color: var(--muted); }
.color-fields, .compare-options, .comparison { display: grid; gap: 12px; }
.color-fields, .compare-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.color-field input, .compare-options select { margin-top: 6px; }
.color-field input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #bca08b;
  border-radius: 10px;
  background: #fffcf6;
  color: var(--ink);
}
.section-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.design-text label { display: block; margin-top: 12px; overflow-wrap: anywhere; }
.design-text textarea { margin-top: 5px; }
.compare-form { padding: clamp(18px, 3vw, 28px); }
.comparison { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.comparison iframe {
  width: 100%;
  background: white;
  border: 1px solid var(--material-border);
  border-radius: 16px;
  height: clamp(450px, 70vh, 850px);
}

.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 20px; align-items: start; }
.review-actions { display: grid; gap: 20px; }
.review-list { margin: 15px 0 0; padding: 0; list-style: none; }
.review-list li { padding: 10px 0; border-top: 1px solid var(--material-border); overflow-wrap: anywhere; }
.review-list time { margin-inline-start: 10px; font-size: 13px; color: var(--muted); }
.review-list button { margin-inline-start: 10px; }
.share-field { display: block; margin-top: 12px; }
.share-field input { margin-top: 6px; }
.share-button { margin-top: 12px; }
@media (max-width: 760px) {
  .review-grid { grid-template-columns: minmax(0, 1fr); }
}

.review-list span { display: inline-block; margin-inline-start: 10px; color: var(--muted); font-size: 13px; }
#contenu-fichier pre {
  max-height: 55vh;
  overflow: auto;
  padding: 13px;
  border-radius: 12px;
  background: #f4e9dc;
  font-size: 13px;
}
#contenu-fichier img { display: block; max-width: 100%; max-height: 53vh; margin-block: 14px; object-fit: contain; }
.file-close { margin-top: 12px; }

.relecture-publique { min-height: 100dvh; display: flex; flex-direction: column; }
.relecture-publique .top-inner { width: 100%; }
.relecture-publique main { flex: 1; display: flex; flex-direction: column; }
.relecture-publique iframe { width: 100%; flex: 1; min-height: 70dvh; border: 0; background-color: white; }
.empreinte { display: block; overflow-wrap: anywhere; padding-top: 6px; }
