@charset "UTF-8";

/* Socle commun aux trois maquettes : palette, composants, formulaire, fenêtres. */

:root {
  --cream: #f8f4ec;
  --cream-deep: #f1e9da;
  --beige: #e7dbc4;
  --sand: #c9b48c;
  --line: #e1d6c2;
  --paper: #fffdf8;
  --ink: #15223a;
  --muted: #566073;
  --blue: #2b59a3;
  --blue-dark: #1e4384;
  --blue-deep: #13294b;
  --blue-soft: #dce6f3;
  --blue-mist: #edf2f8;
  --blue-light: #a9c6f0;
  --error: #a3301a;
  --success: #2b6a3c;
  --radius: 6px;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-variant-emoji: text; }
body:has(.version-switcher) { padding-bottom: 72px; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }

@keyframes appear { from { opacity: .55; } to { opacity: 1; } }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.eyebrow { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; white-space: nowrap; }
.brand-stitch { font-weight: 400; }
.brand-dot { color: var(--blue); }

/* Boutons et liens */

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 50px; padding: 13px 21px; border: 1px solid transparent; border-radius: var(--radius); font-size: 12px; font-weight: 600; line-height: 1.4; transition: background-color .2s, color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 20px; font-weight: 400; }
.button-blue { background: var(--blue); color: #fff; }
.button-blue:hover { background: var(--blue-dark); }
.button-ink { background: var(--ink); color: var(--cream); }
.button-ink:hover { background: var(--blue-dark); }
.button-cream { background: var(--cream); color: var(--ink); }
.button-cream:hover { background: #fff; }
.button-small { min-height: 42px; padding: 9px 16px; font-size: 11px; }

.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 11px; }
.text-link:hover { color: var(--blue); }

.circle-button { display: inline-grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 50%; background: transparent; font-size: 16px; line-height: 1; transition: background-color .2s; }
.circle-button:hover:not(:disabled) { background: color-mix(in srgb, currentColor 14%, transparent); }

.menu-toggle { display: none; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); font-size: 11px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 8px 15px; border: 1px solid var(--line); border-radius: 30px; background: transparent; font-size: 11px; }
.filter:hover:not(.active) { background: var(--blue-mist); }
.filter.active { border-color: var(--blue); background: var(--blue); color: #fff; }

.content-status { margin: 0 0 20px; padding: 12px 14px; border-radius: 4px; background: var(--blue-mist); font-size: 12px; }

/* Articles */

.article-card { min-width: 0; }
.article-index { display: none; }
.article-image-button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.article-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.article-image-button:hover img { transform: scale(1.04); }
.article-image-button > span { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); font-size: 18px; }
.article-meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 10px; color: var(--muted); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.article-meta span:first-child { color: var(--blue); font-weight: 700; }
.article-card h3 { margin-bottom: 10px; font-size: 21px; font-weight: 500; letter-spacing: -.5px; line-height: 1.2; }
.article-title-button { padding: 0; border: 0; background: none; font: inherit; line-height: inherit; text-align: left; }
.article-title-button:hover { color: var(--blue); }
.article-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }

/* Réalisations */

