/*
 * MYEINVITE — LIVRETS COMMERCIAUX
 * Style commun aux 3 brochures en français et en anglais.
 * Modifier les couleurs propres à une brochure dans l'attribut
 * style="--accent:...;--wash:..." de sa balise <body>.
 * Les textes, prix et intitulés sont dans chaque fichier HTML.
 */

:root {
    --mye-primary: #6d5dfc;
    --mye-ink: #11182c;
    --mye-copy: #56617a;
    --mye-line: #e7eaf1
}

* {
    box-sizing: border-box
}

body.mye-livret {
    margin: 0;
    background: #e9e8e5;
    color: var(--mye-ink);
    font-family: 'DM Sans',Arial,sans-serif;
    font-size: 15px;
    line-height: 1.55
}

.mye-livret button,.mye-livret select {
    font: inherit
}

.mye-livret a {
    color: inherit
}

.mye-livret button,.mye-livret a,.mye-livret select {
    -webkit-tap-highlight-color: transparent
}

.mye-livret :focus-visible {
    outline: 3px solid #6d5dfc;
    outline-offset: 4px
}

.ml-top {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 4vw;
    background: #fff;
    border-bottom: 1px solid var(--mye-line)
}

.ml-brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1.2px;
    text-decoration: none
}

.ml-brand span {
    color: var(--mye-primary)
}

.ml-top small {
    color: #687080;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 10px
}

.ml-tools {
    display: flex;
    gap: 10px
}

.ml-tools button,.ml-controls button,.ml-controls select {
    border: 1px solid #c9ccd4;
    background: transparent;
    border-radius: 6px;
    padding: 9px 14px;
    color: #283246;
    cursor: pointer
}

.ml-tools button:hover,.ml-controls button:hover {
    background: #fff
}

.ml-stage {
    max-width: 1180px;
    margin: 30px auto 20px;
    padding: 0 22px;
    perspective: 2000px
}

.ml-spread {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    box-shadow: 0 15px 50px #232a361c;
    align-items: stretch;
    background: white
}

.ml-page {
    min-width: 0;
    background: #fff;
    position: relative;
    padding: 38px 40px 26px;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere
}

.ml-page:nth-child(even) {
    border-right: 1px solid #e1e1df
}

.ml-page[hidden] {
    display: none!important
}

.ml-page.enter {
    animation: ml-turn .45s ease both;
    transform-origin: left center
}

