/* =====================================================================
   Holypixx — guides (contrat de photographe…). Repose sur home.css
   (jetons, navigation, boutons, questions, conclusion, pied de page) ;
   ajoute l'ouverture d'article, l'atelier du modèle (formulaire + feuille
   posée comme un objet produit), le texte long et l'impression.
   ===================================================================== */

/* ---------- Ouverture ---------- */

.g-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); font-size: .9rem; color: var(--muted); }
.g-crumbs a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.g-crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.g-crumbs [aria-current] { color: var(--ink-2); }
.g-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.g-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1; }
.g-hero-side { display: grid; gap: 24px; }
.g-lede { font-size: clamp(1.04rem, 1.3vw, 1.14rem); max-width: 46ch; }
.g-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.g-hero-actions .ico { margin-left: 4px; }
.g-meta { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Atelier du modèle ---------- */

.g-builder { padding: clamp(72px, 9vw, 120px) 0; background: var(--mist); }
.g-builder-head { display: grid; gap: 20px; max-width: 820px; margin-bottom: clamp(36px, 5vw, 56px); }
.g-builder-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }

.g-form {
  position: sticky; top: 92px;
  display: grid; gap: 22px;
  padding: 24px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.g-group { border: 0; display: grid; gap: 12px; min-width: 0; }
.g-group legend + * { clear: both; }
.g-group + .g-group { padding-top: 20px; border-top: 1px solid var(--line); }
.g-group legend { float: left; width: 100%; padding: 0; margin-bottom: 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.g-field { display: grid; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--ink-2); min-width: 0; }
.g-field input, .g-field select {
  width: 100%; min-height: 44px; padding: 0 12px;
  font: inherit; font-size: .96rem; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.g-field input::placeholder { color: #9a9aa8; }
.g-field input:hover, .g-field select:hover { border-color: #c4c4d2; }
.g-field input:focus, .g-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 59, 246, .16); }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--mist-2); }
.g-seg label { position: relative; cursor: pointer; }
.g-seg input { position: absolute; opacity: 0; pointer-events: none; }
.g-seg span { display: grid; place-items: center; min-height: 38px; border-radius: 9px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.g-seg label:hover span { color: var(--ink); }
.g-seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 60, .12), 0 0 0 1px rgba(20, 20, 60, .04); }
.g-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.g-paper-wrap { display: grid; gap: 16px; min-width: 0; }
.g-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.g-actions .btn { gap: 8px; }
.g-actions .ico { width: 18px; height: 18px; }

/* La feuille : posée sur la brume comme un document produit. */
.g-paper {
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px);
  border-radius: 6px; background: var(--paper);
  box-shadow: var(--shadow-window), 0 0 0 1px rgba(20, 20, 60, .08);
  font-size: .9rem; line-height: 1.65; color: var(--ink-2);
}
.g-paper p + p { margin-top: .55em; }
.g-doc-title { text-align: center; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.g-paper .g-doc-sub { margin-top: 4px; text-align: center; color: var(--muted); }
.g-paper .g-doc-h { margin-top: 1.6em; margin-bottom: -.1em; font-weight: 600; color: var(--ink); }
.g-paper .g-doc-sub + .g-doc-h { margin-top: 2.2em; }
.g-paper .g-doc-place { margin-top: 2em; }
.g-doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 1.4em; }
.g-doc-sign div { display: grid; gap: 2px; padding-bottom: 64px; border-bottom: 1px solid var(--line-2); }
.g-doc-sign span { font-weight: 600; color: var(--ink); }
.g-doc-sign em { font-style: normal; font-size: .82rem; color: var(--muted); }

