/* CDF Photobooth 2.0 — base commune (polices, couleurs, boutons). © CDF Studio, tous droits réservés. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(fonts/inter-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage"; font-weight: 600; font-display: swap; src: url(fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap; src: url(fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-normal.woff2) format("woff2"); }

:root {
	--or: #D4AF37;
	--corail: #F76E60;
	--petrole: #2B6A6C;
	--encre: #121212;
	--nuit: #0E1416;
	--gris: #F2F2F4;
	--ligne: #E2E2E7;
	--doux: #6B6B75;
	--accent: var(--or);
	--accent2: var(--corail);
	--degrade: linear-gradient(135deg, var(--accent), var(--accent2));
	--titre: "Bricolage", "Inter", system-ui, sans-serif;
	--texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--rayon: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texte); line-height: 1.45; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--titre); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.verre { background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .22); }

.bt { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 0; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.bt:active { transform: scale(.97); }
.bt[disabled] { opacity: .45; cursor: default; }
.bt-plein { background: var(--encre); color: #fff; }
.bt-degrade { background: var(--degrade); color: var(--encre); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent2) 35%, transparent); }
.bt-clair { background: #fff; color: var(--encre); box-shadow: inset 0 0 0 1px var(--ligne); }
.bt-contour { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.bt-danger { background: #C2412F; color: #fff; }
.bt-petit { min-height: 36px; padding: .45em 1em; font-size: .9rem; }

.seg { display: inline-flex; background: var(--gris); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: .55em 1em; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--doux); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--encre); color: #fff; }

.bascule { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.bascule input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.bascule span { position: absolute; inset: 0; border-radius: 999px; background: #CFCFD6; transition: background .2s; }
.bascule span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.bascule input:checked + span { background: var(--petrole); }
.bascule input:checked + span::after { transform: translateX(20px); }
.bascule input:focus-visible + span { outline: 3px solid var(--accent2); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
