
/* =====================================================
   PAGE CONTACT — HERO
   Laboratoires Phytorica
===================================================== */

.ph-contact-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-contact-hero__background {
    position: absolute;
    inset: -12px;
    z-index: -2;

    background-image: url("../images/hero-contact.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    filter: blur(2px);

    animation: phContactImageZoom 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes phContactImageZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.14);
    }
}

/* =====================================================
   VOILE BLEU-VERT — LUMIÈRE MOUVANTE
===================================================== */

.ph-contact-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: phContactLightMove 18s ease-in-out infinite alternate;
}

@keyframes phContactLightMove {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

/* =====================================================
   CONTENU PRINCIPAL
===================================================== */

.ph-contact-hero__content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    color: #FFFFFF;
}

/* Petit texte supérieur */

.ph-contact-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-contact-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-contact-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-contact-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-contact-hero__eyebrow,
.ph-contact-hero__title,
.ph-contact-hero__separator,
.ph-contact-hero__description {
    opacity: 0;
    animation: phContactTextReveal 0.85s ease-out forwards;
}

.ph-contact-hero__eyebrow {
    animation-delay: 0.15s;
}

.ph-contact-hero__title {
    animation-delay: 0.35s;
}

.ph-contact-hero__separator {
    animation-name: phContactSeparatorReveal;
    animation-duration: 0.9s;
    animation-delay: 0.55s;
}

.ph-contact-hero__description {
    animation-delay: 0.75s;
}

@keyframes phContactTextReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apparition avec extension du séparateur */

