
/* =====================================================
   PAGE PRODUITS — HERO
   Laboratoires Phytorica
===================================================== */
.ph-products-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 90px 20px;
    overflow: hidden;
    isolation: isolate;
    background-color: #123A46;
}

/* =====================================================
   PHOTOGRAPHIE — ZOOM CINÉMATOGRAPHIQUE
===================================================== */
.ph-products-hero__background {
    position: absolute;
    inset: -12px;
    z-index: -2;

    background-image: url("../images/hero-produit.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    filter: blur(2px);

    animation: phProductsImageZoom 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes phProductsImageZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.14);
    }
}

/* =====================================================
   VOILE BLEU-VERT — LUMIÈRE MOUVANTE
===================================================== */
.ph-products-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        115deg,
        rgba(10, 42, 43, 0.80) 0%,
        rgba(18, 58, 70, 0.52) 45%,
        rgba(10, 42, 43, 0.76) 100%
    );

    background-size: 180% 180%;

    animation: phProductsLightMove 18s ease-in-out infinite alternate;
}

@keyframes phProductsLightMove {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

/* =====================================================
   CONTENU PRINCIPAL
===================================================== */
.ph-products-hero__content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #FFFFFF;
}

/* Petit texte supérieur */
.ph-products-hero__eyebrow {
    display: block;
    margin-bottom: 18px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C5E39C;
}

/* Titre principal */
.ph-products-hero__title {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: #FFFFFF;
}

