/* Footer : classes préfixées, pour ne rien hériter des pages */
html { overflow-x: clip; } body { overflow-x: clip; }
.blf-z { position: relative; z-index: 22; overflow: hidden; background: var(--a); }
.blf-c { position: absolute; z-index: 2; left: -25%; top: 0; width: 150%; height: min(190px, 13vw); background: var(--creme); border-radius: 0 0 50% 50% / 0 0 100% 100%; transform-origin: 50% 0; }
.blf { position: relative; min-height: 100vh; color: #fff; font: 400 min(19px, 1.25vw)/1.4 Onest, sans-serif; display: flex; flex-direction: column; }
.blf a { color: inherit; text-decoration: none; }
.blf-t { margin: 0; color: #fff; font: 900 min(104px, 5.5vw)/1.06 Unbounded, sans-serif; letter-spacing: -.035em; }
.blf-cta { display: inline-flex; align-items: center; justify-content: center; height: 4.4em; padding: 0 2.8em; border-radius: 2.2em; background: var(--b); color: var(--a-txt) !important; font: 700 min(18px, 1.15vw) Onest, sans-serif; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; rotate: -3deg; transition: rotate .35s cubic-bezier(.34,1.56,.64,1), scale .35s cubic-bezier(.34,1.56,.64,1); }
.blf-cta:hover { rotate: 0deg; scale: 1.05; }
.blf-ti { display: block; margin-bottom: 14px; color: var(--b); font: 800 min(15px, 1vw) Unbounded, sans-serif; }
.blf-li a, .blf-li span, .blf-li button { display: block; padding: 5px 0; }
.blf-li a:hover, .blf-bs a:hover { color: var(--b); }
.blf-ia { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.blf-bs { display: flex; gap: 34px; font-size: min(15px, 1vw); opacity: .85; }
/* 1 : grand final, le nom coupé en bas */
.blf1 { padding: min(190px, 13vw) max(var(--m), 4vw) 0; }
.blf1 .h { display: flex; justify-content: space-between; align-items: center; gap: 4vw; }
.blf1 .c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; margin-top: min(70px, 7vh); padding-top: min(40px, 4vh); border-top: 1px solid rgba(255,255,255,.28); }
.blf1 .blf-bs { margin-top: min(40px, 4vh); }
.blf1 .g { margin: auto calc(max(var(--m), 4vw) * -1) -2.2vw; padding-top: 3vh; color: var(--b); font: 900 11.4vw/.86 Unbounded, sans-serif; letter-spacing: -.055em; white-space: nowrap; text-align: center; }
/* 2 : les pages tout autour */
.blf2 { align-items: center; justify-content: center; padding: min(190px, 13vw) 4vw 34px; text-align: center; }
.blf2 .m { position: relative; width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 66vh; }
.blf2 .m img { width: min(210px, 11vw); margin-bottom: 18px; }
.blf2 .blf-cta { margin-top: min(30px, 3vh); }
.blf2 .pt { position: absolute; left: var(--x); right: var(--xr); top: var(--y); padding: .5em 1.05em .55em; border-radius: 2em; background: var(--creme); color: var(--a-txt); font: 800 min(26px, 1.65vw) Unbounded, sans-serif; rotate: var(--r); transition: rotate .3s cubic-bezier(.34,1.56,.64,1), scale .3s cubic-bezier(.34,1.56,.64,1); }
.blf2 .pt.r { background: var(--b); }
.blf2 .pt:hover { rotate: 0deg; scale: 1.08; }
.blf2 .blf-bs { width: 100%; margin-top: 14px; }
/* 3 : deux grands blocs */
.blf3 { padding: min(170px, 11.6vw) max(var(--m), 2vw) max(var(--m), 2vw); }
.blf3 .gr { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3vw; }
.blf3 .gp { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: min(30px, 3vh); padding: min(64px, 4vw); border-radius: var(--r); background: var(--b); min-height: 62vh; }
.blf3 .gp .blf-t { color: var(--a); }
.blf3 .gp .blf-cta { background: var(--a); color: #fff !important; }
.blf3 .gp img { position: absolute; right: -3%; bottom: -14%; width: 46%; rotate: -8deg; }
.blf3 .dr { display: flex; flex-direction: column; justify-content: space-between; padding: min(20px, 1.4vw) 0; }
.blf3 .gl a { display: block; padding: min(6px, .4vw) 0; font: 900 min(52px, 3.1vw)/1.12 Unbounded, sans-serif; letter-spacing: -.035em; }
.blf3 .gl a:hover { color: var(--b); }
.blf3 .bl { display: flex; gap: 5vw; margin-top: 3vh; }
.blf3 .blf-bs { margin-top: 22px; }
.blf-es { position: absolute; z-index: 5; left: 50%; translate: -50% 0; top: min(100px, 7vw); display: flex; gap: 3px; padding: 4px; border-radius: 20px; background: #fff; color: #333; font: 600 12px Onest, sans-serif; }
.blf-es button { border: 0; background: none; padding: 5px 10px; border-radius: 14px; font: inherit; color: inherit; cursor: pointer; }
.blf-es .on { background: #333; color: #fff; }
.sans-barre .blf-es { display: none; }
.barre { right: auto !important; left: var(--m) !important; translate: none !important; }

.blf4 { justify-content: space-between; gap: min(50px, 5vh); padding: min(190px, 13vw) max(var(--m), 4vw) 28px; }
.blf4 .ph { color: #fff; font: 900 min(108px, 5.7vw)/1.28 Unbounded, sans-serif; letter-spacing: -.04em; text-align: center; }
.blf4 .ph a:hover { color: var(--b); }
.blf4 .ph img { display: inline-block; width: .9em; margin: 0 .22em; vertical-align: -.08em; }
.blf4 .bb { display: flex; justify-content: space-between; align-items: center; }
.blf4 .bb .blf-ti { margin-bottom: 8px; }
.blf5 { position: relative; overflow: hidden; }
.blf5 .g5 { position: absolute; left: 0; right: 0; top: min(170px, 18vh); margin: 0; color: var(--b); font: 900 13vw/.9 Unbounded, sans-serif; letter-spacing: -.055em; text-align: center; white-space: nowrap; }
.blf5 .c3 { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 56vw; height: 72%; }
.blf5 .co { position: absolute; bottom: 90px; z-index: 3; }
.blf5 .l { left: max(var(--m), 4vw); } .blf5 .r { right: max(var(--m), 4vw); text-align: right; }
.blf5 .r .blf-ia { text-align: right; width: 100%; } .blf5 .r .blf-cta { margin-top: 18px; }
.blf5 .b5 { position: absolute; left: max(var(--m), 4vw); bottom: 26px; z-index: 3; }
.blf6 { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto; gap: 3vw; padding: min(180px, 12.4vw) max(var(--m), 4vw) 28px; background: var(--b); color: var(--a-txt); }
.blf6 .n6 { margin: 0 0 min(36px, 4vh); color: var(--a); font: 900 min(190px, 10.4vw)/.98 Unbounded, sans-serif; letter-spacing: -.05em; }
.blf6 .blf-cta { background: var(--a); color: #fff !important; }
.blf6 .ld > a { display: flex; justify-content: space-between; padding: min(14px, 1vw) 0; border-top: 2px solid color-mix(in srgb, var(--a) 40%, transparent); color: var(--a); font: 900 min(44px, 2.7vw)/1.15 Unbounded, sans-serif; letter-spacing: -.03em; transition: padding .3s cubic-bezier(.34,1.3,.64,1); }
.blf6 .ld > a:hover { padding-left: 12px; }
.blf6 .ct6 { padding-top: min(22px, 1.6vw); border-top: 2px solid color-mix(in srgb, var(--a) 40%, transparent); }
.blf6 .blf-ti { color: var(--a); }
.blf6 .b6 { grid-column: 1 / -1; }
.blf-z:has(.blf6) { background: var(--b); }
.blf4 .ph a { white-space: nowrap; }
.blf5 .g5 { font-size: 11.2vw; }
.blf5 .r { bottom: 120px; }

.blf5 .c5 { position: absolute; z-index: 4; right: max(var(--m), 7vw); top: calc(min(170px, 18vh) + 11.6vw); rotate: -4deg; }
.blf5 .co { bottom: 92px; }
.blf5 .r { bottom: 118px; }
.blf5 .n5 a { display: block; padding: 3px 0; color: #fff; font: 800 min(26px, 1.65vw)/1.2 Unbounded, sans-serif; letter-spacing: -.02em; }
.blf5 .n5 a:hover { color: var(--b); }

.blf5 .c5 { top: calc(min(170px, 18vh) + 6.8vw); right: max(var(--m), 12vw); background: var(--a); color: #fff !important; box-shadow: inset 0 0 0 3px var(--creme); rotate: -5deg; }

/* Barre des couleurs : en bas à gauche, l'assistant occupe la droite (provisoire, à retirer après le choix) */
body .barre { left: 16px; right: auto; bottom: 16px; z-index: 45; gap: 2px; }
body .barre hr { width: 1px; height: 18px; margin: 0 4px; border: 0; background: #ccc; }
body .barre .apercu { display: block; width: 34px; height: 18px; border-radius: 9px; }
body .barre .palette { position: absolute; left: 0; bottom: calc(100% + 8px); display: grid; grid-template-columns: repeat(6, auto); gap: 6px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 6px 26px rgba(20,20,50,.25); }
body .barre .palette button { padding: 3px; border-radius: 12px; }
body .barre .palette .actif { outline: 2px solid #333; }
body .barre .palette i { display: block; width: 44px; height: 22px; border-radius: 9px; }
.blf5 .c5 { top: calc(min(170px, 18vh) + 8.9vw); }

/* Couleurs retenues : la barre ne revient qu'avec ?duos dans l'adresse */
body:not(.duos) .barre { display: none; }
