@font-face {
	font-family: "Liturgie";
	src: url('liturgy.ttf');
}

*:not(input):not(textarea):not(select) {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#detect-area {
	background-color: #FF0000!important;
}

body {
	margin:0;
	padding: 0px;
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom);
	width: auto;
	font-family: serif!important;
}

/* Mystère / Participer / Chargement / À propos : masquer menus latéraux + icônes apps */
body.accueil-info-panel-active #all-menu-triggers-container,
#accueil.accueil-info-panel-mode #all-menu-triggers-container {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

:root {
    --fond-vitrail-mobile: url('../vitrail.jpg');
    --fond-vitrail-pc: url('../vitrail-paysage.jpg');
}

div.page__background {
    background-image: var(--fond-vitrail-mobile) !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    top: 0 !important;
    padding-top: 0 !important;
}

/* Sur PC, utiliser le fond paysage pour éviter le zoom flou */
@media (min-width: 768px) {
    div.page__background {
        background-image: var(--fond-vitrail-pc) !important;
        background-size: cover !important;
        background-position: center 20% !important;
        background-attachment: scroll !important;
    }
}

div.page__content {
	font-family: serif!important;
}

.card {
	padding-bottom: 3.2em!important;
}

/* pour centrer le calendrier */
div.picker__holder {
	margin: auto;
}

.barre-menu .select-input {
	color: #FFFFFF!important;
}

.barre-menu {
    height: auto;
}

.tabbar, .tabbar__button, .tabbar__label {
	height: 35px;
}
.tabbar__button, .tabbar__label {
	line-height: 35px!important;
	font-size: 0.9em!important;
	text-transform:none!important;
}
.tabbar__content {
	top: 35px;
}

/* 1. On rend la colonne centrale transparente pour libérer le vitrail */
.cadre {
    background: transparent !important; 
    width: 480px;
    margin: 0 auto;
    font-family: serif !important;
    padding: 10px !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. On redonne de la couleur et de la forme aux boutons (Lectures, Laudes, etc.) */
.audio-office-full-button {
    background-color: #8B4513 !important; /* Votre marron d'origine */
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 18px 15px !important;
    margin: 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 60px !important;
   }

/* 3. On corrige les boutons des Communs (ceux qui étaient devenus blancs) */
.communs-category-button, .communs-office-button {
    background-color: #050525 !important; /* Bleu marine d'origine */
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 15px !important;
    margin: 8px 0 !important;
    display: flex !important;
    min-height: 50px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6) !important;
}

/* 4. On s'assure que le texte sur les boutons est bien visible */
.audio-office-full-button .center, 
.button-text, 
.communs-category-button .center, 
.communs-office-button .center {
    color: white !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
}

.bouton_date {
	font-size: 0.9em;
}

.bouton_menu_g {
	font-size: 1em;
}

.switch-latin {
	text-align:right;
	font-size: 0.8em!important;
	font-style:italic!important;
}

.slider {
	width:95%;
	padding-left: 2.5%;
}

.nombre {
	width: 3.5em;
}

h1, h2, h3 {
	font-family:serif!important;
}

h1 {
	font-size:1.1em!important;
}

h2 {
	color:#BB0000;
	text-transform:uppercase;
	font-size:1em!important;
	margin-top:2em!important;
	font-weight:bold!important;
}

h2.cantique {
	color:black;
	text-transform:none;
	font-weight:normal!important;
	margin-bottom:0.6em!important;
}

h3 {
	font-size: 1em!important;
	font-weight: normal;
}

[id$="_titre_sanctoral"] h3 {
	margin-bottom: 10px;
}

[id$="_titre_sanctoral"] h3 + p {
	margin-top: 0;
}

p {
	text-align : justify;
}

.antienne {
	font-size:0.9em;
}

p.ref {
	font-size:0.9em;
	text-align : right;
	margin-top : 0em;
}

span.verset, .rouge {
	color:#BB0000;
}

span.verset {
	font-size:0.6em;
	vertical-align:text-top;
}

.espace {
	margin-left: 2em;
}

.center, .center p {
	text-align: center;
}

.center p.antienne {
	text-align: justify;
}

.droite {
	text-align: right;
}

.espace-dessous {
	margin-bottom:0.5em;
}

span.petit {
	font-size:0.6em;
}

span.liturgie {
	font-family: Liturgie;
	font-weight: bold;
	margin-right: 0.3em;
}

