/* =========================================================
   MAKENA VOYAGES - Cap-Vert
   Feuille principale. Reprend la DA du site voilier
   (_ref/css/makena.css) : prefixe mk-, Playfair Display pour
   les titres, DM Sans pour le texte, sable et ocean.
   Elle est etendue pour un catalogue de 160 excursions :
   grille de cartes, filtres, pagination, fiche activite,
   module de reservation, selecteur de langue.

   Ordre de chargement attendu dans les pages :
     assets/css/makena.css   (ce fichier)
     assets/css/i18n.css     (selecteur de langue)

   Regles maison appliquees ici :
   - mobile d'abord, 375px comme base de travail ;
   - aucune regle font-style: italic ;
   - aucun bouton flottant, aucune carte qui decolle au survol
     (le survol ne joue que sur la couleur, la bordure et l'ombre) ;
   - cibles tactiles de 44px minimum ;
   - aucun debordement horizontal possible.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Marque : ocean et sable (inchange) */
    --ocean-deep: #0B3954;
    --ocean-mid: #1B6B93;
    --ocean-light: #4FC0D0;
    --ocean-pale: #D4F1F9;
    --sand-white: #FBF7F0;
    --sand-warm: #F5EDE0;
    --sand-mid: #E8DCC8;
    --coral: #E07A5F;
    --coral-hover: #C96A52;
    --coral-light: #FDE8E0;
    --sunset: #F2CC8F;

    /* Neutres */
    --ink: #1A2A3A;
    --ink-light: #3D5467;
    --ink-muted: #6B8299;
    --ink-faint: #9BB0C4;
    --border: #D9CEBD;
    --border-soft: #EAE1D2;
    --white: #FFFFFF;

    /* Etats */
    --success: #2D7A4F;
    --success-bg: #E8F5EB;
    --warn: #9A6B12;
    --warn-bg: #FFF6E2;
    --danger: #B4231A;
    --danger-bg: #FDECEA;
    --star: #F5B731;

    /* Ombres */
    --shadow-sm: 0 1px 4px rgba(11,57,84,0.06);
    --shadow-md: 0 4px 16px rgba(11,57,84,0.08);
    --shadow-lg: 0 12px 32px rgba(11,57,84,0.12);
    --shadow-card: 0 2px 12px rgba(11,57,84,0.07);

    /* Typographie */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Rayons */
    --r-sm: 8px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;

    /* Gabarit */
    --max-w: 1360px;
    --gutter: 20px;
    --header-h: 64px;
    --tap: 44px;               /* cible tactile minimale */
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--sand-white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* Aucun italique sur tout le site, y compris les balises qui en
   posent par defaut. La mise en valeur passe par la couleur et la graisse. */
em, i, cite, address, dfn, var { font-style: normal; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--ocean-deep); }

/* Echelle de titres nommee. Les pages sont generees : sans ces classes, un
   titre pose hors d'un bloc connu (.mk-block, .mk-section-header) sortirait
   sans aucune marge, et l'erreur se repeterait sur 163 fiches fois 5 langues.
   La marge haute est annulee en premier element de son conteneur. */
.mk-h1 { font-size: 27px; margin: 0 0 14px; }
.mk-h2 { font-size: 22px; margin: 32px 0 12px; }
.mk-h3 { font-size: 18px; margin: 24px 0 10px; }
.mk-h2:first-child, .mk-h3:first-child { margin-top: 0; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.mk-narrow { max-width: 760px; }

/* Accessibilite */
.mk-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ocean-deep);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 0 0 var(--r-sm) 0;
    font-weight: 700;
}
.mk-skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--ocean-mid); outline-offset: 2px; }

.mk-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

[hidden] { display: none !important; }

/* ==============================================
   EN-TETE
   ============================================== */

.mk-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(251,247,240,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(217,206,189,0.6);
    transition: box-shadow 0.3s ease;
}
.mk-header.is-scrolled { box-shadow: var(--shadow-md); }

.mk-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--header-h);
}

.mk-logo { display: flex; flex-direction: column; justify-content: center; min-height: var(--tap); margin-right: auto; }
.mk-logo-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--ocean-deep);
    letter-spacing: -0.3px;
    line-height: 1.1;
}
.mk-logo-sub {
    font-size: 9px;
    color: var(--ink-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Navigation principale : masquee sous 1024px, remplacee par le tiroir */
.mk-nav { display: none; }

.mk-nav-list { display: flex; list-style: none; gap: 26px; align-items: center; }
.mk-nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-light);
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}
.mk-nav-list a:hover,
.mk-nav-list a[aria-current="page"] { color: var(--ocean-mid); }

.mk-nav-cta {
    background: var(--ocean-deep);
    color: var(--white) !important;
    padding: 0 20px;
    border-radius: var(--r-sm);
    transition: background-color 0.2s ease;
}
.mk-nav-cta:hover { background: var(--ocean-mid); }

/* Emplacement du selecteur de langue dans l'en-tete.
   Le composant lui-meme est habille par assets/css/i18n.css. */
.mk-header-lang { flex: 0 0 auto; }

/* Bouton du tiroir */
.mk-burger {
    width: var(--tap); height: var(--tap);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    flex: 0 0 auto;
}
.mk-burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--ocean-deep);
    border-radius: 2px;
}
.mk-burger:hover { border-color: var(--ocean-mid); }

