﻿body {

    font-family: "Century Gothic"!important;
}


/* =====================================================================
   DESCRIPTIF BTOC – feuille commune (Site.css)
   ---------------------------------------------------------------------
   Tout repose sur les classes "dv-" ajoutées dans Index.cshtml.
   Chaque compte personnalise sa page dans ~/Content/<Compte>.css
   en surchargeant simplement les variables ci-dessous, par exemple :

       .dv-page {
           --dv-primary: #0a6e3c;
           --dv-cta: #d35400;
       }
   ===================================================================== */

/* ---------- 1. Variables (thème par défaut) ---------- */
.dv-page {
    --dv-bg: #f4f6f8; /* fond de page */
    --dv-surface: #ffffff; /* fond des cartes */
    --dv-ink: #10212b; /* texte principal */
    --dv-muted: #5b6b75; /* texte secondaire */
    --dv-line: #e3e8eb; /* filets */
    --dv-primary: #004b6c; /* couleur de marque (titres, liens) */
    --dv-primary-soft: #e3eef2; /* fond teinté de la couleur de marque */
    --dv-accent: #b60057; /* petite touche de couleur sur les titres */
    --dv-cta: #b60057; /* bouton Réserver */
    --dv-cta-hover: #8f0045;
    --dv-cta-text: #ffffff;
    --dv-radius: 16px;
    --dv-shadow: 0 1px 2px rgba(16, 33, 43, .04), 0 8px 24px rgba(16, 33, 43, .06);
    --dv-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --dv-font-title: var(--dv-font);
    --dv-maxw: 1040px; /* largeur max du contenu */
}

body {
    background: #f4f6f8;
    margin: 0;
}