span.liturgie2 {
	font-family: Liturgie;
	font-size: 0.9em;
}

/* Style pour la barre du haut personnalisée */
.custom-header {
    background: transparent !important;
    color: white !important;
    font-style: normal !important;
    font-weight: bold !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6) !important;
    padding: 12px 15px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: none !important;
}

/* Ajustements de taille selon l'écran */

@media (max-width: 767px) {
    .custom-header .center {
        font-size: 16px !important;
    }
}

.custom-header .center {
	color: white !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
}

/* Styles pour les boutons audio sur la page d'accueil */
.audio-office-full-button {
    background: #8B4513; /* Marron sombre */
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 15px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    }

.audio-office-full-button:hover {
    background: #654321; /* Marron sombre plus foncé */
    transform: translateY(-3px);
   }

.audio-office-full-button:active {
    transform: translateY(0);
    }

.audio-office-full-button .center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 15px;
    color: white;
    width: 100%;
    padding: 0 15px;
    position: relative;
}

.button-text {
    flex: 1;
    text-align: left;
}

/* Styles pour les icônes de lecture - centrées */
.play-icon {
    font-size: 36px !important;
    color: white !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Styles pour les anciens boutons (maintenus pour compatibilité) */
.audio-office-item {
    position: relative;
}

.audio-office-label {
    font-weight: bold;
}

.audio-play-button {
    background: #0076ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.audio-play-button:hover {
    background: #031329;
}

.audio-play-button:active {
    transform: scale(0.95);
}

.audio-play-button ons-icon {
    font-size: 20px;
}

/* Styles pour les menus déroulants des communs */
.communs-submenu {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        margin-left: 0px !important; /* Pour bien centrer si besoin */
        animation: slideDown 0.3s ease-out;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.communs-category-header {
    /* Couleur sombre (bleu très foncé/noir) avec 60% d'opacité */
    background: rgba(5, 5, 37, 0.6) !important; 
    
    color: rgb(100, 178, 182) !important;
    font-size: 19px !important;
    
    /* On resserre le cadre autour du texte */
    display: inline-block !important;
    padding: 6px 20px !important;
    border-radius: 20px !important; /* Bords bien arrondis pour un style moderne */
    
    /* Centrage et espacement */
    margin: 15px auto !important;
    text-align: center !important;
    
    /* Optionnel : un léger flou derrière le cadre (effet Glassmorphism) */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* On s'assure que le conteneur Onsen n'interfère pas */
ons-list-header {
    background: transparent !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.communs-category-button {
    background: #050525; /* Bleu presque noir */
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.communs-category-button:hover {
    background: #040448; /* Bleu marine au hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.communs-category-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.communs-category-button .center {
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.communs-office-button {
    background: #0a0a4a; /* Bleu presque noir */
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    position: relative;
}

.communs-office-button:hover {
    background: #05052d; /* Bleu marine au hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.communs-office-button:active {
    transform: translateY(0);
    box-shadow: 1px -1px 0px 0px rgba(255, 255, 255, 0.5) !important;
}

.communs-office-button .center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    color: white;
    font-size: 16px;
    width: 100%;
    padding: 0 15px;
    position: relative;
}

/* Supprimer toutes les lignes, fonds blancs et bordures sur mobile et desktop */
ons-list, 
.list, 
ons-list-item, 
.list-item, 
.list-item__center, 
.list-item__background, 
.list-item__bottom {
    background-color: transparent !important; 
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
}

ons-list-item::after, 
ons-list-item::before, 
.list-item::after, 
.list-item::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
    border: none !important;
}

/* Assurer un arrière-plan transparent pour toute la page */
body, ons-page, .page__content, .page__background {
    background-color: transparent !important;
    background-image: none !important;
}

/* Supprimer les séparateurs de liste OnsenUI */
.list__item {
    border-bottom: none !important;
}

.list__item::after {
    display: none !important;
}

/* Assurer un arrière-plan blanc pour toute la page */
body {
    background-color: transparent !important;
}

ons-page {
    background-color: transparent !important;
}

/* Mode nuit - fond noir */
body.dark-mode {
    background-color: #121212 !important;
}

ons-page.dark-mode {
    background-color: #121212 !important;
}

.dark-mode .audio-office-full-button {
    background: #654321 !important; /* Marron plus sombre */
}

.dark-mode .communs-category-button,
.dark-mode .communs-office-button {
    background: #040427 !important; /* Bleu marine plus sombre */
}

.dark-mode .custom-header {
    background: linear-gradient(135deg, #4B0000, #660000) !important; /* Rouge plus sombre */
}

/* Styles adaptatifs pour tablette et PC */
/* Styles adaptatifs pour tablette et PC */
@media (min-width: 768px) {
    .custom-header {
        font-size: 24px !important;
        min-height: 70px !important;
        font-weight: bold !important;
    }

    .audio-office-full-button {
        padding: 25px 20px !important;
        margin: 12px 0 !important;
        min-height: 80px !important;
       }

    .audio-office-full-button .center {
        font-size: 16px !important;
    }

    .play-icon {
        font-size: 44px !important;
    }

    .communs-category-button,
    .communs-office-button {
        padding: 20px !important;
        margin: 8px 0 !important;
        min-height: 65px !important;
    }

    .communs-category-button .center,
    .communs-office-button .center {
        font-size: 20px !important;
    }

    ons-page .page__content {
        padding-top: 40px !important; 
    }
    
    ons-card {
        margin-top: 30px !important;
    }
} /* <--- ACCOLADE DE FERMETURE DU BLOC 768px AJOUTÉE ICI */

/* Styles spécifiques pour desktop (grands écrans) */
@media (min-width: 1024px) {
    .custom-header {
        font-size: 32px !important; /* Augmenté pour être bien visible sur PC */
        min-height: 80px !important;
        background: transparent !important;
}

    ons-toolbar {
        border-bottom: none !important;
        background-image: none !important;
    }
    

    .audio-office-full-button {
        padding: 30px 25px !important;
        margin: 25px auto !important; /* Espacement vertical augmenté */
        min-height: 100px !important;
        max-width: 600px;
        }

    .audio-office-full-button .center {
        font-size: 20px !important;
    }

    .play-icon {
        font-size: 52px !important;
    }

    /* On s'assure que le contenu descend bien sur PC */
    ons-page .page__content {
        padding-top: 60px !important; 
    }

    .communs-category-button,
    .communs-office-button {
        padding: 25px !important;
        margin: 15px auto !important;
        min-height: 75px !important;
        font-size: 20px !important;
        max-width: 600px;
    }


/* Styles pour mobile (petits écrans) */
@media (max-width: 767px) {
    .custom-header {
        font-size: 16px !important;
     font-weight: bold !important;
    }

    .play-icon {
        font-size: 32px !important;
    }
}
/* Supprime les lignes horizontales résiduelles */
.list-item__bottom, 
.list-item--tappable__bottom,
.list-item__center {
    border-bottom: none !important;
    background-image: none !important;
}

/* Supprime les soulignements dans les boutons s'il y en a */
.audio-office-full-button, 
.communs-office-button {
    text-decoration: none !important;
   }

/* Supprime les bordures Onsen UI par défaut sur les listes */
.list-item {
    border: none !important;
    background-image: none !important;
}
@media screen and (max-width: 480px) {
    .cadre {
        width: 95% !important; /* Laisse une petite marge pour voir le vitrail sur les bords */
    }
}
/* 1. On cible uniquement le fond de la page et du contenu global */
ons-page, .page__content, .page__background {
    background-color: transparent !important;
    background-image: none !important;
}

/* 2. On rend transparentes les listes Onsen UI qui créent le voile blanc central */
ons-list, .list, .list-item, .list-item__center {
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
}

/* 3. MAIS on force le maintien du marron pour les boutons uniquement */
.audio-office-full-button {
    background-color: rgba(200, 206, 243, 0.2) !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
 }

/* 4. Idem pour le bleu des communs */
.communs-category-button, .communs-office-button {
    background-color: #0f0f58 !important;
    opacity: 1 !important;
}
/* --- Correction du texte "Communs" --- */
ons-list-header, 
.list-header, 
.communs-category-header,
.communs-category-header * {
    background-color: transparent !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-transform: none !important;
    display: block !important;
    text-align: center !important;
    text-shadow: none !important;
}
/* --- Style pour le titre Communs (v46 - Aligné à gauche) --- */
#communs-menu-trigger .list-item__center {
    /* Fond sombre et transparence */
    background-color: rgba(5, 5, 37, 0.0) !important; 
    background-image: none !important;
    border: none !important;

    /* Police et couleur */
    color: white !important;
    font-size: 16px !important;
    font-weight: bold !important;
    
    /* Alignement à GAUCHE */
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
    
    /* Dimensions et marges */
    padding: 6px 15px !important; 
    border-radius: 12px !important;
    margin: 10px 0 10px 10px !important; /* Décollé du bord gauche de 10px */
    width: auto !important;
    min-width: 90px;
    display: inline-flex !important; /* Pour que le cadre s'adapte à la taille du mot */
}

/* Sécurité pour le texte à l'intérieur */
#communs-menu-trigger .list-item__center,
#communs-menu-trigger .list-item__center * {
    color: white !important;
    }
    /* FORCE LA SUPPRESSION DE L'ESPACE BLANC SOUS LA BARRE */
.page__content {
    top: 0 !important;
    padding-top: 44px !important; /* Taille exacte de la toolbar Onsen */
    margin-top: 0 !important;
}

/* Sur PC, Onsen rajoute parfois 64px, on le réduit à la taille de la barre */
@media (min-width: 768px) {
    .page__content {
        padding-top: 44px !important;
    }
}

/* Masquer la flèche de retour du splitter Onsen UI */
ons-splitter[data-device-back-button-handler-id] ons-icon[icon="md-arrow-left"] {
    display: none !important;
}

@media (min-width: 768px) {
    #btn-retour-home {
        display: block; /* Laisser le JS contrôler la visibilité, mais s'assurer que le display par défaut est block sur PC */
    }
}

/* Flèche retour (lecteur audio, cadre texte — style Communs) */
.player-back-fleche {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 2px 8px 6px 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.player-back-fleche-inner {
    color: white;
    font-size: 32px;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.player-back-fleche--large .player-back-fleche-inner {
    font-size: 64px;
}

#mini-player {
    overflow: visible;
}

#player-back-btn.mini-player-back {
    position: absolute;
    top: auto !important;
    left: max(6px, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    transform: none;
    z-index: 1;
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

#player-back-btn.mini-player-back .player-back-fleche-inner {
    color: #ffffff !important;
    font-size: 40px;
    font-style: italic;
    font-weight: normal;
    line-height: 1;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    background: transparent !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

#mini-player #audio-progress {
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    #player-back-btn.mini-player-back .player-back-fleche-inner {
        font-size: 44px;
    }
}

.office-share-corner {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
}

.office-share-corner ons-icon {
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
}

.office-share-corner:active {
    opacity: 0.85;
    transform: scale(0.96);
}

#office-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

#office-share-sheet.is-open {
    display: flex;
}

.office-share-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.office-share-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 16px 14px 12px;
    background: var(--od-card, #fffdf9);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    font-family: system-ui, sans-serif;
}

.office-share-sheet__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #2d2118;
    text-align: center;
}

.office-share-sheet__grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.office-share-sheet__grid button,
.office-share-sheet__grid a,
.share-sheet__grid button {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--od-line, #e8dccd);
    border-radius: 12px;
    background: var(--od-soft, #f3e8d8);
    color: var(--od-ink, #2d2118);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
}

.office-share-sheet__grid a:visited {
    color: #2d2118;
}

.office-share-sheet__cancel {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #6d5f52;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
}

.share-sheet__loading {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #6d5f52;
    text-align: center;
}

/* Palette encadrés PWA Office (identique à Où adorer) */
.adoration-share-sheet,
.install-pwa-sheet,
#office-share-sheet {
    --od-card: #fffdf9;
    --od-ink: #2d2118;
    --od-muted: #6d5f52;
    --od-line: #e8dccd;
    --od-soft: #f3e8d8;
    --od-accent-strong: #513319;
    --od-carte-blue: #4f7dbd;
}

/* Feuille d’installation PWA (même logique / styles que Adoration) */
.adoration-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 100003;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.adoration-share-sheet.is-open {
    display: flex;
}

.adoration-share-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.adoration-share-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: min(85vh, 520px);
    overflow-y: auto;
    border-radius: 16px;
    padding: 16px 14px 12px;
    background: var(--od-card, #fffdf9);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.22);
    font-family: system-ui, sans-serif;
    text-align: left;
}

.adoration-share-sheet__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #2d2118;
    text-align: center;
}

.adoration-share-sheet__cancel {
    margin-top: 8px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #6d5f52;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font: inherit;
}

.install-pwa-sheet .install-pwa-sheet__panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    max-height: min(92dvh, calc(100dvh - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    text-align: left;
}

.install-pwa-sheet__body {
    margin: 0;
    padding: 0 0 6px;
}

.install-pwa-sheet__p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--od-ink, #2d2118);
}

.install-pwa-sheet__p:last-child {
    margin-bottom: 0;
}

.install-pwa-sheet__steps {
    line-height: 1.55;
}

.install-pwa-sheet__step-final-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    width: 100%;
    margin-top: 0.1em;
}