/* Tiroir de navigation mobile */
.mk-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}
.mk-drawer.is-open { display: block; }
.mk-drawer-veil { position: absolute; inset: 0; background: rgba(11,57,84,0.45); }
.mk-drawer-panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 340px);
    background: var(--sand-white);
    border-left: 1px solid var(--border);
    padding: 16px var(--gutter) 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mk-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
    margin-bottom: 12px;
}
.mk-drawer-close {
    width: var(--tap); height: var(--tap);
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-sm);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.mk-drawer-list { list-style: none; display: flex; flex-direction: column; }
.mk-drawer-list a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border-soft);
}
.mk-drawer-list a:hover { color: var(--ocean-mid); }
.mk-drawer-foot { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

body.mk-locked { overflow: hidden; }

/* ==============================================
   BOUTONS
   ============================================== */

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    min-height: 52px;
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mk-btn:disabled, .mk-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.mk-btn-primary { background: var(--ocean-deep); color: var(--white); }
.mk-btn-primary:hover:not(:disabled) { background: var(--ocean-mid); box-shadow: var(--shadow-md); }

.mk-btn-book { background: var(--coral); color: var(--white); }
.mk-btn-book:hover:not(:disabled) { background: var(--coral-hover); box-shadow: var(--shadow-md); }

.mk-btn-outline { background: var(--white); color: var(--ocean-deep); border-color: var(--ocean-deep); }
.mk-btn-outline:hover:not(:disabled) { background: var(--ocean-pale); }

.mk-btn-ghost { background: transparent; color: var(--ocean-deep); border-color: var(--border); }
.mk-btn-ghost:hover:not(:disabled) { background: var(--sand-warm); border-color: var(--ocean-mid); }

.mk-btn-sm { padding: 10px 16px; min-height: var(--tap); font-size: 14px; }
.mk-btn-block { width: 100%; }

/* ==============================================
   HERO
   ============================================== */

.mk-hero {
    margin-top: var(--header-h);
    padding: 44px var(--gutter) 52px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--sand-white) 0%, var(--ocean-pale) 55%, var(--sand-warm) 100%);
}
.mk-hero::before {
    content: '';
    position: absolute;
    top: -35%; right: -25%;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(79,192,208,0.16) 0%, transparent 70%);
    pointer-events: none;
}
.mk-hero-inner { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; width: 100%; }

.mk-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11,57,84,0.08);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ocean-deep);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.mk-hero h1 {
    font-size: 34px;
    line-height: 1.12;
    margin-bottom: 16px;
}
.mk-hero h1 .mk-accent { color: var(--ocean-mid); }

.mk-hero-lead {
    font-size: 16px;
    color: var(--ink-light);
    max-width: 560px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.mk-hero-btns { display: flex; flex-direction: column; gap: 12px; }

.mk-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--ink-light);
    font-weight: 500;
    list-style: none;
}
.mk-hero-trust li { display: flex; align-items: center; gap: 7px; }
.mk-hero-trust li::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ocean-mid);
    flex: 0 0 auto;
}

.mk-hero-visual { display: none; }
.mk-hero-visual img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; }

/* ==============================================
   SECTIONS
   ============================================== */

.mk-section { padding: 52px var(--gutter); }
.mk-section-sand { background: var(--sand-warm); }
.mk-section-white { background: var(--white); }
.mk-section-inner { max-width: var(--max-w); margin: 0 auto; }

.mk-section-header { margin-bottom: 28px; }
.mk-section-header.mk-center { text-align: center; }
.mk-section-tag {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    color: var(--ocean-mid);
    margin-bottom: 10px;
}
.mk-section-header h2 { font-size: 27px; margin-bottom: 10px; }
.mk-section-header p { font-size: 15px; color: var(--ink-muted); max-width: 620px; }
.mk-section-header.mk-center p { margin-left: auto; margin-right: auto; }

.mk-section-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* ==============================================
   BANDEAU DES ILES
   ============================================== */

.mk-islands {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.mk-island {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 132px;
    padding: 14px;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ocean-deep);
    color: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}
.mk-island:hover { box-shadow: var(--shadow-md); }
.mk-island img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.mk-island::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,57,84,0.86) 0%, rgba(11,57,84,0.12) 70%);
    z-index: 1;
}
.mk-island-name, .mk-island-count { position: relative; z-index: 2; }
.mk-island-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; }
.mk-island-count { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; }

/* ==============================================
   FAMILLES D'ACTIVITE
   ============================================== */

.mk-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.mk-cat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 104px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mk-cat:hover { border-color: var(--ocean-mid); box-shadow: var(--shadow-sm); }
.mk-cat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--ocean-pale);
    color: var(--ocean-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 4px;
}
.mk-cat-name { font-weight: 700; font-size: 15px; color: var(--ocean-deep); line-height: 1.25; }
.mk-cat-count { font-size: 12px; color: var(--ink-muted); }

/* ==============================================
   CATALOGUE - BARRE D'OUTILS
   ============================================== */

.mk-catalogue { padding: 24px var(--gutter) 56px; }
.mk-catalogue-inner { max-width: var(--max-w); margin: 0 auto; }