.realisation-card { position: relative; min-width: 0; }
.realisation-button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.realisation-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.realisation-button:hover img { transform: scale(1.04); }
.realisation-zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(248, 244, 236, .92); color: var(--ink); font-size: 15px; }
.realisation-card figcaption { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; }
.realisation-category { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.realisation-card strong { font-size: 15px; font-weight: 500; line-height: 1.35; }
.realisation-description { display: none; }

/* Formulaire */

.form-heading { margin-bottom: 24px; }
.form-heading h3 { margin-bottom: 8px; font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-form label:not(.checkbox-label):not(.dropzone),
.field-label { display: block; min-width: 0; margin-bottom: 16px; font-size: 11px; font-weight: 600; }
.field-label { margin-bottom: 8px; }
.project-form input:not([type="checkbox"]):not([type="file"]),
.project-form select,
.project-form textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 400; transition: border-color .2s; }
.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus { border-color: var(--blue); }
.project-form input::placeholder,
.project-form textarea::placeholder { color: #6b7386; }
.project-form textarea { min-height: 96px; resize: vertical; }

.dropzone { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 16px; border: 1px dashed var(--sand); border-radius: 6px; background: var(--cream-deep); text-align: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.dropzone:hover,
.dropzone.dragging { border-color: var(--blue); background: var(--blue-mist); }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { color: var(--blue); font-size: 28px; line-height: 1; }
.dropzone > span:last-child { font-size: 11px; }
.dropzone strong { font-weight: 600; }
.dropzone small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.file-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.file-preview img { width: 52px; height: 52px; border-radius: 3px; background: var(--cream); object-fit: contain; }
.file-preview > div { flex: 1; min-width: 0; }
.file-preview strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.file-preview span { color: var(--muted); font-size: 11px; }
.file-preview button { padding: 6px 9px; border: 0; background: none; font-size: 22px; line-height: 1; }
.field-status { margin: 7px 0 12px; color: var(--muted); font-size: 11px; }
.field-status:empty { margin: 0; }
.field-status.error { color: var(--error); }

.checkbox-label { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.checkbox-label input { flex-shrink: 0; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue); }
.inline-button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; }
.availability { margin: 18px 0 12px; padding: 10px 12px; border-left: 3px solid var(--sand); border-radius: 3px; background: var(--cream-deep); color: #5b4a29; font-size: 11px; line-height: 1.7; }
.submit-button { width: 100%; }
.form-status { margin: 12px 0 0; font-size: 12px; line-height: 1.7; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.form-status.success { color: var(--success); }
.form-reassurance { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.honeypot { display: none; }

/* Fenêtres */

.dialog { width: calc(100% - 32px); max-width: 680px; max-height: 88vh; padding: 0; border: 0; border-radius: 12px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 90px rgba(19, 41, 75, .35); overscroll-behavior: contain; }
.dialog::backdrop { background: rgba(19, 41, 75, .78); }
.dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 24px; line-height: 1; }
.dialog-body { padding: 48px 38px 38px; }
.dialog h2 { margin: 10px 0 22px; padding-right: 20px; font-size: 34px; font-weight: 500; letter-spacing: -1px; }
.dialog .eyebrow { color: var(--blue); }
.article-dialog > img { width: 100%; height: 260px; object-fit: cover; }
.article-dialog .button { margin-top: 12px; }
.article-body { color: var(--muted); font-size: 14px; line-height: 1.9; }
.article-body p { overflow-wrap: anywhere; }

.realisation-dialog { max-width: 1040px; overflow: hidden; }
.realisation-dialog[open] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); }
.realisation-dialog-media { display: grid; place-items: center; min-height: 320px; background: var(--blue-deep); }
.realisation-dialog-media img { width: 100%; height: 100%; max-height: 84vh; object-fit: contain; }
.realisation-dialog-body { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 60px 32px 30px; }
.realisation-dialog h2 { font-size: 30px; }
.realisation-dialog-body p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.realisation-dialog-nav { display: flex; align-items: center; gap: 14px; font-size: 11px; font-variant-numeric: tabular-nums; }

/* Sélecteur de maquettes (prévisualisation uniquement) */

.version-switcher { position: fixed; z-index: 40; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 3px; padding: 5px; border-radius: 40px; background: rgba(19, 41, 75, .94); color: var(--cream); font-size: 11px; box-shadow: 0 12px 30px rgba(19, 41, 75, .28); transform: translateX(-50%); backdrop-filter: blur(8px); }
.version-switcher > span { padding: 0 8px 0 12px; color: var(--blue-light); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.version-switcher a { padding: 7px 13px; border-radius: 30px; white-space: nowrap; }
.version-switcher a:hover { background: rgba(255, 255, 255, .12); }
.version-switcher a[aria-current="page"] { background: var(--cream); color: var(--ink); }

.skip-link { position: fixed; z-index: 50; top: -100px; left: 15px; padding: 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 15px; }
.noscript { position: fixed; z-index: 50; bottom: 0; width: 100%; padding: 16px; background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .realisation-dialog { overflow: auto; }
  .realisation-dialog[open] { display: block; }
  .realisation-dialog-media { min-height: 0; }
  .realisation-dialog-media img { max-height: 55vh; }
  .realisation-dialog-body { padding: 24px 22px; }
}

@media (max-width: 680px) {
  .project-form input:not([type="checkbox"]):not([type="file"]),
  .project-form select,
  .project-form textarea { font-size: 16px; }
  .dialog-body { padding: 46px 22px 28px; }
  .dialog h2 { font-size: 28px; }
  .article-dialog > img { height: 200px; }
  .version-switcher > span { display: none; }
  .version-switcher a { padding: 7px 11px; font-size: 10px; }
  .version-switcher a:not([aria-current="page"]) span { display: none; }
}

@media (max-width: 380px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