/* Ce que le photographe a saisi, ce qui manque, ce que le client remplira. */
.g-fill { padding: 0 3px; margin: 0 -1px; border-radius: 4px; background: var(--mist-2); color: var(--ink); transition: background-color .3s var(--ease); }
.g-ph { color: var(--muted); text-decoration: underline dotted var(--line-2); text-underline-offset: 3px; }
.g-blank { display: inline-block; width: 6.5em; height: 1em; vertical-align: -0.2em; border-bottom: 1px solid #b9b9c8; }
.g-box { display: inline-block; width: .82em; height: .82em; margin-right: 2px; vertical-align: -0.08em; border: 1.3px solid var(--ink-2); border-radius: 2px; }

.g-disclaimer { font-size: .84rem; color: var(--muted); max-width: 70ch; }

/* ---------- Les clauses ---------- */

.g-article { padding: clamp(80px, 11vw, 140px) 0; }
.g-article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.g-toc { position: sticky; top: 100px; display: grid; gap: 12px; padding-top: 6px; }
.g-toc-title { font-size: .86rem; font-weight: 600; color: var(--ink); }
.g-toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.g-toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; font-size: .9rem; color: var(--muted); transition: color .2s, background-color .2s; }
.g-toc a:hover { color: var(--ink); background: var(--mist); }
.g-prose { max-width: 68ch; }
.g-prose h2 { margin-bottom: 20px; }
.g-prose .chapter-lede { margin-bottom: clamp(32px, 4vw, 48px); }
.g-prose h3 { margin: 2.1em 0 .5em; font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.g-prose h3:first-of-type { margin-top: 0; }
.g-prose p { color: var(--ink-2); }
.g-callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--mist); }
.g-callout .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.g-callout p { font-size: .96rem; }
.g-callout strong { color: var(--ink); font-weight: 600; }

/* ---------- Signature en ligne ---------- */

.g-sign { padding: clamp(80px, 11vw, 140px) 0; background: var(--mist); }
.g-sign-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.g-sign h2 { margin-bottom: 20px; }
.g-ticks { list-style: none; display: grid; gap: 12px; margin: 28px 0 32px; }
.g-ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.g-ticks .ico { margin-top: 3px; color: var(--accent); }