.mk-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.mk-search {
    position: relative;
    display: flex;
    align-items: center;
}
.mk-search input {
    width: 100%;
    min-height: 52px;
    padding: 0 44px 0 42px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 16px;               /* 16px : evite le zoom automatique iOS */
    color: var(--ink);
    transition: border-color 0.2s ease;
}
.mk-search input::placeholder { color: var(--ink-faint); }
.mk-search input:focus { border-color: var(--ocean-mid); outline: none; }
.mk-search-icon {
    position: absolute;
    left: 14px;
    width: 15px; height: 15px;
    border: 2px solid var(--ink-faint);
    border-radius: 50%;
    pointer-events: none;
}
.mk-search-icon::after {
    content: '';
    position: absolute;
    right: -6px; bottom: -5px;
    width: 7px; height: 2px;
    background: var(--ink-faint);
    transform: rotate(45deg);
}
.mk-search-clear {
    position: absolute;
    right: 4px;
    width: var(--tap); height: var(--tap);
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--r-sm);
}
.mk-search-clear:hover { background: var(--sand-warm); color: var(--ink); }

.mk-toolbar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mk-toolbar-row > * { flex: 1 1 0; min-width: 0; }

.mk-filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 0 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--ocean-deep);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.mk-filters-toggle:hover { border-color: var(--ocean-mid); }
.mk-filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--coral);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
}

/* Sous 560px, le libelle "Trier par" prend la moitie de la place et le menu
   deroulant tronque l'intitule de l'option ("Les pl..."). On sort le libelle
   du flux sans le sortir du document : le champ garde son etiquette pour les
   lecteurs d'ecran, et le bouton Filtres se reduit a son contenu pour laisser
   toute la largeur restante au menu. */
@media (max-width: 559px) {
    .mk-toolbar-row > .mk-filters-toggle { flex: 0 0 auto; }
    .mk-toolbar-row > .mk-sort { flex: 1 1 auto; }
    .mk-sort > label {
        position: absolute;
        width: 1px; height: 1px;
        padding: 0; margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
}

.mk-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mk-sort label { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.mk-select, .mk-sort select {
    width: 100%;
    min-height: var(--tap);
    padding: 0 34px 0 12px;
    background-color: var(--white);
    background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.mk-select:focus, .mk-sort select:focus { border-color: var(--ocean-mid); outline: none; }

/* Compteur de resultats */
.mk-results-count {
    font-size: 14px;
    color: var(--ink-muted);
    margin-bottom: 12px;
}
.mk-results-count strong { color: var(--ink); font-weight: 700; }

/* Filtres actifs */
.mk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.mk-chips:empty { display: none; }
.mk-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 8px 0 12px;
    background: var(--ocean-pale);
    border: 1px solid rgba(27,107,147,0.35);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ocean-deep);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.mk-chip:hover { background: #C4E9F4; }
.mk-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(11,57,84,0.12);
    font-size: 13px;
    line-height: 1;
}
.mk-chip-reset {
    background: transparent;
    border-color: var(--border);
    color: var(--ink-light);
}
.mk-chip-reset:hover { background: var(--sand-warm); }

/* ==============================================
   CATALOGUE - PANNEAU DE FILTRES
   Mobile : tiroir plein ecran. Bureau : colonne fixe.
   ============================================== */

.mk-layout { display: block; }

.mk-filters {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    background: var(--sand-white);
    flex-direction: column;
}
.mk-filters.is-open { display: flex; }

.mk-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--gutter);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
.mk-filters-head h2 { font-size: 19px; }
.mk-filters-close {
    width: var(--tap); height: var(--tap);
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-sm);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.mk-filters-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px var(--gutter) 20px;
}

.mk-filters-foot {
    display: flex;
    gap: 10px;
    padding: 12px var(--gutter);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--white);
}
.mk-filters-foot .mk-btn { flex: 1 1 0; }

.mk-fgroup { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.mk-fgroup:last-child { border-bottom: none; }
.mk-fgroup-title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--ink-muted);
    margin-bottom: 12px;
}

.mk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--tap);
    padding: 0 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-light);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.mk-opt:hover { border-color: var(--ocean-mid); color: var(--ocean-deep); }
.mk-opt[aria-pressed="true"] {
    background: var(--ocean-deep);
    border-color: var(--ocean-deep);
    color: var(--white);
}
.mk-opt-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
}
.mk-opt[aria-pressed="true"] .mk-opt-count { color: rgba(255,255,255,0.75); }
.mk-opt:disabled { opacity: 0.4; cursor: not-allowed; }

/* Liste verticale, pour les iles */
.mk-opts-col { flex-direction: column; }
.mk-opts-col .mk-opt { width: 100%; justify-content: space-between; }

/* ==============================================
   CATALOGUE - GRILLE DE CARTES
   ============================================== */

.mk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.mk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mk-card:hover { border-color: var(--ocean-mid); box-shadow: var(--shadow-md); }

/* Le lien couvre la carte : un seul objet cliquable, pas de onclick.
   Les liens internes (operateur) repassent au-dessus avec z-index. */
.mk-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.mk-card-link:focus-visible { outline: none; }
.mk-card:focus-within { border-color: var(--ocean-mid); box-shadow: var(--shadow-md); }