.dv-page {
    background: var(--dv-bg);
    color: var(--dv-ink);
    font-family: var(--dv-font);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 48px;
}

    .dv-page a {
        color: var(--dv-primary);
    }

        .dv-page a:hover {
            color: var(--dv-ink);
        }

    /* ---------- 2. Bandeau : logo + titre complet (défile avec la page) ---------- */
    .dv-page .dv-header {
        position: static;
        height: auto;
        width: 100%;
        background: var(--dv-surface);
    }

    .dv-page .dv-header__inner {
        max-width: var(--dv-maxw);
        margin: 0 auto;
        padding: 18px 24px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left !important; /* annule .text-center de Bootstrap */
    }

    .dv-page .dv-header__logo {
        height: 56px;
        width: auto;
        max-width: 180px;
        object-fit: contain;
        flex: none;
    }

    .dv-page .dv-header__title {
        flex: 1 1 0;
        min-width: 0;
        margin: 0 !important;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        text-align: left !important;
        color: var(--dv-ink);
        font-family: var(--dv-font-title);
    }

    .dv-page .dv-header__type {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--dv-primary);
    }

        .dv-page .dv-header__type:empty {
            display: none;
        }

    .dv-page .dv-header__libelle {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -.01em;
        color: var(--dv-ink);
        overflow-wrap: anywhere; /* titre toujours affiché en entier */
    }

    /* ---------- 2 bis. Barre menu + Réserver (ligne distincte, collée en haut) ---------- */
    .dv-page .dv-menu {
        position: sticky;
        top: 0;
        z-index: 1020;
        background: rgba(255, 255, 255, .96);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--dv-line);
        border-bottom: 1px solid var(--dv-line);
    }

    .dv-page .dv-menu__inner {
        max-width: var(--dv-maxw);
        margin: 0 auto;
        padding: 0 24px;
        min-height: 64px;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .dv-page .dv-nav {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-self: stretch;
        gap: 4px;
        margin-left: -12px;
        overflow-x: auto;
        scrollbar-width: none; /* défile au doigt sur mobile, sans barre */
    }

        .dv-page .dv-nav::-webkit-scrollbar {
            display: none;
        }

        /* menu trop long : fondu à droite pour signaler les liens cachés */
        .dv-page .dv-nav.is-overflowing {
            -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
        }

    .dv-page .dv-nav__link {
        flex: none;
        display: inline-flex;
        align-items: center;
        padding: 0 12px;
        border-bottom: 3px solid transparent;
        color: var(--dv-muted);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
        transition: color .15s, border-color .15s;
    }

        .dv-page .dv-nav__link:hover {
            color: var(--dv-ink);
            border-bottom-color: var(--dv-line);
        }

        .dv-page .dv-nav__link.is-active {
            color: var(--dv-primary);
            border-bottom-color: var(--dv-accent);
        }

        .dv-page .dv-nav__link:focus-visible {
            outline: 3px solid var(--dv-primary-soft);
            outline-offset: -3px;
        }

/* les rubriques ne passent pas sous la barre quand on clique dans le menu */
html {
    scroll-behavior: smooth;
}

.dv-page .dv-section {
    scroll-margin-top: 84px;
}

/* ---------- 3. Bouton Réserver (dans la barre, à droite) ---------- */
.dv-page .dv-booking {
    position: static;
    flex: none;
    margin-left: auto;
    padding: 8px 0;
}

.dv-page .dv-booking__inner {
    font-weight: inherit;
}

.dv-page .dv-booking__btn {
    width: auto;
    min-width: 150px;
    min-height: 46px;
    padding: 10px 28px;
    border: 0;
    border-radius: 999px;
    background-color: var(--dv-cta);
    color: var(--dv-cta-text);
    font-family: var(--dv-font);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background-color .15s, transform .15s;
}

    .dv-page .dv-booking__btn:hover,
    .dv-page .dv-booking__btn:focus-visible {
        background-color: var(--dv-cta-hover);
        color: var(--dv-cta-text);
        transform: translateY(-1px);
    }

    .dv-page .dv-booking__btn:focus-visible {
        outline: 3px solid var(--dv-primary-soft);
        outline-offset: 2px;
    }

/* ---------- 4. Corps (ancien .body-content décalé de 245px) ---------- */
.dv-page .dv-body {
    position: static;
    top: auto;
    height: auto;
    padding-top: 24px;
}

.dv-page .dv-gallery-wrap,
.dv-page .dv-content,
.dv-page .dv-booking-frame {
    max-width: var(--dv-maxw);
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- 5. Photos : mosaïque + visionneuse ---------- */
.dv-page .dv-gallery {
    margin: 0 0 24px;
}

    .dv-page .dv-gallery > .col {
        padding: 0;
    }

/* Mosaïque : 1 grande + 4 petites (s'adapte de 1 à 5 photos) */
.dv-page .dv-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 8px;
    border-radius: var(--dv-radius);
    overflow: hidden;
}

.dv-page .dv-gallery__tile {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #dfe6ea;
    cursor: zoom-in;
}

.dv-page .dv-gallery__tile--main {
    grid-column: span 2;
    grid-row: span 2;
}

.dv-page .dv-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform .4s ease, filter .2s;
}

.dv-page .dv-gallery__tile:hover .dv-gallery__img {
    transform: scale(1.04);
}

.dv-page .dv-gallery__tile:focus-visible {
    outline: 3px solid var(--dv-primary);
    outline-offset: -3px;
}

/* 1 photo */
.dv-page .dv-gallery[data-count="1"] .dv-gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
}

.dv-page .dv-gallery[data-count="1"] .dv-gallery__tile--main {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 9;
}
/* 2 photos : côte à côte */
.dv-page .dv-gallery[data-count="2"] .dv-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 360px;
}

.dv-page .dv-gallery[data-count="2"] .dv-gallery__tile--main {
    grid-column: auto;
    grid-row: auto;
}
/* 3 photos : 1 grande à gauche, 2 empilées à droite */
.dv-page .dv-gallery[data-count="3"] .dv-gallery__grid {
    grid-template-columns: 2fr 1fr;
}

.dv-page .dv-gallery[data-count="3"] .dv-gallery__tile--main {
    grid-column: auto;
}
/* 4 photos : la dernière occupe toute la largeur de droite */
.dv-page .dv-gallery[data-count="4"] .dv-gallery__tile:last-child {
    grid-column: span 2;
}

