/* Mini-site public — structure InviteMe (Celestial), design invite-les beige/doré */

/* Ascenseur = brun charte (viewport iframe + page) */
html {
    scrollbar-width: thin;
    scrollbar-color: #5c4033 #ebe0d2;
}

html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track {
    background: #ebe0d2;
}

html::-webkit-scrollbar-thumb {
    background: #5c4033;
    border-radius: 999px;
    border: 2px solid #ebe0d2;
}

html::-webkit-scrollbar-thumb:hover {
    background: #2f2119;
}

.msite-body {
    margin: 0;
    min-height: 100vh;
    background: var(--menu-bg, #fffdf9);
    color: #2c2420;
    font-family: var(--msite-font, "Montserrat"), system-ui, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: #5c4033 #ebe0d2;
    /* Placeholders image (états vides) — dérivés des tons de section déjà fournis par le thème */
    --msite-ph-accueil-bg: var(--presentation-section-bg, #fff8f0);
    --msite-ph-accueil-fg: var(--menu-text, #3a322c);
    --msite-ph-presentation-bg: var(--menu-bg, #fffdf9);
    --msite-ph-presentation-fg: var(--presentation-text, var(--menu-text, #3a322c));
    --msite-ph-evenement-bg: var(--evenement-section-bg, #efe4d4);
    --msite-ph-evenement-fg: var(--evenement-text, #2c2420);
    --msite-ph-lieux-bg: var(--lieux-section-bg, #f7f0e6);
    --msite-ph-lieux-fg: var(--lieux-text, #2c2420);
    --msite-ph-confirmation-bg: var(--confirmation-section-bg, #fffdfb);
    --msite-ph-confirmation-fg: var(--confirmation-text, #2c2420);
    --hero-placeholder-bg: var(--msite-ph-accueil-bg);
    --hero-placeholder-fg: var(--msite-ph-accueil-fg);
}

/* Ambiances : fond distinct même sans réglage manuel */
.msite-body[data-theme="ivoire"] {
    --menu-bg: #fffdf9;
    --presentation-section-bg: #fff8f0;
    --evenement-section-bg: #efe4d4;
    --lieux-section-bg: #f7f0e6;
    --confirmation-section-bg: #fffdfb;
    --presentation-text: #3a322c;
    --evenement-text: #3a322c;
    --lieux-text: #3a322c;
    --confirmation-text: #3a322c;
    --menu-text: #3a322c;
}
.msite-body[data-theme="blush"] {
    --menu-bg: #faf1f3;
    --presentation-section-bg: #f6e4e8;
    --evenement-section-bg: #e4c0c9;
    --lieux-section-bg: #faf1f3;
    --confirmation-section-bg: #fff7f8;
    --presentation-text: #4a3340;
    --evenement-text: #4a3340;
    --lieux-text: #4a3340;
    --confirmation-text: #4a3340;
    --menu-text: #4a3340;
}
.msite-body[data-theme="sauge"] {
    --menu-bg: #f2f5f0;
    --presentation-section-bg: #e6eee4;
    --evenement-section-bg: #c5d4c2;
    --lieux-section-bg: #f2f5f0;
    --confirmation-section-bg: #fbfcf9;
    --presentation-text: #2f4035;
    --evenement-text: #2f4035;
    --lieux-text: #2f4035;
    --confirmation-text: #2f4035;
    --menu-text: #2f4035;
}
.msite-body[data-theme="ocean"] {
    --menu-bg: #eef4f7;
    --presentation-section-bg: #dde9f0;
    --evenement-section-bg: #b7cfe0;
    --lieux-section-bg: #eef4f7;
    --confirmation-section-bg: #f7fbfd;
    --presentation-text: #1f3b4d;
    --evenement-text: #1f3b4d;
    --lieux-text: #1f3b4d;
    --confirmation-text: #1f3b4d;
    --menu-text: #1f3b4d;
}
.msite-body[data-theme="lavande"] {
    --menu-bg: #f4f1f8;
    --presentation-section-bg: #ebe4f3;
    --evenement-section-bg: #cbbddf;
    --lieux-section-bg: #f4f1f8;
    --confirmation-section-bg: #fbf9fd;
    --presentation-text: #3d3554;
    --evenement-text: #3d3554;
    --lieux-text: #3d3554;
    --confirmation-text: #3d3554;
    --menu-text: #3d3554;
}
.msite-body[data-theme="terracotta"] {
    --menu-bg: #f8efe8;
    --presentation-section-bg: #f1ddd0;
    --evenement-section-bg: #dfb59c;
    --lieux-section-bg: #f8efe8;
    --confirmation-section-bg: #fff8f3;
    --presentation-text: #4a2f24;
    --evenement-text: #4a2f24;
    --lieux-text: #4a2f24;
    --confirmation-text: #4a2f24;
    --menu-text: #4a2f24;
}
.msite-body[data-theme="champagne"] {
    --menu-bg: #f7f2e7;
    --presentation-section-bg: #efe6d3;
    --evenement-section-bg: #d9c6a0;
    --lieux-section-bg: #f7f2e7;
    --confirmation-section-bg: #fcfaf4;
    --presentation-text: #4a3d28;
    --evenement-text: #4a3d28;
    --lieux-text: #4a3d28;
    --confirmation-text: #4a3d28;
    --menu-text: #4a3d28;
}
.msite-body[data-theme="nocturne"] {
    --menu-bg: #1c222c;
    --presentation-section-bg: #262e3b;
    --evenement-section-bg: #343f52;
    --lieux-section-bg: #1c222c;
    --confirmation-section-bg: #2a3342;
    --presentation-text: #f2ebe3;
    --evenement-text: #f2ebe3;
    --lieux-text: #f2ebe3;
    --confirmation-text: #f2ebe3;
    --menu-text: #f2ebe3;
}
.msite-body[data-theme="bordeaux"] {
    --menu-bg: #f7eef1;
    --presentation-section-bg: #edd9e0;
    --evenement-section-bg: #d4a8b6;
    --lieux-section-bg: #f7eef1;
    --confirmation-section-bg: #fdf7f9;
    --presentation-text: #4a2432;
    --evenement-text: #4a2432;
    --lieux-text: #4a2432;
    --confirmation-text: #4a2432;
    --menu-text: #4a2432;
}
.msite-body[data-theme="corail"] {
    --menu-bg: #f8efe8;
    --presentation-section-bg: #f1ddd0;
    --evenement-section-bg: #e0b49c;
    --lieux-section-bg: #f8efe8;
    --confirmation-section-bg: #fff8f3;
    --presentation-text: #4a2f24;
    --evenement-text: #4a2f24;
    --lieux-text: #4a2f24;
    --confirmation-text: #4a2f24;
    --menu-text: #4a2f24;
}

.msite-body::-webkit-scrollbar,
.msite::-webkit-scrollbar,
.msite-main::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.msite-body::-webkit-scrollbar-track,
.msite::-webkit-scrollbar-track,
.msite-main::-webkit-scrollbar-track {
    background: #ebe0d2;
}

.msite-body::-webkit-scrollbar-thumb,
.msite::-webkit-scrollbar-thumb,
.msite-main::-webkit-scrollbar-thumb {
    background: #5c4033;
    border-radius: 999px;
    border: 2px solid #ebe0d2;
}

.msite-body::-webkit-scrollbar-thumb:hover,
.msite::-webkit-scrollbar-thumb:hover,
.msite-main::-webkit-scrollbar-thumb:hover {
    background: #2f2119;
}

.msite {
    min-height: 100vh;
}

/* ——— Gate ——— */
.msite-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: #fffdf9;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}
.msite-gate.is-open .msite-gate__flap { transform: rotateX(170deg); }
.msite-gate.is-open .msite-gate__seal { opacity: 0; transform: translateX(-50%) scale(0.55); }
.msite-gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.msite-gate__inner { text-align: center; padding: 1.5rem; }
.msite-gate__envelope {
    position: relative;
    width: min(360px, 82vw);
    height: 230px;
    margin: 0 auto 1.2rem;
}
.msite-gate__body {
    position: absolute;
    inset: 48px 0 0;
    background: linear-gradient(180deg, #d2b48c, #b8956a);
    border-radius: 3px 3px 10px 10px;
    box-shadow: 0 20px 44px rgba(44, 36, 32, 0.22);
}
.msite-gate__fold {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.08) 48%);
}
.msite-gate__flap {
    position: absolute;
    left: 0; right: 0; top: -42px;
    height: 96px;
    background: linear-gradient(180deg, #e2c9a0, #c4a574);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    transform-origin: top center;
    transition: transform 0.75s ease;
    z-index: 2;
}
.msite-gate__seal {
    position: absolute;
    left: 50%; top: 16%;
    transform: translateX(-50%);
    width: 66px; height: 66px;
    border: 0; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #edd28a, #c4a36a 55%, #8f7040);
    color: #fffdf9;
    font-family: var(--msite-font, "Cormorant Garamond"), Georgia, serif;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; z-index: 3;
    box-shadow: 0 8px 18px rgba(44, 36, 32, 0.28);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.msite-gate__card-peek {
    position: absolute;
    left: 11%; right: 11%; top: 4px;
    min-height: 78px;
    background: #fffdf9;
    border: 1px solid rgba(196, 163, 106, 0.45);
    display: grid;
    place-content: center;
    gap: 0.15rem;
    z-index: 1;
    padding: 0.55rem;
    box-shadow: 0 8px 18px rgba(44, 36, 32, 0.12);
}
.msite-gate__card-peek p {
    margin: 0;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a7566;
}
.msite-gate__card-peek strong {
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: 1.55rem;
    font-weight: 400;
    color: #2c2420;
}
.msite-gate__card-peek em {
    font-style: normal;
    font-size: 0.72rem;
    color: #8a7566;
}
.msite-gate__hint {
    margin: 0 0 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #8a7566;
}
.msite-gate__cta {
    border: 1px solid #c4a36a;
    background: transparent;
    color: #5c4033;
    border-radius: 999px;
    padding: 0.72rem 1.4rem;
    font-family: var(--msite-font, "Cormorant Garamond"), Georgia, serif;
    font-size: 1.05rem;
    cursor: pointer;
}

/* ——— Shell ——— */
.msite-shell { display: none; min-height: 100vh; }
.msite-shell.is-visible {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.msite-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--menu-bg, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.2rem 1.35rem 1.5rem;
    border-right: 1px solid rgba(196, 163, 106, 0.2);
    z-index: 5;
}
.msite-sidebar__top { text-align: center; }
.msite-sidebar__names {
    margin: 0;
    font-family: var(--msite-font, "Cormorant Garamond"), Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--menu-text, #3a322c);
}
.msite-sidebar__date {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--menu-text, #3a322c);
}
.msite-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
}
.msite-sidebar__nav a {
    color: var(--menu-text, #3a322c);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    padding-left: 0.85rem;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.msite-sidebar__nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c4a36a;
    transform: translateY(-50%) scale(0);
    transition: transform 0.25s ease;
}
.msite-sidebar__nav a:hover {
    color: var(--menu-text, #3a322c);
    text-decoration: none;
    opacity: 0.78;
}
.msite-sidebar__nav a.is-active {
    font-weight: 600;
}
.msite-sidebar__nav a.is-active::before {
    transform: translateY(-50%) scale(1);
}
.msite-sidebar__bottom {
    text-align: center;
    font-size: 0.68rem;
    color: var(--menu-text, #3a322c);
    line-height: 1.45;
}
.msite-sidebar__bottom p { margin: 0; }

.msite-main {
    min-width: 0;
    /* Fond derrière les sections = menu (les blocs gardent leurs propres fonds / photos) */
    background: var(--menu-bg, #ffffff);
}
.msite-menu-btn { display: none; }

/* Accueil hero */
.msite-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: transparent;
}
.msite-hero__img,
.msite-hero__fallback {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}
.msite-dateband__fallback,
.msite-confirm__fallback {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 64px 64px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23989898' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.9 13l2.1 2.5L14.2 11l4.8 6H5l3.9-4Z'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23989898'/%3E%3C/svg%3E");
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.msite-dateband__fallback {
    background-color: var(--msite-ph-evenement-bg, var(--evenement-section-bg, #efe4d4));
}
.msite-confirm__fallback {
    background-color: var(--msite-ph-confirmation-bg, var(--confirmation-section-bg, #fffdfb));
}
/* Couverture vide : couleur dérivée du thème (jamais de teinte sur la vraie photo) */
.msite-hero__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--msite-ph-accueil-bg, var(--hero-placeholder-bg, #fff8f0));
    color: var(--msite-ph-accueil-fg, var(--hero-placeholder-fg, #3a322c));
    background-image: none;
}
.msite-hero__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem;
    text-align: center;
    max-width: 18rem;
    pointer-events: none;
    opacity: 0.88;
}
.msite-hero__empty-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.35rem;
    background-color: currentColor;
    opacity: 0.55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.9 13l2.1 2.5L14.2 11l4.8 6H5l3.9-4Z'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.9 13l2.1 2.5L14.2 11l4.8 6H5l3.9-4Z'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.msite-hero__empty-title {
    margin: 0;
    font-family: var(--msite-font, "Cormorant Garamond"), Georgia, serif;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}
.msite-hero__empty-hint {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0.72;
    color: inherit;
}
.msite-hero__veil {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Défaut 0 = photo originale ; le curseur éditeur monte le voile si besoin */
    opacity: var(--accueil-photo-veil, 0);
    background:
        radial-gradient(ellipse 80% 55% at 50% 42%, rgba(18, 12, 10, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, rgba(18, 12, 10, 0.28) 0%, rgba(18, 12, 10, 0.18) 42%, rgba(18, 12, 10, 0.68) 100%);
}
.msite-hero__content {
    position: absolute;
    left: var(--hero-pos-x, 50%);
    top: var(--hero-pos-y, 50%);
    transform: translate(-50%, -50%) scale(var(--hero-scale, 1));
    transform-origin: center center;
    max-width: min(92%, 34rem);
    width: max-content;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--accueil-text, #fffdfb);
    padding: clamp(0.85rem, 2.5vw, 1.45rem) clamp(1.1rem, 3.5vw, 2rem);
    border-radius: 14px;
    z-index: 1;
    /* Fond semi-transparent derrière le texte uniquement (couleur + opacité via l’éditeur) */
    background-color: color-mix(
        in srgb,
        var(--accueil-text-panel-color, #000000) calc(var(--accueil-text-panel-opacity, 0) * 100%),
        transparent
    );
    transition: background-color 0.28s ease;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.msite-hero__title {
    margin: 0;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    text-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.msite-hero__title--text {
    font-family: var(--msite-font, "Cormorant Garamond"), Georgia, serif;
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.25;
    max-width: 16ch;
    margin-inline: auto;
}
.msite-hero__date {
    margin: 0.85rem 0 0;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

/* Aperçu éditeur uniquement : bloc titre déplaçable sur la photo */
.msite-hero__content.is-draggable {
    cursor: grab;
    touch-action: none;
    user-select: none;
    outline: 1px dashed rgba(255, 255, 255, .55);
    outline-offset: 10px;
    border-radius: 6px;
    transition: outline-color .15s ease;
}
.msite-hero__content.is-draggable:hover {
    outline-color: rgba(255, 255, 255, .85);
}
.msite-hero__content.is-draggable.is-dragging {
    cursor: grabbing;
    outline-color: #e7d3a1;
}

/* Aperçu éditeur : éléments cliquables → panneau de droite (jamais sur le site publié) */
.msite.is-live-editable [data-editor-target] {
    cursor: pointer;
}
.msite.is-live-editable .msite-hero__content.is-draggable,
.msite.is-live-editable .msite-hero__content.is-draggable [data-editor-target] {
    cursor: grab;
}
.msite.is-live-editable .msite-hero__content.is-draggable.is-dragging,
.msite.is-live-editable .msite-hero__content.is-draggable.is-dragging [data-editor-target] {
    cursor: grabbing;
}
/* Lien Maps cliquable même en conception (ouvre Google Maps) */
.msite.is-live-editable .msite-lieu__maplink:not(.is-disabled):not([aria-disabled="true"]) {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Emplacements vides : structure visible sans contenu fictif */
.msite.is-live-editable .msite-hero__title.is-empty,
.msite.is-live-editable .msite-hero__title:empty {
    min-height: 1.15em;
    min-width: 10ch;
    opacity: 0.35;
}
.msite.is-live-editable [data-field="nom1"]:empty,
.msite.is-live-editable [data-field="nom2"]:empty {
    display: inline-block;
    min-width: 6ch;
    min-height: 1em;
    opacity: 0.3;
    background: rgba(44, 36, 32, 0.06);
    border-radius: 3px;
}

/* Sections */
.msite-section { padding: 0; }

/* Nous deux */
.msite-nous {
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    background: var(--presentation-section-bg, #fff8f0);
    color: var(--presentation-text, #2c2420);
}
.msite-nous__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 980px;
    margin: 0 auto;
}
.msite-person {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: start;
    background: var(--presentation-section-bg, #fff);
    border-radius: 4px;
    padding: 1.35rem 1.2rem;
    box-shadow: 0 10px 30px rgba(44, 36, 32, 0.06);
    border: 1px solid rgba(196, 163, 106, 0.18);
}
.msite-person--alt { grid-template-columns: 0.8fr 1.2fr; }
.msite-person__text h2 {
    margin: 0 0 0.2rem;
    font-family: var(--msite-font, "Montserrat"), sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--presentation-text, #2c2420);
}
.msite-person__role {
    margin: 0 0 0.7rem;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: 1.45rem;
    color: #c4a36a;
}
.msite-person__bio {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: #6b5c4f;
}
.msite-person__photo {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid rgba(196, 163, 106, 0.35);
    box-shadow: 0 12px 28px rgba(44, 36, 32, 0.12);
}
.msite-person__photo img,
.msite-person__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.msite-person__photo img {
    transition: transform 0.7s ease;
}
.msite-person:hover .msite-person__photo img {
    transform: scale(1.05);
}
.msite-person__photo img,
.msite-person__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.msite-person__placeholder {
    background-color: var(--msite-ph-presentation-bg, var(--menu-bg, #fffdf9));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23989898' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.9 13l2.1 2.5L14.2 11l4.8 6H5l3.9-4Z'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23989898'/%3E%3C/svg%3E");
}
.msite-parrains {
    margin-top: 2.5rem;
    text-align: center;
}
.msite-parrains__label {
    margin: 0 0 0.4rem;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: 1.7rem;
    color: #c4a36a;
}
.msite-parrains__names {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--presentation-text, #2c2420);
}

/* Countdown */
.msite-countdown {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--evenement-section-bg, #dcdcdc);
    color: var(--evenement-text, #2c2420);
    text-align: center;
    padding: clamp(1.75rem, 4vw, 2.75rem) 1rem;
}
.msite-countdown__inner { position: relative; z-index: 1; padding: 0.5rem 0; }
.msite-countdown__lead {
    margin: 0 0 1.4rem;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.msite-countdown__grid {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem);
    flex-wrap: wrap;
}
.msite-countdown__grid strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 500;
    line-height: 1;
    min-height: 1em;
}
.msite-countdown__grid > div {
    min-width: 4.6rem;
    padding: 0.85rem 0.7rem 0.95rem;
    border: 1px solid rgba(196, 163, 106, 0.35);
    border-radius: 8px;
    background: color-mix(in srgb, var(--evenement-section-bg, #fff) 72%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(44, 36, 32, 0.06);
}
.msite-countdown__grid strong:empty::before {
    content: "\00a0";
}
.msite-countdown__grid span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Amour */
.msite-event {
    background: transparent;
}
.msite-amour {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    color: var(--evenement-text, #2c2420);
}
.msite-amour__photo {
    margin: 0;
    border: 1px solid #c4a36a;
    padding: 8px;
    background: #fff;
}
.msite-amour__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.msite-amour__photo.is-empty {
    aspect-ratio: 3/4;
    min-height: 280px;
    /* Nuance présentation (softMid) — distincte des pastilles portrait (soft) */
    background-color: var(--msite-ph-accueil-bg, var(--presentation-section-bg, #fff8f0));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23989898' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.9 13l2.1 2.5L14.2 11l4.8 6H5l3.9-4Z'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23989898'/%3E%3C/svg%3E");
}
.msite-amour__copy {
    position: relative;
    padding: 1rem 0.5rem 1rem 1.25rem;
    min-height: 180px;
}
.msite-amour__copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-left: 1px solid #c4a36a;
    border-top: 1px solid #c4a36a;
}
.msite-amour__script {
    margin: 0 0 0.2rem;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: 2rem;
    color: var(--evenement-text, #2c2420);
}
.msite-amour__title {
    margin: 0 0 1rem;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--evenement-text, #2c2420);
}
.msite-amour__text {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--evenement-text, #2c2420);
}

/* Date band */
.msite-dateband {
    position: relative;
    min-height: 260px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #4a3a30;
    color: var(--evenement-text, #fff);
    text-align: center;
}
.msite-dateband__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msite-dateband__veil {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--evenement-photo-veil, 0);
    /* Voile sombre piloté par le curseur « Opacité de la photo » (0 = photo originale) */
    background:
        linear-gradient(
            180deg,
            rgba(22, 16, 14, 0.4) 0%,
            rgba(22, 16, 14, 0.62) 42%,
            rgba(22, 16, 14, 0.78) 100%
        );
}
.msite-dateband__inner { position: relative; z-index: 1; padding: 2.4rem 1.25rem; }
.msite-dateband__welcome {
    margin: 0 0 0.65rem;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: #fffdf9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    line-height: 1.3;
    max-width: min(92vw, 22rem);
    margin-left: auto;
    margin-right: auto;
}
.msite-dateband__date {
    margin: 0;
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #fffdf9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* Lieux */
.msite-lieux {
    padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    background: var(--lieux-section-bg, #f7f0e6);
    color: var(--lieux-text, #2c2420);
    text-align: center;
}
.msite-lieux__eyebrow {
    margin: 0;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: 1.7rem;
    color: #c4a36a;
}
.msite-lieux__title {
    margin: 0.15rem 0 2rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--lieux-text, #2c2420);
}
.msite-lieux__timeline {
    display: flex;
    flex-direction: column;
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
    gap: 0;
}
.msite-lieu {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 0 1.75rem;
}
.msite-lieu:last-child { padding-bottom: 0; }
.msite-lieu__dotcol {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12px;
    flex-shrink: 0;
    align-self: stretch;
}
.msite-lieu__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c4a36a;
    box-shadow: 0 0 0 3px rgba(196, 163, 106, 0.2);
    margin-top: 0.35rem;
    flex-shrink: 0;
}
.msite-lieu__track {
    flex: 1;
    width: 2px;
    margin-top: 0.35rem;
    background: repeating-linear-gradient(to bottom, #c4a36a 0 5px, transparent 5px 10px);
}
.msite-lieu__media {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--msite-ph-lieux-bg, var(--lieux-section-bg, #f7f0e6));
    flex-shrink: 0;
    border: 1px solid rgba(196, 163, 106, 0.28);
}
.msite-lieu__media img,
.msite-lieu__fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.msite-lieu__fallback {
    background-color: var(--msite-ph-lieux-bg, var(--lieux-section-bg, #f7f0e6));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23989898' d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2ZM8.9 13l2.1 2.5L14.2 11l4.8 6H5l3.9-4Z'/%3E%3Ccircle cx='8' cy='8' r='1.6' fill='%23989898'/%3E%3C/svg%3E");
}
.msite-lieu__body {
    flex: 1;
    min-width: 0;
    background: var(--lieux-section-bg, #fff);
    border: 1px solid rgba(196, 163, 106, 0.28);
    border-radius: 6px;
    padding: 0.95rem 1.1rem;
    box-shadow: 0 6px 18px rgba(44, 36, 32, 0.05);
}
.msite-lieu__label {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #c4a36a;
}
.msite-lieu__title {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    font-weight: 600;
    color: var(--lieux-text, #2c2420);
}
.msite-lieu__addr {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-style: italic;
    color: #6b5c4f;
}
.msite-lieu__maplink {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: #9a8778;
    text-decoration: none;
    border-bottom: 1px solid #9a8778;
    padding-bottom: 1px;
}
.msite-lieu__maplink:hover { color: #c4a36a; border-color: #c4a36a; }
.msite-lieu__maplink.is-disabled,
.msite-lieu__maplink[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    cursor: default;
    border-bottom-style: dashed;
}
.msite-lieu__slot:empty {
    min-height: 1.05em;
}
.msite-lieu__title.msite-lieu__slot:empty {
    min-height: 1.35em;
}
.msite-lieu--skeleton .msite-lieu__slot:empty {
    background: linear-gradient(90deg, rgba(44, 36, 32, 0.04), rgba(44, 36, 32, 0.08), rgba(44, 36, 32, 0.04));
    border-radius: 3px;
}

/* Confirmation */
.msite-confirm {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 3rem) 1.25rem;
    overflow: hidden;
    background: transparent;
}
.msite-confirm__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.msite-confirm__veil {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--confirmation-photo-veil, 0);
    background: linear-gradient(180deg, rgba(18, 12, 10, 0.28), rgba(18, 12, 10, 0.55));
}
.msite-confirm__panel {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    background: var(--confirmation-section-bg, #fffdfb);
    color: var(--confirmation-text, #2c2420);
    padding: 2rem 1.5rem 1.75rem;
    border-radius: 10px;
    border: 1px solid rgba(196, 163, 106, 0.28);
    box-shadow: 0 18px 48px rgba(44, 36, 32, 0.16);
}
.msite-confirm__intro {
    margin: 0 0 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--confirmation-text, #5c4033);
}
.msite-confirm__form { display: grid; gap: 0.95rem; }
.msite-confirm__label {
    display: grid;
    gap: 0.35rem;
}
.msite-confirm__label span {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a7566;
}
.msite-confirm__label input,
.msite-confirm__label select,
.msite-confirm__label textarea {
    width: 100%;
    border: 1px solid rgba(196, 163, 106, 0.45);
    border-radius: 6px;
    padding: 0.75rem 0.85rem;
    font: inherit;
    background: #fff;
    color: var(--confirmation-text, #2c2420);
    box-sizing: border-box;
}
.msite-confirm__actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.35rem;
}
.msite-confirm__btn {
    border: 0;
    border-radius: 6px;
    padding: 0.95rem 1rem;
    background: #c4a36a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(154, 117, 64, 0.22);
}
.msite-confirm__btn:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}
.msite-confirm__btn--secondary {
    background: transparent;
    color: var(--confirmation-text, #2c2420);
    border: 1px solid rgba(44, 36, 32, 0.28);
    box-shadow: none;
}
.msite-confirm__btn--secondary:hover {
    filter: none;
    transform: none;
    border-color: rgba(44, 36, 32, 0.5);
    background: rgba(255, 255, 255, 0.35);
}
.msite-confirm__success,
.msite-confirm__closed,
.msite-confirm__error,
.msite-confirm__deadline {
    margin: 0 0 0.85rem;
    text-align: center;
    line-height: 1.45;
    font-size: 0.92rem;
}
.msite-confirm__success {
    padding: 0.75rem;
    background: rgba(107, 143, 113, 0.14);
    border: 1px solid rgba(107, 143, 113, 0.3);
    color: #2f4a34;
}
.msite-confirm__error {
    padding: 0.75rem;
    background: rgba(166, 74, 74, 0.12);
    border: 1px solid rgba(166, 74, 74, 0.3);
    color: #6b2a2a;
}
.msite-confirm__closed,
.msite-confirm__deadline { color: #6b5c4f; }

.msite-footer {
    padding: 2.5rem 1rem 3rem;
    text-align: center;
    background: #fffdfb;
    border-top: 1px solid rgba(196, 163, 106, 0.18);
}
.msite-footer p {
    margin: 0.25rem 0 0;
    font-family: var(--msite-font, "Great Vibes"), cursive;
    font-size: 1.6rem;
    color: #c4a36a;
}
.msite-footer__date {
    font-family: var(--msite-font, "Montserrat"), sans-serif !important;
    font-size: 0.75rem !important;
    color: #8a7566 !important;
}

@media (max-width: 960px) {
    .msite-shell.is-visible { grid-template-columns: 1fr; }
    .msite-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(200px, 62vw);
        max-width: 200px;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 14px 0 34px rgba(44, 36, 32, 0.18);
        padding: 1.5rem 1rem 1.25rem;
    }
    .msite-sidebar__nav {
        gap: 0.85rem;
        padding: 1.1rem 0;
    }
    .msite-sidebar__nav a {
        font-size: 0.88rem;
    }
    .msite-shell.is-nav-open .msite-sidebar { transform: translateX(0); }
    .msite-menu-btn {
        display: inline-flex;
        position: sticky;
        top: 0.85rem;
        left: 0.85rem;
        z-index: 20;
        margin: 0.85rem;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 1px solid rgba(196, 163, 106, 0.4);
        background: rgba(255, 253, 251, 0.94);
        color: #5c4033;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    .msite-nous__grid,
    .msite-amour,
    .msite-person,
    .msite-person--alt {
        grid-template-columns: 1fr;
    }
    .msite-lieu {
        gap: 0.75rem;
        padding-bottom: 1.35rem;
    }
    .msite-lieu__media {
        width: 56px;
        height: 56px;
    }
    .msite-lieu__body {
        padding: 0.75rem 0.9rem;
    }
    .msite-lieu__title {
        font-size: 1rem;
    }
    .msite-lieu__label {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
    }
    .msite-lieux {
        padding: 2.25rem 1.1rem 2.5rem;
    }
    .msite-lieux__title {
        margin-bottom: 1.35rem;
        letter-spacing: 0.1em;
        font-size: 1.35rem;
    }
    .msite-confirm {
        min-height: 0;
        padding: 1.75rem 1rem 2rem;
        align-content: start;
        place-items: stretch center;
    }
    .msite-confirm__panel {
        width: 100%;
        max-width: 100%;
        padding: 1.35rem 1.15rem 1.25rem;
        box-shadow: 0 8px 24px rgba(44, 36, 32, 0.1);
    }
    .msite-countdown {
        min-height: 0;
        padding: 1.5rem 0.85rem;
    }
    .msite-person__photo { margin: 0 auto 0.5rem; }
    .msite-hero { min-height: 78vh; }
    .msite-hero__img,
    .msite-hero__fallback { height: 78vh; }
    .msite-footer {
        padding: 1.75rem 1rem 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .msite-gate,
    .msite-gate__flap,
    .msite-gate__seal,
    .msite-sidebar { transition: none !important; }
}

/* ——— Mini-site plus joli (typo, air, détails) ——— */
@media (min-width: 961px) {
    .msite-shell.is-visible {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}

.msite-sidebar {
    padding: 2.8rem 1.5rem 2rem;
    border-right-color: rgba(196, 163, 106, 0.16);
}

.msite-sidebar__names {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.msite-sidebar__nav {
    gap: 1.15rem;
}

.msite-sidebar__nav a {
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    opacity: 0.72;
}

.msite-sidebar__nav a:hover,
.msite-sidebar__nav a.is-active {
    opacity: 1;
}

.msite-hero__title {
    font-size: clamp(3.4rem, 9vw, 6.2rem);
    letter-spacing: 0.01em;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.32);
}

.msite-hero__date {
    margin-top: 1rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.92;
}

.msite-nous {
    padding: clamp(4rem, 9vw, 6.5rem) clamp(1.5rem, 5vw, 3.5rem);
    background: var(--presentation-section-bg, #fff8f0);
}

.msite-nous__grid {
    gap: 1.75rem;
    max-width: 1040px;
}

.msite-person {
    grid-template-columns: 1fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.8rem 1.55rem;
    border-radius: 0;
    border: 0;
    background: color-mix(in srgb, #ffffff 55%, var(--presentation-section-bg, #fff8f0));
    box-shadow: none;
    border-bottom: 1px solid rgba(196, 163, 106, 0.28);
}

.msite-person--alt {
    grid-template-columns: auto 1fr;
}

.msite-person__text h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.msite-person__role {
    font-size: 1.65rem;
    margin-bottom: 0.85rem;
}

.msite-person__bio {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #6a5b4e;
    max-width: 28ch;
}

.msite-person__photo {
    width: 148px;
    height: 148px;
    border-width: 1px;
    border-color: rgba(196, 163, 106, 0.55);
    box-shadow: none;
}

.msite-person:hover .msite-person__photo img {
    transform: none;
}

.msite-parrains {
    margin-top: 3.25rem;
}

.msite-countdown {
    padding: clamp(2.4rem, 6vw, 3.6rem) 1.25rem;
    background: var(--evenement-section-bg, #f4eee6);
}

.msite-countdown__lead {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    margin-bottom: 1.7rem;
}

.msite-countdown__grid {
    gap: 0.85rem;
}

.msite-countdown__grid > div {
    min-width: 5.1rem;
    padding: 1rem 0.85rem 1.05rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border-right: 1px solid rgba(196, 163, 106, 0.35);
}

.msite-countdown__grid > div:last-child {
    border-right: 0;
}

.msite-countdown__grid strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 500;
}

.msite-amour {
    max-width: 1080px;
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(4rem, 9vw, 6.5rem) clamp(1.5rem, 5vw, 3.5rem);
}

.msite-amour__photo {
    border: 0;
    padding: 0;
    background: transparent;
}

.msite-amour__photo img {
    aspect-ratio: 4 / 5;
}

.msite-amour:hover .msite-amour__photo img {
    transform: none;
}

.msite-amour__copy {
    padding: 0.5rem 0 0.5rem 1.5rem;
}

.msite-amour__script {
    font-size: 2.35rem;
    margin-bottom: 0.35rem;
}

.msite-amour__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: 0.04em;
    font-weight: 500;
}

.msite-amour__text {
    font-size: 0.98rem;
    line-height: 1.85;
    max-width: 36ch;
    color: #5d5045;
}

.msite-dateband {
    min-height: 320px;
}

.msite-dateband__welcome {
    font-size: clamp(2rem, 4vw, 2.8rem);
    max-width: min(92vw, 26rem);
}

.msite-dateband__date {
    font-family: "Cormorant Garamond", Georgia, serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    margin-top: 0.35rem;
}

.msite-lieux {
    padding: clamp(4rem, 9vw, 6.5rem) clamp(1.5rem, 5vw, 3.5rem);
    background: var(--lieux-section-bg, #f7f0e6);
}

.msite-lieux__eyebrow {
    font-size: 1.9rem;
}

.msite-lieux__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin-bottom: 2.6rem;
}

.msite-lieux__timeline {
    max-width: 680px;
    gap: 1.35rem;
}

.msite-lieu {
    align-items: stretch;
    gap: 1rem;
}

.msite-lieu__media {
    width: 92px;
    height: 92px;
    border-radius: 0;
    border: 0;
}

.msite-lieu:hover .msite-lieu__media img {
    transform: none;
}

.msite-lieu__body {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(196, 163, 106, 0.3);
    box-shadow: none;
    background: color-mix(in srgb, #ffffff 50%, var(--lieux-section-bg, #f7f0e6));
    padding: 0.35rem 0.85rem 1.1rem;
}

.msite-lieu:hover .msite-lieu__body {
    transform: none;
    box-shadow: none;
    border-color: rgba(196, 163, 106, 0.3);
}

.msite-lieu__title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.msite-confirm {
    padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.msite-confirm__panel {
    width: min(520px, 100%);
    padding: 2.4rem 1.8rem 2rem;
    border-radius: 0;
    border-color: rgba(196, 163, 106, 0.35);
    box-shadow: 0 24px 60px rgba(44, 36, 32, 0.14);
}

.msite-confirm__intro {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.5;
}

.msite-confirm__btn {
    border-radius: 0;
    letter-spacing: 0.12em;
    box-shadow: none;
}

.msite-confirm__btn:hover {
    transform: none;
}

.msite-confirm__label input,
.msite-confirm__label select,
.msite-confirm__label textarea {
    border-radius: 0;
}

.msite-footer {
    padding: 3.25rem 1rem 3.75rem;
    background: #faf7f2;
}

.msite-footer p:first-child {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
}

[data-msite-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ——— Mobile / tablette : vrai site plein écran ———
   (placé en dernier pour gagner sur le polish desktop) */
@media (max-width: 960px) {
    html,
    body.msite-body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .msite-shell.is-visible {
        display: block;
        width: 100%;
        max-width: 100%;
        grid-template-columns: none;
    }

    .msite-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Fond sombre derrière le tiroir */
    .msite-shell.is-nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 18;
        background: rgba(28, 20, 16, 0.42);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .msite-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(300px, 86vw);
        max-width: 300px;
        height: 100%;
        height: 100dvh;
        transform: translateX(105%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        box-shadow: -18px 0 40px rgba(44, 36, 32, 0.22);
        padding: 1.6rem 1.25rem 1.5rem;
        z-index: 22;
        border-right: 0;
        border-left: 1px solid rgba(196, 163, 106, 0.22);
    }

    .msite-shell.is-nav-open .msite-sidebar {
        transform: translateX(0);
    }

    .msite-sidebar__nav {
        gap: 0.95rem;
        padding: 1.25rem 0;
    }

    .msite-sidebar__nav a {
        font-size: 1rem;
        opacity: 0.9;
        padding: 0.35rem 0.85rem;
    }

    .msite-menu-btn {
        display: inline-flex;
        position: fixed;
        top: max(0.75rem, env(safe-area-inset-top, 0px));
        right: max(0.75rem, env(safe-area-inset-right, 0px));
        left: auto;
        z-index: 24;
        margin: 0;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        border: 1px solid rgba(196, 163, 106, 0.45);
        background: rgba(255, 253, 251, 0.96);
        color: #5c4033;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 8px 22px rgba(44, 36, 32, 0.16);
        font-size: 1.2rem;
        line-height: 1;
    }

    .msite-shell.is-nav-open .msite-menu-btn {
        background: #fffdfb;
    }

    .msite-hero {
        width: 100%;
        min-height: 100svh;
    }

    .msite-hero__img,
    .msite-hero__fallback {
        width: 100%;
        height: 100svh;
        max-width: 100%;
    }

    .msite-hero__content {
        max-width: min(92vw, 34rem);
        width: min(92vw, 34rem);
        box-sizing: border-box;
    }

    .msite-nous,
    .msite-amour,
    .msite-lieux,
    .msite-countdown,
    .msite-confirm,
    .msite-footer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .msite-nous__grid,
    .msite-amour,
    .msite-person,
    .msite-person--alt {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .msite-person,
    .msite-person--alt {
        display: grid;
        justify-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.4rem 1rem;
    }

    .msite-person__bio {
        max-width: none;
    }

    .msite-person__photo {
        margin: 0 auto;
    }

    .msite-amour {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .msite-amour__text {
        max-width: none;
    }

    .msite-lieux {
        padding: 2.25rem 1.15rem 2.5rem;
    }

    .msite-confirm {
        min-height: 0;
        padding: 1.75rem 1rem 2rem;
    }

    .msite-confirm__panel {
        width: 100%;
        max-width: 100%;
    }

    .msite-countdown {
        min-height: 0;
        padding: 1.5rem 0.85rem;
    }

    .msite-countdown__grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .msite-footer {
        padding: 2rem 1.15rem 2.5rem;
    }
}