.mk-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    background: var(--sand-mid);
    overflow: hidden;
}
.mk-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
/* Aucun zoom d'image au survol : la carte reste immobile. */

.mk-card-flags {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
    max-width: calc(100% - 20px);
}
.mk-flag {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: var(--ocean-deep);
    color: var(--white);
}
.mk-flag-coral { background: var(--coral); }
.mk-flag-soft { background: rgba(251,247,240,0.94); color: var(--ocean-deep); }

.mk-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px;
    gap: 8px;
}

.mk-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12.5px;
    color: var(--ink-muted);
    font-weight: 500;
}
.mk-card-meta span { display: inline-flex; align-items: center; gap: 5px; }

.mk-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ocean-deep);
    line-height: 1.3;
    /* Deux lignes maximum : la grille reste reguliere sur 160 cartes. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mk-card-op {
    font-size: 12.5px;
    color: var(--ink-muted);
}
.mk-card-op strong { color: var(--ink-light); font-weight: 600; }

.mk-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mk-rating-star { color: var(--star); font-size: 13px; line-height: 1; }
.mk-rating-val { font-weight: 700; color: var(--ink); }
.mk-rating-n { color: var(--ink-muted); font-size: 12.5px; }

.mk-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}
.mk-card-price-label { font-size: 11px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.6px; }
.mk-card-price {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    color: var(--coral);
    line-height: 1.2;
}
.mk-card-price small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.mk-card-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 0 18px;
    background: var(--ocean-deep);
    color: var(--white);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}
.mk-card-cta:hover { background: var(--ocean-mid); }

/* Squelettes pendant le chargement du catalogue */
.mk-skeleton { pointer-events: none; }
.mk-skeleton .mk-sk-block {
    background: linear-gradient(90deg, var(--sand-warm) 25%, var(--sand-mid) 50%, var(--sand-warm) 75%);
    background-size: 400% 100%;
    animation: mkShimmer 1.4s ease infinite;
    border-radius: 6px;
}
.mk-skeleton .mk-card-media { aspect-ratio: 3 / 2; }
.mk-sk-line { height: 12px; margin-bottom: 8px; }
.mk-sk-line.w70 { width: 70%; }
.mk-sk-line.w45 { width: 45%; }
.mk-sk-line.w90 { width: 90%; }

@keyframes mkShimmer {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* Chargement progressif */
.mk-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}
.mk-more-progress { font-size: 13px; color: var(--ink-muted); }

/* Pagination */
.mk-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 28px;
}
.mk-pager button {
    min-width: var(--tap);
    min-height: var(--tap);
    padding: 0 12px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.mk-pager button:hover:not(:disabled) { border-color: var(--ocean-mid); color: var(--ocean-deep); }
.mk-pager button[aria-current="page"] {
    background: var(--ocean-deep);
    border-color: var(--ocean-deep);
    color: var(--white);
}
.mk-pager button:disabled { opacity: 0.35; cursor: not-allowed; }
.mk-pager-gap { color: var(--ink-faint); padding: 0 4px; }

/* Aucun resultat */
.mk-empty {
    text-align: center;
    padding: 44px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.mk-empty h3 { font-size: 21px; margin-bottom: 8px; }
.mk-empty p { color: var(--ink-muted); margin-bottom: 20px; }

/* ==============================================
   FICHE ACTIVITE
   ============================================== */

.mk-page { margin-top: var(--header-h); }

.mk-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 12px var(--gutter);
    max-width: var(--max-w);
    margin: 0 auto;
    font-size: 12.5px;
    color: var(--ink-muted);
}
.mk-breadcrumb a { color: var(--ink-muted); }
.mk-breadcrumb a:hover { color: var(--ocean-mid); }
.mk-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.mk-breadcrumb li + li::before { content: '›'; color: var(--ink-faint); }
.mk-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }

/* Galerie mobile : piste glissante */
.mk-gallery { background: var(--sand-warm); }
.mk-gallery-main { position: relative; overflow: hidden; height: 260px; }
.mk-gallery-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mk-gallery-track::-webkit-scrollbar { display: none; }
.mk-gallery-slide { flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.mk-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

.mk-gallery-counter {
    position: absolute;
    right: 12px; bottom: 12px;
    background: rgba(11,57,84,0.78);
    color: var(--white);
    padding: 5px 11px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.mk-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px var(--gutter);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.mk-thumb {
    flex: 0 0 auto;
    width: 62px; height: 46px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.6;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.mk-thumb.is-active { border-color: var(--ocean-mid); opacity: 1; }
.mk-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mk-gallery-grid { display: none; }

/* Valeur que le back-office n'a pas encore renseignee. Elle se voit, sans
   crier : le client doit la reperer, le visiteur ne doit pas croire a une
   panne. Aucune adresse, aucun numero n'est invente a la place. */
.mk-a-completer {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--r-sm);
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px dashed rgba(154,107,18,0.4);
    font-size: 13px;
    font-weight: 600;
}

/* Mise en page de la fiche */
.mk-trip-layout {
    display: block;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px var(--gutter) 40px;
}

.mk-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.mk-act-title { font-size: 25px; line-height: 1.2; margin-bottom: 10px; }
.mk-act-sub { font-size: 15px; color: var(--ink-light); margin-bottom: 16px; }

.mk-act-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13.5px;
    color: var(--ink-light);
}
.mk-act-meta span { display: inline-flex; align-items: center; gap: 6px; }

.mk-block { margin-bottom: 28px; }
.mk-block:last-child { margin-bottom: 0; }
.mk-block h2, .mk-block h3 { font-size: 19px; margin-bottom: 12px; }
.mk-block p { color: var(--ink-light); margin-bottom: 12px; }
.mk-block p:last-child { margin-bottom: 0; }

/* Points forts */
.mk-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    background: var(--sand-warm);
    border-radius: var(--r-md);
    padding: 16px;
}
.mk-hl { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-light); }
.mk-hl-icon {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ocean-pale);
    color: var(--ocean-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* Compris / non compris */
.mk-included { display: grid; grid-template-columns: 1fr; gap: 18px; }
.mk-included ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mk-included li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-light);
}
.mk-included li::before {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}
.mk-yes li::before { content: '+'; background: var(--success-bg); color: var(--success); }
.mk-no li::before { content: '−'; background: var(--sand-mid); color: var(--ink-muted); }