/* Séparateur décoratif */
.ph-products-hero__separator {
    display: block;
    width: 65px;
    height: 3px;
    margin: 24px auto;

    border-radius: 10px;
    background-color: var(--secondary, #83A52B);

    transform-origin: center;
}

/* Sous-titre */
.ph-products-hero__description {
    max-width: 650px;
    margin: 0 auto;

    font-family: "DM Sans", sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

/* =====================================================
   APPARITION PROGRESSIVE DES TEXTES
===================================================== */
.ph-products-hero__eyebrow,
.ph-products-hero__title,
.ph-products-hero__separator,
.ph-products-hero__description {
    opacity: 0;
    animation: phProductsTextReveal 0.85s ease-out forwards;
}
.ph-products-hero__eyebrow {
    animation-delay: 0.15s;
}
.ph-products-hero__title {
    animation-delay: 0.35s;
}
.ph-products-hero__separator {
    animation-name: phProductsSeparatorReveal;
    animation-duration: 0.9s;
    animation-delay: 0.55s;
}
.ph-products-hero__description {
    animation-delay: 0.75s;
}

@keyframes phProductsTextReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apparition avec extension du séparateur */
@keyframes phProductsSeparatorReveal {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* =====================================================
   RESPONSIVE — TABLETTE
===================================================== */

@media (max-width: 991.98px) {
.ph-products-hero {
        min-height: 350px;
        padding: 75px 20px;
    }
.ph-products-hero__eyebrow {
        font-size: 0.75rem;
        letter-spacing: 2.5px;
    }
}

/* =====================================================
   RESPONSIVE — SMARTPHONE
===================================================== */

@media (max-width: 575.98px) {
.ph-products-hero {
        min-height: 420px;
        padding: 85px 20px;
    }
.ph-products-hero__background {
        background-position: center;
        filter: blur(1.5px);
    }
.ph-products-hero__title {
        font-size: clamp(2rem, 8vw, 2.6rem);
        letter-spacing: -0.8px;
    }
.ph-products-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
.ph-products-hero__separator {
        margin: 20px auto;
    }
.ph-products-hero__description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* =====================================================
   ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
===================================================== */

@media (prefers-reduced-motion: reduce) {
.ph-products-hero__background,
.ph-products-hero__overlay,
.ph-products-hero__eyebrow,
.ph-products-hero__title,
.ph-products-hero__separator,
.ph-products-hero__description {
        animation: none;
    }
.ph-products-hero__background {
        transform: scale(1.04);
    }
.ph-products-hero__eyebrow,
.ph-products-hero__title,
.ph-products-hero__separator,
.ph-products-hero__description {
        opacity: 1;
        transform: none;
    }
}


/* ========================================
   CATALOGUE — INTRODUCTION
======================================== */
.ph-catalog {
    padding: 85px 0 100px;
    background: var(--background);
}
.ph-catalog__intro {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}
.ph-catalog__eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ph-catalog__title {
    margin-bottom: 18px;
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
}
.ph-catalog__description {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.8;
}

@media (max-width: 767px) {
.ph-catalog {
        padding: 60px 0 75px;
    }
.ph-catalog__intro {
        margin-bottom: 35px;
    }
}


/* ========================================
   PHYTORICA — RECHERCHE DU CATALOGUE
======================================== */
.ph-catalog__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 580px;
    min-height: 58px;
    margin: 0 auto 35px;
    padding: 0 18px;
    border: 1px solid #DCE6E3;
    border-radius: 14px;
    background: var(--white, #FFFFFF);
    box-shadow: 0 5px 22px rgba(18, 58, 70, 0.05);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Mise en évidence lorsque l'utilisateur recherche */
.ph-catalog__search:focus-within {
    border-color: var(--primary, #0085AD);
    box-shadow: 0 0 0 4px rgba(0, 133, 173, 0.09);
}

/* Icône de recherche */
.ph-catalog__search > .bi-search {
    flex-shrink: 0;
    margin-right: 14px;
    color: var(--primary, #0085AD);
    font-size: 19px;
}

/* Champ de recherche */
.ph-catalog__search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 56px;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text, #20343B);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Texte indicatif */
.ph-catalog__search-input::placeholder {
    color: #87999B;
    opacity: 1;
}

/* Masque le bouton natif pour utiliser notre bouton personnalisé */
.ph-catalog__search-input::-webkit-search-cancel-button {
    display: none;
}

/* Bouton pour effacer la recherche */
.ph-catalog__search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    margin-left: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #EDF5E6;
    color: var(--text, #20343B);
    font-size: 13px;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

/* Respect de l'attribut hidden */
.ph-catalog__search-clear[hidden] {
    display: none;
}
.ph-catalog__search-clear:hover {
    background: var(--primary, #0085AD);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Navigation au clavier */
.ph-catalog__search-clear:focus-visible {
    outline: 3px solid var(--secondary, #83A52B);
    outline-offset: 3px;
}

/* ========================================
   RESPONSIVE — TABLETTE
======================================== */

@media (max-width: 991.98px) {
.ph-catalog__search {
        max-width: 520px;
        margin-bottom: 30px;
    }
}

/* ========================================
   RESPONSIVE — SMARTPHONE
======================================== */

@media (max-width: 575.98px) {
.ph-catalog__search {
        max-width: 100%;
        min-height: 52px;
        margin-bottom: 25px;
        padding: 0 14px;
        border-radius: 12px;
    }
.ph-catalog__search > .bi-search {
        margin-right: 11px;
        font-size: 17px;
    }
.ph-catalog__search-input {
        min-height: 50px;
        font-size: 13px;
    }
.ph-catalog__search-clear {
        width: 31px;
        height: 31px;
        margin-left: 7px;
    }
}

/* ========================================
   ACCESSIBILITÉ — ANIMATIONS RÉDUITES
======================================== */

@media (prefers-reduced-motion: reduce) {
.ph-catalog__search,
.ph-catalog__search-clear {
        transition: none;
    }
.ph-catalog__search-clear:hover {
        transform: none;
    }
}


/* ========================================
   CATALOGUE — FILTRES
======================================== */
.ph-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
}
.ph-catalog__filter {
    border: 1px solid #dce6e3;
    border-radius: 50px;
    padding: 11px 19px;
    background: var(--white);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}
.ph-catalog__filter:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.ph-catalog__filter.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.ph-catalog__filter:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

@media (max-width: 767px) {
.ph-catalog__filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        gap: 9px;
        padding: 4px 0 14px;
        margin-bottom: 30px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
.ph-catalog__filter {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
.ph-catalog__filter {
        transition: none;
    }
}

/* ========================================
   CATALOGUE — GRILLE DES PRODUITS
======================================== */
.ph-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}
.ph-catalog__empty {
    margin: 40px 0;
    text-align: center;
    color: var(--text);
    font-size: 1rem;
}
.ph-catalog__empty[hidden] {
    display: none;
}

/* TABLETTE */
@media (max-width: 991px) {
.ph-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* SMARTPHONE */
@media (max-width: 575px) {
.ph-catalog__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



/* ==========================================
   PHYTORICA — CARTES DU CATALOGUE
========================================== */

/* Carte principale */
.ph-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--white, #FFFFFF);
    border: 1px solid #E6EDE9;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(18, 58, 70, 0.05);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
.ph-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 133, 173, 0.22);
    box-shadow: 0 14px 35px rgba(18, 58, 70, 0.12);
}

/* Zone de l'image */
.ph-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 175px;
    padding: 12px;
    background: linear-gradient(
        145deg,
        #F0F7F3 0%,
        #F7FAF8 60%,
        #EAF3F6 100%
    );
    overflow: hidden;
}
.ph-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.ph-product-card:hover .ph-product-card__image img {
    transform: scale(1.055);
}

/* Contenu */
.ph-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}

/* Spécialité */
.ph-product-card__category {
    align-self: flex-start;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 30px;
    background: var(--secondary-light, #EDF5E6);
    color: #55751B;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

/* Nom du produit */
.ph-product-card__title {
    margin: 0 0 6px;
    color: var(--text, #20343B);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

/* Description */
.ph-product-card__description {
    margin: 0 0 12px;
    color: #6A7D81;
    font-size: 12px;
    line-height: 1.45;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Contenances */
.ph-product-card__options {
    margin-top: auto;
    margin-bottom: 15px;
}
.ph-product-card__format {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid #DFE8E3;
    border-radius: 8px;
    background: #F8FAF7;
    color: #52676C;
    font-size: 12px;
    font-weight: 600;
}

/* Sélecteur pour plusieurs formats */
.ph-product-card__variant {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #DCE6E3;
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--text, #20343B);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}
.ph-product-card__variant:focus {
    border-color: var(--primary, #0085AD);
    box-shadow: 0 0 0 3px rgba(0, 133, 173, 0.1);
}


/* Zone des boutons */
.ph-product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}


/* Découvrir le produit */
.ph-product-card__details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #DCE9E4;
    border-radius: 10px;
    background: transparent;
    color: var(--text, #20343B);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease,
                background 0.25s ease,
                border-color 0.25s ease;
}
.ph-product-card__details:hover {
    color: var(--primary-dark, #006B8D);
    background: #F1F8FA;
    border-color: var(--primary, #0085AD);
}
.ph-product-card__details i {
    transition: transform 0.25s ease;
}
.ph-product-card__details:hover i {
    transform: translateX(4px);
}


/* Commander — ouverture de WhatsApp */
.ph-product-card__order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--primary, #0085AD);
    border-radius: 10px;
    background: var(--primary, #0085AD);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ph-product-card__order:hover {
    background: var(--primary-dark, #006B8D);
    border-color: var(--primary-dark, #006B8D);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.ph-product-card__order i { font-size: 17px; }

/* Accessibilité clavier */
.ph-product-card__details:focus-visible,
.ph-product-card__order:focus-visible {
    outline: 3px solid var(--secondary, #83A52B);
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE — TABLETTES
========================================== */

@media (max-width: 991.98px) {
.ph-product-card__image {
        height: 220px;
    }
.ph-product-card__body {
        padding: 19px;
    }
.ph-product-card__title {
        font-size: 18px;
    }

}

/* ==========================================
   CARTES PRODUITS — SMARTPHONE
   Disposition horizontale et actions compactes
========================================== */
@media (max-width: 575.98px) {
.ph-product-card { border-radius: 15px; }
.ph-product-card__image { display: none; }
.ph-product-card__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        column-gap: 10px;
        row-gap: 6px;
        padding: 14px;
        align-items: start;
    }
.ph-product-card__category,
.ph-product-card__title,
.ph-product-card__description,
.ph-product-card__options {
        grid-column: 1;
        min-width: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
.ph-product-card__category {
    justify-self: start;
    width: fit-content;
    max-width: 100%;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 20px;
}
.ph-product-card__title {
        font-size: 15px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
.ph-product-card__description { font-size: 11px; line-height: 1.4; }
.ph-product-card__options {
        margin-top: 4px;
        min-width: 0;
        max-width: 100%;
    }
.ph-product-card__format { padding: 5px 8px; font-size: 11px; }
.ph-product-card__variant {
        display: block;
        width: 100%;
        max-width: 160px;
        min-width: 0;
        min-height: 36px;
        box-sizing: border-box;
        padding: 6px 22px 6px 8px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.ph-product-card__actions {
        grid-column: 2;
        grid-row: 1 / 6;
        display: flex;
        flex-direction: column;
        align-self: center;
        align-items: center;
        min-width: 0;
        gap: 10px;
    }
.ph-product-card__details,
.ph-product-card__order {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        gap: 0;
        border-radius: 10px;
        font-size: 10px;
        line-height: 1.3;
        text-align: center;
    }
.ph-product-card__action-label { display: none; }
.ph-product-card__details i,
.ph-product-card__order i { font-size: 19px; line-height: 1; }
}

/* Réduction des animations si nécessaire */
@media (prefers-reduced-motion: reduce) {
.ph-product-card,
.ph-product-card__image img,
.ph-product-card__details,
.ph-product-card__details i,
.ph-product-card__order {
        transition: none;
    }
.ph-product-card:hover,
.ph-product-card:hover .ph-product-card__image img {
        transform: none;
    }
}


/* ==========================================
   ANIMATIONS — CHANGEMENT DE CATÉGORIE
========================================== */

/* Disparition douce des cartes existantes */
.ph-catalog__grid {
    transition: opacity 0.18s ease,
                transform 0.18s ease;
}
.ph-catalog__grid.is-changing {
    opacity: 0;
    transform: translateY(8px);
}

/* Apparition progressive des nouvelles cartes */
@keyframes phCardReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation du filtrage sans conflit avec le scroll */
.ph-product-card.is-revealing:not(.ph-scroll-reveal) {
    animation: phCardReveal 0.42s ease both;
    animation-delay: var(--card-delay, 0ms);
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
.ph-catalog__grid {
        transition: none;
    }
.ph-catalog__grid.is-changing {
        opacity: 1;
        transform: none;
    }
.ph-product-card.is-revealing {
        animation: none;
    }
}


/* ==========================================
   PHYTORICA — POSITIONNEMENT DE LA MODALE
========================================== */
.ph-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ph-modal[hidden] {
    display: none !important;
}

/* Arrière-plan assombri */
.ph-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 35, 0.65);
}

/* Fenêtre au premier plan */
.ph-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 30px;
}

/* Empêche le défilement de la page derrière */
body.ph-modal-open {
    overflow: hidden;
}


/* ==========================================
   PHYTORICA — DESIGN INTÉRIEUR DE LA MODALE
========================================== */

/* Fenêtre principale : finitions */
.ph-modal__dialog {
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);
    scrollbar-width: thin;
    scrollbar-color: #B7CBC6 transparent;
}

/* Bouton de fermeture */
.ph-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #E1EAE6;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--text, #20343B);
    font-size: 17px;
    cursor: pointer;
    transition: background 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}
.ph-modal__close:hover {
    background: var(--primary, #0085AD);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Disposition des deux colonnes */
.ph-modal__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 35px;
}

/* ==========================================
   COLONNE GAUCHE — IMAGE
========================================== */
.ph-modal__visual {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 35px 25px;
    border-radius: 15px;
    background: linear-gradient(
        145deg,
        #EFF7F0 0%,
        #F8FAF7 55%,
        #EAF4F7 100%
    );
}
.ph-modal__visual img {
    display: block;
    width: 100%;
    max-width: 310px;
    height: 350px;
    object-fit: contain;
}

/* Spécialité */
.ph-modal__specialty {
    display: inline-block;
    max-width: 100%;
    padding: 8px 15px;
    border-radius: 30px;
    background: #FFFFFF;
    color: #55751B;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 3px 12px rgba(18, 58, 70, 0.06);
}

/* ==========================================
   COLONNE DROITE — INFORMATIONS
========================================== */
.ph-modal__information {
    min-width: 0;
    padding: 12px 5px 5px 0;
}
.ph-modal__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--secondary, #83A52B);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.ph-modal__title {
    margin: 0 0 8px;
    color: var(--text, #20343B);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
}
.ph-modal__form {
    margin: 0 0 23px;
    color: #71858A;
    font-size: 14px;
}

/* Sections d'informations */
.ph-modal__section {
    margin-bottom: 23px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9EFEB;
}
.ph-modal__section h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--text, #20343B);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
}
.ph-modal__section h3::before {
    content: "";
    display: block;
    width: 4px;
    height: 17px;
    flex-shrink: 0;
    border-radius: 3px;
    background: var(--secondary, #83A52B);
}
.ph-modal__section p {
    margin: 0;
    color: #5E7177;
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-line;
}

/* Précautions */
.ph-modal__warning {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-left: 3px solid #D99A36;
    border-radius: 8px;
    background: #FFF8EC;
    color: #775321;
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================
   ZONE D'ACHAT
========================================== */
.ph-modal__purchase {
    margin-top: 8px;
    padding: 22px;
    border: 1px solid #E4ECE7;
    border-radius: 14px;
    background: #F8FAF7;
}
.ph-modal__purchase > label {
    display: block;
    margin-bottom: 9px;
    color: var(--text, #20343B);
    font-size: 13px;
    font-weight: 700;
}

/* Sélecteur de contenance */
.ph-modal__variant {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #D7E3DE;
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--text, #20343B);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}
.ph-modal__variant:focus {
    border-color: var(--primary, #0085AD);
    box-shadow: 0 0 0 3px rgba(0, 133, 173, 0.1);
}



/* Commander — lien WhatsApp dans la modale */
.ph-modal__order { margin-top: 15px; }

.ph-modal__order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid var(--primary, #0085AD);
    border-radius: 10px;
    background: var(--primary, #0085AD);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ph-modal__order-button:hover {
    background: var(--primary-dark, #006B8D);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.ph-modal__order-button i { font-size: 18px; }

/* Accessibilité */
.ph-modal__close:focus-visible,
.ph-modal__variant:focus-visible,
.ph-modal__order-button:focus-visible {
    outline: 3px solid var(--secondary, #83A52B);
    outline-offset: 3px;
}

/* ==========================================
   RESPONSIVE — TABLETTES
========================================== */

@media (max-width: 991.98px) {
.ph-modal__layout {
        gap: 22px;
    }
.ph-modal__visual {
        padding: 25px 15px;
    }
.ph-modal__visual img {
        height: 270px;
    }
.ph-modal__purchase {
        padding: 17px;
    }
}

/* ==========================================
   RESPONSIVE — SMARTPHONES
========================================== */

@media (max-width: 767.98px) {
.ph-modal:not([hidden]) {
        padding: 10px;
    }
.ph-modal__dialog {
        max-height: 95dvh;
        padding: 20px 15px;
        border-radius: 14px;
    }
.ph-modal__layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
.ph-modal__visual {
        position: static;
        padding: 20px 15px;
    }
.ph-modal__visual img {
        height: 210px;
    }
.ph-modal__information {
        padding: 0;
    }
.ph-modal__title {
        font-size: 23px;
    }
.ph-modal__close {
        top: 12px;
        right: 12px;
    }
.ph-modal__purchase {
        padding: 16px;
    }

}

/* ==========================================
   ACCESSIBILITÉ — MOUVEMENTS RÉDUITS
========================================== */

@media (prefers-reduced-motion: reduce) {
.ph-modal__close {
        transition: none;
    }
.ph-modal__close:hover,
.ph-modal__order-button:hover {
        transform: none;
    }
}



/* ==========================================
   PHYTORICA — MODALE VERSION COMPACTE
========================================== */

/* Fenêtre plus étroite */
.ph-modal__dialog {
    max-width: 780px;
    max-height: 85dvh;
    padding: 22px;
    border-radius: 14px;
}

/* Colonnes rapprochées */
.ph-modal__layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
}

/* Image plus petite */
.ph-modal__visual {
    padding: 18px 14px;
    gap: 12px;
    border-radius: 11px;
}
.ph-modal__visual img {
    max-width: 220px;
    height: 230px;
}

/* Spécialité */
.ph-modal__specialty {
    padding: 6px 11px;
    font-size: 10px;
}

/* Informations */
.ph-modal__information {
    padding: 4px 0 0;
}
.ph-modal__eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
}
.ph-modal__title {
    margin-bottom: 5px;
    font-size: 23px;
}
.ph-modal__form {
    margin-bottom: 15px;
    font-size: 12px;
}

/* Sections plus compactes */
.ph-modal__section {
    margin-bottom: 14px;
    padding-bottom: 13px;
}
.ph-modal__section h3 {
    margin-bottom: 7px;
    font-size: 13px;
}
.ph-modal__section p {
    font-size: 12px;
    line-height: 1.65;
}

/* Zone des formats */
.ph-modal__purchase {
    padding: 15px;
    border-radius: 11px;
}
.ph-modal__purchase > label {
    margin-bottom: 6px;
    font-size: 12px;
}
.ph-modal__variant {
    min-height: 37px;
    padding: 7px 10px;
    font-size: 12px;
}


/* Bouton fermer */
.ph-modal__close {
    top: 10px;
    right: 10px;
    width: 31px;
    height: 31px;
    font-size: 13px;
}

/* Précautions */
.ph-modal__warning {
    margin-bottom: 14px;
    padding: 10px 12px;
    font-size: 12px;
}

/* ==========================================
   TABLETTES
========================================== */

@media (max-width: 991.98px) {
.ph-modal__dialog {
        max-width: 700px;
        padding: 18px;
    }
.ph-modal__layout {
        gap: 16px;
    }
.ph-modal__visual img {
        height: 190px;
    }
}

/* ==========================================
   SMARTPHONES
========================================== */

@media (max-width: 767.98px) {
.ph-modal:not([hidden]) {
        padding: 12px;
    }
.ph-modal__dialog {
        width: 100%;
        max-width: 430px;
        max-height: 88dvh;
        padding: 15px;
        border-radius: 12px;
    }
.ph-modal__layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }
.ph-modal__visual {
        padding: 12px;
        gap: 8px;
    }
.ph-modal__visual img {
        max-width: 160px;
        height: 135px;
    }
.ph-modal__specialty {
        font-size: 9px;
        padding: 5px 9px;
    }
.ph-modal__title {
        font-size: 20px;
    }
.ph-modal__form {
        margin-bottom: 12px;
        font-size: 11px;
    }
.ph-modal__section {
        margin-bottom: 11px;
        padding-bottom: 10px;
    }
.ph-modal__section h3 {
        font-size: 12px;
    }
.ph-modal__section p {
        font-size: 11px;
        line-height: 1.6;
    }
.ph-modal__purchase {
        padding: 12px;
    }


}


/* ==========================================
   PHYTORICA — LARGEUR DU CATALOGUE
========================================== */
.ph-catalog__container {
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}


/* ==========================================
   PHYTORICA — AFFICHAGE PROGRESSIF
   DES PRODUITS
========================================== */
.ph-catalog__load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    width: 100%;
    margin-top: 35px;
    padding-bottom: 15px;
}

/* Respecter l'attribut hidden */
.ph-catalog__load-more[hidden] {
    display: none;
}

/* Compteur des produits */
.ph-catalog__load-more-count {
    margin: 0;
    color: #6A7D81;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Barre de progression */
.ph-catalog__load-more-progress {
    width: 100%;
    max-width: 280px;
    height: 5px;

    background: #E6EDE9;
    border-radius: 20px;
    overflow: hidden;
}
.ph-catalog__load-more-progress-bar {
    width: 0;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--primary, #0085AD),
        var(--secondary, #83A52B)
    );

    border-radius: inherit;
    transition: width 0.4s ease;
}

/* Bouton Afficher plus */
.ph-catalog__load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 46px;
    padding: 12px 22px;

    background: var(--primary, #0085AD);
    color: #FFFFFF;

    border: 1px solid transparent;
    border-radius: 12px;

    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}
.ph-catalog__load-more-btn:hover {
    background: var(--primary-dark, #006B8D);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 133, 173, 0.18);
}
.ph-catalog__load-more-btn:active {
    transform: translateY(0);
}
.ph-catalog__load-more-btn:focus-visible {
    outline: 3px solid var(--secondary, #83A52B);
    outline-offset: 3px;
}
.ph-catalog__load-more-btn i {
    font-size: 16px;
}

/* ==========================================
   RESPONSIVE — SMARTPHONE
========================================== */

@media (max-width: 575.98px) {
.ph-catalog__load-more {
        margin-top: 25px;
        gap: 12px;
    }
.ph-catalog__load-more-count {
        font-size: 12px;
    }
.ph-catalog__load-more-progress {
        max-width: 220px;
    }
.ph-catalog__load-more-btn {
        min-height: 44px;
        padding: 11px 15px;
        gap: 8px;
        font-size: 12px;
    }

}

@media (prefers-reduced-motion: reduce) {
.ph-catalog__load-more-progress-bar,
.ph-catalog__load-more-btn {
        transition: none;
    }

}


/* ==========================================
   PHYTORICA — NOTATION DES PRODUITS
========================================== */
.ph-product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0 8px;
    color: #87999B;
    font-size: 13px;
    line-height: 1.3;
}

/* Étoiles de notation du catalogue */
.ph-product-card__rating .bi-star,
.ph-product-card__rating .bi-star-fill {
    color: #E5A500;
    font-size: 15px;
}

/* Smartphone */
@media (max-width: 575.98px) {
.ph-product-card__rating {
        grid-column: 1;
        min-width: 0;
        margin: 2px 0;
        font-size: 12px;
    }
.ph-product-card__rating .bi-star {
        font-size: 14px;
    }
}


/* ==========================================
   PHYTORICA — NOTATION DANS LA MODALE
========================================== */
.ph-modal__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin: 8px 0 16px;
}

/* Moyenne des notes */
.ph-modal__rating-summary {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #71868B;
    font-size: 13px;
    line-height: 1.3;
}
.ph-modal__rating-summary i {
    color: #E5A500;
    font-size: 15px;
}

/* Zone de vote */
.ph-modal__rating-vote {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.ph-modal__rating-label {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}

/* Les cinq étoiles */
.ph-modal__rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}
.ph-modal__rating-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #B8C2C5;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ph-modal__rating-star:hover {
    color: #E5A500;
    transform: scale(1.12);
}
.ph-modal__rating-star:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==========================================
   RESPONSIVE — SMARTPHONE
========================================== */

@media (max-width: 575.98px) {
.ph-modal__rating {
        gap: 7px;
        margin: 6px 0 12px;
    }
.ph-modal__rating-summary {
        font-size: 12px;
    }
.ph-modal__rating-vote {
        gap: 8px;
    }
.ph-modal__rating-label {
        font-size: 12px;
    }
.ph-modal__rating-stars {
        gap: 3px;
    }
.ph-modal__rating-star {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}


/* Étoiles sélectionnées */
.ph-modal__rating-star.is-selected {
    color: #E5A500;
}


/* ==========================================
   PHYTORICA — VALIDATION DES NOTES
========================================== */

/* Bouton de validation */
.ph-modal__rating-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ph-modal__rating-submit:hover {
    background: var(--primary-dark);
}
.ph-modal__rating-submit:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

/* Respecter l'attribut hidden */
.ph-modal__rating-submit[hidden],
.ph-modal__rating-feedback[hidden] {
    display: none !important;
}

/* Message sous la notation */
.ph-modal__rating-feedback {
    margin: 0;
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1.4;
}

/* Smartphone */
@media (max-width: 575.98px) {
.ph-modal__rating-submit {
        padding: 6px 11px;
        font-size: 11px;
    }
.ph-modal__rating-feedback {
        font-size: 11px;
    }
}


/* ==========================================
   PHYTORICA — COMMENT COMMANDER ?
========================================== */
.ph-order-steps {
    position: relative;
    padding: 90px 0 85px;
    background: #EDF5E6;
    overflow: hidden;
}

/* Introduction */
.ph-order-steps__intro {
    max-width: 700px;
    margin: 0 auto 48px;
    text-align: center;
}
.ph-order-steps__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #6F9123;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ph-order-steps__title {
    margin-bottom: 15px;
    color: #20343B;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 700;
    line-height: 1.25;
}
.ph-order-steps__description {
    margin: 0;
    color: #52685B;
    font-size: 16px;
    line-height: 1.8;
}

/* Grille des étapes */
.ph-order-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1140px;
    margin-inline: auto;
}

/* Cartes */
.ph-order-step {
    position: relative;
    padding: 34px 25px 32px;
    background: #FFFFFF;
    border: 1px solid rgba(131, 165, 43, 0.13);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(32, 52, 59, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.ph-order-step:hover {
    transform: translateY(-7px);
    border-color: rgba(131, 165, 43, 0.35);
    box-shadow: 0 16px 38px rgba(32, 52, 59, 0.09);
}

/* Numérotation */
.ph-order-step__number {
    position: absolute;
    top: 22px;
    right: 23px;
    color: #83A52B;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

/* Icônes */
.ph-order-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 26px;
    background: #EDF5E6;
    border-radius: 16px;
    color: #0085AD;
    font-size: 27px;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}
.ph-order-step:hover .ph-order-step__icon {
    background: #83A52B;
    color: #FFFFFF;
}

/* Titres des cartes */
.ph-order-step h3 {
    margin-bottom: 13px;
    color: #20343B;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

/* Descriptions */
.ph-order-step p {
    margin: 0;
    color: #61716B;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.8;
}



/* ==========================================
   RESPONSIVE — TABLETTES
========================================== */

@media (max-width: 991px) {
.ph-order-steps {
        padding: 70px 0;
    }
.ph-order-steps__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

}

/* ==========================================
   RESPONSIVE — SMARTPHONES
========================================== */

@media (max-width: 575px) {
.ph-order-steps {
        padding: 60px 0;
    }
.ph-order-steps__intro {
        margin-bottom: 35px;
    }
.ph-order-steps__description {
        font-size: 14px;
    }
.ph-order-steps__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
.ph-order-step {
        padding: 28px 24px;
    }
.ph-order-step__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
        font-size: 25px;
    }

 

}

/* Accessibilité : réduction des animations */

@media (prefers-reduced-motion: reduce) {
.ph-order-step,
.ph-order-step__icon {
        transition: none;
    }
.ph-order-step:hover {
        transform: none;
    }

}














/* ==========================================
   PHYTORICA — IMAGES PRODUITS CLIQUABLES
========================================== */

.ph-product-card__image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.ph-product-card__image-button:focus-visible {
    outline: 3px solid var(--primary, #0085AD);
    outline-offset: 2px;
}
