/* Sommaire des maquettes : page d'accueil de présentation (outil, pas le futur site). */

/* En-tête et pied aux couleurs de QG Informatique (émail, papier, laiton), fixes quel que soit le preset :
   le sommaire est la page de QG Informatique, les maquettes celles de la cliente. */
body.dvc-l-sommaire { --qg-enamel: #123056; --qg-enamel-deep: #0a1b33; --qg-brass: #e3ae21; }
body.dvc-l-sommaire .dvc-qg-header { background: #fff; color: var(--qg-enamel-deep); box-shadow: inset 0 -3px 0 var(--qg-brass); }
body.dvc-l-sommaire .dvc-qg-header .dvc-status { color: #4a5566; }
.qg-brand { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; text-decoration: none; color: inherit; }
.qg-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #d8dde5; }
.qg-mark img { width: 30px; height: 30px; object-fit: contain; }
.qg-wordmark { font-size: 1rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.dvc-som-logo .qg-mark { width: 96px; height: 96px; border-radius: 18px; box-shadow: none; }
.dvc-som-logo .qg-mark img { width: 72px; height: 72px; }
body.dvc-l-sommaire .dvc-qg-footer { background: var(--qg-enamel-deep); color: #fff; border-top: 3px solid var(--qg-brass); }
body.dvc-l-sommaire .dvc-qg-footer a { color: inherit; }
body.dvc-l-sommaire .dvc-qg-footer .qg-brand .qg-mark { box-shadow: none; }
body.dvc-l-sommaire .dvc-qg-footer .dvc-small { opacity: .85; }
@media (max-width: 480px) { body.dvc-l-sommaire .dvc-qg-header .dvc-status { display: none; } }

body.dvc-l-sommaire .dvc-header { box-shadow: 0 1px 0 var(--c-border); }
body.dvc-l-sommaire .dvc-status { margin: 0; font-size: .82rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .08em; }

body.dvc-l-sommaire .dvc-som-hero { padding-block: clamp(40px, 6vw, 80px); }
body.dvc-l-sommaire .dvc-som-hero > * { max-width: 780px !important; }
body.dvc-l-sommaire .dvc-som-logo { margin: 0 0 1.2rem; }
body.dvc-l-sommaire .dvc-som-hero h1 { margin-block: .3rem .8rem; }
body.dvc-l-sommaire .dvc-tip { background: color-mix(in srgb, var(--c-on-primary) 12%, transparent); padding: 12px 16px; border-radius: 12px; font-size: .95rem; }
body.dvc-l-sommaire kbd { font: inherit; font-weight: 700; padding: 1px 7px; border-radius: 5px; border: 1px solid currentColor; }

body.dvc-l-sommaire .dvc-mqs.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
body.dvc-l-sommaire .dvc-mq { box-shadow: var(--shadow); border: 0; }
body.dvc-l-sommaire .dvc-mq h3 a { text-decoration: none; color: inherit; }
body.dvc-l-sommaire .dvc-mq h3 a:hover { text-decoration: underline; }
body.dvc-l-sommaire .dvc-mq .wp-block-buttons { margin-top: auto; }

/* Vignettes schématiques de chaque mise en page (formes CSS, couleurs du preset). */
.dvc-thumb {
	display: block; position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
	background: var(--c-bg); border: 1px solid var(--c-border); margin-bottom: 6px;
}
.dvc-thumb i { position: absolute; display: block; }
.dvc-thumb-horizon i:nth-child(1) { inset: 0 0 auto; height: 12%; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.dvc-thumb-horizon i:nth-child(2) { inset: 12% 0 auto; height: 46%; background: var(--c-primary); }
.dvc-thumb-horizon i:nth-child(3) { right: 10%; top: 17%; width: 22%; height: 38%; border-radius: 999px 999px 6px 6px; background: var(--c-highlight); }
.dvc-thumb-horizon i:nth-child(4) { left: 8%; right: 8%; top: 50%; height: 26%; background: repeating-linear-gradient(90deg, var(--c-surface) 0 30%, transparent 30% 35%); box-shadow: 0 4px 10px -6px var(--c-text); }
.dvc-thumb-cheminement i:nth-child(1) { inset: 0 auto 0 0; width: 24%; background: var(--c-primary); }
.dvc-thumb-cheminement i:nth-child(2) { left: 32%; top: 14%; width: 40%; height: 7%; background: var(--c-text); }
.dvc-thumb-cheminement i:nth-child(3) { left: 32%; top: 28%; width: 30%; height: 4%; background: var(--c-text-muted); box-shadow: 0 10px 0 var(--c-text-muted), 0 20px 0 var(--c-text-muted); }
.dvc-thumb-cheminement i:nth-child(4) { right: 7%; top: 12%; width: 18%; height: 44%; background: var(--c-surface-alt); outline: 2px solid var(--c-accent); outline-offset: 3px; }
.dvc-thumb-atelier i:nth-child(1) { left: -6%; top: 8%; width: 34%; height: 44%; border-radius: 60% 40% 55% 45%; background: var(--c-decor-warm); }
.dvc-thumb-atelier i:nth-child(2) { right: -4%; top: -6%; width: 26%; height: 40%; border-radius: 45% 55% 40% 60%; background: var(--c-decor-sun); }
.dvc-thumb-atelier i:nth-child(3) { left: 24%; right: 24%; top: 22%; height: 9%; border-radius: 9px; background: var(--c-primary); box-shadow: 0 16px 0 -3px var(--c-text-muted); }
.dvc-thumb-atelier i:nth-child(4) { left: 10%; right: 10%; bottom: 8%; height: 28%; background: linear-gradient(90deg, var(--c-primary) 0 48%, transparent 48% 52%, var(--c-surface) 52%); border-radius: 10px; }
.dvc-thumb-couverture i:nth-child(1) { inset: 0; background: linear-gradient(to top, var(--c-primary-strong) 20%, color-mix(in srgb, var(--c-primary-strong) 40%, transparent)), url("../img/portrait.jpg") center 30% / cover; }
.dvc-thumb-couverture i:nth-child(2) { left: 8%; bottom: 30%; width: 62%; height: 12%; background: var(--c-on-primary); }
.dvc-thumb-couverture i:nth-child(3) { left: 8%; bottom: 20%; width: 40%; height: 4%; background: var(--c-on-primary-muted); }
.dvc-thumb-couverture i:nth-child(4) { left: 8%; bottom: 8%; width: 18%; height: 7%; background: var(--c-accent); }
.dvc-thumb-dialogue i:nth-child(1) { right: 10%; top: 14%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--c-surface-alt); border: 3px solid var(--c-primary); }
.dvc-thumb-dialogue i:nth-child(2) { left: 8%; top: 20%; width: 42%; height: 12%; border-radius: 12px 12px 12px 3px; background: var(--c-surface-alt); }
.dvc-thumb-dialogue i:nth-child(3) { left: 20%; top: 40%; width: 36%; height: 12%; border-radius: 12px 12px 3px 12px; background: var(--c-primary); }
.dvc-thumb-dialogue i:nth-child(4) { left: 8%; top: 60%; width: 30%; height: 12%; border-radius: 12px 12px 12px 3px; background: var(--c-accent); }

/* Palettes */
body.dvc-l-sommaire .dvc-preset { background: var(--c-surface); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--c-border); }
body.dvc-l-sommaire .dvc-preset > * { margin: 0 0 .4rem; }
body.dvc-l-sommaire .dvc-preset h4 { font-size: 1.05rem; }
body.dvc-l-sommaire .dvc-mood { font-weight: 600; color: var(--c-text-muted); }
body.dvc-l-sommaire .dvc-sw { display: flex; gap: 0; border-radius: 8px; overflow: hidden; height: 26px; margin-bottom: .7rem; border: 1px solid var(--c-border); }
body.dvc-l-sommaire .dvc-sw i { flex: 1; }
body.dvc-l-sommaire .dvc-s > h3 { margin-top: 2rem !important; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-text); }