@keyframes ml-turn {
    from {
        opacity: .2;
        transform: rotateY(-7deg) translateX(7px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.ml-spread.single {
    max-width: 570px;
    margin: auto;
    grid-template-columns: 1fr
}

.ml-eyebrow {
    font-size: 10px;
    letter-spacing: 2.3px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 20px
}

.ml-page h1,.ml-page h2,.ml-page h3 {
    line-height: 1.1;
    letter-spacing: -1.6px;
    margin: 0;
    font-family: 'Plus Jakarta Sans',Arial,sans-serif;
    font-weight: 700
}

.ml-page h1 {
    font-size: 48px
}

.ml-page h2 {
    font-size: 34px;
    margin: 0 0 20px
}

.ml-page h3 {
    font-size: 19px;
    letter-spacing: -.5px;
    margin: 0 0 8px
}

.ml-page p {
    margin: 0 0 18px;
    color: var(--mye-copy)
}

.ml-page .ml-lead {
    font-size: 17px;
    line-height: 1.6
}

.ml-page .ml-foot {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #687080;
    border-top: 1px solid #e1e3e7
}

.ml-content {
    min-width: 0;
    flex: 1;
    padding-bottom: 22px
}

.ml-cover {
    background: var(--wash);
    padding-top: 32px
}

.ml-cover h1 {
    margin: 34px 0 18px;
    max-width: 420px
}

.ml-cover .ml-eyebrow {
    margin-top: 28px
}

.ml-cover .ml-lead {
    max-width: 370px
}

.ml-cover-art {
    height: 265px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 24px
}

.ml-cover-art img {
    max-width: 74%;
    height: 250px;
    object-fit: contain;
    transform: rotate(-5deg);
    box-shadow: 12px 12px 0 color-mix(in srgb,var(--accent) 15%,transparent)
}

.ml-cover .ml-foot {
    border-color: #c9c6c0
}

.ml-number {
    font: italic 64px Georgia,serif;
    color: var(--accent);
    margin-bottom: 15px
}

.ml-list {
    list-style: none;
    padding: 0;
    margin: 10px 0
}

.ml-list li {
    display: grid;
    grid-template-columns: 35px 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--mye-line)
}

.ml-list b {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px
}

.ml-list h3 {
    font-size: 18px
}

.ml-list p {
    font-size: 13px;
    line-height: 1.55;
    margin: 0
}

.ml-quote {
    font: italic 28px/1.25 Georgia,serif;
    color: var(--accent);
    padding: 24px 0;
    margin: 10px 0;
    border-top: 1px solid var(--mye-line)
}

.ml-tag {
    display: inline-block;
    border: 1px solid #c9ccd4;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: .7px;
    margin: 0 5px 7px 0
}

.ml-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    margin: 16px 0
}

.ml-gallery figure {
    margin: 0
}

.ml-image {
    border: 0;
    background: #f5f4f0;
    padding: 12px;
    width: 100%;
    cursor: zoom-in;
    display: block
}

.ml-image img {
    width: 100%;
    height: 142px;
    object-fit: contain;
    display: block
}

.ml-gallery figcaption {
    font-size: 12px;
    font-weight: 700;
    padding-top: 7px
}

.ml-gallery figcaption small {
    display: block;
    font-weight: 400;
    color: #687080;
    font-size: 10px
}

.ml-note {
    font-size: 11px!important;
    line-height: 1.6!important;
    color: #687080!important
}

.ml-link {
    font-size: 13px;
    font-weight: 700;
    text-underline-offset: 4px
}

.ml-catalog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    list-style: none;
    padding: 0;
    margin: 10px 0 20px
}

.ml-catalog li {
    border-top: 1px solid var(--mye-line);
    padding: 9px 0;
    font-size: 11px
}

.ml-catalog a {
    text-decoration: none
}

.ml-catalog a:hover {
    color: var(--accent);
    text-decoration: underline
}

.ml-catalog span {
    color: #868c98;
    font-size: 9px;
    margin-right: 6px
}

.ml-price {
    font-size: 56px;
    letter-spacing: -3px;
    line-height: 1.1;
    font-weight: 700;
    margin: 24px 0 6px
}

.ml-price small {
    font-size: 16px;
    letter-spacing: 0;
    font-weight: 400
}

.ml-highlight {
    background: var(--wash);
    padding: 24px;
    margin: 20px 0;
    border-left: 3px solid var(--accent)
}

.ml-highlight p:last-child {
    margin-bottom: 0
}

.ml-price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 12px
}

.ml-price-table th {
    text-align: left;
    font-size: 10px;
    font-weight: 400;
    color: #687080;
    padding: 12px 5px;
    border-bottom: 1px solid #b8bdc6;
    vertical-align: bottom
}

.ml-price-table td {
    padding: 15px 5px;
    border-bottom: 1px solid var(--mye-line)
}

.ml-price-table td:first-child {
    font-weight: 700
}

.ml-price-table td:nth-child(2) {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap
}

.ml-btn {
    display: inline-block;
    text-decoration: none!important;
    background: var(--mye-ink);
    color: white!important;
    border-radius: 5px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 13px;
    margin: 8px 0 14px
}

.ml-closing {
    background: #171d2c;
    color: white
}

.ml-closing h2 {
    font-size: 44px;
    margin: 60px 0 25px
}

.ml-closing p {
    color: #d4d9e3
}

