/* ==========================================================================
   periloc2 — header & footer (inspiré de la palette OrdaSoft EcoHouse)
   ========================================================================== */

:root {
    --plc-dark: #333;
    --plc-dark-2: #4e4e4e;
    --plc-accent: #a7453f;
    --plc-accent-text: #4e4e4e;
    --plc-link-color: #000;
    --plc-body-bg: #f8f8f8;
    --plc-font: "PT Sans Narrow", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
iframe, video { max-width: 100%; }

body {
    font-family: var(--plc-font);
    background-color: var(--plc-body-bg);
    margin: 0;
}

a { color: var(--plc-link-color); }
a:hover { color: var(--plc-accent-text); }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }

.section-title, .moduletable > h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-block: 1.5rem 1rem;
}

/* ---------- Header ---------- */

.site-header { background-color: transparent; color: #fff; position: relative; z-index: 2; }

/* Bandeau visuel par page (repris du prod, générique par alias de menu) */
.site-header.has-banner {
    background-size: cover;
    background-position: center;
    background-color: var(--plc-dark);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.site-header.has-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
    z-index: -1;
}
.site-header.has-banner .site-header__top,
.site-header.has-banner .site-header__brand { position: relative; }

.site-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding-block: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__search { flex: 1 1 260px; }

.site-header__tagline {
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.0rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #fff; text-shadow: 1px 1px 3px #2a2a2a;
}
.site-header__tagline .tagline-text { font-weight: 600; }
.site-header__tagline a { color: #fff; text-decoration: underline; }
.site-header__tagline a:hover { color: var(--plc-accent); }

.site-header__topnav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 2 1 480px;
    justify-content: center;
}

.top-menu { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.top-menu li { border-right: 1px solid var(--plc-dark-2); padding-inline: 0.6rem; }
.top-menu li:last-child { border-right: none; }
.top-menu a { color: #fff; text-decoration: none; font-size: 0.8rem; text-shadow: 1px 1px 3px #2a2a2a; }
.top-menu a:hover { color: var(--plc-accent); }

.social-icons { display: flex; gap: 0.8rem; list-style: none; margin: 0; padding: 0; }
.social-icons a { display: flex; align-items: center; color: var(--plc-accent); font-size: 1.6rem; text-decoration: none; }
.social-icons a:hover { color: var(--plc-dark-2); }
.soc-svg { width: 1.6rem; height: 1.6rem; fill: currentColor; display: block; }

.site-header__brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-block: 0.6rem 1.2rem;
}
.site-header__brand .site-header__topnav { flex-basis: 100%; order: -1; margin-bottom: 0.3rem; }

.site-logo img { display: block; max-width: 100%; height: auto; }

/* Navigation principale */
.main-nav { position: relative; }

.main-nav__toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.main-menu :is(ul.mod-menu, ul.mod-menu__sub) { list-style: none; margin: 0; padding: 0; }
.main-menu > ul.mod-menu { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-menu li { position: relative; }

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    padding: 0.4rem 0.7rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    text-shadow: 1px 1px 3px #2a2a2a;
}
.main-menu a:hover,
.main-menu li.active > a,
.main-menu li.current > a {
    color: var(--plc-accent);
    border-bottom-color: var(--plc-accent);
}

/* Sous-menus déroulants (desktop : au survol) */
.main-menu li.deeper > a::after {
    content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.4rem;
    font-size: 0.7rem;
}
.main-menu ul.mod-menu__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--plc-dark);
    border-top: 2px solid var(--plc-accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 30;
}
.main-menu ul.mod-menu__sub a {
    font-weight: 400;
    text-transform: none;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.main-menu li.deeper:hover > ul.mod-menu__sub,
.main-menu li.deeper.submenu-open > ul.mod-menu__sub {
    display: block;
}

@media (max-width: 767px) {
    .main-nav__toggle { display: block; }
    .main-nav { flex-basis: 100%; }
    .main-menu {
        display: none;
        position: absolute;
        inset-inline: 0;
        top: 100%;
        width: 100%;
        background: var(--plc-dark);
        padding: 1rem;
        z-index: 20;
        box-sizing: border-box;
    }
    .main-menu.is-open { display: block; }
    .main-menu > ul.mod-menu { flex-direction: column; gap: 0.25rem; }
    .main-menu ul.mod-menu__sub {
        display: block;
        position: static;
        border-top: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        margin-left: 1rem;
    }
    .site-header__topnav { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- Slideshow ---------- */
.site-slideshow { width: 100%; position: relative; }

/* Le module OS Touch Slider place l'image puis h4/p/a en texte brut,
   sans conteneur dédié : on transforme chaque slide en overlay via flex. */
.site-slideshow .swiper-slide {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    padding: 2rem;
}
.site-slideshow .swiper-slide::before { display: none; /* overlay retire */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}
.site-slideshow .swiper-slide img.slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.site-slideshow .swiper-slide h4,
.site-slideshow .swiper-slide p,
.site-slideshow .swiper-slide a.slide-cta {
    position: relative;
    z-index: 2;
}
.site-slideshow .swiper-slide h4 {
    text-transform: uppercase;
    font-size: 70px;
    margin: 0 0 0.5rem;
    text-shadow: 1px 1px 3px #2a2a2a;
    color: #fff;
}
.site-slideshow .swiper-slide p {
    white-space: nowrap;
    max-width: none;
    margin: 0 0 1rem;
    font-size: 30px;
    text-shadow: 1px 1px 2px #2a2a2a;
    color: #fff;
}
.site-slideshow .slide-cta {
    display: inline-block;
    padding: 15px 48px;
    background-color: #a7453f;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.site-slideshow .slide-cta:hover { background-color: #4e4e4e; color: #fff; }

@media (max-width: 1024px) {
    .site-slideshow .swiper-slide h4 { font-size: 50px; }
    .site-slideshow .swiper-slide p { font-size: 24px; white-space: normal; max-width: 40rem; }
}

/* ---------- Accueil : Carte / À propos / Vidéo ---------- */
.home-intro-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-block: 2rem;
}
.home-intro-row .map-embed iframe { width: 100%; height: 320px; border: 0; }
.home-intro-row .map-embed img { max-width: 100%; height: auto; display: block; margin-inline: auto; border-radius: 4px; }
.home-intro-row .about-us p { margin-bottom: 0.75rem; line-height: 1.5; }
.home-intro-row .about-us .fa-solid { color: var(--plc-accent-text); margin-right: 0.4rem; }

.home-video { margin-block: 2rem; }
.home-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ---------- Footer ---------- */

.site-footer { background-color: var(--plc-dark); color: #fff; padding-block: 2rem 1rem; margin-top: 2rem; }

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.footer-logo-col { text-align: left; }
.footer-logo-col .logo_img { display: flex; justify-content: flex-start; }
.footer-logo-col .logo_desc a { color: var(--plc-accent); }
.footer-logo-col .logo_desc a:hover { color: #fff; }
.footer-social-icons { margin-top: 1rem; display: flex; align-items: center; gap: 0; }
.footer-social-icons li { list-style: none; padding: 0; }
.footer-social-icons a {
    display: flex;
    align-items: center;
    font-size: 24px;
    margin: 0 7px;
    color: var(--plc-accent);
    text-decoration: none;
}
.footer-social-icons a:hover { color: var(--plc-dark-2); }
.footer-social-icons .soc-svg { width: 24px; height: 24px; }

.footer-contact-form__notice { padding: 0.6rem 0.9rem; border-radius: 4px; font-size: 0.9rem; margin-bottom: 0.8rem; }
.footer-contact-form__notice--ok { background-color: rgba(76, 175, 80, 0.2); color: #a5d6a7; }
.footer-contact-form__notice--error { background-color: rgba(167, 69, 63, 0.25); color: #f2a8a4; }
.footer-contact-form .g-recaptcha { transform-origin: 0 0; }

.footer-contact-col__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #fff;
}
.footer-contact-form {
    background-color: var(--plc-dark-2);
    border: 1px solid var(--plc-dark-2);
    border-radius: 4px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-contact-form input,
.footer-contact-form textarea {
    background-color: var(--plc-dark);
    border: 1px solid var(--plc-dark-2);
    color: #fff;
    font-family: var(--plc-font);
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0;
    resize: vertical;
}
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder { color: rgba(255, 255, 255, 0.6); }
.footer-contact-form__submit {
    align-self: center;
    width: 50%;
    background-color: var(--plc-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.7rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.footer-contact-form__submit:hover { background-color: #4e4e4e; }

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-block: 1.5rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.footer-menu ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-menu li { border-right: 1px solid var(--plc-dark-2); padding-inline: 0.6rem; }
.footer-menu li:last-child { border-right: none; }
.footer-menu a { color: var(--plc-accent); text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.copyrights a { color: var(--plc-accent); }
.copyrights a:hover { color: #fff; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb, .breadcrumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #777;
}
.breadcrumb li, .breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb a, .breadcrumbs a { color: #777; text-decoration: none; }
.breadcrumb a:hover, .breadcrumbs a:hover { color: var(--plc-accent-text); text-decoration: underline; }
.breadcrumb .active, .breadcrumbs .active { color: #333; font-weight: 600; }

/* ---------- Titre accueil (sous le slider) ---------- */
.home-title { text-align: center; padding: 1.5rem 1rem 2rem; }
.home-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ---------- Grille de biens (module maison) ---------- */
.gites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}
.gite-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.gite-card__link { display: block; text-decoration: none; color: inherit; flex: 1; }
.gite-card__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.gite-card__body { padding: 1rem; }
.gite-card__title { font-size: 1.1rem; margin: 0 0 0.5rem; color: #333; }
.gite-card__specs {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
    font-size: 0.85rem;
    color: #666;
}
.gite-card__specs i { color: var(--plc-accent); margin-right: 0.3rem; }
.gite-card__desc { font-size: 0.85rem; font-weight: normal; color: #555; margin: 0 0 0.6rem; line-height: 1.4; }
.gite-card__price { color: #a7453f; font-weight: 700; margin: 0; }
.gite-card__actions {
    display: flex;
    gap: 0.5rem;
    margin: 0 1rem 1rem;
}
.gite-card__cta {
    flex: 1;
    display: block;
    text-align: center;
    padding: 0.7rem 0.5rem;
    background-color: var(--plc-accent);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}
.gite-card__cta:hover { background-color: var(--plc-dark-2); color: #fff; }
.gite-card__cta--secondary {
    background-color: transparent;
    color: var(--plc-accent);
    border: 1px solid var(--plc-accent);
}
.gite-card__cta--secondary:hover { background-color: var(--plc-accent); color: #fff; }

/* Boutons de reservation - page Tarifs & Reservation (liens Elloha temporaires) */
.tarifs-booking-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.tarifs-booking-btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background-color: var(--plc-accent);
    color: #fff !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}
.tarifs-booking-btn:hover { background-color: var(--plc-dark-2); color: #fff !important; }

/* Slider plein ecran (override des dimensions inline generees par le module) */
.site-slideshow .swiper-container,
.site-slideshow .swiper-slide {
    height: 100vh !important;
}
.site-slideshow img.slide-image {
    object-fit: cover !important;
}

/* Header flottant transparent par-dessus le slider plein ecran (accueil) */
.site-header.has-slideshow { min-height: 100vh; }
.site-header.has-slideshow .site-slideshow { position: absolute; inset: 0; z-index: 0; }
.site-header.has-slideshow .site-header__top,
.site-header.has-slideshow .site-header__brand { position: relative; z-index: 2; }

/* Selecteur de langue custom (meme mise en page que le screenshot fourni) */
.lang-switcher { position: relative; }
.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-family: var(--plc-font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.lang-switcher__toggle i { font-size: 0.85rem; color: #1a1a1a; }
.lang-switcher__chevron { font-size: 0.7rem; }
.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    min-width: 150px;
    z-index: 20;
}
.lang-switcher__menu[hidden] { display: none; }
.lang-switcher__menu li {
    padding: 0.55rem 1.1rem;
    font-family: var(--plc-font);
    font-size: 0.95rem;
    color: #1a1a1a;
    cursor: pointer;
}
.lang-switcher__menu li:hover { background: #f2f2f2; }
body > .skiptranslate.goog-te-gadget { display: none !important; }
body { top: 0 !important; }

/* Texte de presentation categorie REM (fond gris, centre, comme #ShowOrderBy en prod) */
.rem-presentation-text {
    background: #efefef;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #333;
}

/* Fix galerie fiche bien (view_house) : le script jQuery du composant calcule
   une hauteur d'image aberrante (height: width*0.56 avec une largeur mal mesuree) */
#rem_house_galery .swiper-container .swiper-slide img {
    height: auto !important;
    max-height: 500px !important;
    width: 100%;
    object-fit: cover;
}
/* overflow:hidden UNIQUEMENT sur le conteneur (necessaire pour masquer les
   slides hors-champ horizontalement) — sur .swiper-wrapper/.swiper-slide ca
   masquait la photo active (l'image, avec sa propre hauteur calculee, depassait
   la max-height au moment du rendu et se retrouvait clippee) */
#rem_house_galery .swiper-container {
    max-height: 520px;
    overflow: hidden;
}

/* Largeur du conteneur uniquement — ne JAMAIS forcer .swiper-wrapper/.swiper-slide
   en CSS : Swiper leur donne une largeur en pixels via JS (mesuree sur le
   conteneur) puis translate le wrapper en X pour faire defiler. Le forcer en
   CSS casse soit la navigation, soit la taille des slides suivantes. */
#rem_house_galery .swiper-container {
    width: 100% !important;
}

/* VRAIE CAUSE de l'explosion de largeur (page = largeur cumulee des photos) :
   .content-main est un flex item (style inline "flex:3 1 480px" dans
   templates/periloc2/index.php) sans min-width defini. Par defaut un flex item
   ne peut pas retrecir sous la taille minimale de son contenu (min-width:auto) ;
   si un descendant (galerie, tableau...) a une largeur intrinseque importante,
   tout le flex item — et donc toute la page — est etire pour l'accueillir.
   Piege CSS flexbox classique, corrige en autorisant le retrecissement. */
.content-main {
    min-width: 0;
}

/* Cache les slides de galerie dont l'image source est le placeholder no-img
   (fichier original manquant sur le disque, seule une petite vignette existe) */
.swiper-slide:has(img[src*=no-img_eng_big]),
.thumbnail.viewHouses:has(img[src*=no-img_eng_big]) {
    display: none !important;
}

/* Formulaire Contact & Reservation (rem_buying_house) - meme style que prod */
.rem_buying_house #rem_house_titlebox {
    background-color: var(--plc-accent) !important;
    color: #fff;
}
#show_buying p {
    color: var(--plc-accent) !important;
}

/* Retire les badges House for rent / Active sur la galerie fiche bien */
.rem_col_rent.view_veh,
.rem_listing_status.view_veh {
    display: none !important;
}

/* Aligne le H1 de la fiche bien avec le bouton Reserver Elloha (meme ligne) */
.componentheading:has(.rem-booking-button-topright) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.componentheading .col_text_2 { margin: 0; }
.componentheading .col_text_2 h1 { margin: 0; font-size: 1.8rem; }

/* Superficie fiche bien : evite que "m²" passe a la ligne (label plus long
   que l'ancienne unite "Ar"/"Sqrt"). La vraie cause : .rem_type_house .row_text
   (vendor) a une largeur fixe (190px) au lieu de s'adapter au contenu. */
.rem_type_house .row_text {
    width: auto;
    min-width: 190px;
    white-space: nowrap;
}
#rem_house_property .row_text .col_text_2 { display: inline; }
.rem-booking-button-topright {
    width: auto !important;
}

/* Boutons formulaires REM (Contactez-nous, Enregistrer avis, etc.) - meme style que prod */
input[type="submit"],
input[type="button"],
.rem_buying_house .button {
    background-color: var(--plc-accent) !important;
    color: #fff !important;
    font-size: 14px;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
input[type="submit"]:hover,
input[type="button"]:hover,
.rem_buying_house .button:hover {
    background-color: var(--plc-dark-2) !important;
    color: #fff !important;
}

/* Meme fix que le slider/vignettes : cache aussi la vignette cassee dans le
   strip de miniatures du lightbox fancybox (os_fancybox-thumbs) */
.os_fancybox-thumbs li:has(img[src*=no-img_eng_big]) {
    display: none !important;
}

/* Retire le bloc rem_house_property (fiche technique) */
#rem_house_property {
    display: none !important;
}

/* Le prix doit passer sous le H1/bouton reserver, pas a cote (chambres d'hotes) */
.componentheading .rem_house_price {
    flex-basis: 100%;
}

/* Retire le bloc infos article (Details/Ecrit par/Categorie/Publie le/Clics) */
.article-info {
    display: none !important;
}

/* Retire la navigation precedent/suivant entre articles (menu Decouverte) */
nav.pagenavigation {
    display: none !important;
}

/* ---------- Page Contact & Acces (com_contact override J5) ---------- */
.contact-page h1 { margin-bottom: 1.5rem; }
.contact-map { margin-bottom: 2rem; }
.contact-map iframe { display: block; width: 100%; height: 420px; border-radius: 4px; }

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 800px) {
    .contact-layout { grid-template-columns: 1fr; }
}

.contact-layout h2 {
    color: var(--plc-accent);
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.com-contact__address.dl-horizontal {
    display: block;
    margin: 0;
}
.com-contact__address dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-top: 1rem;
}
.com-contact__address dt:first-child { margin-top: 0; }
.com-contact__address dd {
    margin: 0 0 0.2rem 1.6rem;
    color: #333;
}
.com-contact__address .icon-address::before,
.com-contact__address .icon-envelope::before,
.com-contact__address .icon-phone::before,
.com-contact__address .icon-mobile::before {
    font-family: Font Awesome 6 Free;
    font-weight: 900;
    color: var(--plc-accent);
}
.com-contact__address .icon-address::before { content: f3c5; }
.com-contact__address .icon-envelope::before { content: f0e0; }
.com-contact__address .icon-phone::before { content: f095; }
.com-contact__address .icon-mobile::before { content: f3cd; }

.contact-miscinfo { margin-bottom: 2rem; }
.contact-miscinfo .contact-misc :is(p) { margin: 0 0 0.5rem; }

.com-contact__form :is(input, textarea, select) {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--plc-font);
    font-size: 0.95rem;
    box-sizing: border-box;
}
.com-contact__form fieldset { border: none; padding: 0; margin: 0; }
.com-contact__form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.com-contact__form button[type=submit] {
    background-color: var(--plc-accent) !important;
    color: #fff !important;
    font-size: 14px;
    border-radius: 4px;
    text-transform: uppercase;
    border: none;
    padding: 0.6rem 1.4rem;
    cursor: pointer;
}
.com-contact__form button[type=submit]:hover { background-color: var(--plc-dark-2) !important; }

/* ---------- Mobile : texte de presentation en haut sur 2 lignes (fix overflow) ---------- */
@media (max-width: 767px) {
    .site-header__topnav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    .site-header__tagline {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
        width: 100%;
        font-size: 0.85rem;
    }
}

/* Sur mobile, les offsets precis calques sur le prod (desktop) coupent
   l'image de maniere disgracieuse -> on repasse en centre simple */
@media (max-width: 767px) {
    .site-header.has-banner {
        background-position: center !important;
        min-height: 260px;
    }
}

@media (max-width: 767px) {
    .componentheading .col_text_2 h1 { font-size: 1.6rem; }
}

/* Centre les vignettes de la galerie (fiche bien) dans leur conteneur */
.table_gallery .gallery_img {
    text-align: center;
}

/* Lightbox fancybox (fiche bien) : sur mobile, vignettes en bas plutot
   qu'en colonne verticale a droite (mangeait trop de largeur de l'image) */
@media (max-width: 767px) {
    .os_fancybox-thumbs {
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 84px !important;
    }
    .os_fancybox-show-thumbs .os_fancybox-inner {
        right: 0 !important;
        bottom: 84px !important;
    }
    .os_fancybox-thumbs > ul {
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }
    .os_fancybox-thumbs > ul > li {
        display: inline-block;
        float: none;
        max-width: none;
        vertical-align: top;
    }
}

/* Reduit l'espace entre labels et champs du formulaire Contact & Reservation */
#show_buying p { margin: 0 0 0.3rem; }
#show_buying > div[class^="row_"] { margin-bottom: 0.8rem; }
#show_buying div[id$="_warning"]:empty { display: none; }

/* Tablette (Galaxy Tab et similaires) : 2 biens par ligne */
@media (min-width: 600px) and (max-width: 1024px) {
    .gites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pages articles : retire le 2eme .page-header (titre article, affiche en h2)
   quand le titre de menu (h1) est deja affiche au-dessus - evite le doublon */
.page-header:has(h2) {
    display: none;
}