/* Programme */
.mk-steps { display: flex; flex-direction: column; }
.mk-step { position: relative; padding: 0 0 22px 34px; }
.mk-step::before {
    content: '';
    position: absolute;
    left: 11px; top: 26px; bottom: 0;
    width: 2px;
    background: var(--sand-mid);
}
.mk-step:last-child { padding-bottom: 0; }
.mk-step:last-child::before { display: none; }
.mk-step-num {
    position: absolute;
    left: 0; top: 2px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--ocean-deep);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mk-step-title { font-weight: 700; font-size: 15px; color: var(--ocean-deep); margin-bottom: 4px; }
.mk-step-desc { font-size: 14px; color: var(--ink-light); }

/* Point de depart et carte */
.mk-meeting {
    background: var(--sand-warm);
    border-radius: var(--r-md);
    padding: 16px;
    font-size: 14px;
    color: var(--ink-light);
}
.mk-meeting strong { color: var(--ink); }

.mk-map {
    position: relative;
    margin-top: 12px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--ocean-pale);
    min-height: 200px;
}
.mk-map iframe { width: 100%; height: 260px; border: 0; display: block; }
/* La carte n'est chargee qu'au clic : rien n'est demande a un tiers
   avant une action du visiteur. */
.mk-map-ask {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    padding: 20px;
    text-align: center;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.35) 0 12px, transparent 12px 24px),
        var(--ocean-pale);
    border: none;
    width: 100%;
    cursor: pointer;
    color: var(--ocean-deep);
    font-size: 14px;
    font-weight: 600;
}
.mk-map-ask:hover { background-color: #C4E9F4; }
.mk-map-ask:focus-visible { outline: 3px solid var(--ocean-deep); outline-offset: -3px; }

/* Le bloc lisait comme un cadre vide surmonte d'un titre. Il porte maintenant
   une pastille d'action, le lieu, puis la raison du chargement differe :
   trois niveaux de lecture au lieu d'un intitule flottant. */
.mk-map-pin {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--ocean-deep); color: #fff; font-size: 15px; line-height: 1;
}
.mk-map-action {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid var(--ocean-deep);
    color: var(--ocean-deep);
    font-weight: 600;
}
.mk-map-lieu { font-size: 14px; font-weight: 600; color: var(--ocean-deep); }
.mk-map-note { font-size: 12px; color: var(--ink-muted); margin-top: 8px; max-width: 42ch; }

/* Encadre operateur */
.mk-provider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.mk-provider-avatar {
    flex: 0 0 auto;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ocean-pale);
    color: var(--ocean-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}
.mk-provider-name { font-weight: 700; color: var(--ocean-deep); }
.mk-provider-meta { font-size: 13px; color: var(--ink-muted); }

/* Avis */
.mk-reviews {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    margin-bottom: 20px;
}
.mk-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.mk-reviews-head h2 { font-size: 20px; }
.mk-rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sand-warm);
    padding: 8px 14px;
    border-radius: var(--r-sm);
}
.mk-rating-score {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
}
.mk-rating-count { font-size: 12px; color: var(--ink-muted); }

.mk-reviews-list { display: grid; gap: 14px; }
.mk-review {
    background: var(--sand-warm);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px;
}
.mk-review-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.mk-reviewer { display: flex; align-items: center; gap: 10px; }
.mk-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--ocean-pale);
    color: var(--ocean-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
}
.mk-reviewer-name { font-size: 13.5px; font-weight: 600; }
.mk-review-date { font-size: 12px; color: var(--ink-faint); }
.mk-review-text { font-size: 13.5px; color: var(--ink-light); line-height: 1.7; }
.mk-reviews-empty { font-size: 14px; color: var(--ink-muted); }
.mk-reviews-source { font-size: 12px; color: var(--ink-faint); margin-top: 14px; }

/* ==============================================
   MODULE DE RESERVATION
   ============================================== */

.mk-booking {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.mk-bk-price {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.mk-bk-price-label { font-size: 12px; color: var(--ink-muted); }
.mk-bk-price-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--coral);
    line-height: 1.1;
}
.mk-bk-price-per { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 3px; }