.ml-closing .ml-btn {
    background: white;
    color: #171d2c!important
}

.ml-closing .ml-eyebrow {
    color: #bdb5ff
}

.ml-closing .ml-foot {
    border-color: #4c5260;
    color: #c2c7d2
}

.ml-closing .ml-brand {
    color: white
}

.ml-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 20px 12px
}

.ml-controls button:disabled {
    opacity: .35;
    cursor: default
}

.ml-progress {
    width: 120px;
    height: 2px;
    background: #c9ccd4
}

.ml-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transition: width .3s
}

.ml-status {
    font-size: 12px;
    min-width: 96px;
    text-align: center
}

.ml-hint {
    text-align: center;
    color: #687080;
    font-size: 11px;
    margin: 0 20px 20px
}

.ml-bottom {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px;
    border-top: 1px solid #d4d4d3;
    font-size: 11px
}

.ml-bottom a {
    text-decoration: none
}

.ml-bottom a:hover {
    text-decoration: underline
}

.ml-demo-card {
    background: #172a32;
    color: #fff;
    width: 340px;
    max-width: 100%;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 18px 30px #11252b24;
    transform: rotate(-4deg)
}

.ml-demo-card strong {
    display: block;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -1px
}

.ml-demo-card small {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase
}

.ml-demo-card hr {
    border: 0;
    border-top: 1px solid #ffffff44;
    margin: 22px 0
}

.ml-demo-card p {
    color: inherit;
    font-size: 11px;
    margin: 0
}

.ml-card-sample {
    padding: 22px;
    background: #e8efec;
    margin: 15px 0;
    min-height: 120px;
    border-radius: 4px
}

.ml-card-sample strong {
    display: block;
    font-size: 24px;
    font-family: Georgia,serif
}

.ml-card-sample small {
    font-size: 11px
}

.ml-card-sample.dark {
    background: #172a32;
    color: #fff
}

.ml-card-sample.light {
    background: white;
    border: 1px solid #b4c9be
}

.ml-ticket {
    background: #fff;
    width: 310px;
    max-width: 100%;
    padding: 25px;
    border: 1px solid #bbc6d3;
    box-shadow: 12px 12px 0 #cad8e4;
    transform: rotate(-4deg);
    color: #122b4b
}

.ml-ticket strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 14px 0
}

.ml-ticket small {
    font-size: 10px;
    letter-spacing: 2px
}

.ml-ticket hr {
    border: 0;
    border-top: 1px dashed #9aaabc;
    margin: 20px -25px
}

.ml-ticket .ml-ticket-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px
}

.ml-ticket-code img {
    width: 62px;
    height: 62px;
    box-shadow: none;
    transform: none;
    max-width: none
}

.ml-ticket-row {
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #bac5d4;
    border-left: 5px solid #234d75;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f1f5f9
}

.ml-ticket-row strong {
    font-size: 19px;
    display: block
}

.ml-ticket-row small {
    font-size: 11px
}

.ml-ticket-row.vip {
    background: #162c46;
    color: white
}

.ml-ticket-row.premium {
    background: #ede6d7;
    border-color: #927e55
}

.ml-modal {
    border: 0;
    padding: 20px;
    max-width: 92vw;
    max-height: 94vh;
    background: #fff;
    border-radius: 6px
}

.ml-modal::backdrop {
    background: #11182ce0
}

.ml-modal img {
    display: block;
    max-width: 84vw;
    max-height: 75vh;
    object-fit: contain
}

.ml-modal button {
    display: block;
    margin: 0 0 10px auto;
    border: 1px solid #bbb;
    background: white;
    padding: 8px 15px;
    cursor: pointer
}

.ml-modal p {
    margin: 10px 0 0;
    font-size: 13px
}

.ml-read .ml-spread {
    display: block;
    max-width: 760px;
    margin: auto;
    background: transparent;
    box-shadow: none
}

