:root {
    --plc-header-bg: #222222;
    --plc-title: #a1c91a;
    --plc-menu-item: #888888;
    --plc-menu-item-active: #cccccc;
    --plc-h1: #97bd18;
    --plc-h2: #663d26;
    --plc-link: #80a114;
    --plc-link-hover: #97bd18;
    --plc-text: #555555;
    --plc-font-title: 'Quicksand', sans-serif;
    --plc-font-heading: 'Dosis', sans-serif;
    --plc-font-body: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--plc-font-body);
    font-size: 0.95em;
    color: var(--plc-text);
    line-height: 1.5;
    background: #efe6d8 url('/images/fond-ecran-ocre-terre.jpg') repeat scroll 0 170px;
}

.wrapper { max-width: 980px; margin: 0 auto; padding: 0 15px; }

a { color: var(--plc-link); text-decoration: none; }
a:hover { color: var(--plc-link-hover); text-decoration: underline; }

h1 {
    font-family: var(--plc-font-heading);
    color: var(--plc-h1);
    font-size: 2.1rem;
    font-weight: 700;
}
h2 {
    font-family: var(--plc-font-heading);
    color: var(--plc-h2);
    font-size: 1.4rem;
    font-weight: 600;
}
h3 { font-family: var(--plc-font-heading); color: var(--plc-h2); font-size: 1.15rem; }

img { max-width: 100%; height: auto; }
iframe, video { max-width: 100%; }

/* HEADER */
.site-header {
    background: var(--plc-header-bg);
    padding: 0 0 10px;
}
.site-header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.logo-module img { display: block; }

.site-title {
    margin: 0.5rem 0 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-family: var(--plc-font-title);
    color: var(--plc-title);
    font-size: 1.3rem;
    font-weight: 700;
}

/* Comme en prod (stickUp.js) : seule la barre de menu (.main-nav) devient fixe au scroll,
   le header lui-meme (logo/titre) n'est pas sticky et ne change jamais de taille. Sur un
   position:sticky dont la taille propre change (l'ancienne approche), le navigateur doit
   recalculer en boucle s'il est "colle" ou non a partir d'une geometrie qui elle-meme depend
   de cet etat -> tremblement infini (variable selon moteur de rendu). Avec position:fixed,
   l'element est retire du flux normal, plus de dependance circulaire possible. */
.nav-bar.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--plc-header-bg);
    padding: 0.6rem 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.nav-bar.is-stuck .main-nav > ul {
    max-width: 980px;
    margin: 0 auto;
}
.nav-bar.is-stuck .main-nav.is-open {
    max-width: 980px;
    margin: 0 auto;
}
.main-nav-placeholder { display: block; }
.site-title a { color: inherit; text-decoration: none; }
.site-title a:hover { text-decoration: underline; }

