/* =====================================================================
   Thème maison-savel — surcouche de Casper reprenant le site Strikingly
   (modèle « Compass » / thème s5 « fresh »). Relevé : docs/strikingly-releve.md
   ===================================================================== */

:root {
    --ms-font-title: "Share Tech", sans-serif;
    --ms-font-body: "Titillium Web", titillium, helvetica, sans-serif;
    --ms-dark: #1d2023;        /* titres de section */
    --ms-text: #50555c;        /* texte courant */
    --ms-subtle: #b9c0c5;      /* sous-titres, boutons */
    --ms-nav-title: #333333;   /* titre de l'en-tête */
    --ms-highlight: #d5dee3;   /* couleur d'accent 1 Strikingly */
    --ms-accent: #2990ea;      /* couleur d'accent 2 Strikingly */
    --ms-grey: #e8eaec;        /* fond gris (section Accès) */
    --ms-green: #76ba1b;       /* pictogramme « power » sous le menu */
    --ms-white: #ffffff;
    --ms-inner: 1200px;
    --ms-pad: 80px;
    --ghost-accent-color: #2990ea;
}

html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body.ms-body {
    font-family: var(--ms-font-body);
    font-weight: 300;
    color: var(--ms-text);
    background: var(--ms-white);
}

.ms-body .site-content { padding: 0; }

/* --------------------------------------------------------------- en-tête */
.ms-head {
    position: sticky;
    top: -92px;               /* le titre défile, la barre de menu reste collée */
    z-index: 100;
    background: var(--ms-white);
    text-align: center;
}
.ms-head-brand { padding: 22px 20px 8px; }
.ms-head-title {
    display: inline-block;
    font-family: var(--ms-font-title);
    font-size: 48px;
    line-height: 62.4px;
    font-weight: 400;
    color: var(--ms-nav-title);
    text-decoration: none;
}
.ms-head-title:hover { opacity: 1; color: var(--ms-nav-title); }

.ms-head-menu { padding: 0 20px 18px; }
.ms-head-menu .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ms-head-menu .nav li { margin: 0; padding: 0; }
.ms-head-menu .nav a {
    font-family: var(--ms-font-body);
    font-size: 16px;
    line-height: 30px;
    font-weight: 300;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}
.ms-head-menu .nav a:hover,
.ms-head-menu .nav .nav-current a { border-bottom-color: #000; }

.ms-power {
    position: absolute;
    left: 50%;
    bottom: -21px;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ms-white);
    color: var(--ms-green);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.ms-burger { display: none; }

/* --------------------------------------------------------------- sections */
.ms-main { display: block; }

.ms-section {
    position: relative;
    overflow: hidden;
    padding: var(--ms-pad) 0;
    background: var(--ms-white);
    color: var(--ms-text);
}
.ms-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;   /* effet « parallaxe » du modèle */
}
/* voile bleu des sections « overlay » de Strikingly (étiquette #voile-bleu : Tarif, autour du lac) */
.ms-t-hash-voile-bleu .ms-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 72, 117, 0.35);
}
.ms-inner {
    position: relative;
    z-index: 1;
    max-width: var(--ms-inner);
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.ms-title {
    margin: 0 0 20px;
    font-family: var(--ms-font-title);
    font-size: 36px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: normal;
    color: var(--ms-dark);
}
.ms-subtitle {
    margin: -6px 0 30px;
    font-family: var(--ms-font-title);
    font-size: 18px;
    line-height: 1.45;
    color: var(--ms-subtle);
}
.ms-t-hash-sous-titre-italique .ms-subtitle { font-style: italic; }
/* titre de section plus petit (étiquette #petit-titre, ex. Situation) */
.ms-t-hash-petit-titre .ms-title { font-size: 21.6px; margin-bottom: 30px; }

/* sections photo : texte blanc, comme « textColor: light / overlay » */
.ms-has-bg,
.ms-has-bg .ms-title,
.ms-has-bg .ms-subtitle,
.ms-has-bg .ms-content,
.ms-has-bg .ms-content h2,
.ms-has-bg .ms-content h3,
.ms-has-bg .ms-content h4,
.ms-has-bg .ms-content p,
.ms-has-bg .ms-content a { color: var(--ms-white); }

/* section d'en-tête (étiquette #hero) : plein écran, gros titre */
.ms-t-hash-hero { min-height: calc(100vh - 162px); display: flex; align-items: center; }
.ms-t-hash-hero .ms-inner { width: 100%; }
.ms-t-hash-hero .ms-title { font-size: 70px; line-height: 1.15; margin-bottom: 26px; }
.ms-t-hash-hero .ms-subtitle { font-size: 42px; line-height: 1.3; font-style: normal; color: var(--ms-white); }

/* section gris clair (étiquette #fond-gris) */
.ms-t-hash-fond-gris { background: var(--ms-grey); }

/* --------------------------------------------------------------- contenu */
.ms-content { text-align: left; font-family: var(--ms-font-body); }
.ms-content.gh-content > * + * { margin-top: 0; }
.ms-content > *:first-child { margin-top: 0; }
.ms-content p,
.ms-content li {
    font-family: var(--ms-font-body);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 300;
    color: var(--ms-text);
    margin: 0 0 1.45em;
}
.ms-content strong, .ms-content b { font-weight: 700; }
.ms-content h2,
.ms-content h3 {
    font-family: var(--ms-font-title);
    font-weight: 400;
    color: var(--ms-dark);
    letter-spacing: normal;
}
.ms-content h2 { font-size: 36px; line-height: 1.4; margin: 0 0 16px; }
.ms-content h3 { font-size: 18px; line-height: 1.45; margin: 0 0 8px; }
.ms-content h3 strong { font-weight: 700; }
.ms-content h4 {
    font-family: var(--ms-font-body);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 300;
    color: var(--ms-subtle);
    margin: 0 0 14px;
}
.ms-content a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-word; }
.ms-content ul, .ms-content ol { padding-left: 0; list-style: none; margin: 0 0 1.45em; }
.ms-content ul li, .ms-content ol li { margin: 0; }
.ms-content ul li::before { content: "- "; }
.ms-content hr { display: none; }

