/* Tablette et téléphone, communs à toutes les pages. Rien ici ne touche l'ordinateur.
   Un seul système d'espaces : --bord (marge d'écran), --sect (entre deux sections), --titre (titre vers contenu),
   --inter (entre deux blocs), --pad (intérieur d'un bloc). */
.burger, .menu-m, .tete-f { display: none; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary, label { touch-action: manipulation; }

/* Personnage en image, à la même place que la 3D */
.masc-p { position: absolute; z-index: 2; display: block; left: calc(50% + var(--d, 0) * 50%); bottom: calc(var(--b) * var(--k, 1) * -100%); height: calc(var(--H) * var(--k, 1) * 100%); translate: -50% 0; transform-origin: 50% calc(var(--o) * 1%); pointer-events: none; transition: opacity .28s; animation: masc-respire 3.2s ease-in-out infinite alternate; }
.masc-p img { display: block; width: 100%; height: 100%; }
.masc-p i { position: absolute; border-radius: 50%; background: linear-gradient(transparent 45%, #0e0c1e 45%, #0e0c1e 58%, transparent 58%), var(--peau); opacity: 0; animation: masc-cligne 5.4s steps(1) 1.6s infinite; }
.masc-p i + i { animation-delay: 1.6s; }
.masc-p.parti { opacity: 0; }
.masc-p.entre { animation: masc-monte .85s cubic-bezier(.34, 1.45, .64, 1) both, masc-respire 3.2s ease-in-out .9s infinite alternate; }
.masc-clip { clip-path: inset(-100% -100% 0 -100%); animation: masc-libre 0s .84s forwards; }
.masc-p.saute { animation: masc-saute .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes masc-respire { to { scale: 1.012; } }
@keyframes masc-monte { from { translate: -50% 60%; } }
@keyframes masc-libre { to { clip-path: inset(-100% -100% -40% -100%); } }
@keyframes masc-cligne { 0%, 95.6% { opacity: 0; } 96% { opacity: 1; } 98.4% { opacity: 0; } }
@keyframes masc-saute { 40% { translate: -50% -7%; } }
@media (prefers-reduced-motion: reduce) { .masc-p, .masc-p.entre, .masc-p i, .masc-clip { animation: none; } .masc-clip { clip-path: none; } }

@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  :root {
    --bord: 28px; --sect: 120px; --titre: 36px; --inter: 14px; --pad: 32px;
    --m: var(--bord); --g: var(--inter); --ht: 84px; --r: 28px;
    --t1: clamp(42px, 6.6vw, 72px); --t2: clamp(36px, 5.6vw, 56px); --t3: 26px; --txt: 18px; --petit: 15px;
  }
  body { font-size: var(--txt); overflow-wrap: break-word; }
  .anim, .inc { opacity: 1 !important; transform: none !important; }

  /* En-tête */
  .tete { position: relative; z-index: 60; height: var(--ht); padding: 0 var(--bord); gap: 12px; }
  .tete > nav { display: none; }
  .tete .marque { min-height: 48px; }
  .tete .marque img { width: 54px; height: auto; }
  .tete .marque span { font-size: 19px; white-space: nowrap; }
  .tete .btn { height: 48px; margin-left: auto; padding: 0 24px; font-size: 13px; }
  .burger { flex: none; display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--a); cursor: pointer; }
  .burger i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; transition: translate .22s, rotate .22s; }
  .burger[aria-expanded="true"] i:first-child { translate: 0 4.75px; rotate: 45deg; }
  .burger[aria-expanded="true"] i:last-child { translate: 0 -4.75px; rotate: -45deg; }
  .tete-f { position: fixed; z-index: 62; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: space-between; height: var(--ht); padding: 0 var(--bord); background: var(--creme); box-shadow: 0 1px 0 color-mix(in srgb, var(--a) 12%, transparent); translate: 0 -102%; transition: translate .26s cubic-bezier(.3, .7, .3, 1); }
  .tete-f.vue { translate: 0 0; }
  .tete-f .marque { display: flex; align-items: center; gap: 10px; min-height: 48px; }
  .tete-f .marque img { width: 54px; height: auto; }
  .tete-f .marque span { font: 800 19px Unbounded, sans-serif; letter-spacing: -.02em; color: var(--a); white-space: nowrap; }
  .tete-f .btn { height: 48px; margin-left: auto; margin-right: 12px; padding: 0 24px; background: var(--a); color: #fff; font-size: 13px; }

  /* Menu */
  .menu-m:not([hidden]) { position: fixed; z-index: 55; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: calc(var(--ht) + 16px) var(--bord) 32px; background: var(--creme); overflow-y: auto; overscroll-behavior: contain; animation: menu-vient .2s ease-out; }
  .menu-m nav { display: flex; flex-direction: column; width: min(100%, 640px); }
  .menu-m nav a { display: flex; align-items: center; min-height: 68px; border-bottom: 1px solid color-mix(in srgb, var(--a) 18%, transparent); color: var(--a); font: 900 clamp(25px, 5.4vw, 40px)/1.1 Unbounded, sans-serif; letter-spacing: -.03em; text-decoration: none; }
  .menu-m .cta-m { display: flex; align-items: center; justify-content: center; width: min(100%, 640px); min-height: 62px; border-radius: 31px; background: var(--b); color: var(--a-txt); font: 700 15px Onest, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
  html.menu-ouvert #mini-baptiste { display: none; }
  @keyframes menu-vient { from { opacity: 0; translate: 0 -8px; } }

  /* Boutons au doigt */
  .btn:active, .blf-cta:active, .bia:active, .cta-m:active { scale: .97; }
  .btn, .blf-cta, .bia, .burger, .cta-m { -webkit-user-select: none; user-select: none; transition: scale .12s ease-out; }
  input, textarea, select { font-size: 16px; }

  /* Footer : le nom, le bouton qui mord dessus, les liens de part et d'autre du personnage */
  .blf-z .blf-c { height: 44px; }
  .blf.blf5 { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; grid-template-rows: auto auto 1fr auto; column-gap: 12px; min-height: 0; padding: 72px var(--bord) 0; color: #fff; font-size: 17px; }
  .blf5 .g5 { position: static; grid-column: 1 / -1; margin: 0; font-size: 10.9vw; line-height: .95; text-align: center; }
  .blf5 .c5, .blf5 .c5:hover { position: relative; top: auto; right: auto; left: auto; grid-column: 1 / -1; justify-self: end; height: 60px; margin: -3px 7% 28px 0; padding: 0 30px; font-size: 14px; rotate: -5deg; }
  .blf5 .co { position: static; z-index: 3; }
  .blf5 .l { grid-column: 1; grid-row: 3; }
  .blf5 .r { grid-column: 3; grid-row: 3; text-align: right; }
  .blf5 .n5 a { display: flex; align-items: center; min-height: 44px; padding: 0; font-size: 18px; white-space: nowrap; }
  .blf5 .c3 { position: relative; left: auto; right: auto; bottom: auto; translate: none; grid-column: 2; grid-row: 3 / 5; align-self: end; width: 100%; height: auto; aspect-ratio: 1 / .94; margin-top: 24px; }
  .blf5 .b5 { position: static; grid-column: 1; grid-row: 4; padding-bottom: 24px; }
  .blf-ti { margin-bottom: 8px; font-size: 14px; }
  .blf-li a, .blf-li span, .blf-li button { display: block; padding: 0; min-height: 40px; line-height: 40px; font-size: 15px; white-space: nowrap; }
  .blf5 .r .blf-ia { width: auto; margin-left: auto; line-height: 1.3; min-height: 0; padding: 10px 0; }
  .blf-bs { flex-direction: column; align-items: flex-start; gap: 0; font-size: 14px; }
  .blf-bs > * { display: flex; align-items: center; min-height: 44px; }
}

/* Largeur moyenne : le footer passe sur deux colonnes, le personnage en dessous */
@media (max-width: 759px) {
  .blf.blf5 { grid-template-columns: max-content minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; }
  .blf5 .l { grid-column: 1; grid-row: 3; }
  .blf5 .r { grid-column: 2; grid-row: 3; }
  .blf5 .b5 { grid-column: 1 / -1; grid-row: 4; padding: 18px 0 0; }
  .blf-bs { flex-direction: row; flex-wrap: wrap; gap: 0 22px; }
  .blf5 .c3 { grid-column: 1 / -1; grid-row: 5; justify-self: center; width: min(420px, 64vw); margin-top: 6px; }
}

@media (max-width: 639px) {
  :root { --bord: 16px; --sect: 96px; --titre: 26px; --inter: 10px; --pad: 22px; --ht: 66px; --r: 24px;
    --t1: clamp(26px, 9.7vw, 48px); --t2: clamp(29px, 8.5vw, 40px); --t3: 22px; --txt: 17px; --petit: 14px; }
  .tete .btn, .tete-f .btn { display: none; }
  .tete .marque img, .tete-f .marque img { width: 46px; }
  .tete .marque span, .tete-f .marque span { font-size: clamp(14px, 4.4vw, 17px); }
  .tete .burger { margin-left: auto; }
  .burger { width: 44px; height: 44px; }
  .blf.blf5 { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
  .blf5 .n5 a { white-space: normal; }
  .blf5 .g5 { font-size: 10.3vw; text-align: left; }
  .blf5 .c5, .blf5 .c5:hover { justify-self: end; height: 54px; margin: 5px 0 26px; padding: 0 24px; font-size: 13px; }
  .blf5 .l { grid-column: 1; grid-row: 3; }
  .blf5 .n5 a { min-height: 42px; font-size: 21px; }
  .blf5 .r { grid-column: 1; grid-row: 4; margin-top: 26px; text-align: left; }
  .blf5 .r .blf-ia { margin-left: 0; text-align: left; }
  .blf-li a, .blf-li span, .blf-li button { font-size: 16px; }
  .blf5 .b5 { grid-row: 5; padding-top: 22px; }
  .blf5 .c3 { grid-row: 6; width: min(300px, 76vw); margin-top: 4px; }
}

/* Fenêtre Chrome réduite, en gardant la mise en page de l'ordinateur */
@media (min-width: 1201px), (min-width: 1024px) and (orientation: landscape) {
  .blf.blf5 { min-height: max(100vh, calc(18vh + 22vw + 190px)); }
}
@media (min-width: 1024px) and (max-width: 1279px) and (orientation: landscape) {
  .tete nav { gap: clamp(14px, 1.9vw, 26px); font-size: 14px; white-space: nowrap; }
  .tete .marque span { white-space: nowrap; }
}
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  /* Le header reste toujours là */
  html { scroll-padding-top: calc(var(--ht) + 12px); }
  .tete { visibility: hidden; }
  .tete-f { translate: 0 0; transition: box-shadow .2s; box-shadow: none; }
  .tete-f.colle { box-shadow: 0 1px 0 color-mix(in srgb, var(--a) 14%, transparent); }
  /* Le footer remplit tout l'écran : le nom, le bouton, les liens, puis le personnage qui prend ce qu'il reste */
  .blf-z .blf-c { height: 40px; }
  .blf.blf5 { min-height: 100svh; grid-template-columns: max-content minmax(0, 1fr) max-content; grid-template-rows: auto auto auto auto minmax(170px, 1fr); padding: calc(var(--ht) + 34px) var(--bord) 0; }
  .blf5 .c5, .blf5 .c5:hover { margin: -3px 7% 30px 0; }
  .blf5 .l { grid-column: 1; grid-row: 3; }
  .blf5 .r { grid-column: 3; grid-row: 3 / 5; }
  .blf5 .b5 { grid-column: 1 / 3; grid-row: 4; padding: 6px 0 14px; }
  .blf-bs { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .blf5 .c3, .blf5 .c3:only-child { grid-column: 1 / -1; grid-row: 5; align-self: stretch; justify-self: stretch; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; margin: 0; }
}
@media (max-width: 759px) {
  .blf.blf5 { grid-template-rows: auto auto auto auto minmax(170px, 1fr); grid-template-columns: max-content minmax(0, 1fr); }
  .blf5 .r { grid-column: 2; grid-row: 3 / 5; }
  .blf5 .b5 { grid-column: 1 / -1; grid-row: 4; }
  .blf5 .c3, .blf5 .c3:only-child { grid-column: 1 / -1; grid-row: 5; width: 100%; margin: 0; }
}
@media (max-width: 639px) {
  .blf.blf5 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto minmax(150px, 1fr); padding: calc(var(--ht) + 26px) var(--bord) 0; }
  .blf5 .c5, .blf5 .c5:hover { margin: 5px 0 20px; }
  .blf5 .n5 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); justify-content: start; column-gap: clamp(14px, 6vw, 28px); }
  .blf5 .n5 a { min-height: 40px; font-size: clamp(14px, 4.3vw, 18px); white-space: nowrap; }
  .blf5 .l { grid-row: 3; }
  .blf5 .r { grid-column: 1; grid-row: 4; margin-top: 16px; }
  .blf-ti { margin-bottom: 4px; }
  .blf-li a, .blf-li span, .blf-li button { min-height: 34px; line-height: 34px; font-size: 15px; }
  .blf5 .r .blf-ia { min-height: 34px; line-height: 34px; padding: 0; }
  .blf5 .b5 { grid-column: 1; grid-row: 5; padding: 6px 0 0; }
  .blf-bs { gap: 0 14px; font-size: 13px; }
  .blf5 .c3, .blf5 .c3:only-child { grid-column: 1; grid-row: 6; }
}

/* Téléphone bas : tout tient encore dans l'écran, le personnage rétrécit d'abord */
@media (max-width: 639px) and (max-height: 720px) {
  .blf.blf5 { grid-template-rows: auto auto auto auto auto minmax(84px, 1fr); padding-top: calc(var(--ht) + 12px); }
  .blf5 .c5, .blf5 .c5:hover { height: 50px; margin-bottom: 12px; }
  .blf5 .n5 a { min-height: 36px; }
  .blf5 .r { margin-top: 10px; }
  .blf-li a, .blf-li span, .blf-li button, .blf5 .r .blf-ia { min-height: 30px; line-height: 30px; }
  .blf5 .b5 { padding-top: 2px; }
  .blf-bs > * { min-height: 36px; }
}

/* 17/11 : menu Offres (on survole, on clique un lien), et barre qui flotte quand on descend (ordinateur) */
.tete nav, .flotte nav { align-items: center; }
.sm { position: relative; }
.sm-t { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: default; }
.sm-t i { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .2s, translate .2s; }
.sm-l { position: absolute; z-index: 70; top: calc(100% + 16px); left: 50%; translate: -50% 0; display: flex; flex-direction: column; min-width: 230px; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px rgba(26,34,51,.16); opacity: 0; visibility: hidden; transition: opacity .16s, visibility .16s, translate .16s; white-space: nowrap; }
.sm-l::before { content: ''; position: absolute; inset: -18px 0 auto; height: 18px; }
.sm-l a { padding: 14px 18px; border-radius: 13px; font: 600 16px Onest, sans-serif; color: var(--a); }
.sm:hover .sm-l, .sm:focus-within .sm-l { opacity: 1; visibility: visible; translate: -50% 4px; }
.sm:hover .sm-t i, .sm:focus-within .sm-t i { rotate: 225deg; translate: 0 2px; }
@media (hover: hover) and (pointer: fine) { .sm-l a:hover { background: var(--creme); } }
.flotte { position: fixed; z-index: 60; top: 16px; left: 50%; display: flex; align-items: center; justify-content: space-between; gap: 34px; width: min(1240px, calc(100vw - 96px)); padding: 12px 12px 12px 18px; border-radius: 44px; background: #fff; box-shadow: 0 16px 40px rgba(26,34,51,.14); translate: -50% -160%; visibility: hidden; transition: translate .5s cubic-bezier(.3,.7,.3,1), visibility 0s .5s; font: 500 16px Onest, sans-serif; white-space: nowrap; }
.flotte.vue { translate: -50% 0; visibility: visible; transition: translate .5s cubic-bezier(.3,.7,.3,1); }
.flotte .marque { display: flex; align-items: center; gap: 12px; }
.flotte .marque img { width: 56px; height: auto; }
.flotte .marque span { font: 800 17px Unbounded, sans-serif; letter-spacing: -.02em; color: var(--a); }
.flotte nav { display: flex; gap: 44px; }
.flotte .btn { height: 52px; padding: 0 28px; font-size: 13px; }
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) { .flotte { display: none; } }

/* 17/11 soir : héros bleu commun (Comparer, Offres, Vidéos, Ma méthode) : titre blanc centré, vague en bas, menu en blanc */
.bh { position: relative; padding: min(70px, 8vh) 4vw 0; background: var(--a); text-align: center; }
.bh .t1 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: min(104px, 6vw); }
.bh .sl .pinceau { color: var(--b); }
.bh-vague { display: block; width: calc(100% + 8vw); height: min(90px, 6vw); margin: min(40px, 4vh) -4vw -1px; color: var(--a); background: var(--creme, #fbf8ef); }
body:has(main > .bh) #entete { background: var(--a); }
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1201px) {
body:has(main > .bh) .tete, body:has(main > .bh) .tete nav > a, body:has(main > .bh) .tete .sm-t, body:has(main > .bh) .tete .marque span { color: #fff !important; }
body:has(main > .bh) .tete > .btn { background: var(--b) !important; color: var(--a) !important; box-shadow: none !important; }
body:has(main > .bh) .tete > .btn .txt { color: var(--a) !important; }
}
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  .bh { padding: 30px var(--bord, 16px) 0; } .bh .t1 { font-size: clamp(34px, 10vw, 56px); } .bh-vague { height: 40px; margin-top: 24px; }
}

/* 24/11 : retours de Baptiste */
/* menu au doigt : les liens d'Offres se voient (ils héritaient du menu déroulant caché) */
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  /* en-tête du téléphone : la tête seule, bleu sur les pages à héros bleu, et il s'efface au pied de page */
  /* le nom reste visible ; blanc sur les pages à héros bleu */
  body:has(.bh) .tete .marque span, body:has(.bh) .tete-f .marque span { color: #fff; }
  .tete-f { transition: translate .35s cubic-bezier(.3,.7,.3,1), box-shadow .2s, background .2s; }
  .tete-f.part { translate: 0 -110%; }
  body:has(.bh) .tete-f { background: var(--a); box-shadow: none; }
  body:has(.bh) .tete-f .burger { background: #fff; } body:has(.bh) .tete-f .burger i { background: var(--a); }
  html.menu-ouvert body:has(.bh) .tete-f { background: var(--a); }
  
}

/* 24/11 : menu au doigt = une feuille blanche qui monte du bas, la page reste visible derrière (choix « 3 » de Baptiste) */
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  html.menu-ouvert .tete-f .marque span { display: block; }
  .menu-m:not([hidden]) { inset: var(--ht) 0 0 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 0; padding: 0; background: color-mix(in srgb, var(--a) 82%, transparent); overflow: hidden; animation: menu-voile .25s ease-out; }
  .menu-f { max-height: calc(100dvh - var(--ht) - 12px); padding: 14px 24px calc(26px + env(safe-area-inset-bottom, 0px)); border-radius: 34px 34px 0 0; background: #fff; overflow-y: auto; overscroll-behavior: contain; animation: feuille-monte .38s cubic-bezier(.2,.8,.2,1); }
  .menu-f .poignee { display: block; width: 44px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: color-mix(in srgb, var(--a) 22%, #fff); }
  .menu-m nav { display: flex; flex-direction: column; width: auto; }
  .menu-m nav > a, .menu-m .sm-t { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 64px; padding: 0; border: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--a) 10%, transparent); background: none; color: var(--a); font: 800 clamp(22px, 6.2vw, 30px)/1.1 Unbounded, sans-serif; letter-spacing: -.03em; text-align: left; text-decoration: none; cursor: pointer; }
  .menu-m .sm { position: static; }
  .menu-m .sm-t i { flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate .25s, translate .25s; }
  .menu-m .sm.ouvert .sm-t i { rotate: 225deg; translate: 0 3px; }
  .menu-m .sm.ouvert .sm-t { border-bottom-color: transparent; }
  /* les trois pages d'Offres : trois pastilles côte à côte, pas une liste de plus */
  .menu-m .sm-l { position: static; display: none; min-width: 0; margin: 0; padding: 0 0 18px; border-radius: 0; border-bottom: 1.5px solid color-mix(in srgb, var(--a) 10%, transparent); background: none; box-shadow: none; opacity: 1; visibility: visible; translate: none; transition: none; }
  .menu-m .sm-l::before { display: none; }
  .menu-m .sm.ouvert .sm-l { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; animation: sous-menu .25s ease-out both; }
  .menu-m nav .sm-l a { flex: 0 0 auto; display: inline-flex; align-items: center; width: auto; min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; box-shadow: none; background: var(--creme); color: var(--a); font: 600 16px/1 Onest, sans-serif; letter-spacing: 0; white-space: nowrap; }
  .menu-m .cta-m { display: flex; align-items: center; justify-content: center; width: auto; min-height: 62px; margin-top: 34px; border-radius: 31px; background: var(--a); color: #fff; font: 700 15px Onest, sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
}
@keyframes menu-voile { from { background: transparent; } }
@keyframes feuille-monte { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes sous-menu { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .menu-f, .menu-m:not([hidden]) { animation: none !important; } }

/* 24/11 : micro-animations */
.mots .mot { display: inline-block; opacity: 0; translate: 0 .45em; transition: opacity .5s ease-out, translate .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--k) * 70ms); }
.mots.mots-vus .mot { opacity: 1; translate: 0 0; }
.btn { transition: scale .15s ease-out; }
.btn:active { scale: .97; }
@media (hover: hover) and (pointer: fine) {
  .inc { transition: rotate .3s cubic-bezier(.3,1.6,.5,1), scale .3s cubic-bezier(.3,1.6,.5,1); }
  .inc:hover { rotate: calc(var(--r, 0deg) * -1); scale: 1.06; }
  .re-m a img, .v13vw .vu img, .pj-g img { transition: scale .5s cubic-bezier(.2,.8,.2,1); }
  .re-m a:hover img, .pj-g a:hover img { scale: 1.03; }
}
@media (prefers-reduced-motion: reduce) { .mots .mot { opacity: 1; translate: none; transition: none; } }


@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) { body:has(.pj-bh) #entete { background: var(--a); } }

/* 24/11 soir : les héros bleus prennent la place de celui d'À propos (plus d'air en haut et en bas), sauf quand le titre tient sur deux lignes */
@media (min-width: 1024px) and (orientation: landscape), (min-width: 1201px) {
  .bh { padding-top: min(90px, 10vh); }
  .bh .bh-vague { margin-top: 9vh; }
  .bh:has(.t1 br) { padding-top: min(70px, 8vh); }
  .bh:has(.t1 br) .bh-vague { margin-top: min(40px, 4vh); }
}


/* 25/11 : menu au doigt — le voile couvre tout l'écran, en-tête compris (rien ne ressort en haut) ; la croix reste à sa place */
.ferme-m { display: none; }
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  .menu-m:not([hidden]) { inset: 0 !important; z-index: 70; }
  .menu-m .ferme-m { position: absolute; top: calc((var(--ht) - 44px) / 2); right: var(--bord); display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
  .menu-m .ferme-m i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--a); }
  .menu-m .ferme-m i:first-child { translate: 0 4.75px; rotate: 45deg; }
  .menu-m .ferme-m i:last-child { translate: 0 -4.75px; rotate: -45deg; }
}

/* 26/11 : pied de page au téléphone — le haut est droit (l'arrondi animé ne se refait pas bien au doigt) */
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  .blf-z .blf-c, .blf-c { display: none !important; }
}

/* 26/11 soir : en-tête sur les pages à héros bleu — il devient beige (marque bleue, burger bleu) quand on a quitté le bleu */
@media (max-width: 1023px), (max-width: 1200px) and (orientation: portrait) {
  body:has(.bh) .tete-f.clair { background: var(--creme); box-shadow: 0 1px 0 color-mix(in srgb, var(--a) 12%, transparent); }
  body:has(.bh) .tete-f.clair .marque span { color: var(--a); }
  body:has(.bh) .tete-f.clair .burger { background: var(--a); } body:has(.bh) .tete-f.clair .burger i { background: #fff; }
  html.menu-ouvert body:has(.bh) .tete-f.clair { background: var(--creme); }
}

/* 27/11 : sur ordinateur, « Demander ma maquette » est bleu dans l'en-tête flottant (pendant le défilement) ; sur l'en-tête à fond bleu il reste paille */
@media (min-width: 1201px), (min-width: 1024px) and (orientation: landscape) {
  .flotte .btn { background: var(--a) !important; color: #fff !important; }
  .flotte .btn .txt { color: #fff !important; }
}