@keyframes phContactSeparatorReveal {
    from {
        opacity: 0;
        transform: scaleX(0);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* =====================================================
   RESPONSIVE — TABLETTE
===================================================== */

@media (max-width: 991.98px) {
    .ph-contact-hero {
        min-height: 350px;
        padding: 75px 20px;
    }

    .ph-contact-hero__eyebrow {
        font-size: 0.75rem;
        letter-spacing: 2.5px;
    }
}

/* =====================================================
   RESPONSIVE — SMARTPHONE
===================================================== */

@media (max-width: 575.98px) {
    .ph-contact-hero {
        min-height: 420px;
        padding: 85px 20px;
    }

    .ph-contact-hero__background {
        background-position: center;
        filter: blur(1.5px);
    }

    .ph-contact-hero__title {
        font-size: clamp(2rem, 8vw, 2.6rem);
        letter-spacing: -0.8px;
    }

    .ph-contact-hero__eyebrow {
        margin-bottom: 14px;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .ph-contact-hero__separator {
        margin: 20px auto;
    }

    .ph-contact-hero__description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* =====================================================
   ACCESSIBILITÉ — RÉDUCTION DES ANIMATIONS
===================================================== */

@media (prefers-reduced-motion: reduce) {
    .ph-contact-hero__background,
    .ph-contact-hero__overlay,
    .ph-contact-hero__eyebrow,
    .ph-contact-hero__title,
    .ph-contact-hero__separator,
    .ph-contact-hero__description {
        animation: none;
    }

    .ph-contact-hero__background {
        transform: scale(1.04);
    }

    .ph-contact-hero__eyebrow,
    .ph-contact-hero__title,
    .ph-contact-hero__separator,
    .ph-contact-hero__description {
        opacity: 1;
        transform: none;
    }
}





/* =====================================================
   SECTION 2 : NOS COORDONNÉES
   Laboratoires Phytorica
===================================================== */

.ph-contact-info {
    position: relative;
    padding: 105px 0 115px;
    background-color: #F8FAF7;
    overflow: hidden;
}

/* =====================================================
   EN-TÊTE DE SECTION
===================================================== */

.ph-contact-info__header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

/* Petit titre */

.ph-contact-info__eyebrow {
    display: block;
    margin-bottom: 14px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: #729225;
}

/* Titre principal */

.ph-contact-info__title {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.8px;

    color: #20343B;
}

/* Séparateur vert */

.ph-contact-info__separator {
    display: block;
    width: 58px;
    height: 3px;
    margin: 22px auto;

    border-radius: 10px;
    background-color: var(--secondary, #83A52B);
}

/* Description */

.ph-contact-info__description {
    max-width: 620px;
    margin: 0 auto;

    font-family: "DM Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.85;

    color: #607078;
}

/* =====================================================
   GRILLE DES CARTES
===================================================== */

.ph-contact-info__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* =====================================================
   CARTE INDIVIDUELLE
===================================================== */

.ph-contact-info__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    min-height: 245px;
    padding: 32px 24px;

    background-color: #FFFFFF;
    border: 1px solid #E3EBE5;
    border-radius: 18px;

    box-shadow: 0 5px 22px rgba(18, 58, 70, 0.035);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Trait décoratif au sommet */

.ph-contact-info__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #0085AD,
        #83A52B
    );

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.4s ease;
}

/* Effet au survol */

.ph-contact-info__card:hover {
    transform: translateY(-7px);

    border-color: rgba(131, 165, 43, 0.30);

    box-shadow: 0 18px 42px rgba(18, 58, 70, 0.10);
}

.ph-contact-info__card:hover::before {
    transform: scaleX(1);
}

/* =====================================================
   ICÔNES IONICONS
===================================================== */

.ph-contact-info__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;
    flex-shrink: 0;

    margin-bottom: 25px;

    background-color: #EDF5E6;
    border-radius: 15px;

    color: #729225;

    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease;
}

.ph-contact-info__icon ion-icon {
    font-size: 27px;
}

.ph-contact-info__card:hover .ph-contact-info__icon {
    background-color: #83A52B;
    color: #FFFFFF;
    transform: rotate(-5deg);
}

/* =====================================================
   TITRE DE CHAQUE CARTE
===================================================== */

.ph-contact-info__card-title {
    margin: 0 0 14px;

    font-family: "Montserrat", sans-serif;
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.45;

    color: #20343B;
}

/* =====================================================
   CONTENU DES CARTES
===================================================== */

.ph-contact-info__card-content {
    display: flex;
    flex-direction: column;
    gap: 9px;

    min-width: 0;
    width: 100%;
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.65;

    color: #607078;
}

/* =====================================================
   LIENS TÉLÉPHONIQUES
===================================================== */

.ph-contact-info__link {
    display: inline-block;
    width: fit-content;
    max-width: 100%;

    color: #52666D;
    text-decoration: none;

    overflow-wrap: anywhere;

    transition: color 0.3s ease;
}

.ph-contact-info__link:hover {
    color: #0085AD;
}

/* =====================================================
   ADRESSE E-MAIL
===================================================== */

.ph-contact-info__email {
    display: block;

    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    line-height: 1.65;

    color: #52666D;

    overflow-wrap: anywhere;
}

/* =====================================================
   RÉSEAUX SOCIAUX
===================================================== */

.ph-contact-info__socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 4px;
}

/* Icônes sociales */

.ph-contact-info__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    flex-shrink: 0;

    border: 1px solid #E2EBDD;
    border-radius: 50%;

    background-color: #EDF5E6;
    color: #0085AD;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}

.ph-contact-info__social ion-icon,
.ph-contact-info__social i {
    font-size: 20px;
    line-height: 1;
}

/* Apparence au survol */

.ph-contact-info__social:hover {
    transform: translateY(-4px);

    background-color: #0085AD;
    border-color: #0085AD;
    color: #FFFFFF;
}

/* Focus clavier pour les futurs liens sociaux */

.ph-contact-info__link:focus-visible,
.ph-contact-info__social:focus-visible {
    outline: 3px solid #0085AD;
    outline-offset: 4px;
}

/* =====================================================
   ANIMATION — APPARITION PROGRESSIVE DES CARTES
===================================================== */

/*
   Notre JavaScript global gère déjà
   l'apparition des éléments .ph-scroll-reveal.

   On ajoute uniquement un décalage progressif
   pour les quatre cartes.
*/

.ph-contact-info__card:nth-child(1) {
    transition-delay: 0s;
}

.ph-contact-info__card:nth-child(2) {
    transition-delay: 0.08s;
}

.ph-contact-info__card:nth-child(3) {
    transition-delay: 0.16s;
}

.ph-contact-info__card:nth-child(4) {
    transition-delay: 0.24s;
}

/* =====================================================
   RESPONSIVE — PETITS ORDINATEURS
===================================================== */

@media (max-width: 1199.98px) {

    .ph-contact-info__grid {
        gap: 18px;
    }

    .ph-contact-info__card {
        padding: 28px 20px;
    }

    .ph-contact-info__card-title {
        font-size: 0.98rem;
    }

    .ph-contact-info__card-content,
    .ph-contact-info__email {
        font-size: 0.88rem;
    }
}

/* =====================================================
   RESPONSIVE — TABLETTES
===================================================== */

@media (max-width: 991.98px) {

    .ph-contact-info {
        padding: 85px 0 95px;
    }

    .ph-contact-info__header {
        margin-bottom: 45px;
    }

    .ph-contact-info__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ph-contact-info__card {
        min-height: 225px;
        padding: 30px 25px;
    }

    .ph-contact-info__card-title {
        font-size: 1.03rem;
    }

    .ph-contact-info__card-content,
    .ph-contact-info__email {
        font-size: 0.92rem;
    }
}

/* =====================================================
   RESPONSIVE — SMARTPHONES
===================================================== */

@media (max-width: 575.98px) {

    .ph-contact-info {
        padding: 70px 0 80px;
    }

    .ph-contact-info__header {
        margin-bottom: 38px;
    }

    .ph-contact-info__eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .ph-contact-info__title {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        letter-spacing: -0.5px;
    }

    .ph-contact-info__description {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .ph-contact-info__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .ph-contact-info__card {
        min-height: auto;
        padding: 28px 25px;
        border-radius: 16px;
    }

    .ph-contact-info__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 20px;
    }

    .ph-contact-info__icon ion-icon {
        font-size: 25px;
    }

    .ph-contact-info__card-title {
        margin-bottom: 12px;
        font-size: 1.02rem;
    }

    .ph-contact-info__card-content,
    .ph-contact-info__email {
        font-size: 0.92rem;
    }
}

/* =====================================================
   ACCESSIBILITÉ — ANIMATIONS RÉDUITES
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .ph-contact-info__card,
    .ph-contact-info__card::before,
    .ph-contact-info__icon,
    .ph-contact-info__link,
    .ph-contact-info__social {
        transition: none;
    }

    .ph-contact-info__card:hover,
    .ph-contact-info__social:hover,
    .ph-contact-info__card:hover .ph-contact-info__icon {
        transform: none;
    }
}


.ph-contact-info__social {
    text-decoration: none;
}

.ph-contact-info__social ion-icon,
.ph-contact-info__social i {
    font-size: 20px;
    line-height: 1;
}

.ph-contact-info__email {
    text-decoration: none;
    transition: color 0.3s ease;
}

.ph-contact-info__email:hover {
    color: var(--primary, #0085AD);
}

.ph-contact-info__email:focus-visible {
    outline: 3px solid var(--primary, #0085AD);
    outline-offset: 4px;
}














/* =====================================================
   SECTION 3 : CARTE INTERACTIVE
   Laboratoires Phytorica
===================================================== */

.ph-contact-map {
    position: relative;
    padding: 105px 0 115px;
    background-color: #FFFFFF;
    overflow: hidden;
}

/* =====================================================
   EN-TÊTE DE SECTION
===================================================== */

.ph-contact-map__header {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

/* Petit titre */

.ph-contact-map__eyebrow {
    display: block;
    margin-bottom: 14px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;

    color: var(--secondary, #83A52B);
}

/* Titre principal */

.ph-contact-map__title {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.8px;

    color: var(--text, #20343B);
}

/* Séparateur */

.ph-contact-map__separator {
    display: block;
    width: 58px;
    height: 3px;
    margin: 22px auto;

    border-radius: 10px;
    background-color: var(--secondary, #83A52B);
}

/* Description */

.ph-contact-map__description {
    max-width: 620px;
    margin: 0 auto;

    font-family: "DM Sans", sans-serif;
    font-size: 1.02rem;
    line-height: 1.85;

    color: #607078;
}

/* =====================================================
   CONTENEUR PRINCIPAL DE LA CARTE
===================================================== */

.ph-contact-map__wrapper {
    position: relative;
    width: 100%;
    min-height: 570px;

    border: 1px solid #E3EBE5;
    border-radius: 24px;

    background-color: #EDF5E6;

    box-shadow: 0 20px 55px rgba(18, 58, 70, 0.09);

    overflow: hidden;
    isolation: isolate;
}

/* =====================================================
   SURFACE DE LA CARTE LEAFLET
===================================================== */

.ph-contact-map__canvas {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    min-height: 570px;

    background-color: #E8F0E7;

    z-index: 1;
}

/* Ajustement des contrôles Leaflet */

.ph-contact-map .leaflet-container {
    font-family: "DM Sans", sans-serif;
    background-color: #E8F0E7;
}

.ph-contact-map .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 5px 20px rgba(18, 58, 70, 0.15);
}

.ph-contact-map .leaflet-control-zoom a {
    width: 36px;
    height: 36px;
    line-height: 36px;

    color: #20343B;
    background-color: #FFFFFF;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.ph-contact-map .leaflet-control-zoom a:hover {
    color: #FFFFFF;
    background-color: #0085AD;
}

/* Popups Leaflet */

.ph-contact-map .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(18, 58, 70, 0.14);
}

.ph-contact-map .leaflet-popup-content {
    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #20343B;
}

/* =====================================================
   PANNEAU FLOTTANT DE NAVIGATION
===================================================== */


.ph-contact-map__panel {
    position: absolute;
    top: 50%;
    right: 25px;

    width: 290px;
    max-width: calc(100% - 50px);
    padding: 18px;

    transform: translateY(-50%);

    background-color: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(227, 235, 229, 0.9);
    border-radius: 20px;

    box-shadow: 0 15px 45px rgba(18, 58, 70, 0.16);

    z-index: 500;
}


/* =====================================================
   BLOC LOCALISATION
===================================================== */

.ph-contact-map__location {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding-bottom: 22px;
    margin-bottom: 22px;

    border-bottom: 1px solid #E7EDE8;
}

.ph-contact-map__location-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    flex-shrink: 0;

    background-color: #EDF5E6;
    border-radius: 13px;

    color: var(--secondary, #83A52B);
}

.ph-contact-map__location-icon ion-icon {
    font-size: 25px;
}

.ph-contact-map__location-text {
    min-width: 0;
    flex: 1;
}

.ph-contact-map__location-text h3 {
    margin: 2px 0 7px;

    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;

    color: #20343B;
}

.ph-contact-map__location-text p {
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 0.87rem;
    line-height: 1.65;

    color: #607078;
}

/* =====================================================
   MODES DE DÉPLACEMENT
===================================================== */

.ph-contact-map__travel-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-bottom: 20px;
}

.ph-contact-map__mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;
    padding: 10px 12px;

    border: 1px solid #E1E9E3;
    border-radius: 11px;

    background-color: #F8FAF7;
    color: #52666D;

    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.ph-contact-map__mode ion-icon {
    font-size: 19px;
    flex-shrink: 0;
}

.ph-contact-map__mode:hover {
    background-color: #EDF5E6;
    border-color: #83A52B;
    color: #20343B;
}

/* Mode sélectionné */

.ph-contact-map__mode.is-active,
.ph-contact-map__mode[aria-pressed="true"] {
    background-color: #EDF5E6;
    border-color: #83A52B;
    color: #5F7F18;
}

/* =====================================================
   BOUTONS D'ACTION
===================================================== */

.ph-contact-map__actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ph-contact-map__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 48px;
    padding: 12px 16px;

    border: 1px solid transparent;
    border-radius: 11px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.ph-contact-map__btn ion-icon {
    font-size: 19px;
    flex-shrink: 0;
}

/* Bouton Ma position */

.ph-contact-map__btn--secondary {
    background-color: #FFFFFF;
    border-color: #DCE7E1;
    color: #0085AD;
}

.ph-contact-map__btn--secondary:hover {
    background-color: #EDF7FA;
    border-color: #0085AD;
    transform: translateY(-2px);
}

/* Bouton Itinéraire */

.ph-contact-map__btn--primary {
    background-color: var(--primary, #0085AD);
    border-color: var(--primary, #0085AD);
    color: #FFFFFF;
}

.ph-contact-map__btn--primary:hover {
    background-color: var(--primary-dark, #006B8D);
    border-color: var(--primary-dark, #006B8D);

    box-shadow: 0 7px 18px rgba(0, 133, 173, 0.22);

    transform: translateY(-2px);
}

/* États désactivés */

.ph-contact-map__btn:disabled,
.ph-contact-map__mode:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Accessibilité clavier */

.ph-contact-map__btn:focus-visible,
.ph-contact-map__mode:focus-visible {
    outline: 3px solid #83A52B;
    outline-offset: 3px;
}

/* =====================================================
   INFORMATIONS SUR L'ITINÉRAIRE
===================================================== */

.ph-contact-map__route-info {
    margin-top: 18px;
    padding: 15px;

    background-color: #EDF5E6;
    border: 1px solid #DCE9D3;
    border-radius: 11px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.86rem;
    line-height: 1.65;

    color: #20343B;
}

/* =====================================================
   MESSAGES DE STATUT ET D'ERREUR
===================================================== */

.ph-contact-map__status {
    margin: 15px 0 0;
    padding: 12px 14px;

    background-color: #F0F7FA;
    border-left: 3px solid #0085AD;
    border-radius: 8px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.84rem;
    line-height: 1.6;

    color: #34535D;
}

/* Respect de l'attribut HTML hidden */

.ph-contact-map__route-info[hidden],
.ph-contact-map__status[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE — TABLETTES
===================================================== */

@media (max-width: 991.98px) {

    .ph-contact-map {
        padding: 85px 0 95px;
    }

    .ph-contact-map__header {
        margin-bottom: 45px;
    }

    .ph-contact-map__wrapper {
        min-height: 520px;
    }

    .ph-contact-map__canvas {
        min-height: 520px;
    }

    .ph-contact-map__panel {
        right: 18px;
        width: 310px;
        max-width: calc(100% - 36px);
        padding: 22px;
    }
}

/* =====================================================
   RESPONSIVE — SMARTPHONES
===================================================== */

@media (max-width: 767.98px) {

    .ph-contact-map {
        padding: 70px 0 80px;
    }

    .ph-contact-map__header {
        margin-bottom: 38px;
    }

    .ph-contact-map__eyebrow {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .ph-contact-map__title {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        letter-spacing: -0.5px;
    }

    .ph-contact-map__description {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    /* La carte et le panneau deviennent verticaux */

    .ph-contact-map__wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 350px auto;
    
        height: auto;
        min-height: 0;
    
        border-radius: 18px;
        overflow: hidden;
    }
    

    .ph-contact-map__canvas {
        position: relative;
        inset: auto;
    
        grid-column: 1;
        grid-row: 1;
    
        width: 100%;
        height: 350px;
        min-height: 0;
    }
    

    /* Panneau sous la carte */

    .ph-contact-map__panel {
        position: relative;
        top: auto;
        right: auto;
    
        grid-column: 1;
        grid-row: 2;
    
        width: 100%;
        max-width: 100%;
        min-width: 0;
    
        margin: 0;
        padding: 25px 22px;
    
        transform: none;
    
        z-index: 2;
    
        border: none;
        border-top: 1px solid #E3EBE5;
        border-radius: 0;
    
        box-shadow: none;
        background-color: #FFFFFF;
    }

    .ph-contact-map__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ph-contact-map__btn {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

/* =====================================================
   RESPONSIVE — PETITS SMARTPHONES
===================================================== */

@media (max-width: 399.98px) {

    .ph-contact-map__wrapper {
        grid-template-rows: 300px auto;
    }
    

    .ph-contact-map__canvas {
        height: 300px;
        min-height: 0;
    }

    .ph-contact-map__panel {
        padding: 22px 17px;
    }

    .ph-contact-map__location-text h3 {
        font-size: 0.94rem;
    }

    .ph-contact-map__travel-modes {
        gap: 8px;
    }

    .ph-contact-map__mode {
        font-size: 0.82rem;
        padding: 10px 8px;
    }

    .ph-contact-map__actions {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   ACCESSIBILITÉ — ANIMATIONS RÉDUITES
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .ph-contact-map__btn,
    .ph-contact-map__mode,
    .ph-contact-map .leaflet-control-zoom a {
        transition: none;
    }

    .ph-contact-map__btn:hover {
        transform: none;
    }
}

/* Attribution discrète de la carte */

.ph-contact-map .leaflet-control-attribution {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.75);
    padding: 2px 5px;
}













/* ==========================================================
   PHYTORICA — FORMULAIRE DE CONTACT
   Photo superposée + formulaire
========================================================== */

.ph-contact-form {
    position: relative;
    padding: 100px 0 120px;
    background: var(--background, #F8FAF7);
    overflow: hidden;
}

/* ==========================================================
   1. EN-TÊTE
========================================================== */

.ph-contact-form__header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.ph-contact-form__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--secondary, #83A52B);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ph-contact-form__title {
    margin: 0;
    color: var(--text, #20343B);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.25;
}

.ph-contact-form__separator {
    display: block;
    width: 65px;
    height: 4px;
    margin: 22px auto;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        var(--primary, #0085AD),
        var(--secondary, #83A52B)
    );
}

.ph-contact-form__description {
    max-width: 600px;
    margin: 0 auto;
    color: #63747A;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================================
   2. COMPOSITION PHOTO + FORMULAIRE
========================================================== */

.ph-contact-form__composition {
    position: relative;
    display: grid;
    grid-template-columns: 62% 58%;
    align-items: center;
    width: 100%;
    isolation: isolate;
}

/*
   La photo occupe 62 % de la largeur.
   Le formulaire occupe 58 %.

   Les deux colonnes dépassent volontairement 100 %.
   Nous ramenons la carte vers la gauche pour créer
   un chevauchement visuel.
*/

/* ==========================================================
   3. PHOTOGRAPHIE
========================================================== */

.ph-contact-form__visual {
    position: relative;
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    height: 650px;
    overflow: hidden;

    border-radius: 26px;

    box-shadow:
        0 25px 65px rgba(18, 58, 70, 0.13);
}

.ph-contact-form__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: transform 0.8s ease;
}

.ph-contact-form__visual:hover .ph-contact-form__image {
    transform: scale(1.04);
}

/* Dégradé pour préserver la lisibilité du texte */

.ph-contact-form__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        180deg,
        rgba(18, 58, 70, 0.02) 20%,
        rgba(18, 58, 70, 0.12) 48%,
        rgba(18, 58, 70, 0.78) 100%
    );

    pointer-events: none;
}

/* Texte intégré à la photographie */

.ph-contact-form__visual-overlay {
    position: absolute;
    z-index: 2;
    bottom: 45px;
    left: 40px;

    max-width: 290px;
    color: #FFFFFF;
}

.ph-contact-form__visual-label {
    display: block;
    margin-bottom: 12px;

    color: #D8EBBA;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ph-contact-form__visual-text {
    margin: 0;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 600;
    line-height: 1.5;
}

/* ==========================================================
   4. CARTE DU FORMULAIRE
========================================================== */

.ph-contact-form__card {
    position: relative;
    z-index: 3;

    grid-column: 2;
    grid-row: 1;

    width: 100%;
    min-width: 0;
    margin-left: -34%;

    padding: 42px 44px;

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;

    box-shadow:
        0 28px 75px rgba(18, 58, 70, 0.17),
        0 6px 20px rgba(18, 58, 70, 0.05);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/*
   Accent supérieur Phytorica
*/

.ph-contact-form__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 44px;

    width: 80px;
    height: 4px;

    border-radius: 0 0 10px 10px;

    background: linear-gradient(
        90deg,
        var(--primary, #0085AD),
        var(--secondary, #83A52B)
    );
}

/* ==========================================================
   5. TITRE ET DESCRIPTION DU FORMULAIRE
========================================================== */

.ph-contact-form__card-header {
    margin-bottom: 28px;
}

.ph-contact-form__card-header h3 {
    margin: 0 0 12px;

    color: var(--text, #20343B);
    font-family: "Montserrat", sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.ph-contact-form__card-header p {
    margin: 0;

    color: #6A7B80;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================
   6. CHAMPS DU FORMULAIRE
========================================================== */

.ph-contact-form__fields {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.ph-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ph-contact-form__field label {
    color: var(--text, #20343B);

    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.ph-contact-form__field input,
.ph-contact-form__field textarea {
    display: block;
    width: 100%;
    min-width: 0;

    padding: 13px 16px;

    color: var(--text, #20343B);
    background: #F9FBFA;

    border: 1px solid #DCE6E1;
    border-radius: 10px;
    outline: none;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.5;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.ph-contact-form__field input::placeholder,
.ph-contact-form__field textarea::placeholder {
    color: #97A5A5;
}

.ph-contact-form__field input:focus,
.ph-contact-form__field textarea:focus {
    background: #FFFFFF;

    border-color: var(--primary, #0085AD);

    box-shadow:
        0 0 0 4px rgba(0, 133, 173, 0.10);
}

.ph-contact-form__field textarea {
    min-height: 125px;
    resize: vertical;
}

/* ==========================================================
   7. BOUTON D'ENVOI
========================================================== */

.ph-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 52px;

    margin-top: 4px;
    padding: 13px 20px;

    color: #FFFFFF;
    background: var(--primary, #0085AD);

    border: none;
    border-radius: 10px;

    cursor: pointer;

    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ph-contact-form__submit ion-icon {
    font-size: 19px;
    transition: transform 0.25s ease;
}

.ph-contact-form__submit:hover {
    background: var(--primary-dark, #006B8D);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(0, 133, 173, 0.20);
}

.ph-contact-form__submit:hover ion-icon {
    transform: translateX(4px);
}

.ph-contact-form__submit:focus-visible {
    outline: 3px solid var(--secondary, #83A52B);
    outline-offset: 3px;
}

.ph-contact-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================
   8. MESSAGES DE CONFIRMATION / ERREUR
========================================================== */

.ph-contact-form__feedback {
    margin: 0;
    padding: 12px 15px;

    color: #3B6022;
    background: #EDF5E6;

    border-radius: 9px;

    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

.ph-contact-form__feedback[hidden] {
    display: none;
}

/* ==========================================================
   9. RESPONSIVE — TABLETTES
========================================================== */

@media (max-width: 991.98px) {

    .ph-contact-form {
        padding: 80px 0 95px;
    }

    .ph-contact-form__composition {
        grid-template-columns: 60% 65%;
    }

    .ph-contact-form__visual {
        height: 630px;
    }

    .ph-contact-form__card {
        margin-left: -38%;
        padding: 32px 28px;
    }

    .ph-contact-form__card-header h3 {
        font-size: 22px;
    }

}

/* ==========================================================
   10. RESPONSIVE — SMARTPHONES
========================================================== */

@media (max-width: 767.98px) {

    .ph-contact-form {
        padding: 65px 0 80px;
    }

    .ph-contact-form__header {
        margin-bottom: 40px;
    }

    .ph-contact-form__description {
        font-size: 14px;
    }

    .ph-contact-form__composition {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* Photographie */

    .ph-contact-form__visual {
        width: 100%;
        height: 340px;
        flex: none;

        border-radius: 20px;
    }

    .ph-contact-form__visual-overlay {
        bottom: 65px;
        left: 25px;

        max-width: calc(100% - 50px);
    }

    .ph-contact-form__visual-text {
        max-width: 270px;
        font-size: 20px;
    }

    /* Formulaire légèrement superposé */

    .ph-contact-form__card {
        width: calc(100% - 24px);
        flex: none;

        margin: -35px auto 0;
        padding: 30px 22px;

        border-radius: 19px;
    }

    .ph-contact-form__card::before {
        left: 24px;
    }

    .ph-contact-form__card-header h3 {
        font-size: 21px;
    }

    .ph-contact-form__fields {
        gap: 17px;
    }

}

/* ==========================================================
   11. PETITS SMARTPHONES
========================================================== */

@media (max-width: 399.98px) {

    .ph-contact-form__visual {
        height: 300px;
    }

    .ph-contact-form__card {
        width: calc(100% - 14px);
        padding: 25px 17px;
    }

    .ph-contact-form__visual-overlay {
        left: 20px;
        max-width: calc(100% - 40px);
    }

    .ph-contact-form__visual-text {
        font-size: 18px;
    }

}

/* ==========================================================
   12. ACCESSIBILITÉ — ANIMATIONS RÉDUITES
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ph-contact-form__image,
    .ph-contact-form__submit,
    .ph-contact-form__submit ion-icon,
    .ph-contact-form__field input,
    .ph-contact-form__field textarea {
        transition: none;
    }

}




























/* ==========================================================
   PHYTORICA — SECTION 5 : CLÔTURE BOTANIQUE
   Signature végétale avant le footer
========================================================== */

.ph-contact-closing {
    position: relative;
    padding: 105px 0 115px;
    background-color: #FFFFFF;
    overflow: hidden;
    isolation: isolate;
}

/* ==========================================================
   1. COMPOSITION PRINCIPALE
========================================================== */

.ph-contact-closing__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 70px;
}

/* ==========================================================
   2. CONTENU TEXTUEL
========================================================== */

.ph-contact-closing__content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.ph-contact-closing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--secondary, #83A52B);
}

.ph-contact-closing__line {
    display: inline-block;
    width: 35px;
    height: 3px;
    flex-shrink: 0;

    border-radius: 10px;
    background-color: var(--secondary, #83A52B);
}

/* Titre principal */

.ph-contact-closing__title {
    max-width: 690px;
    margin: 0 0 24px;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -1px;

    color: var(--text, #20343B);
}

/* Description */

.ph-contact-closing__description {
    max-width: 600px;
    margin: 0;

    font-family: "DM Sans", sans-serif;
    font-size: 1.03rem;
    line-height: 1.9;

    color: #607078;
}

/* ==========================================================
   3. VALEURS PHYTORICA
========================================================== */

.ph-contact-closing__values {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 32px;

    font-family: "DM Sans", sans-serif;
    font-size: 0.87rem;
    font-weight: 700;

    color: var(--primary, #0085AD);
}

.ph-contact-closing__dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    flex-shrink: 0;

    border-radius: 50%;
    background-color: var(--secondary, #83A52B);
}

/* ==========================================================
   4. COMPOSITION BOTANIQUE
========================================================== */

.ph-contact-closing__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 250px;

    isolation: isolate;
}

/* Grand cercle végétal */

.ph-contact-closing__circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(100%, 230px);
    aspect-ratio: 1;

    border-radius: 50%;

    background: radial-gradient(
        circle at 35% 30%,
        #F7FAF1 0%,
        #EDF5E6 60%,
        #E2EDDA 100%
    );

    box-shadow:
        0 25px 60px rgba(18, 58, 70, 0.08),
        inset 0 0 0 1px rgba(131, 165, 43, 0.08);
}

/* Anneau décoratif */

.ph-contact-closing__circle::before {
    content: "";
    position: absolute;
    inset: 16px;

    border: 1px solid rgba(131, 165, 43, 0.30);
    border-radius: 50%;
}

/* Cercle intérieur */

.ph-contact-closing__circle-inner {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 58%;
    aspect-ratio: 1;

    border: 2px solid var(--secondary, #83A52B);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    box-shadow:
        0 12px 30px rgba(131, 165, 43, 0.08);
}

/* Icône végétale */

.ph-contact-closing__circle-inner ion-icon {
    font-size: clamp(50px, 6vw, 75px);
    color: var(--secondary, #83A52B);

    transform: rotate(-20deg);

    filter: drop-shadow(
        0 8px 10px rgba(131, 165, 43, 0.12)
    );
}

/* ==========================================================
   5. PETITES DÉCORATIONS FLOTTANTES
========================================================== */

.ph-contact-closing__decoration {
    position: absolute;
    z-index: -1;

    display: block;
    border-radius: 50%;

    pointer-events: none;
}

/* Décoration supérieure */

.ph-contact-closing__decoration--one {
    width: 45px;
    height: 45px;

    top: 5%;
    right: 5%;

    background-color: rgba(131, 165, 43, 0.12);
}

/* Décoration inférieure */

.ph-contact-closing__decoration--two {
    width: 22px;
    height: 22px;

    bottom: 7%;
    left: 7%;

    background-color: rgba(0, 133, 173, 0.13);
}

/* ==========================================================
   6. TRANSITION VERS LE FOOTER
========================================================== */

/*
   Le footer possède déjà sa ligne décorative globale.
*/

/* ==========================================================
   7. RESPONSIVE — TABLETTES
========================================================== */

@media (max-width: 991.98px) {

    .ph-contact-closing {
        padding: 85px 0 95px;
    }

    .ph-contact-closing__layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 35px;
    }

    .ph-contact-closing__visual {
        min-height: 230px;
    }

    .ph-contact-closing__circle {
        max-width: 210px;
    }

    .ph-contact-closing__title {
        font-size: clamp(1.9rem, 3.7vw, 2.6rem);
    }

    .ph-contact-closing__description {
        font-size: 0.96rem;
    }
}

/* ==========================================================
   8. RESPONSIVE — SMARTPHONES
========================================================== */

@media (max-width: 767.98px) {

    .ph-contact-closing {
        padding: 75px 0 85px;
    }

    .ph-contact-closing__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .ph-contact-closing__content {
        text-align: center;
    }

    .ph-contact-closing__eyebrow {
        justify-content: center;
        margin-bottom: 20px;
        font-size: 0.72rem;
    }

    .ph-contact-closing__title {
        max-width: 540px;
        margin: 0 auto 20px;

        font-size: clamp(1.8rem, 7vw, 2.3rem);
        letter-spacing: -0.5px;
    }

    .ph-contact-closing__description {
        max-width: 520px;
        margin: 0 auto;

        font-size: 0.95rem;
        line-height: 1.8;
    }

    .ph-contact-closing__values {
        justify-content: center;
        gap: 11px;
        margin-top: 27px;
        font-size: 0.82rem;
    }

    /* Illustration sous le texte */

    .ph-contact-closing__visual {
        min-height: 210px;
    }

    .ph-contact-closing__circle {
        width: 190px;
        max-width: 100%;
    }

    .ph-contact-closing__circle-inner ion-icon {
        font-size: 60px;
    }

    .ph-contact-closing__decoration--one {
        width: 35px;
        height: 35px;
    }

    .ph-contact-closing__decoration--two {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================
   9. PETITS SMARTPHONES
========================================================== */

@media (max-width: 399.98px) {

    .ph-contact-closing {
        padding: 65px 0 75px;
    }

    .ph-contact-closing__layout {
        gap: 35px;
    }

    .ph-contact-closing__title {
        font-size: 1.75rem;
    }

    .ph-contact-closing__values {
        gap: 9px;
        font-size: 0.76rem;
    }

    .ph-contact-closing__visual {
        min-height: 190px;
    }

    .ph-contact-closing__circle {
        width: 170px;
    }

    .ph-contact-closing__circle-inner ion-icon {
        font-size: 52px;
    }
}

/* ==========================================================
   10. ACCESSIBILITÉ
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .ph-contact-closing__circle,
    .ph-contact-closing__circle-inner ion-icon {
        transition: none;
        animation: none;
    }
}