/* Pastilles sur les photos */
.dv-page .dv-gallery__badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(16, 33, 43, .86);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.dv-page .dv-gallery__badge--all {
    background: rgba(255, 255, 255, .95);
    color: var(--dv-ink);
    box-shadow: 0 4px 12px rgba(16, 33, 43, .2);
}

.dv-page .dv-gallery__badge--counter {
    display: none;
}
/* visible seulement sur mobile */

.dv-page .dv-gallery__note {
    text-align: left !important;
    margin-top: 8px;
    color: var(--dv-muted);
    font-size: 12px;
}

.dv-page .dv-gallery--empty {
    display: none;
}

/* Visionneuse plein écran (modale Bootstrap) */
.dv-lightbox {
    background: rgba(8, 14, 18, .55);
}

    .dv-lightbox .modal-dialog {
        max-width: min(1200px, 94vw);
    }

.dv-lightbox__content {
    position: relative;
    background: #0d1a22;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.dv-lightbox__img {
    width: 100%;
    height: min(80vh, 760px);
    object-fit: contain;
    background: #0d1a22;
}

.dv-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .14);
    background-size: 14px;
    opacity: 1;
}

    .dv-lightbox__close:hover {
        background-color: rgba(255, 255, 255, .28);
    }

.dv-lightbox__nav {
    width: 80px;
    opacity: 1;
}

    .dv-lightbox__nav .carousel-control-prev-icon,
    .dv-lightbox__nav .carousel-control-next-icon {
        width: 48px;
        height: 48px;
        border-radius: 999px;
        background-color: rgba(255, 255, 255, .92);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 22px 22px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    }

    .dv-lightbox__nav .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310212b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E");
    }

    .dv-lightbox__nav .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310212b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
    }

        /* supprime d'éventuels anciens chevrons texte "<" ">" d'un CSS de compte */
        .dv-lightbox__nav .carousel-control-prev-icon::after,
        .dv-lightbox__nav .carousel-control-next-icon::after {
            content: none;
        }

.dv-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- 6. Rubriques ---------- */
.dv-page .dv-section {
    margin: 0 0 16px;
    padding: 28px 32px;
    background: var(--dv-surface);
    border-radius: var(--dv-radius);
    box-shadow: var(--dv-shadow);
}

    .dv-page .dv-section > .col {
        padding: 0;
    }

.dv-page .dv-section__title {
    margin: 0 0 16px;
    padding: 0;
    background: none;
    color: var(--dv-ink);
    text-align: left;
    font-family: var(--dv-font-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

    .dv-page .dv-section__title::before {
        content: "";
        display: block;
        width: 32px;
        height: 4px;
        margin-bottom: 12px;
        border-radius: 4px;
        background: var(--dv-accent);
    }

.dv-page .dv-section__body {
    margin: 0 !important; /* annule .mb-5 */
    padding: 0 !important; /* annule .ps-3 */
}

/* rubriques vides : masquées */
.dv-page .dv-section--empty {
    display: none;
}

/* Compris / non compris : pastille de couleur sur le titre */
.dv-page .dv-section--comprend .dv-section__title::before {
    background: #1b7a4b;
}

.dv-page .dv-section--comprend-pas .dv-section__title::before {
    background: #a2461a;
}

/* Point de contact et PMR : couleur de marque (le brun-orangé est réservé à "non inclus") */
.dv-page .dv-section--point-contact .dv-section__title::before,
.dv-page .dv-section--pmr .dv-section__title::before {
    background: var(--dv-primary);
}


/* ---------- 7. "Votre voyage" ---------- */
.dv-page .dv-voyage {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .dv-page .dv-voyage br {
        display: none;
    }

.dv-page .dv-voyage__item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: .3em;
    padding-left: 30px;
    position: relative;
    color: var(--dv-muted);
}

    .dv-page .dv-voyage__item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 2px;
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        background-size: 20px 20px;
    }

.dv-page .dv-voyage__item--organisateur::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004b6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3C/svg%3E");
}

