@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --ink: #18372b;
  --green: #08753f;
  --green-deep: #06462f;
  --green-bright: #f0c333;
  --red: #d64537;
  --paper: #fffefa;
  --muted: #718079;
}

body { color: var(--ink); background-color: #f5f6f0; }
.sidebar { background-color: #06462f; background-image: linear-gradient(135deg, transparent 49.7%, rgba(255,255,255,.035) 49.8% 50.2%, transparent 50.3%), linear-gradient(45deg, transparent 49.7%, rgba(255,255,255,.035) 49.8% 50.2%, transparent 50.3%); }
.brand-mark { border-radius: 9px 9px 9px 2px; background: #f0c333; color: #06462f; }
.brand-name span { color: #f0c333; }
.nav-icon { color: #f0c333; }
.nav-item.is-active { box-shadow: inset 2px 0 #f0c333; }
.main-area { background-color: #f5f6f0; background-image: linear-gradient(rgba(8,117,63,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(8,117,63,.018) 1px, transparent 1px); background-size: 24px 24px; }
.portal-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #dfe6dc; border-radius: 5px; padding: 3px; background: #fffefa; }
.portal-option { min-height: 27px; border: 0; border-radius: 3px; padding: 0 9px; color: #758279; background: transparent; font-size: 13px; white-space: nowrap; }
.portal-option.is-active { color: #fffefa; background: #08753f; font-weight: 700; }
body.is-client .nav-item[data-role="admin"], body.is-admin .nav-item[data-role="client"] { display: none; }
.admin-local-notice { display: flex; align-items: flex-start; gap: 9px; margin: -7px 0 16px; border: 1px solid #f0dca7; border-radius: 5px; padding: 10px 12px; color: #796438; background: #fff9e8; }
.admin-local-notice > span { flex: none; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #bd8b26; font: 700 14px 'DM Mono', monospace; }
.admin-local-notice p { margin: 0; font-size: 13px; line-height: 1.5; }
.admin-local-notice strong { color: #674f1d; }
.topbar { position: relative; border-color: #dde5db; }
.topbar::after { position: absolute; bottom: -1px; left: 0; width: 122px; height: 3px; background: linear-gradient(90deg, #08753f 0 42%, #f0c333 42% 72%, #d64537 72%); content: ''; }
.eyebrow-line { background: #d64537; }
h1, .brief-card h2, .result-head h2, .integration-copy h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; }
.title-period { color: #d64537; }
.panel, .result-card { border-color: #e0e7dd; box-shadow: 0 5px 18px rgba(14,58,37,.045); }
.primary-button, .send-button { background: #08753f; }
.primary-button:hover, .send-button:hover { background: #075d35; }

.creation-gallery { margin: 20px 0 24px; animation: gallery-enter .5s ease both; }
.client-hero-banner { position: relative; display: block; line-height: 0; width: 100%; margin: 0 auto 22px; overflow: hidden; border: 1px solid #e2e7dc; border-radius: 7px; background: #fffefa; box-shadow: 0 6px 20px rgba(14,58,37,.06); }
.client-hero-banner img { display: block; width: 100%; height: auto; max-width: none; max-height: none; object-fit: cover; object-position: center; }
.client-banner-cta { position: absolute; bottom: 16px; left: 50%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.75); border-radius: 5px; padding: 0 17px; color: #fff; background: #08753f; box-shadow: 0 3px 12px rgba(5,44,27,.28); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .16s ease, transform .16s ease; }
.client-banner-cta:hover { transform: translate(-50%, -2px); background: #06462f; }
.client-banner-cta:focus-visible { outline: 3px solid #f0c333; outline-offset: 3px; }
.client-banner-cta span { font-size: 15px; }
.home-pricing { scroll-margin-top: 18px; }
@keyframes gallery-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.gallery-heading .section-kicker { color: #718176; }
.gallery-heading h2 { margin: 4px 0 0; color: #18372b; font: 600 19px/1.15 Fraunces, Georgia, serif; }
.demo-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px; color: #8b968b; font: 12px 'DM Mono', monospace; }
.demo-label i { width: 6px; height: 6px; border-radius: 50%; background: #e2b42e; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.creation-card { min-width: 0; overflow: hidden; border: 1px solid #e1e6dc; border-radius: 6px; background: #fffefa; box-shadow: 0 4px 13px rgba(22,54,38,.035); transition: transform .2s ease, box-shadow .2s ease; }
.creation-card:hover { transform: translateY(-3px); box-shadow: 0 9px 20px rgba(22,54,38,.09); }
.creation-art { position: relative; height: 143px; overflow: hidden; isolation: isolate; }
.art-tag, .video-time { position: absolute; z-index: 2; top: 10px; color: rgba(255,255,255,.82); font: 12px 'DM Mono', monospace; }
.art-tag { left: 11px; }
.art-poster { color: #fff8e8; background: linear-gradient(118deg, #c74230 0%, #df5b38 52%, #eea94e 100%); }
.art-poster::before { position: absolute; top: -51px; right: -18px; width: 132px; height: 205px; border: 1px solid rgba(255,246,212,.34); border-radius: 65% 0 55% 45%; transform: rotate(28deg); content: ''; }
.art-poster::after { position: absolute; right: 0; bottom: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #08753f 0 40%, #f0c333 40% 70%, #d64537 70%); content: ''; }
.poster-copy { position: absolute; z-index: 1; top: 30px; left: 14px; display: grid; gap: 6px; }
.poster-copy span { font: 11px 'DM Mono', monospace; letter-spacing: 1px; }
.poster-copy strong { font: 600 25px/.94 Fraunces, Georgia, serif; }
.poster-copy i { margin-top: 4px; font: normal 7px 'DM Mono', monospace; letter-spacing: 1.2px; }
.poster-stamp { position: absolute; right: 13px; bottom: 13px; display: grid; width: 42px; height: 42px; align-content: center; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: #fff8e8; font: 11px/1.3 'DM Mono', monospace; text-align: center; transform: rotate(9deg); }
.art-video { color: #f9f3dc; background: linear-gradient(138deg, #073f32 0%, #0a7551 70%, #1a9561 100%); }
.art-video::before { position: absolute; z-index: 0; top: 26px; right: 48px; width: 56px; height: 91px; border: 1px solid rgba(241,207,94,.85); border-radius: 14px 14px 10px 10px; background: linear-gradient(90deg, rgba(241,207,94,.08), rgba(241,207,94,.26) 48%, rgba(255,255,255,.08)); box-shadow: 0 7px 24px rgba(4,33,25,.28); content: ''; }
.art-video::after { position: absolute; z-index: 0; top: 19px; right: 66px; width: 20px; height: 10px; border-radius: 3px 3px 0 0; background: #f0c333; content: ''; }
.video-time { right: 11px; }
.video-product { position: absolute; z-index: 1; bottom: 13px; left: 13px; display: grid; gap: 3px; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.video-product span { color: #f1d872; font: 11px 'DM Mono', monospace; letter-spacing: .7px; }
.video-product strong { font: 600 21px/.95 Fraunces, Georgia, serif; }
.video-product i { margin-top: 2px; font: normal 7px 'DM Mono', monospace; letter-spacing: 1px; }
.play-mark { position: absolute; z-index: 2; top: 64px; right: 65px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; color: #fff; font-size: 12px; text-indent: 1px; }
.art-logo { display: grid; place-items: center; color: #f7f2e5; background: #153d31; }
.art-logo::before { position: absolute; inset: 9px; border: 1px solid rgba(240,195,51,.46); content: ''; }
.art-logo::after { position: absolute; right: 0; bottom: 0; left: 0; height: 5px; background: linear-gradient(90deg, #08753f 0 40%, #f0c333 40% 70%, #d64537 70%); content: ''; }
.logo-lockup { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; }
.logo-emblem { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 1px; border: 1px solid #f0c333; border-radius: 50% 50% 50% 3px; color: #f0c333; font: 600 19px Fraunces, Georgia, serif; transform: rotate(-8deg); }
.logo-lockup strong { font: 600 23px/.95 Fraunces, Georgia, serif; }
.logo-lockup i { color: #e7cb69; font: normal 6px 'DM Mono', monospace; letter-spacing: 1.4px; }
.logo-note { position: absolute; z-index: 1; bottom: 13px; color: rgba(255,255,255,.6); font: 6px 'DM Mono', monospace; letter-spacing: 1px; }
.creation-caption { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; }
.creation-caption strong, .creation-caption span { display: block; }
.creation-caption strong { color: #263e32; font-size: 14px; font-weight: 700; }
.creation-caption div > span { margin-top: 3px; color: #849087; font-size: 12px; }
.creation-arrow { color: #a0aa9f; font-size: 16px; }
.gallery-disclaimer { margin: 7px 0 0; color: #9ba49c; font-size: 12px; }
.published-gallery { margin: 25px 0 22px; }
.published-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.published-creation { overflow: hidden; border: 1px solid #e1e6dc; border-radius: 6px; background: #fffefa; box-shadow: 0 4px 13px rgba(22,54,38,.035); }
.published-creation img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; background: #edf1e9; }
.published-creation-copy { padding: 10px 11px; }
.published-creation-copy strong { display: block; color: #263e32; font-size: 14px; }
.published-creation-copy span { display: block; margin-top: 3px; color: #849087; font-size: 12px; }
.portfolio-admin-panel { margin-top: 18px; padding: 18px; }
.portfolio-admin-heading h2 { margin: 5px 0 4px; color: #203a2d; font: 600 20px Fraunces, Georgia, serif; }
.portfolio-admin-heading p { margin: 0 0 15px; color: #829087; font-size: 14px; }
.portfolio-form { border-top: 1px solid #edf0e9; padding-top: 14px; }
.portfolio-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.7fr); gap: 12px; }
.portfolio-form-field { display: grid; gap: 6px; min-width: 0; }
.portfolio-form-field label { color: #405248; font-size: 13px; font-weight: 600; }
.portfolio-form-field input:not([type="file"]), .portfolio-form-field select { width: 100%; min-height: 35px; border: 1px solid #dfe5dc; border-radius: 4px; padding: 0 9px; color: #304438; background: #fff; font-size: 14px; }
.portfolio-form-field input[type="file"] { width: 100%; min-height: 35px; color: #6a786e; font-size: 13px; }
.portfolio-form-field small { color: #8a968d; font-size: 12px; }
.portfolio-caption-field, .portfolio-image-field { grid-column: 1 / -1; }
.portfolio-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; }
.portfolio-publish-toggle { display: inline-flex; align-items: center; gap: 7px; color: #52665a; font-size: 13px; }
.portfolio-publish-toggle input { accent-color: #08753f; }
.portfolio-form-footer .primary-button { min-height: 35px; }
.portfolio-form-status { min-height: 14px; margin: 8px 0 0; color: #738177; font-size: 13px; }
.portfolio-form-status.is-error { color: #ad463b; }
.portfolio-form-status.is-success { color: #287449; }
.admin-portfolio-list { display: grid; gap: 8px; margin-top: 12px; }
.admin-portfolio-row { display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto; align-items: center; gap: 10px; border-top: 1px solid #edf0e9; padding-top: 9px; }
.admin-portfolio-row img { width: 56px; height: 44px; border-radius: 4px; object-fit: cover; background: #edf1e9; }
.admin-portfolio-row strong, .admin-portfolio-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-portfolio-row strong { color: #354a3e; font-size: 13px; }
.admin-portfolio-row small { margin-top: 3px; color: #89958d; font-size: 12px; }
.portfolio-visibility { border-radius: 3px; padding: 4px 6px; color: #56715a; background: #eef4e8; font-size: 12px; }
.portfolio-visibility.is-hidden { color: #866c39; background: #f8f1df; }
.portfolio-delete { min-height: 26px; border: 1px solid #ead8d3; border-radius: 4px; padding: 0 7px; color: #a1473c; background: #fff; font-size: 12px; }
.portfolio-delete:hover { background: #fcf1ee; }
.portfolio-empty { margin: 8px 0 0; color: #87938a; font-size: 13px; }

@media (max-width: 980px) {
  .main-area { padding-right: 25px; padding-left: 25px; }
  .creation-art { height: 128px; }
  .poster-copy strong { font-size: 22px; }
}
@media (max-width: 760px) {
  .client-hero-banner { margin-bottom: 16px; border-radius: 5px; }
  .client-banner-cta { bottom: 9px; min-height: 37px; gap: 7px; padding: 0 12px; font-size: 14px; }
  .published-gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .portfolio-admin-panel { padding: 14px; }
  .portfolio-form-grid { grid-template-columns: 1fr; }
  .portfolio-form-field, .portfolio-caption-field, .portfolio-image-field { grid-column: auto; }
  .portfolio-form-footer { align-items: stretch; flex-direction: column; }
  .portfolio-form-footer .primary-button { width: 100%; }
  .admin-portfolio-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 7px; }
  .admin-portfolio-row img { width: 46px; height: 38px; }
  .admin-portfolio-row .portfolio-delete { grid-column: 2 / -1; justify-self: end; }
  .portfolio-visibility { grid-column: 3; grid-row: 1; }
  .topbar-actions { gap: 7px; }
  .portal-switch { gap: 1px; padding: 2px; }
  .portal-option { min-height: 26px; padding: 0 6px; font-size: 12px; }
  .language-switch > span { display: none; }
  .main-area { padding-right: 15px; padding-left: 15px; }
  .creation-gallery { margin: 17px -1px 19px; }
  .gallery-heading { align-items: center; }
  .gallery-heading h2 { font-size: 18px; }
  .demo-label { max-width: 130px; font-size: 11px; text-align: right; }
  .gallery-grid { display: flex; gap: 9px; overflow-x: auto; padding: 1px 1px 7px; scroll-snap-type: x mandatory; }
  .creation-card { flex: 0 0 min(77vw, 286px); scroll-snap-align: start; }
  .creation-art { height: 156px; }
  .poster-copy { top: 36px; }
  .poster-copy strong { font-size: 28px; }
  .page-heading { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .creation-gallery { animation: none; }
  .creation-card { transition: none; }
}

.home-pricing { margin: 16px 0 21px; border: 1px solid #dce6d9; border-radius: 6px; padding: 11px 14px 13px; background: rgba(255,254,250,.94); box-shadow: 0 4px 14px rgba(14,58,37,.035); }
.pricing-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pricing-heading .section-kicker { color: #526b59; font-size: 12px; }
.pricing-fixed { display: inline-flex; align-items: center; gap: 5px; color: #7b887d; font: 11px 'DM Mono', monospace; }
.pricing-fixed i { width: 5px; height: 5px; border-radius: 50%; background: #08753f; }
.pricing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pricing-option { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border-top: 1px solid #edf0e9; padding: 10px 1px 0; }
.pricing-name { min-width: 0; display: flex; align-items: center; gap: 9px; }
.pricing-icon { flex: none; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 5px; color: #08753f; background: #edf4e9; font-size: 15px; }
.pricing-icon-video { color: #a64633; background: #fbefe7; }
.pricing-name strong, .pricing-name small { display: block; }
.pricing-name strong { overflow: hidden; color: #294334; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pricing-name small { margin-top: 3px; color: #89948b; font-size: 12px; }
.pricing-value { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.pricing-value strong { color: #173e2c; font: 700 16px Manrope, sans-serif; }
.pricing-value span { color: #79877d; font: 12px 'DM Mono', monospace; }
.pricing-order { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 4px; padding: 0 9px; color: #fffefa; background: #08753f; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .16s ease; }
.pricing-order:hover { background: #06462f; }
.pricing-order span { font-size: 15px; }
.payment-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 11px; padding-top: 9px; border-top: 1px solid #edf0e9; }
.payment-label { margin-right: 3px; color: #89968e; font: 11px 'DM Mono', monospace; }
.payment-chip { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e6e9e3; border-radius: 6px; padding: 0 10px 0 6px; background: #fff; font-size: 14px; font-weight: 700; }
.payment-chip svg { width: 20px; height: 20px; flex: none; }
.payment-chip b { font-weight: 800; letter-spacing: -.01em; }
.payment-wave { color: #1768c4; }
.payment-orange { color: #dc641c; }
.payment-visa { padding: 0 11px; color: #1a1f71; }
.payment-visa b { font-size: 14px; font-weight: 900; font-style: italic; letter-spacing: .02em; }
.payment-note { margin-left: auto; color: #939d95; font-size: 11px; }
@media (max-width: 760px) {
  .home-pricing { margin: 14px 0 17px; padding: 10px 11px 11px; }
  .pricing-options { grid-template-columns: 1fr; gap: 8px; }
  .pricing-option { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-top: 8px; }
  .pricing-value strong { font-size: 15px; }
  .pricing-name { gap: 7px; }
  .pricing-name strong { font-size: 13px; }
  .pricing-name small { font-size: 11px; }
  .payment-methods { gap: 5px; }
  .payment-note { flex-basis: 100%; margin: 2px 0 0; }
}

/* ===== Finition professionnelle ===== */
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { line-height: 1.55; }
.app-shell { grid-template-columns: 260px minmax(0, 1fr); }
.main-area { padding: 0 clamp(18px, 4vw, 56px); }
.topbar { height: 72px; }
.page-heading h1 { letter-spacing: -.02em; }
.client-hero-banner { border: 0; border-radius: 14px; box-shadow: 0 18px 48px rgba(14,58,37,.16); }
.home-pricing { border-radius: 14px; padding: 20px 22px 22px; box-shadow: 0 10px 30px rgba(14,58,37,.07); }
.pricing-options { gap: 16px; }
.pricing-option { border: 1px solid #dce6d9; border-radius: 12px; padding: 16px 18px; background: #fff; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pricing-option:hover { transform: translateY(-2px); border-color: #08753f; box-shadow: 0 10px 24px rgba(8,117,63,.12); }
.pricing-value strong { font-size: 24px; }
.payment-methods { gap: 10px; margin-top: 18px; padding-top: 16px; }
.primary-button, .send-button, .pricing-order, .client-banner-cta { border-radius: 8px; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.primary-button:hover, .send-button:hover, .pricing-order:hover { box-shadow: 0 6px 16px rgba(8,117,63,.25); }
.composer, .workbench > * { border-radius: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f0c333; outline-offset: 2px; }
@media (max-width: 1040px) { .app-shell { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 760px) { .app-shell { grid-template-columns: none; } .home-pricing { padding: 14px; } .topbar { height: auto; min-height: 60px; } }
.client-banner-link { display: block; cursor: pointer; }
.client-banner-link img { transition: transform .4s ease; }
.client-banner-link:hover img { transform: scale(1.015); }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
  .breadcrumb { display: none; }
  .topbar-actions { width: 100%; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .pricing-options { grid-template-columns: 1fr; }
  .pricing-option { grid-template-columns: 1fr auto; row-gap: 12px; }
  .pricing-name { grid-column: 1 / -1; }
  .page-heading { flex-wrap: wrap; gap: 10px; }
}

/* ===== Affiche pleine largeur + zones cliquables ===== */
.main-area { --pad: clamp(18px, 4vw, 56px); }
.client-hero-banner { margin: 0 calc(var(--pad) * -1) 28px; width: auto; border: 0; border-radius: 0; box-shadow: none; }
.poster-stage { position: relative; display: block; line-height: 0; }
.poster-stage img { display: block; width: 100%; height: auto; }
.poster-hotspot { position: absolute; display: block; border-radius: 12px; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.poster-hotspot:hover { background: rgba(240,195,51,.14); box-shadow: 0 0 0 2px rgba(240,195,51,.95); }
.poster-hotspot:focus-visible { outline: 3px solid #f0c333; outline-offset: 2px; }

body[data-portal="admin"] #view-create .composer { display: none; }
