

.mt-page { --tete: clamp(3.5rem, 8vw, 6.5rem); --nav-h: 75px;
  --t-grand: min(280px, calc(100vw - 2 * var(--gutter)));
  --t-std: min(150px, calc((100vw - 2 * var(--gutter) - 16px) / 2));
  --rk: 0.5; }
@media (min-width: 740px)  { .mt-page { --t-std: 170px; --rk: 0.8; } }

.mt-main { padding: var(--tete) var(--gutter) 3rem; }
.mt-mur { display: grid; justify-content: center; align-items: start;
  grid-template-columns: repeat(2, var(--t-std));
  grid-template-areas: "intro intro" "g g" "n f" "c p"; gap: 26px 16px; }
.mt-intro { grid-area: intro; }

.mt-tirage { position: relative; display: block; width: var(--t-std); color: inherit; text-decoration: none;
  transform: rotate(calc(var(--r) * var(--rk))); transform-origin: 50% 13px; }
.mt-tirage--grossesse { width: var(--t-grand); grid-area: g; justify-self: center; --r: 0deg; }
.mt-tirage--naissance { grid-area: n; --r: 2deg;    --ton: #FAF6EE; --bp: 41px 67px; }
.mt-tirage--famille   { grid-area: f; --r: -2.2deg; --ton: #FBF7F0; --bp: 77px 143px; }
.mt-tirage--couple    { grid-area: c; --r: 1.6deg;  --ton: #FCF9F4; --bp: 113px 19px; }
.mt-tirage--portrait-femme { grid-area: p; --r: -1.6deg; --ton: #FAF7F1; --bp: 159px 88px; }

.mt-ombre { position: absolute; inset: 0; z-index: -1; }
.mt-ombre::before, .mt-ombre::after { content: ''; position: absolute; bottom: 12px; width: 46%; height: 30%;
  box-shadow: 4px 13px 11px rgba(28, 25, 21, 0.24); }
.mt-ombre::before { left: 9px; transform: rotate(-3deg); }
.mt-ombre::after  { right: 7px; transform: rotate(4deg); }

.mt-papier { position: relative; display: block; container-type: inline-size; padding: 24px 7% 7.5%;
  background-color: var(--ton, #FBF8F2); background-image: url('/images/ui/feuille.webp');
  background-position: var(--bp, 0 0); background-size: 220px auto;
  box-shadow: 0 0 0 0.5px rgba(28, 25, 21, 0.1), 1px 1px 2px rgba(28, 25, 21, 0.1); }
.mt-tirage--grossesse .mt-papier { padding: 28px 5% 5.5%; }
.mt-ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background-color: var(--color-surface); }
.mt-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-nom { display: block; margin-top: 9%; font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1.1; font-size: 1.05rem; }
.mt-tirage--grossesse .mt-nom { margin-top: 6%; font-size: 1.55rem; }
.mt-formules { display: block; margin-top: 5px; font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--color-muted-text); line-height: 1.5; }
.mt-tirage:not(.mt-tirage--grossesse) .mt-formules { min-height: 3em; }
.mt-tirage--grossesse .mt-formules { font-size: 0.64rem; }
.mt-col { position: absolute; top: 0; left: 7%; height: 24px; display: flex; align-items: center; line-height: 1;
  font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-text);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-tirage--grossesse .mt-col { left: 5%; height: 28px; font-size: 0.6rem; }
.mt-punaise { position: absolute; top: 3px; left: 50%; z-index: 1; width: 22px; height: 22px; transform: translateX(-44%);
  background: url('/images/ui/punaise.webp') center / contain no-repeat; }
.mt-tirage--grossesse .mt-punaise { width: 26px; height: 26px; }
.mt-tirage:focus-visible { outline: none; }
.mt-tirage:focus-visible .mt-papier { outline: 1px solid var(--color-text); outline-offset: 5px; }

@media (min-width: 740px) {
  .mt-mur { grid-template-columns: var(--t-std) var(--t-grand) var(--t-std);
    grid-template-areas: "n intro f" "c g p"; gap: 30px clamp(14px, 2.4vw, 32px); align-items: end; }
  .mt-intro { text-align: center; align-self: start; }
  .mt-intro .tp-h1 { align-items: center; }
  .mt-tirage--couple, .mt-tirage--portrait-femme, .mt-tirage--grossesse { align-self: start; }
  .mt-nom { font-size: 1.12rem; }
}

@media (min-width: 740px) and (max-width: 1279.98px) {
  .mt-intro .tp-h1 .word-inner { font-size: clamp(min(2.2rem, 9.3867vw), 5vw, 3.2rem); }
  .mt-intro .tp-h1 .italic-mask .word-inner { padding-left: 0; }
}

@media (min-width: 1280px) {
  .mt-page { --u: clamp(1px, min(0.07829vw, (100svh - var(--nav-h) - var(--tete)) / 620), 1.388px);
    --t-grand: calc(300 * var(--u)); --t-std: calc(180 * var(--u)); --rk: 1; }
  .mt-main { padding-block: var(--tete) calc(40 * var(--u)); }
  .mt-mur { display: block; position: relative; width: calc(1124 * var(--u)); height: calc(580 * var(--u)); margin: 0 auto; }
  .mt-intro, .mt-tirage { position: absolute; }
  .mt-intro { left: 0; top: 0; width: calc(400 * var(--u)); text-align: left; }
  .mt-intro .tp-h1 { align-items: flex-start; }
  .mt-tirage { left: var(--x); top: var(--y); transform-origin: 50% calc(13 * var(--u)); }
  .mt-tirage--famille   { --x: 0;                    --y: calc(250 * var(--u)); }
  .mt-tirage--naissance { --x: calc(210 * var(--u)); --y: calc(190 * var(--u)); }
  .mt-tirage--grossesse { --x: calc(412 * var(--u)); --y: 0; }
  .mt-tirage--couple    { --x: calc(736 * var(--u)); --y: calc(26 * var(--u)); }
  .mt-tirage--portrait-femme { --x: calc(944 * var(--u)); --y: calc(176 * var(--u)); }
  .mt-papier { padding: calc(24 * var(--u)) calc(12.6 * var(--u)) calc(13.5 * var(--u)); }
  .mt-tirage--grossesse .mt-papier { padding: calc(28 * var(--u)) calc(15 * var(--u)) calc(16.5 * var(--u)); }
  .mt-nom { font-size: calc(19.5 * var(--u)); }
  .mt-tirage--grossesse .mt-nom { font-size: calc(28.8 * var(--u)); }
  .mt-formules { font-size: calc(9.3 * var(--u)); margin-top: calc(5 * var(--u)); }
  .mt-tirage--grossesse .mt-formules { font-size: calc(10.2 * var(--u)); }
  .mt-col { font-size: calc(9 * var(--u)); left: calc(12.6 * var(--u)); height: calc(24 * var(--u)); }
  .mt-tirage--grossesse .mt-col { font-size: calc(9.6 * var(--u)); left: calc(15 * var(--u)); height: calc(28 * var(--u)); }
  .mt-punaise { top: calc(3 * var(--u)); width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
  .mt-tirage--grossesse .mt-punaise { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }
  .mt-mur::after { content: ''; position: fixed; inset: -3% -4%; z-index: 4; pointer-events: none;
    background:
      radial-gradient(ellipse 55% 60% at 12% 8%, rgba(255, 238, 205, 0.20), transparent 70%),
      linear-gradient(116deg, transparent 0 34%, rgba(28, 25, 21, 0.035) 38%, rgba(28, 25, 21, 0.035) 42%, transparent 46%,
                               transparent 63%, rgba(28, 25, 21, 0.03) 67%, rgba(28, 25, 21, 0.03) 70%, transparent 74%); }
}

@media (min-width: 1280px) and (pointer: fine) {
  .mt-papier { padding-bottom: calc(37 * var(--u)); }
  .mt-tirage--grossesse .mt-papier { padding-bottom: calc(45 * var(--u)); }
}




.mt-page {
  --mt-ressort: linear(0, 0.125, 0.296, 0.491, 0.691, 0.879, 1.044, 1.177, 1.273, 1.331, 1.354, 1.346, 1.313, 1.261, 1.199,
    1.132, 1.067, 1.008, 0.958, 0.921, 0.896, 0.883, 0.882, 0.890, 0.905, 0.924, 0.946, 0.969, 0.989, 1.007, 1.022, 1.032,
    1.038, 1.040, 1.038, 1.034, 1.028, 1.021, 1.014, 1.006, 1, 0.995, 0.991, 0.988, 0.987, 0.987, 0.988, 0.990, 1);
  --mt-balance: 1.5s; --mt-recul: .35s; --mt-ombres: .5s; --mt-doigt: .5s; --mt-jour: 26s;
  --mt-note: 1.1s; --mt-note-delai: .2s; --mt-note-retour: .25s; --mt-note-courbe: cubic-bezier(0.45, 0.05, 0.55, 0.95); }

.mt-tirage--grossesse { --penche: 2.2deg; }
.mt-tirage--naissance { --penche: -1.4deg; }
.mt-tirage--famille   { --penche: 1.2deg; }
.mt-tirage--couple    { --penche: -1.6deg; }
.mt-tirage--portrait-femme { --penche: 1.4deg; }
.mt-ombre--leve { opacity: 0; }
.mt-ombre--leve::before, .mt-ombre--leve::after { bottom: 8px; box-shadow: 7px 20px 16px rgba(28, 25, 21, 0.26); }
.mt-note { display: none; }

@media (min-width: 900px) and (pointer: fine) {


  .mt-mur { pointer-events: none; }
  .mt-intro, .mt-tirage { pointer-events: auto; }
  .mt-tirage { transition: transform var(--mt-balance) var(--mt-ressort), opacity var(--mt-recul) ease; }
  .mt-ombre { transition: opacity var(--mt-ombres) ease; }
  .mt-tirage:focus-visible { transform: rotate(var(--penche)); z-index: 3; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .mt-tirage:hover { transform: rotate(var(--penche)); z-index: 3; }
}
@media (min-width: 900px) and (pointer: fine) {
  .mt-tirage:focus-visible .mt-ombre--repos { opacity: 0; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .mt-tirage:hover .mt-ombre--repos { opacity: 0; }
}
@media (min-width: 900px) and (pointer: fine) {
  .mt-tirage:focus-visible .mt-ombre--leve { opacity: 1; }
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .mt-tirage:hover .mt-ombre--leve { opacity: 1; }
  .mt-mur:hover .mt-tirage:not(:hover) { opacity: 0.62; }
  .mt-mur > .mt-intro:hover ~ .mt-tirage { opacity: 1; }
}

@media (min-width: 1280px) and (pointer: fine) {
  .mt-note { display: block; position: absolute; right: calc(12.6 * var(--u)); bottom: calc(11 * var(--u)); margin: 0;
    pointer-events: none; white-space: nowrap; line-height: 1; color: #3F3226;
    font-family: 'Corinthia', 'Snell Roundhand', 'Apple Chancery', cursive; font-style: normal; font-weight: 400;
    font-size: min(calc(26.7 * var(--u)), 15.2cqi);
    transform: rotate(-3deg); transform-origin: 100% 100%;
    clip-path: inset(-60% 115% -60% -15%); transition: clip-path var(--mt-note-retour) ease; }
  .mt-tirage--grossesse .mt-note { right: calc(15 * var(--u)); bottom: calc(9 * var(--u));
    font-size: min(calc(32.5 * var(--u)), 12.2cqi); }
  .mt-tirage:focus-visible .mt-note { clip-path: inset(-60% -15% -60% -15%);
    transition: clip-path var(--mt-note) var(--mt-note-courbe) var(--mt-note-delai); }
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .mt-tirage:hover .mt-note { clip-path: inset(-60% -15% -60% -15%);
    transition: clip-path var(--mt-note) var(--mt-note-courbe) var(--mt-note-delai); }
}

@media (min-width: 1280px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .mt-mur::after { animation: mt-jour var(--mt-jour) ease-in-out infinite alternate; }
}
@keyframes mt-jour { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }

@media not all and (min-width: 900px) and (pointer: fine) {
  .mt-tirage:active { transform: rotate(var(--penche)); transition: transform var(--mt-doigt) var(--mt-ressort); }
}


@media (prefers-reduced-motion: reduce) {
  .mt-tirage:focus-visible, .mt-tirage:active { transform: rotate(calc(var(--r) * var(--rk))); }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .mt-tirage:hover { transform: rotate(calc(var(--r) * var(--rk))); }
}









@keyframes mt-ombre-sort {
  from { transform: translateX(-8%) skewX(-26deg); }
  to   { transform: translateX(57%) skewX(-26deg); }
}
@media screen and (prefers-reduced-motion: no-preference) {




  html.mt-entree .mt-ph { position: relative; overflow: visible; clip-path: inset(-1px); }
  html.mt-entree .mt-ph::after { content: ''; position: absolute; top: -1px; left: 0; width: 300%; height: calc(100% + 2px); pointer-events: none;
    opacity: .985; transform-origin: 0 0; background: linear-gradient(to right, transparent 0, var(--teinte, var(--color-surface)) 7%);
    animation: mt-ombre-sort 1.1s cubic-bezier(.45, .05, .25, 1) both paused; }
  html.mt-entree .mt-ph.mt-part::after { will-change: transform; }




  html.mt-entree .mt-main { overflow-x: clip; }
}



.mt-ph { background: linear-gradient(var(--teinte, var(--color-surface)), var(--teinte, var(--color-surface))) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat; }