.dv-page .dv-voyage__item--participants::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004b6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.5 3.4-5.5 6.5-5.5s5.7 2 6.5 5.5'/%3E%3Ccircle cx='17' cy='9' r='2.5'/%3E%3Cpath d='M17 14.5c2.3 0 4 1.5 4.5 4'/%3E%3C/svg%3E");
}

.dv-page .dv-voyage__value {
    color: var(--dv-ink);
    font-weight: 600;
}

.dv-page .dv-voyage__item--empty {
    display: none;
}

/* ---------- 8. Contenu venant de la base (HTML Word) ---------- */
.dv-page .dv-rich {
    font-size: 15.5px;
    line-height: 1.65;
    color: #2c3b45;
    overflow-wrap: anywhere;
}

    /* une seule police, quelle que soit celle collée depuis Word */
    .dv-page .dv-rich,
    .dv-page .dv-rich * {
        font-family: inherit !important;
    }

        .dv-page .dv-rich p,
        .dv-page .dv-rich span,
        .dv-page .dv-rich li,
        .dv-page .dv-rich td {
            font-size: inherit !important;
            line-height: inherit !important;
        }

        .dv-page .dv-rich p {
            margin: 0 0 6px !important;
            text-indent: 0 !important;
        }

        .dv-page .dv-rich [style*="color"] {
            color: inherit !important;
        }

        .dv-page .dv-rich [style*="background"] {
            background: transparent !important;
        }

        .dv-page .dv-rich b,
        .dv-page .dv-rich strong {
            color: var(--dv-ink);
            font-weight: 700;
        }

        .dv-page .dv-rich h1,
        .dv-page .dv-rich h2,
        .dv-page .dv-rich h3,
        .dv-page .dv-rich h4 {
            font-size: 17px !important;
            font-weight: 700;
            color: var(--dv-ink);
            margin: 20px 0 8px;
        }

        .dv-page .dv-rich ul,
        .dv-page .dv-rich ol {
            padding-left: 22px;
            margin: 0 0 12px;
        }

        .dv-page .dv-rich li {
            margin-bottom: 4px;
        }

        .dv-page .dv-rich img {
            max-width: 100%;
            height: auto;
        }

            /* images locales de Word (file:///…clip_image) : jamais visibles chez l'internaute */
            .dv-page .dv-rich img[src^="file:"] {
                display: none;
            }

        /* tableaux */
        .dv-page .dv-rich table {
            width: 100% !important;
            margin: 10px 0 18px !important;
            border-collapse: separate !important;
            border-spacing: 0;
            border: 1px solid var(--dv-line) !important;
            border-radius: 12px;
            overflow: hidden;
            display: block; /* permet le défilement horizontal… */
            overflow-x: auto;
        }

        .dv-page .dv-rich tbody,
        .dv-page .dv-rich thead {
            display: table;
            width: 100%;
        }
        /* …tout en gardant la largeur pleine */

        .dv-page .dv-rich td,
        .dv-page .dv-rich th {
            width: auto !important;
            padding: 10px 14px !important;
            border: 0 !important;
            border-top: 1px solid var(--dv-line) !important;
            vertical-align: top;
        }

        .dv-page .dv-rich tr:first-child td,
        .dv-page .dv-rich tr:first-child th {
            border-top: 0 !important;
            background: var(--dv-bg) !important;
            font-weight: 600;
            color: var(--dv-ink);
        }

        .dv-page .dv-rich td p {
            margin: 0 !important;
        }

/* ---------- 9. Formulaire de réservation (iframe) ---------- */
.dv-page .dv-booking-frame {
    padding-top: 8px;
}

.dv-page .dv-booking-frame__iframe {
    width: 100%;
    height: 80vh !important;
    min-height: 640px;
    border: 0;
    border-radius: var(--dv-radius);
    background: var(--dv-surface);
    box-shadow: var(--dv-shadow);
}