.ml-read .ml-page {
    min-height: 0;
    margin: 0 0 22px;
    border: 0;
    box-shadow: 0 10px 30px #0001
}

.ml-read .ml-controls,.ml-read .ml-hint {
    display: none
}

.ml-read .ml-cover-art {
    height: 300px
}

@media(min-width:1000px) {
    .ml-page {
        min-height: 760px
    }
}

@media(max-width:760px) {
    .ml-top {
        padding: 14px 20px
    }
    .ml-top small {
        display: none
    }
    .ml-brand {
        font-size: 22px
    }
    .ml-tools {
        gap: 6px
    }
    .ml-tools button {
        font-size: 11px;
        padding: 9px
    }
    .ml-stage {
        margin: 18px auto;
        padding: 0 12px
    }
    .ml-spread {
        grid-template-columns: minmax(0,1fr);
        max-width: 560px;
        margin: auto
    }
    .ml-page {
        min-height: 700px;
        padding: 28px 26px 22px
    }
    .ml-page h1 {
        font-size: 43px
    }
    .ml-page h2 {
        font-size: 31px
    }
    .ml-controls {
        gap: 9px
    }
    .ml-controls button {
        font-size: 12px;
        padding: 10px
    }
    .ml-controls select {
        max-width: 190px;
        font-size: 12px
    }
    .ml-progress {
        display: none
    }
    .ml-gallery {
        gap: 13px
    }
    .ml-image img {
        height: 135px
    }
    .ml-cover-art {
        height: 250px
    }
    .ml-closing h2 {
        font-size: 40px
    }
    .ml-price {
        font-size: 49px
    }
    .ml-price-table {
        font-size: 11px
    }
    .ml-price-table td {
        padding: 13px 3px
    }
    .ml-price-table th {
        padding: 10px 3px
    }
    .ml-catalog {
        gap: 0 12px
    }
    .ml-catalog li {
        font-size: 10px
    }
}

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

@media print {
    @page {
        size: A4;
        margin: 0
    }
    body.mye-livret {
        background: white;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact
    }
    .ml-top,.ml-controls,.ml-hint,.ml-bottom,.ml-modal {
        display: none!important
    }
    .ml-stage {
        margin: 0;
        padding: 0;
        max-width: none
    }
    .ml-spread,.ml-spread.single,.ml-read .ml-spread {
        display: block;
        max-width: none;
        box-shadow: none
    }
    .ml-page,.ml-page[hidden],.ml-read .ml-page {
        display: flex!important;
        width: 210mm;
        min-height: 297mm;
        height: 297mm;
        padding: 18mm 20mm;
        break-after: page;
        margin: 0;
        border: 0;
        box-shadow: none
    }
    .ml-page h1 {
        font-size: 56px
    }
    .ml-page h2 {
        font-size: 42px
    }
    .ml-content {
        font-size: 17px
    }
    .ml-list p {
        font-size: 16px
    }
    .ml-gallery img {
        height: 190px
    }
    .ml-catalog li {
        font-size: 14px
    }
    .ml-price-table {
        font-size: 16px
    }
    .ml-page:last-child {
        break-after: auto
    }
    .ml-page.enter {
        animation: none
    }
    .ml-cover-art {
        height: 350px
    }
    .ml-cover-art img {
        height: 320px
    }
    .ml-note {
        font-size: 12px!important
    }
}

.ml-cover-art:has(.ml-ticket) {
    height: 350px;
    margin-top: 28px
}


/* ===============================================================
   IDENTITÉ VISUELLE — même logo que la navigation du site MyEinvite
   Original : https://myeinvite.net/img/logomyy.png
   Le fichier image n'est ni copié ni remplacé.
   =============================================================== */
.ml-top .ml-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: 154px;
    max-width: 40vw;
    height: 48px;
    letter-spacing: normal;
}
.ml-top .ml-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}
@media (max-width: 760px) {
    .ml-top .ml-brand {
        width: 132px;
        height: 42px;
    }
}