.mk-bk-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.mk-bk-field { margin-bottom: 18px; }

/* Bandeau de dates : 14 cellules construites une seule fois */
.mk-dates-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.mk-dates-month { font-size: 13px; font-weight: 600; color: var(--ink-light); }
.mk-dates-nav { display: flex; gap: 6px; }
.mk-dates-nav button {
    width: var(--tap); height: var(--tap);
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--ink-light);
    font-size: 14px;
    line-height: 1;
}
.mk-dates-nav button:hover:not(:disabled) { border-color: var(--ocean-mid); color: var(--ocean-deep); }
.mk-dates-nav button:disabled { opacity: 0.35; cursor: not-allowed; }

.mk-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
/* Sept colonnes dans une carte a 20px de marge interne donnent, sur un ecran
   de 375px, des cellules de 38px : sous la cible tactile de 44px. Le bandeau
   va donc d'un bord a l'autre de la carte sur les petits ecrans.
   (375 - 40 de gouttiere - 2 de bordure - 18 de gouttieres internes) / 7 = 45px. */
@media (max-width: 479px) {
    .mk-dates { margin-left: -20px; margin-right: -20px; gap: 3px; }
}
.mk-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 6px 2px;
    background: var(--sand-warm);
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--ink);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mk-date-name { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.75; }
.mk-date-num { font-size: 15px; font-weight: 700; }
.mk-date:hover:not(:disabled) { border-color: var(--ocean-mid); }
.mk-date.is-today { background: var(--ocean-pale); }
.mk-date.is-selected {
    background: var(--coral);
    border-color: var(--coral);
    color: var(--white);
}
.mk-date:disabled { opacity: 0.35; cursor: not-allowed; }
.mk-date.is-full { text-decoration: line-through; opacity: 0.45; cursor: not-allowed; }

.mk-date-far {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-muted);
}
.mk-date-far input {
    flex: 1 1 auto;
    min-height: var(--tap);
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--white);
    font-size: 15px;
}
.mk-date-far input:focus { border-color: var(--ocean-mid); outline: none; }

/* Creneaux horaires */
.mk-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-slot {
    min-height: var(--tap);
    padding: 0 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-light);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.mk-slot:hover:not(:disabled) { border-color: var(--ocean-mid); }
.mk-slot[aria-pressed="true"] { background: var(--ocean-deep); border-color: var(--ocean-deep); color: var(--white); }
.mk-slot:disabled { opacity: 0.4; cursor: not-allowed; }

/* Compteurs de participants */
.mk-pax {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: var(--sand-warm);
    border-radius: var(--r-md);
    margin-bottom: 8px;
}
.mk-pax:last-child { margin-bottom: 0; }
.mk-pax-info { display: flex; flex-direction: column; min-width: 0; }
.mk-pax-label { font-size: 14px; font-weight: 600; }
.mk-pax-note { font-size: 12px; color: var(--ink-muted); }
.mk-counter { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mk-counter-btn {
    width: var(--tap); height: var(--tap);
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    -webkit-appearance: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.mk-counter-btn:hover:not(:disabled) { border-color: var(--ocean-mid); color: var(--ocean-mid); }
.mk-counter-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.mk-counter-val { min-width: 26px; text-align: center; font-size: 16px; font-weight: 700; }

/* Recapitulatif chiffre : toujours renseigne par le serveur */
.mk-bk-quote {
    background: var(--sand-warm);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 16px;
}
.mk-quote-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    margin-bottom: 7px;
    color: var(--ink-light);
}
.mk-quote-row:last-child { margin-bottom: 0; }
.mk-quote-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}
.mk-quote-total .mk-quote-amount { color: var(--coral); font-family: var(--font-display); font-size: 20px; }
.mk-quote-note { font-size: 12px; color: var(--ink-muted); margin-top: 8px; }
.mk-quote-wait { color: var(--ink-faint); }

.mk-bk-cancel {
    text-align: center;
    font-size: 12.5px;
    color: var(--ocean-mid);
    font-weight: 600;
    margin-top: 10px;
}

/* Messages d'etat du module */
.mk-notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r-md);
    font-size: 13.5px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.mk-notice-info { background: var(--ocean-pale); color: var(--ocean-deep); border-color: rgba(27,107,147,0.25); }
.mk-notice-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(154,107,18,0.25); }
.mk-notice-error { background: var(--danger-bg); color: var(--danger); border-color: rgba(180,35,26,0.25); }
.mk-notice-ok { background: var(--success-bg); color: var(--success); border-color: rgba(45,122,79,0.25); }

/* Barre de reservation basse, mobile.
   C'est une barre pleine largeur ancree au bas de la fenetre, pas une
   pastille flottante : rien ne se superpose au contenu, rien ne pulse. */