/* ---------- 10. Tablette ---------- */
@media (max-width: 991.98px) {
    .dv-page .dv-header__libelle {
        font-size: 20px;
    }

    .dv-page .dv-gallery__grid {
        grid-auto-rows: 160px;
    }
}

/* ---------- 11. Mobile : bouton Réserver en barre fixe en bas ---------- */
@media (max-width: 767.98px) {
    .dv-page {
        padding-bottom: 96px;
    }

        .dv-page .dv-header__inner {
            padding: 14px 16px;
            gap: 12px;
        }

        .dv-page .dv-header__logo {
            height: 40px;
            max-width: 110px;
        }

        .dv-page .dv-header__libelle {
            font-size: 17px;
        }

        /* pas de flou ici : il empêcherait le bouton "position: fixed" de se caler en bas de l'écran */
        .dv-page .dv-menu {
            background: var(--dv-surface);
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }

        .dv-page .dv-menu__inner {
            padding: 0 4px;
            min-height: 52px;
        }
            /* page sans rubrique : la barre ne contient plus que le bouton (parti en bas) → on la replie */
            .dv-page .dv-menu__inner:not(:has(.dv-nav)) {
                min-height: 0;
            }

        .dv-page .dv-menu:not(:has(.dv-nav)) {
            border: 0;
        }

        .dv-page .dv-nav {
            margin-left: 0;
        }

        .dv-page .dv-nav__link {
            font-size: 14px;
        }

        .dv-page .dv-section {
            scroll-margin-top: 68px;
        }

        /* Réserver : barre fixe en bas de l'écran */
        .dv-page .dv-booking {
            position: fixed;
            top: auto;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1030;
            margin: 0;
            padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
            background: var(--dv-surface);
            border-top: 1px solid var(--dv-line);
            box-shadow: 0 -8px 24px rgba(16, 33, 43, .08);
        }

        .dv-page .dv-booking__btn {
            width: 100%;
            border-radius: 14px;
        }

        .dv-page .dv-gallery-wrap,
        .dv-page .dv-content,
        .dv-page .dv-booking-frame {
            padding-left: 12px;
            padding-right: 12px;
        }

        /* Photos : seule la grande est affichée, avec le compteur "1 / N" ; le reste dans la visionneuse */
        .dv-page .dv-gallery__grid,
        .dv-page .dv-gallery[data-count] .dv-gallery__grid {
            grid-template-columns: 1fr;
            grid-auto-rows: auto;
            border-radius: 12px;
        }

        .dv-page .dv-gallery__tile:not(.dv-gallery__tile--main) {
            display: none;
        }

        .dv-page .dv-gallery .dv-gallery__tile--main {
            grid-column: auto;
            grid-row: auto;
            aspect-ratio: 4 / 3;
        }

        .dv-page .dv-gallery__badge--counter {
            display: inline-block;
        }

    .dv-lightbox .modal-dialog {
        margin: 0;
        max-width: none;
        min-height: 100%;
    }

    .dv-lightbox__content {
        border-radius: 0;
        min-height: 100vh;
        justify-content: center;
    }

    .dv-lightbox__img {
        height: auto;
        max-height: 85vh;
    }

    .dv-lightbox__nav {
        width: 56px;
    }

        .dv-lightbox__nav .carousel-control-prev-icon,
        .dv-lightbox__nav .carousel-control-next-icon {
            width: 40px;
            height: 40px;
        }

    .dv-page .dv-section {
        padding: 22px 18px;
        border-radius: 12px;
    }

    /* tableaux : largeur minimale, on fait défiler horizontalement plutôt que d'écraser les colonnes */
    .dv-page .dv-rich tbody,
    .dv-page .dv-rich thead {
        min-width: 520px;
    }

    .dv-page .dv-section__title {
        font-size: 20px;
    }
}

/* ---------- 12. Accessibilité : moins d'animations si demandé ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .dv-page * {
        transition: none !important;
    }
}