.install-pwa-sheet__panel-box {
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid var(--od-line, #e8dccd);
    border-radius: 14px;
    background: var(--od-card, #fffdf9);
    box-shadow: 0 1px 4px rgba(45, 33, 24, 0.06);
}

.install-pwa-sheet__panel-box[hidden] {
    display: none !important;
}

.install-pwa-sheet__platform-lead {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--od-ink, #2d2118);
}

.install-pwa-sheet__p--desktop-only {
    margin: 0;
    text-align: center;
    color: var(--od-ink, #2d2118);
}

.install-pwa-sheet__p--after-steps {
    margin-top: 14px;
}

.install-pwa-sheet__p--note-block {
    margin-top: 2em;
}

.install-pwa-sheet__menu-glyphs--bold {
    font-weight: 800;
}

.install-pwa-sheet__share-glyph-wrap {
    display: inline-flex;
    vertical-align: -0.28em;
    margin: 0 0.05em;
    color: var(--od-accent-strong, #513319);
}

.install-pwa-sheet__open-browser-link {
    font-weight: 600;
    color: var(--od-carte-blue, #4f7dbd);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.install-pwa-sheet__open-browser-link:active {
    opacity: 0.85;
}

.install-pwa-sheet__menu-glyphs {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-left: 0.2em;
    vertical-align: middle;
    color: var(--od-accent-strong, #513319);
    line-height: 0;
}

.install-pwa-sheet__menu-glyph {
    display: block;
    flex-shrink: 0;
}

.install-pwa-sheet__menu-or {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--od-muted, #6d5f52);
    line-height: 1;
}

.install-pwa-sheet__share-glyph {
    display: inline-block;
    vertical-align: -0.28em;
    margin: 0 0.12em;
    color: var(--od-accent-strong, #513319);
}

.install-pwa-sheet__office-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin: 0 0.1em;
    padding: 0.1em 0.35em 0.1em 0.15em;
    border-radius: 8px;
    color: var(--od-accent-strong, #513319);
    font-weight: 400;
    text-decoration: none;
    vertical-align: middle;
    line-height: 1.2;
}

.install-pwa-sheet__office-link strong {
    font-weight: 700;
}

.install-pwa-sheet__office-link:active {
    opacity: 0.85;
}

.install-pwa-sheet__office-link-icon {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.about-back {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    z-index: 26;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    color: white;
    font-weight: 800;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
}

.about-back svg {
    display: block;
}

.about-back:active {
    background: rgba(0, 0, 0, 0.35);
}

.about-back.about-back--above-sheet {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    left: auto;
    right: auto;
    bottom: auto;
    flex-shrink: 0;
    align-self: flex-start;
    z-index: 2;
    margin: 0 0 8px;
}

#texte-en-cours-back {
    display: none;
    position: fixed;
    z-index: 45001;
    pointer-events: auto;
    top: calc(132px - 36px);
    left: max(15px, calc(50vw - min(250px, calc(50vw - 15px))));
    padding: 0 8px 4px 2px;
}

#texte-en-cours-back.visible {
    display: inline-flex;
}

@media (min-width: 768px) {
    #texte-en-cours-back {
        top: calc(150px - 36px);
    }
}

.office-background-hint {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 100010;
    width: min(92vw, 360px);
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

.office-background-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.office-background-hint__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    font-family: serif;
}

.install-pwa-close-hint {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 100004;
    width: min(92vw, 360px);
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

.install-pwa-close-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.install-pwa-close-hint__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    font-family: serif;
}

.pwa-home-banner {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 100003;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(92vw, 360px);
    padding: 14px 14px 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-sizing: border-box;
}

.pwa-home-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.pwa-home-banner__text {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    font-family: serif;
}

.pwa-home-banner__dismiss {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font: 700 1.35rem/1 system-ui, sans-serif;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pwa-home-banner__dismiss:active {
    color: #1a1a1a;
}