.mk-sticky-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px var(--gutter);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(11,57,84,0.10);
}
.mk-sticky-info { min-width: 0; flex: 1 1 auto; }
.mk-sticky-price { font-size: 15px; font-weight: 700; color: var(--coral); line-height: 1.2; }
.mk-sticky-detail {
    font-size: 11px;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mk-sticky-bar .mk-btn { flex: 0 0 auto; min-height: var(--tap); padding: 0 20px; }

body.mk-has-sticky { padding-bottom: 72px; }

/* ==============================================
   TUNNEL DE RESERVATION (3 etapes)
   ============================================== */

.mk-checkout {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    background: rgba(11,57,84,0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.mk-checkout.is-open { display: flex; align-items: flex-end; justify-content: center; }

.mk-ck-panel {
    background: var(--white);
    width: 100%;
    max-width: 540px;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: mkSlideUp 0.3s ease;
}
@keyframes mkSlideUp { from { transform: translateY(3%); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

.mk-ck-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
}
.mk-ck-head h2 { font-size: 20px; }
.mk-ck-close {
    width: var(--tap); height: var(--tap);
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-sm);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.mk-ck-close:hover { background: var(--sand-warm); }

.mk-ck-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mk-ck-steps { display: flex; align-items: center; margin-bottom: 20px; }
.mk-ck-dot {
    width: 30px; height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--sand-warm);
    color: var(--ink-faint);
    border: 2px solid var(--border);
}
.mk-ck-dot.is-active { background: var(--ocean-deep); border-color: var(--ocean-deep); color: var(--white); }
.mk-ck-dot.is-done { background: var(--success); border-color: var(--success); color: var(--white); }
.mk-ck-line { flex: 1 1 auto; height: 2px; background: var(--border); margin: 0 6px; }
.mk-ck-line.is-done { background: var(--success); }

.mk-ck-pane { display: none; }
.mk-ck-pane.is-active { display: block; }

.mk-ck-summary {
    background: var(--sand-warm);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 18px;
}
.mk-ck-summary h3 { font-size: 16px; margin-bottom: 4px; }
.mk-ck-summary-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 10px; }

.mk-field { margin-bottom: 14px; }
.mk-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.mk-field input, .mk-field select, .mk-field textarea {
    width: 100%;
    min-height: var(--tap);
    padding: 11px 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 16px;
    transition: border-color 0.2s ease;
}
.mk-field textarea { min-height: 88px; resize: vertical; }
.mk-field input:focus, .mk-field select:focus, .mk-field textarea:focus { border-color: var(--ocean-mid); outline: none; }
.mk-field input[aria-invalid="true"], .mk-field textarea[aria-invalid="true"] { border-color: var(--danger); }
.mk-field-hint { font-size: 12px; color: var(--ink-muted); margin-top: 5px; }
.mk-field-error { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.mk-field-row { display: grid; grid-template-columns: 1fr; gap: 0; }

.mk-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 14px;
}
.mk-check input {
    width: 20px; height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--ocean-deep);
}

.mk-ck-actions { display: flex; gap: 10px; margin-top: 6px; }
.mk-ck-actions .mk-btn { flex: 1 1 0; }

.mk-pay-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--ink-muted);
    margin-top: 12px;
    text-align: center;
}

.mk-ck-done { text-align: center; padding: 8px 0 4px; }
.mk-ck-done-mark {
    width: 58px; height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}
.mk-ck-ref {
    display: inline-block;
    margin: 10px 0 16px;
    padding: 8px 16px;
    background: var(--sand-warm);
    border: 1px dashed var(--border);
    border-radius: var(--r-sm);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ocean-deep);
}

/* Etat d'attente sur un bouton */
.mk-btn.is-busy { pointer-events: none; opacity: 0.75; }
.mk-spin {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.45);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: mkSpin 0.8s linear infinite;
    flex: 0 0 auto;
}
@keyframes mkSpin { to { transform: rotate(360deg); } }

/* ==============================================
   PIED DE PAGE
   ============================================== */

.mk-footer {
    background: var(--ocean-deep);
    color: rgba(255,255,255,0.78);
    padding: 44px var(--gutter) 24px;
}
.mk-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.mk-footer h3 {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--white);
    margin-bottom: 10px;
}
.mk-footer h4 {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--white);
    margin-bottom: 12px;
}
.mk-footer p { font-size: 13.5px; line-height: 1.7; }
.mk-footer ul { list-style: none; }
.mk-footer li { margin-bottom: 4px; }
.mk-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.72);
    transition: color 0.2s ease;
}
.mk-footer a:hover { color: var(--white); }
.mk-footer-bottom {
    max-width: var(--max-w);
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
}

/* ==============================================
   PAGES D'ETAT (erreur, base indisponible)
   Sert la page degradee servie par le serveur quand MySQL
   ne repond pas : le visiteur voit un message, jamais un ecran blanc.
   ============================================== */