/* sections centrées (étiquette #centre) */
.ms-t-hash-centre .ms-content,
.ms-t-hash-colonnes-2 .ms-content,
.ms-t-hash-colonnes-3 .ms-content,
.ms-t-hash-grand-texte .ms-content { text-align: center; }

/* gros texte blanc (section Tarif, étiquette #grand-texte) */
.ms-t-hash-grand-texte .ms-content h2 { font-size: 48px; line-height: 1.45; margin: 0; }
.ms-t-hash-grand-texte .ms-content h2 strong { font-weight: 700; }
.ms-t-hash-grand-texte .ms-content p { font-family: var(--ms-font-title); font-size: 50px; line-height: 1.3; margin: 0 0 40px; font-weight: 400; }
.ms-t-hash-grand-texte .ms-content h3 { font-size: 24px; line-height: 1.45; font-weight: 700; }

/* colonnes (#colonnes-2, #colonnes-3) et encadrés (#encadres) : découpées par le script au séparateur */
/* rangées centrées : la dernière rangée incomplète est centrée, comme sur Strikingly */
.ms-cols { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 30px 18px; }
.ms-col { flex: 0 0 calc((100% - 36px) / 3); min-width: 0; }
.ms-t-hash-colonnes-2 .ms-cols { max-width: 820px; margin: 0 auto; gap: 30px 120px; }
.ms-t-hash-colonnes-2 .ms-col { flex-basis: calc((100% - 120px) / 2); }
.ms-t-hash-encadres .ms-cols { gap: 18px; }
.ms-t-hash-encadres .ms-col { flex-basis: calc((100% - 18px) / 2); }
.ms-t-hash-encadres .ms-col {
    border: 2px solid var(--ms-grey);
    padding: 18px 20px 6px;
    text-align: left;
    background: var(--ms-white);
}
.ms-t-hash-encadres .ms-col p { margin-bottom: 0; }
.ms-t-hash-encadres .ms-col p:last-child { margin-bottom: 1.45em; }
.ms-t-hash-encadres .ms-col h3 { margin-bottom: 10px; }
/* boîte image : même hauteur sur une rangée (calculée par le script), image centrée verticalement */
.ms-cols .kg-image-card { margin: 0 0 22px; display: flex; align-items: center; justify-content: center; }
.ms-cols .kg-image-card img { margin: 0 auto; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.ms-t-hash-colonnes-2 .kg-image-card { margin-bottom: 12px; }
.ms-t-hash-colonnes-2 .kg-image-card img { width: 107px; height: 107px; object-fit: contain; }
.ms-cols h3 { margin-bottom: 4px; }
.ms-t-hash-colonnes-3 .ms-col p { margin-bottom: 0.4em; }
.ms-col h4 + p, .ms-col h3 + p { margin-top: 0; }
.ms-t-hash-colonnes-3 .ms-col h4 { font-size: 18px; margin-bottom: 10px; }

/* cartes Ghost */
.ms-content .kg-card { margin: 0 0 1.45em; }
.ms-content .kg-width-wide,
.ms-content .kg-width-full { max-width: none; }
.ms-content .kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.ms-content .kg-embed-card,
.ms-content .kg-html-card,
.ms-content iframe { max-width: 100%; }
.ms-content iframe { display: block; margin: 0 auto; border: 0; }

/* bouton (carte « Button ») : gris clair arrondi, comme « Envoyer » */
.ms-content .kg-button-card { justify-content: center; }
.ms-content .kg-btn,
.ms-content .kg-btn-accent {
    background: var(--ms-subtle) !important;
    color: rgba(0, 0, 0, 0.8) !important;
    font-family: var(--ms-font-body);
    font-weight: 700;
    font-size: 18px;
    border-radius: 4px;
    padding: 0 20px;
    height: 44px;
    text-decoration: none;
}

/* galerie : vignettes 5 par ligne, centrées (galerie « Gallery » de Strikingly) */
.ms-content .kg-gallery-card { max-width: 700px; margin: 0 auto 1.45em; }
.ms-content .kg-gallery-container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ms-content .kg-gallery-row { display: contents; }
.ms-content .kg-gallery-image { flex: none !important; margin: 0 !important; }
.ms-content .kg-gallery-image img {
    width: 100%;
    height: 127px;
    object-fit: cover;
    cursor: zoom-in;
}

/* --------------------------------------------------------------- pied de page */
.ms-foot { padding: 60px 20px 120px; text-align: center; background: var(--ms-white); }
.ms-foot-inner { max-width: var(--ms-inner); margin: 0 auto; }
.ms-foot-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.ms-foot-social a {
    width: 22px; height: 22px; border-radius: 50%;
    background: #c9cdd1; color: var(--ms-white);
    display: flex; align-items: center; justify-content: center;
}
.ms-foot-text p { font-family: var(--ms-font-body); font-size: 15px; line-height: 1.45; font-weight: 300; color: var(--ms-text); margin: 0; }
.ms-foot-text a { color: inherit; }

/* --------------------------------------------------------------- mobile */
@media (max-width: 1024px) {
    .ms-bg { background-attachment: scroll; }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 60px; }
    .ms-head { top: 0; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
    .ms-head-brand { display: flex; align-items: center; padding: 8px 12px; min-height: 56px; }
    .ms-head-title { flex: 1; font-size: 22px; line-height: 1.2; padding-right: 36px; }
    .ms-burger {
        display: block; position: relative; width: 36px; height: 36px; flex: none;
        background: none; border: 0; padding: 0; cursor: pointer;
    }
    .ms-burger span, .ms-burger span::before, .ms-burger span::after {
        position: absolute; left: 8px; width: 20px; height: 2px; background: #333; content: "";
        transition: transform .2s;
    }
    .ms-burger span { top: 17px; }
    .ms-burger span::before { left: 0; top: -6px; }
    .ms-burger span::after { left: 0; top: 6px; }
    .ms-menu-open .ms-burger span { background: transparent; }
    .ms-menu-open .ms-burger span::before { transform: translateY(6px) rotate(45deg); }
    .ms-menu-open .ms-burger span::after { transform: translateY(-6px) rotate(-45deg); }
    .ms-head-menu { display: none; padding: 6px 0 14px; max-height: calc(100vh - 56px); overflow-y: auto; }
    .ms-menu-open .ms-head-menu { display: block; }
    .ms-head-menu .nav { flex-direction: column; gap: 0; }
    .ms-head-menu .nav a { display: block; font-size: 18px; line-height: 42px; border: 0; }
    .ms-power { display: none; }

    .ms-section { padding: 50px 0; }
    .ms-inner { padding: 0 20px; }
    .ms-title { font-size: 30px; }
    .ms-t-hash-hero { min-height: calc(100vh - 56px); }
    .ms-t-hash-hero .ms-title { font-size: 40px; }
    .ms-t-hash-hero .ms-subtitle { font-size: 30px; }
    .ms-t-hash-grand-texte .ms-content h2 { font-size: 34px; }
    .ms-t-hash-grand-texte .ms-content p { font-size: 34px; }
    .ms-t-hash-grand-texte .ms-content h3 { font-size: 20px; }
    .ms-col,
    .ms-t-hash-colonnes-2 .ms-col,
    .ms-t-hash-encadres .ms-col { flex-basis: 100%; }
    .ms-cols .kg-image-card { height: auto !important; }
    .ms-content .kg-gallery-container { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ms-content .kg-gallery-image img { height: 105px; }
}
