@font-face {
    font-family: 'montagne';
    src: url('ressources/fonts/montagne.otf') format('opentype'),
         url('ressources/fonts/montagne.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


html{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}
body{
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    background-color: #F4F4F5;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;

}

.nav-bar{
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
}
.nav-bar-title{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.nav-bar-title #pro{
    color: rgb(34,67,85);
    font-size: 5em;
    font-family: "montagne", sans-serif;
    margin: 0;
    padding: 0;
}
.nav-bar-title #pro2{
}
.nav-bar-menu-btn{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.nav-bar-menu-btn p{
    font-size: 1.4em;
}

.space{
    flex-grow: 1;
}
.c{
    width: 100%;
    height: 500px;
    min-height: 500px;
    position: relative;
    overflow: hidden; /* ensure absolutely positioned image is clipped */
    box-sizing: border-box;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Hero image positioned absolutely for reliable mobile parallax and correct sizing */
.c .hero-img{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 120%;
    max-width: none;
    transform: translate(-50%, calc(-50% + var(--parallaxY, 0px)));
    object-fit: cover;
    will-change: transform;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content inside .c sits above the hero image */
.c > :not(.hero-img){
    position: relative;
    z-index: 1;
}
.rec{
    height: 100%;
    width: 100%;
    border: 2px solid white;
    border-radius: 5px;
}
.subtitle{
    width: 50%;
    height: 100px;
    background-color: white;
    top: -90px;
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'montagne', sans-serif;
    font-size: 3em;
    border-radius: 5px;
}
.accueil-content{
    box-sizing: border-box;
}
.page-bott{
    width: 100%;
    background-color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.page-bott-top{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    width: 100%;
}
.page-bott-bott{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.t{
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.plus a {
    margin-bottom: 20px;
}
.bien{
    max-width: 250px;
}
.bien #text-bien{
    margin: 0;
}
.presta{
    box-sizing: border-box;
    background-color: rgb(34,67,85);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    padding: 20px;
    /* allow normal vertical layout and avoid clipping that can create awkward scroll areas */
    overflow: visible;
}
.conta-presta{
    height: 50px;
    min-width: 150px;
    background-color: #F4F4F5;
    color: black;
    margin: 20px;
}

/* Presta component grid and cards */
.presta-sub{
    margin-top:6px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;
    box-sizing: border-box;
}
.presta-grid{
    display: grid;
    /* allow columns to shrink properly and avoid forcing overflow */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    justify-items: stretch;
    align-items: stretch;
    margin-top: 18px;
    box-sizing: border-box;
}
.presta-card{
    background:#fff;
    color:#222;
    /* remove rounded corners */
    border-radius: 0;
    padding:16px;
    box-shadow:0 8px 22px rgba(0,0,0,0.06);
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:center;
    text-align:center;
    /* size to content to avoid collapsed/thin cards and internal scrollbars */
    height: auto;
    min-height: 130px;
    box-sizing: border-box;
    min-width: 0;
}
.presta-card .icon-wrap{ width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; background: linear-gradient(180deg,#eef6ff,#dcefff); color:#2b6cb0; font-size:22px; box-shadow:0 6px 14px rgba(43,108,176,0.12); }
.presta-card h3{ margin:0; font-size:1.05rem; }
.presta-card p{ margin:0; color:#444; font-size:0.95rem; }
.presta-card:hover{ transform: translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,0.12); }
.presta-card{ transition: transform 220ms ease, box-shadow 220ms ease; }
.presta-card i{
    font-size:28px;
    color:#2b6cb0;
}
.presta-card h3{ margin:0;font-size:1.05rem; }
.presta-card p{ margin:0;color:#444;font-size:0.95rem; }

/* Photo teaser card used on the homepage */
.photo-card{
    background-color:rgb(34,67,85);
    width:80%;
    cursor:pointer;
    overflow:hidden;
    transition:background-color 160ms ease, filter 160ms ease, transform 160ms ease;
    display:inline-block;
}
.photo-card img{display:block;width:100%;height:auto;}
.photo-card .caption{color:white;text-align:center;margin:10px 0;padding:8px}
.photo-card:active,
.photo-card.is-pressed{background-color:rgb(23, 46, 58); filter:brightness(0.85); transform:translateY(1px);}

@media (max-width:1000px){
    .presta-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:520px){
    .presta-grid{ grid-template-columns: 1fr; }
}

/* Responsive navigation */
.nav-links{
    display:flex;
    gap:16px;
    align-items:center;
}
.nav-links a{
    color:#444;
    text-decoration:none;
    padding:6px 8px;
    border-radius:6px;
}
.nav-links a:hover{ background: rgba(43,108,176,0.06); }
.nav-bar{ position:fixed; top:0; left:0; right:0; z-index:1200; box-shadow: 0 2px 6px rgba(0,0,0,0.06); background: #fff; }
.nav-bar-menu-btn{ display:none; }

.avis-carousel{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
#flechegauche{
    cursor: pointer;
    background-color: #2B6CB0;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#flechedroite{
    cursor: pointer;
    background-color: #2B6CB0;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#flechegauche:hover, #flechedroite:hover{
    background-color: #5496dc;
}
.avis-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    color: black;
    max-width: 400px;
    min-height:200px;
    padding: 0;
    margin: 0;
}
.avis-content:last-child{
    border-bottom: none;
}

/* Modal (empty popup) */
.modal{
    position:fixed;
    margin-top: 20px;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.45);
    z-index:2000;
    padding:20px;
}
.modal.open{display:flex}
.modal-content{
    background:#fff;
    max-width:920px;
    width:100%;
    max-height:90vh;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    border-radius:8px;
    overflow:auto;
    padding:18px;
    position:relative;
}
.modal-close{
    position:absolute;
    top:20px;
    right:18px;
    background:transparent;
    border:none;
    color:#333;
    font-size:20px;
    cursor:pointer;
}

/* Gallery grid inside modal */
.gallery-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap:10px;
    align-items:start;
    padding-top: 20px;
}
.gallery-grid img{
    width:100%;
    height:120px;
    object-fit:cover;
    display:block;
    border-radius:6px;
}

.modal-content .modal-body{ padding-top:10px; }

/* Calendar blocked day styling: show as struck-through and non-interactive */
.day.blocked{
    color: #bdbdbd !important; /* lighter gray for number */
    opacity: 0.95;
    cursor: not-allowed;
    pointer-events: none; /* ensure not clickable */
    position: relative;
}
.day.blocked::after{
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    top: 50%;
    height: 1.6px; /* thinner bar */
    background: rgba(0,0,0,0.18); /* lighter subtle gray bar */
    transform: translateY(-50%);
    border-radius: 1px;
}
.day.blocked:hover{ /* no hover effect */
    transform: none;
}

/* Restore expected layout for the avis section which also uses the .presta class
   (overrides added because .presta rules were widened and affected avis) */
.avis{
    /* allow elements (arrows, shadows) to be visible and not clipped */
    overflow: visible;
    /* keep padding similar to existing inline styles in the HTML */
    padding: 16px;
    box-sizing: border-box;
}
.avis .avis-carousel{
    justify-content: center; /* ensure arrows + content are centered */
    gap: 12px;
}
.avis #avis{
    margin-left: 12px;
    margin-right: 12px;
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px){
    .nav-bar-menu-btn{ display:flex; }
    .nav-links{ display:none; position:absolute; top:56px; right:12px; background:#fff; flex-direction:column; gap:8px; padding:12px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.08); z-index:1200; min-width:200px; }
    .nav-links.open{ display:flex; }
    .nav-bar-title #pro{ font-size:3.2em; }
}