.mk-erreur {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px var(--gutter);
}
.mk-erreur-carte {
    width: 100%;
    max-width: 540px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.mk-erreur-code {
    font-family: var(--font-display);
    font-size: 44px;
    color: var(--ink-faint);
    line-height: 1;
    margin-bottom: 8px;
}
.mk-erreur-titre { font-size: 23px; margin-bottom: 10px; }
.mk-erreur-texte { color: var(--ink-light); font-size: 15px; margin-bottom: 20px; }
.mk-erreur-actions { display: flex; flex-direction: column; gap: 10px; }

/* ==============================================
   TABLETTE (768px et plus)
   ============================================== */

@media (min-width: 768px) {
    :root { --gutter: 28px; --header-h: 72px; }

    .mk-hero { padding: 64px var(--gutter) 72px; }
    .mk-hero h1 { font-size: 46px; }
    .mk-hero-lead { font-size: 17px; }
    .mk-hero-btns { flex-direction: row; }

    .mk-section { padding: 72px var(--gutter); }
    .mk-section-header h2 { font-size: 34px; }

    .mk-islands { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .mk-island { min-height: 168px; padding: 18px; }
    .mk-cats { grid-template-columns: repeat(3, 1fr); gap: 16px; }

    .mk-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

    .mk-toolbar { flex-direction: row; align-items: center; }
    .mk-search { flex: 1 1 auto; }
    .mk-toolbar-row { flex: 0 0 auto; gap: 10px; }
    .mk-toolbar-row > * { flex: 0 0 auto; }
    .mk-sort select { min-width: 190px; }

    .mk-gallery-main { height: 380px; }

    .mk-act-title { font-size: 32px; }
    .mk-h1 { font-size: 34px; }
    .mk-h2 { font-size: 25px; }
    .mk-content { padding: 28px; }
    .mk-included { grid-template-columns: 1fr 1fr; gap: 24px; }
    .mk-highlights { grid-template-columns: 1fr 1fr; }
    .mk-field-row { grid-template-columns: 1fr 1fr; gap: 12px; }

    .mk-checkout.is-open { align-items: center; }
    .mk-ck-panel { border-radius: var(--r-xl); margin: 20px; }

    .mk-footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
    .mk-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }

    .mk-erreur-actions { flex-direction: row; justify-content: center; }
}

/* ==============================================
   BUREAU (1024px et plus)
   ============================================== */

@media (min-width: 1024px) {
    :root { --gutter: 40px; }

    .mk-nav { display: block; }
    .mk-burger { display: none; }
    .mk-drawer { display: none !important; }

    .mk-hero { padding: 84px var(--gutter) 92px; }
    .mk-hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
    .mk-hero h1 { font-size: 56px; }
    .mk-hero-visual { display: block; }

    .mk-section { padding: 88px var(--gutter); }
    .mk-section-header h2 { font-size: 40px; }

    .mk-islands { grid-template-columns: repeat(4, 1fr); }
    .mk-cats { grid-template-columns: repeat(6, 1fr); }

    /* Catalogue en deux colonnes : filtres a gauche, resultats a droite */
    .mk-layout {
        display: grid;
        grid-template-columns: 268px minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }
    .mk-filters {
        position: sticky;
        top: calc(var(--header-h) + 20px);
        inset: auto;
        z-index: 1;
        display: block;
        max-height: calc(100vh - var(--header-h) - 40px);
        overflow-y: auto;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
    }
    .mk-filters-head { border-radius: var(--r-lg) var(--r-lg) 0 0; }
    .mk-filters-close { display: none; }
    .mk-filters-body { padding: 4px 18px 18px; overflow: visible; }
    .mk-filters-foot { border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .mk-filters-foot .mk-btn-book { display: none; }   /* pas de validation : le filtrage est direct */
    .mk-filters-toggle { display: none; }

    .mk-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }

    /* Fiche activite */
    .mk-gallery-main, .mk-gallery-thumbs { display: none; }
    .mk-gallery-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 190px 190px;
        gap: 6px;
        max-width: var(--max-w);
        margin: 0 auto;
    }
    .mk-gg-item { overflow: hidden; background: var(--sand-mid); }
    .mk-gg-item img { width: 100%; height: 100%; object-fit: cover; }
    .mk-gg-item:first-child { grid-row: 1 / 3; }

    /* La plupart des excursions n'ont qu'une photo, les sorties maison en ont
       deux. La mosaique a trois colonnes laisserait deux trous : on repasse
       sur une bande pleine largeur plutot que sur une grille a moitie vide. */
    .mk-gallery-grid.is-solo { grid-template-columns: 1fr; grid-template-rows: 380px; }
    .mk-gallery-grid.is-duo { grid-template-columns: 1fr 1fr; grid-template-rows: 380px; }
    .mk-gallery-grid.is-solo .mk-gg-item:first-child,
    .mk-gallery-grid.is-duo .mk-gg-item:first-child { grid-row: auto; }

    .mk-trip-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 32px;
        align-items: start;
        padding: 28px var(--gutter) 64px;
    }
    .mk-booking { position: sticky; top: calc(var(--header-h) + 20px); }
    .mk-sticky-bar { display: none; }
    body.mk-has-sticky { padding-bottom: 0; }

    .mk-act-title { font-size: 36px; }
    .mk-reviews-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1400px) {
    .mk-hero h1 { font-size: 62px; }
    .mk-section-header h2 { font-size: 44px; }
    .mk-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==============================================
   PREFERENCES SYSTEME ET IMPRESSION
   ============================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media print {
    .mk-header, .mk-drawer, .mk-sticky-bar, .mk-checkout,
    .mk-filters, .mk-toolbar, .mk-more-wrap, .mk-pager { display: none !important; }
    body { background: var(--white); }
    .mk-page { margin-top: 0; }
    .mk-content, .mk-booking, .mk-reviews { border: 1px solid #ccc; box-shadow: none; }
}