@media (max-width: 767px) {
    .site-title {
        font-size: 1rem;
        line-height: 1.3;
        max-height: 110px;
    }
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 30px;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 0 0 8px 8px;
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.45), 0 6px 3px rgba(0, 0, 0, 0.16) inset;
    opacity: 0.85;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.social-icons a:hover {
    opacity: 1;
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.45), 0 -12px 4px rgba(0, 0, 0, 0.08) inset;
}
.social-icons a i { color: #333; font-size: 16px; }
.social-icons li:nth-child(1) a:hover i { color: #bd1550; }
.social-icons li:nth-child(2) a:hover i { color: #e97f02; }
.social-icons li:nth-child(3) a:hover i { color: #8a9b0f; }
.social-icons img { width: 18px; height: 18px; }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid #555;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 10px 0 0;
    padding: 0;
}
.main-nav > ul { position: relative; }
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    color: var(--plc-menu-item);
    font-family: var(--plc-font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav li.active > a,
.main-nav li.current > a {
    color: var(--plc-menu-item-active);
    border-color: var(--plc-menu-item-active);
}
.main-nav li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    list-style: none;
    margin: 0;
    padding-left: 0;
    background: var(--plc-header-bg);
    background-clip: padding-box;
    min-width: 220px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul,
.main-nav li > ul:hover {
    display: flex;
}
.main-nav li > ul a { color: #999999; padding: 0.5rem 1rem; text-transform: none; font-weight: 400; }
.main-nav li > ul a:hover { color: #fff; }

@media (max-width: 767px) {
    .menu-toggle { display: flex; }
    .main-nav { display: none; width: 100%; flex-basis: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav > ul { flex-direction: column; gap: 0; }
    .main-nav li > ul {
        display: none;
        position: static;
        box-shadow: none;
        padding-left: 1rem;
    }
    .main-nav li.is-expanded > ul { display: flex; }
}

/* SLIDESHOW */
.image-module { background: #000; }
.image-module .wrapper { max-width: none; padding: 0; }
.image-module [id^="camera_wrap_"] {
    height: 60vh;
    min-height: 320px;
}
.image-module [id^="camera_wrap_"] iframe {
    height: 100% !important;
}
.camera_caption_title {
    color: var(--plc-h1) !important;
    font-family: var(--plc-font-heading);
    font-size: 2em !important;
}
.camera_caption_desc {
    color: #eee !important;
    font-size: 1.6em !important;
}

/* BREADCRUMB */
.breadcrumb-nav {
    padding: 0.6rem 0;
}
.breadcrumb-nav .mod-breadcrumbs__here { display: none; }
.breadcrumb-nav ol,
.breadcrumb-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    font-size: 0.8rem;
}
.breadcrumb-nav li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb-nav li:not(:last-child)::after {
    content: '›';
    margin-left: 0.4rem;
    color: #ccc;
}
.breadcrumb-nav a,
.breadcrumb-nav a span { color: #ddd; text-decoration: none; }
.breadcrumb-nav a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-nav li.active {
    /* Autorise l'item a retrecir en dessous de la largeur de son contenu (comportement flex par
       defaut sinon), necessaire pour que la troncature ci-dessous puisse s'appliquer. */
    min-width: 0;
    overflow: hidden;
}
.breadcrumb-nav li.active span {
    color: #fff;
    font-weight: 600;
    /* Les titres de fiche plante sont parfois tres longs (description complete) : on tronque
       avec des points de suspension sur une seule ligne plutot que de laisser le texte
       retourner a la ligne sur plusieurs lignes dans le fil d'ariane. */
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TOP MODULE (Nos services - 5 encarts) */
.top-module-position {
    padding: 1.5rem;
    background: #d9a95c url('/images/bg-occre3.png') repeat scroll 0 0;
    border-radius: 6px;
    margin: 1.5rem 0;
}
.top-module-position .mod-articlesnews {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.top-module-position .mod-articlesnews__item {
    text-align: center;
}
.top-module-position .newsflash-image {
    margin: 0 0 0.6rem;
    overflow: hidden;
    border-radius: 4px;
}
.top-module-position .newsflash-image a {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.top-module-position .newsflash-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.top-module-position .newsflash-image a:hover img {
    transform: scale(1.08);
}
.top-module-position h2,
.top-module-position h3 { margin: 0.5rem 0; }
.top-module-position .newsflash-title { font-size: 1.5rem; }

@media (max-width: 991px) {
    .top-module-position .mod-articlesnews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .top-module-position .mod-articlesnews { grid-template-columns: 1fr; }
}

/* MAIN CONTENT */
.main-content {
    background: #d9a95c url('/images/bg-occre3.png') repeat scroll 0 0;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0 2.5rem;
    min-height: 40vh;
}

/* PAGE ACCUEIL - blocs pleine largeur, photos en 1er (comme les encarts services) */
.home-block {
    margin-bottom: 2rem;
}
.home-block-photos {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}
.home-block-photos img {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}
.home-block-text {
    width: 100%;
}
.home-block-text h2:first-child {
    margin-top: 0;
}
@media (max-width: 600px) {
    .home-block-photos {
        flex-direction: column;
    }
    .home-block-photos img {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Laptop/desktop : mise en page comme en prod (texte a gauche, photos en grille a droite) */
@media (min-width: 601px) {
    .home-block {
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .home-block-text {
        order: 1;
        flex: 1 1 50%;
        min-width: 0;
    }
    .home-block-photos {
        order: 2;
        flex: 1 1 50%;
        flex-direction: column;
        width: auto;
        max-width: none;
        margin-bottom: 0;
    }
    .home-block-photos img {
        flex: 1 1 auto;
        width: 100%;
    }
    .home-block--text-only .home-block-text {
        flex: 1 1 100%;
    }
}

/* FOOTER */
.site-footer {
    background: var(--plc-header-bg);
    color: #ccc;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    text-align: center;
}
.bottom-menu > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 0 1rem;
    padding: 0;
}
.bottom-menu > ul > li {
    text-align: left;
}
.bottom-menu > ul > li > a {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
    font-family: var(--plc-font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.bottom-menu li > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.bottom-menu a { color: #bbb; }
.bottom-menu a:hover { color: #fff; }
.address p { margin: 0.2rem 0; }
.address a { color: var(--plc-h1); }

/* SCROLL TO TOP */
#toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background: var(--plc-h1);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 90;
}
#toTop.is-visible { display: flex; }
#toTop a { color: #fff; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* PHOCA GALLERY - grille categorie plantes (4 par ligne) */
.pg-item-box-title,
.pg-category-box-title {
    position: relative !important;
}
.pg-categories-items-box,
.pg-category-items-box {
    align-items: flex-start !important;
}
.pg-item-box,
.pg-category-box {
    width: calc(25% - 1em) !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
}
.pg-item-box figure,
.pg-category-box figure {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    height: auto;
    background: rgba(0, 0, 0, 0.5);
}
.ph-si-image { display: none; }
.pg-item-box-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.pg-item-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.pg-item-box-title,
.pg-category-box-title {
    font-size: 0.75rem !important;
    line-height: 1.3;
    text-align: center;
    height: auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (max-width: 991px) {
    .pg-item-box,
    .pg-category-box {
        width: calc(50% - 1em) !important;
    }
}
@media (max-width: 600px) {
    .pg-item-box,
    .pg-category-box {
        width: 100% !important;
    }
}

/* PAGE CONTACT - carte + infos a gauche, formulaire recaptcha v3 a droite */
.contact-page-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}
.contact-page-left,
.contact-page-right {
    flex: 1 1 380px;
    min-width: 0;
}
.contact-map {
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}
.contact-miscinfo {
    margin: 1.5rem 0;
    padding: 15px;
    background-color: #D9EDF7;
    border-left: 10px solid rgba(0, 0, 0, 0.03);
    color: #333;
}
.contact-miscinfo dl {
    margin: 0;
}
.contact-miscinfo dt {
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.contact-miscinfo dd {
    margin-left: 0;
}
.contact-map iframe {
    width: 100%;
    display: block;
}
.contact-form .control-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.contact-form label {
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}
.contact-form__submit {
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 4px;
    background: var(--plc-h1, #97bd18);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.contact-form__submit:hover {
    opacity: 0.9;
}
.contact-form__notice {
    padding: 0.7rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.contact-form__notice--ok {
    background: #e3f4d7;
    color: #3a6b1e;
}
.contact-form__notice--error {
    background: #fbe1e1;
    color: #8a1f1f;
}
@media (max-width: 767px) {
    .contact-page-layout {
        flex-direction: column;
    }
}


.pg-detail-plant-h1 { text-align: center; }