.g-signed { position: relative; padding: 0 0 40px; }
.g-signed-card {
  padding: 28px; border-radius: 16px; background: var(--paper);
  box-shadow: var(--shadow-window), 0 0 0 1px rgba(20, 20, 60, .08);
}
.g-signed-kicker { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-signed-title { margin: 4px 0 20px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.g-signed-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .94rem; color: var(--ink-2); }
.g-signed-muted { color: var(--muted); }
.g-mono { font-family: var(--mono); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-signed-sig { display: grid; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.g-signed-sig svg { width: 200px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-signed-sig span { font-size: .84rem; color: var(--muted); }
.g-signed-stamp {
  position: absolute; right: clamp(-12px, -1vw, 0px); bottom: 0;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--paper); color: var(--ink-2); font-size: .92rem; font-weight: 500;
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(20, 20, 60, .06);
}
.g-signed-stamp .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; color: #fff; background: var(--ok); stroke-width: 2.2; }

/* ---------- Démonstration des protections ---------- */

.p-lab { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.p-photo {
  position: relative; overflow: hidden; aspect-ratio: 1400 / 934; border-radius: 16px; background: var(--mist-2);
  box-shadow: var(--shadow-window), 0 0 0 1px rgba(20, 20, 60, .08);
  user-select: none; -webkit-user-select: none;
}
.p-photo img { width: 100%; height: 100%; object-fit: cover; transition: filter .5s var(--ease); -webkit-user-drag: none; }
.p-tiles, .p-wm, .p-print, .p-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); }
.p-tiles {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: 12.5% 18.75%;
}
.p-wm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='120'%3E%3Ctext x='0' y='70' transform='rotate(-24 130 60)' font-family='Helvetica,Arial,sans-serif' font-size='22' font-weight='600' fill='white' fill-opacity='.38'%3E%C2%A9 Little Dream Photos%3C/text%3E%3C/svg%3E");
  background-size: 260px 120px;
}
.p-print { display: flex; align-items: flex-end; justify-content: flex-start; padding: 14px; }
.p-print code { padding: 6px 10px; border-radius: 8px; background: rgba(10, 10, 18, .82); color: #d8d8ff; font-family: var(--mono); font-size: .8rem; }
.p-flash { background: #fff; }
.p-photo[data-res="on"] img { filter: blur(1.1px) saturate(.96); }
.p-photo[data-tiles="on"] .p-tiles,
.p-photo[data-wm="on"] .p-wm,
.p-photo[data-print="on"] .p-print { opacity: 1; }
.p-photo.flash .p-flash { animation: p-flash .6s var(--ease); }
@keyframes p-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.p-alert {
  position: absolute; top: 14px; right: 14px; max-width: min(360px, calc(100% - 28px));
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow-float), 0 0 0 1px rgba(20, 20, 60, .06);
  font-size: .88rem; line-height: 1.4; animation: p-rise .45s var(--ease);
}
.p-alert strong { display: block; color: var(--ink); font-weight: 600; }
.p-alert em { font-style: normal; color: var(--muted); }
.p-alert-ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fdf6e3; color: #8a5a00; }
.p-alert-ico .ico { width: 18px; height: 18px; }
@keyframes p-rise { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.p-side { display: grid; gap: 16px; }
.p-controls { display: grid; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.p-toggle {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 16px; text-align: left; border-top: 1px solid var(--line);
  transition: background-color .2s var(--ease);
}
.p-toggle:first-child { border-top: 0; }
.p-toggle:hover { background: #fafafc; }
.p-toggle > .ico { width: 22px; height: 22px; color: var(--muted); transition: color .2s var(--ease); }
.p-toggle strong { display: block; font-size: .96rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.p-toggle em { display: block; margin-top: 2px; font-style: normal; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.p-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background-color .25s var(--ease); }
.p-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 11, 16, .25); transition: transform .25s var(--ease); }
.p-toggle[aria-pressed="true"] .p-switch { background: var(--accent); }
.p-toggle[aria-pressed="true"] .p-switch::after { transform: translateX(16px); }
.p-toggle[aria-pressed="true"] > .ico { color: var(--accent); }
.p-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 0; }
.p-capture { justify-content: center; gap: 10px; }

.p-verdict { padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.p-verdict-title { font-size: .86rem; font-weight: 600; color: var(--ink); }
.p-verdict-text { margin-top: 6px; font-size: .94rem; line-height: 1.55; color: var(--ink-2); min-height: 4.65em; }
.p-meter { height: 6px; margin-top: 14px; border-radius: 999px; background: var(--mist-2); overflow: hidden; }
.p-meter span { display: block; height: 100%; border-radius: inherit; background: var(--alert); transition: width .5s var(--ease), background-color .5s var(--ease); }
.p-meter[data-level="mid"] span { background: var(--warn); }
.p-meter[data-level="low"] span { background: var(--ok); }

/* ---------- Calculateur de mini-séances ---------- */

.g-check { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.g-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.r-plan, .r-post {
  display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); border-radius: 16px; background: var(--paper);
}
.r-plan { box-shadow: var(--shadow-window), 0 0 0 1px rgba(20, 20, 60, .08); }
.r-post { box-shadow: 0 0 0 1px var(--line); }
.r-plan-head { display: flex; gap: 14px; align-items: center; }
.r-plan-head .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.r-plan-title { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.r-plan-date { font-size: .9rem; color: var(--muted); }
.r-summary { font-size: 1rem; line-height: 1.55; color: var(--ink); max-width: 60ch; font-variant-numeric: tabular-nums; }
.r-slots { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.r-slots li {
  display: grid; place-items: center; min-height: 40px; border-radius: 10px;
  background: var(--mist); box-shadow: 0 0 0 1px var(--line) inset;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.r-slots .r-pause { grid-column: 1 / -1; min-height: 28px; background: none; box-shadow: none; font-size: .8rem; color: var(--muted); }
.r-slots .r-pause::before, .r-slots .r-pause::after { content: ""; display: none; }
.r-plan-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.r-plan-actions .btn { gap: 8px; }
.r-plan-actions .ico { width: 17px; height: 17px; }
.r-post-title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.r-post-text {
  margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--mist);
  font-family: var(--sans); font-size: .94rem; line-height: 1.6; color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}

.r-mock-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; }
.r-mock-slots span {
  display: grid; place-items: center; min-height: 34px; border-radius: 8px; font-size: .84rem; font-weight: 500;
  color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; font-variant-numeric: tabular-nums;
}
.r-mock-slots .r-mock-taken { color: #a3a3b2; text-decoration: line-through; box-shadow: none; background: var(--mist); }
.r-mock-slots .r-mock-pick { color: #fff; background: var(--accent); box-shadow: none; }

/* ---------- Calendrier de fidélité ---------- */

.g-field-label { font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.f-seasons { display: grid; gap: 10px; }
.g-row:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.f-list { list-style: none; display: grid; gap: 6px; }
.f-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: baseline;
  width: 100%; padding: 12px 14px; text-align: left; border-radius: 12px;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line) inset;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.f-item:hover { background: #fafafc; }
.f-item[aria-pressed="true"] { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.f-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-when { font-family: var(--mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-when.f-now { color: var(--accent); font-weight: 600; }
.f-what strong { display: block; font-size: .96rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.f-what em { display: block; margin-top: 2px; font-style: normal; font-size: .86rem; color: var(--muted); }
.f-item-season .f-what strong { font-weight: 500; color: var(--ink-2); }
.f-mock-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: .9rem; line-height: 1.55; color: var(--ink-2); }

/* ---------- Écrans plus étroits ---------- */

@media (max-width: 1000px) {
  .g-hero-grid, .g-builder-grid, .g-article-grid, .g-sign-grid, .p-lab { grid-template-columns: minmax(0, 1fr); }
  .g-form { position: static; }
  .g-toc { position: static; }
  .g-toc ol { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .g-signed { max-width: 520px; }
}
@media (max-width: 640px) {
  .g-actions .btn { flex: 1 1 100%; justify-content: center; }
  .g-paper { font-size: .86rem; }
  .g-doc-sign { grid-template-columns: 1fr; }
  .g-row { grid-template-columns: 1fr; }
  .g-hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .g-signed-stamp { right: 8px; }
  .f-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-fill, .g-field input, .g-field select, .g-seg span, .p-photo img, .p-switch, .p-switch::after, .p-meter span, .f-item { transition: none; }
  .p-alert { animation: none; }
}

/* ---------- Impression : la feuille seule, prête à enregistrer en PDF ---------- */

@media print {
  @page { size: A4; margin: 18mm 18mm 20mm; }
  body { background: #fff; }
  .guide-contract .skip, .guide-contract .sprite, .guide-contract .nav, .guide-contract .g-hero,
  .guide-contract .g-builder-head, .guide-contract .g-form, .guide-contract .g-actions, .guide-contract .g-disclaimer,
  .guide-contract .g-article, .guide-contract .g-sign, .guide-contract #faq, .guide-contract .closing,
  .guide-contract .footer, .guide-contract .toast { display: none !important; }
  .guide-contract .g-builder { padding: 0; background: #fff; }
  .guide-contract .g-builder .wrap { width: 100%; }
  .guide-contract .g-builder-grid, .guide-contract .g-paper-wrap { display: block; }
  .g-paper { padding: 0; border-radius: 0; box-shadow: none; font-size: 10.5pt; color: #000; }
  .g-fill { background: none; padding: 0; margin: 0; }
  .g-ph { text-decoration: none; color: #000; }
  .g-doc-sign { break-inside: avoid; }
  .g-doc-h { break-after: avoid; }
}

/* ---------- Galerie de mariage ---------- */
/* L'aperçu reprend la page de galerie de la démonstration des styles
   (home.css, .sty-*) : Romantique, le film en ouverture. */
.m-win { align-self: center; }
.m-win .sty-page { height: clamp(420px, 40vw, 520px); }
@media (max-width: 640px) {
  .m-win .sty-page { height: 440px; }
}

