/* =========================================================
   Vivre Megève — Thème générique (Bootstrap-friendly)
   ========================================================= */


/* vm-theme.css */
.m-0 {
    margin: 0 !important;
}



:root {
    --vm-red: #C71F2D;
    --vm-grey: #f5f5f5;
    --vm-text: #0f0f0f;
    --vm-container: 1100px;

    /* Footer dark */
    --vm-dark: #0e1116;
    --vm-dark-2: #12161d;
    --vm-dark-3: #1b212a;
    --vm-muted: #a7b0be;
    --vm-border: #232a33;
}

/* ------------ Base typo : Poppins corps / Oswald titres ------------ */
html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--vm-text);
    background: #fff;
    font-size: 16px;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6,
.vm-banner h1,
.vm-banner h2,
.vm-banner h3,
.nav-link {
    font-family: "Oswald", sans-serif;
    /* titres + nav */
}

/* -------------------- Conteneur -------------------- */
.vm-container {
    max-width: var(--vm-container);
    margin: 0 auto;
    padding: 0 14px;
}

/* -------------------- Bandeau rouge -------------------- */
.vm-banner {
    background: var(--vm-red);
    color: #fff;
    padding: 28px 0;
    margin: 0;
}

.vm-banner h1,
.vm-banner h2,
.vm-banner h3 {
    margin: 0;
    font-weight: 700;
}

/* Petite respiration entre bandeau et contenu */
.vm-content-top {
    margin-top: 18px;
}

/* -------------------- Cartes -------------------- */
.vm-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

/* -------------------- Grilles simples -------------------- */
.vm-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 960px) {
    .vm-grid-2 {
        grid-template-columns: 2fr 1fr;
    }

    .vm-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   Boutons — principal rouge (style “pill”)
   (unifie .vm-btn, .btn-primary, .primary-button)
   ========================================================= */
.vm-btn,
.btn-primary,
.primary-button {
    display: inline-block;
    background: var(--vm-red);
    color: #fff;
    border: 0;
    border-radius: 999px;
    /* pill */
    padding: 14px 26px;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.1;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow: 0 8px 18px rgba(199, 31, 45, .25);
}

/* hover/active/focus harmonisés */
.vm-btn:hover,
.btn-primary:hover,
.primary-button:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(199, 31, 45, .28);
}

.vm-btn:active,
.btn-primary:active,
.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(199, 31, 45, .22);
}

.vm-btn:focus-visible,
.btn-primary:focus-visible,
.primary-button:focus-visible {
    outline: 3px solid rgba(199, 31, 45, .35);
    outline-offset: 2px;
}

/* Variantes pratiques + centrage actions */
.vm-btn-lg {
    padding: 16px 28px;
    font-size: 1.15rem;
}

.vm-btn-block {
    width: 100%;
}

@media (max-width: 640px) {

    .vm-btn,
    .btn-primary,
    .primary-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
    }
}

.actions {
    display: flex;
    justify-content: center;
}

/* Neutralise la bordure du fieldset (le “cadre noir”) */
form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: auto;
    /* évite la min-width par défaut sur certains navigateurs */
}

/* -------------------- Utilitaires -------------------- */
.text-muted-600 {
    color: #6b7280;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.sns-shrink {
    height: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   Footer DARK — COMPACT (logo + pitch + contact)
   ========================================================= */
.vm-footer {
    background: #0e1116;
    /* sobre et franc */
    color: #e8edf4;
    border-top: 1px solid rgba(199, 31, 45, .25);
    padding: 24px 0;
    text-align: center;

    /* OPTIONNEL : espace avant le footer – si c'est seulement pour certaines pages,
       déplace plutôt cette marge dans le CSS de page concernée. */
    margin-top: 1cm;
}

.vm-footer-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.vm-footer-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* Texte court (pitch) */
.vm-foot-text {
    margin: 0;
    font-size: .9rem;
    color: #a7b0be;
    max-width: 640px;
}

/* Contact (téléphone + adresse) */
.vm-foot-contact {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #c9d3df;
    font-size: .95rem;
    line-height: 1.4;
}

/* =========================================================
   Accessibilité (utile partout)
   ========================================================= */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
  Bouton toggle mot de passe (utilitaire)
  ========================================================*/
.password-toggle {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vm-red);
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 12px;
    padding: 2px 8px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.password-toggle:hover {
    background: var(--vm-red);
    color: #fff;
    border-color: var(--vm-red);
    text-decoration: none;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(199, 31, 45, 0.25);
}






/* =========================================================
  PWA
  ========================================================*/
.pwa-install-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0e1116;
    color: #e8edf4;
    border-top: 1px solid rgba(199, 31, 45, .3);
    z-index: 9999;
    padding: 10px;
    font-size: 14px;
}

.pwa-install-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.pwa-actions {
    display: flex;
    gap: 8px;
}

.pwa-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: transparent;
    color: #e8edf4;
    cursor: pointer;
}

.pwa-btn.pwa-ok {
    background: #C71F2D;
    border-color: #C71F2D;
    color: #fff;
}

@media (display-mode: standalone) {
    .pwa-install-bar {
        display: none;
    }
}




/* ===== Modale Bootstrap "crop" au-dessus du header ===== */
.modal-backdrop {
    z-index: 200000 !important;
}

/* voile au-dessus du header */
#cropModal.modal {
    z-index: 200001 !important;
}

/* contenu au-dessus du voile */

/* Structure responsive : occupe tout le viewport sur mobile */
#cropModal .modal-dialog {
    margin: 0;
}

#cropModal .modal-content {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    /* plein viewport mobile */
    max-height: 100dvh;
}

@media (min-width: 576px) {
    #cropModal .modal-content {
        height: auto;
        max-height: calc(100dvh - 2rem);
    }
}

#cropModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    /* clé pour que l'overflow fonctionne */
    overflow: hidden;
    /* pas de débordement */
    padding: 0;
    /* pas de padding pour laisser toute la place à l'image */
    display: grid;
    place-items: center;
}

/* L'image remplit la zone dispo sans dépasser (largeur OU hauteur) */
#cropModal #cropImage {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    /* prend 100% en hauteur ou largeur, le premier au bord */
    display: block;
    touch-action: none;
    /* pas de conflit gestes vs cropper */
}