/*
Theme Name:     Petite Herboristerie
Theme URI:      
Description:    Divi child theme.
Author:         Me
Author URI:     
Template:       Divi
Version:        0.1.0
*/

/* PH DESIGN SYSTEM START */

:root {
  --ph-green: #39563f;
  --ph-sage: #9cad88;
  --ph-ivory: #f7f5ef;
  --ph-earth: #ad806a;
  --ph-text: #2d3b32;

  --ph-width: 1120px;
  --ph-reading-width: 720px;
}

/* Largeur des sections */
.ph-container {
  width: 90%;
  max-width: var(--ph-width);
  margin-inline: auto;
}

/* Textes longs */
.ph-prose {
  max-width: var(--ph-reading-width);
  margin-inline: auto;
  line-height: 1.8;
}

/* Espacement des grandes sections */
.ph-section {
  padding-block: clamp(48px, 6vw, 96px);
}

/* Blocs de contenu */
.ph-card {
  background: var(--ph-ivory);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 40px);
}

/* PH DESIGN SYSTEM END */

/* PH HEADER V1 START */

/* En-tete Divi standard */
#main-header,
#main-header.et-fixed-header {
    background-color: var(--ph-ivory) !important;
    box-shadow: 0 1px 0 rgba(57, 86, 63, 0.12) !important;
}

/* Largeur de navigation */
#main-header .container {
    max-width: var(--ph-width);
}

/* Liens du menu */
#top-menu li a {
    color: var(--ph-green);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* Survol */
#top-menu li a:hover {
    color: var(--ph-earth);
    opacity: 1;
}

/* Page active */
#top-menu li.current-menu-item > a {
    color: var(--ph-earth);
}

/* Menu mobile */
.mobile_menu_bar:before {
    color: var(--ph-green);
}

.et_mobile_menu {
    border-top-color: var(--ph-sage);
}

@media (max-width: 980px) {
    #main-header {
        background-color: var(--ph-ivory);
    }
}

/* PH HEADER V1 END */


/* PH TYPOGRAPHY V1 START */

/* Typographie générale */

body {
    color: var(--ph-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

/* Titres */

h1, h2, h3,
.et_pb_text h1,
.et_pb_text h2,
.et_pb_text h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ph-green);
    font-weight: 400;
    line-height: 1.25;
}

h1 {
    font-size: clamp(34px, 4vw, 54px);
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
}

h3 {
    font-size: clamp(22px, 2.2vw, 29px);
}

/* Accueil */

.ph-hero {
    background-color: var(--ph-ivory);
    padding-top: clamp(55px, 8vw, 110px);
    padding-bottom: clamp(55px, 8vw, 110px);
}

.ph-hero-title h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.15;
    max-width: 850px;
}

.ph-hero-intro {
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.65;
    max-width: 720px;
}

/* Textes de présentation */

.ph-intro {
    max-width: 760px;
    margin-inline: auto;
    line-height: 1.85;
}

/* Citations et témoignages */

.ph-quote {
    background: var(--ph-ivory);
    border-left: 3px solid var(--ph-sage);
    padding: 30px 35px;
    border-radius: 0 8px 8px 0;
}

.ph-quote p {
    font-family: Georgia, serif;
    font-size: 19px;
    line-height: 1.75;
}

/* Boutons personnalisés */

.ph-button {
    display: inline-block;
    background: var(--ph-green);
    color: white;
    border-radius: 4px;
    padding: 12px 26px;
    text-decoration: none;
    transition: background-color .2s ease;
}

.ph-button:hover {
    background: var(--ph-earth);
    color: white;
}

/* Articles du blog */

.ph-article {
    max-width: var(--ph-reading-width);
    margin-inline: auto;
}

.ph-article p {
    margin-bottom: 1.4em;
    line-height: 1.85;
}

/* PH TYPOGRAPHY V1 END */


/* PH HOMEPAGE V1 START */

/* Première section de l'accueil */

.ph-home-hero {
    background: var(--ph-ivory);
    padding: clamp(55px, 7vw, 100px) 0 !important;
}

.ph-home-hero .et_pb_row {
    width: 90% !important;
    max-width: var(--ph-width) !important;
    margin-inline: auto !important;
}

.ph-home-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ph-green);
    max-width: 850px;
}

.ph-home-hero p {
    font-size: clamp(18px, 1.8vw, 22px);
    line-height: 1.75;
    color: var(--ph-text);
    max-width: 740px;
}

/* Sections suivantes */

.ph-home-content {
    padding: clamp(50px, 6vw, 90px) 0 !important;
}

.ph-home-content .et_pb_row {
    width: 90% !important;
    max-width: var(--ph-width) !important;
}

.ph-home-content h2 {
    color: var(--ph-green);
    font-family: Georgia, serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
}

/* PH HOMEPAGE V1 END */


/* PH GLOBAL HEADER V1 START */

.ph-site-header {
    background-color: var(--ph-ivory, #f7f5ef) !important;
    padding: 12px 0 !important;
    min-height: 0 !important;
    border-bottom: 1px solid rgba(57,86,63,.12);
}

.ph-site-header .et_pb_row {
    width: 92% !important;
    max-width: 1120px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ph-site-header .et_pb_menu {
    background: transparent !important;
    margin-bottom: 0 !important;
}

.ph-site-header .et-menu a,
.ph-site-header nav a {
    color: #39563f !important;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.5;
}

.ph-site-header .et-menu a:hover {
    color: #ad806a !important;
}

@media (max-width: 980px) {
    .ph-site-header {
        padding: 8px 0 !important;
    }
}

/* PH GLOBAL HEADER V1 END */


/* PH FOOTER V1 START */

.ph-site-footer {
    background: #f7f5ef !important;
    padding: 45px 0 20px !important;
    border-top: 1px solid #d8decf;
}

.ph-site-footer .et_pb_row {
    width: 90% !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ph-site-footer h3 {
    font-family: Georgia, serif;
    font-size: 23px;
    color: #39563f;
    margin-bottom: 12px;
}

.ph-site-footer p,
.ph-site-footer .et_pb_text {
    font-size: 15px;
    line-height: 1.8;
    color: #61745c;
}

.ph-site-footer a {
    color: #39563f;
    text-decoration: none;
}

.ph-site-footer a:hover {
    color: #ad806a;
}

.ph-site-footer .et_pb_row:last-of-type {
    border-top: 1px solid #d8decf;
    padding-top: 18px !important;
}

@media (max-width: 767px) {
    .ph-site-footer {
        padding: 35px 0 15px !important;
    }

    .ph-site-footer .et_pb_row {
        width: 88% !important;
    }
}

/* PH FOOTER V1 END */


/* PH FOOTER V2 START */

.ph-site-footer {
    background-color: #f7f5ef !important;
    padding: 28px 0 12px !important;
    min-height: 0 !important;
}

.ph-site-footer .et_pb_row {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ph-site-footer .et_pb_row + .et_pb_row {
    border-top: 1px solid #d8decf;
    margin-top: 22px !important;
    padding-top: 15px !important;
}

.ph-site-footer h3 {
    margin-bottom: 8px;
}

.ph-site-footer .et_pb_row:last-child .et_pb_text {
    text-align: center;
}

/* PH FOOTER V2 END */

/* PH FOOTER FINAL START */

.ph-site-footer {
    background-color: #f7f5ef !important;
    border-top: 1px solid #d8decf;
    padding: 30px 0 18px !important;
    min-height: 0 !important;
    height: auto !important;
}

.ph-site-footer .et_pb_row {
    width: 90% !important;
    max-width: 1120px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

.ph-site-footer .et_pb_row + .et_pb_row {
    border-top: 1px solid #d8decf;
    margin-top: 22px !important;
    padding-top: 15px !important;
}

.ph-site-footer h3 {
    color: #39563f;
    font-family: Georgia, serif;
    font-size: 24px;
    margin-bottom: 8px;
}

.ph-site-footer p {
    color: #61745c;
    font-size: 15px;
    line-height: 1.6;
    padding-bottom: 6px;
}

.ph-site-footer a {
    color: #39563f;
    text-decoration: none;
}

.ph-site-footer a:hover {
    color: #ad806a;
}

.ph-site-footer .et_pb_row:last-child .et_pb_text {
    text-align: center;
}

/* Adaptation mobile */

@media (max-width: 767px) {
    .ph-site-footer {
        padding: 28px 0 15px !important;
    }

    .ph-site-footer .et_pb_row {
        width: 88% !important;
    }

    .ph-site-footer h3 {
        font-size: 21px;
    }
}

/* PH FOOTER FINAL END */


/* PH CONTENT V1 START */

.ph-home-sections,
.ph-interior-content {
    color: #2d3b32;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

.ph-home-sections {
    max-width: 1120px;
    width: 90%;
    margin: 0 auto;
    padding: 30px 0 80px;
}

.ph-home-introduction {
    max-width: 780px;
    padding: 45px 0 55px;
}

.ph-eyebrow {
    color: #708469;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.ph-home-sections h2,
.ph-interior-content h2 {
    font-family: Georgia, serif;
    color: #39563f;
    font-size: clamp(29px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 20px;
}

.ph-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.ph-home-card {
    background: #f7f5ef;
    padding: 30px;
    border-radius: 5px;
}

.ph-home-card h3 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #39563f;
    margin-bottom: 15px;
}

.ph-home-journal {
    margin-top: 80px;
    padding: 60px;
    background: #eef1e8;
}

.ph-home-contact {
    padding: 65px 0 10px;
    max-width: 760px;
}

.ph-interior-content {
    max-width: 820px;
    margin: 35px auto 80px;
    padding: 0 24px;
}

.ph-interior-content h2 {
    margin-top: 38px;
}

.ph-interior-content p {
    margin-bottom: 20px;
}

.ph-interior-content a,
.ph-home-contact a {
    color: #39563f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .ph-home-grid {
        grid-template-columns: 1fr;
    }

    .ph-home-journal {
        margin-top: 45px;
        padding: 30px 24px;
    }

    .ph-home-sections {
        padding-bottom: 45px;
    }
}

/* PH CONTENT V1 END */


/* PH LANGUAGES V1 START */

.ph-retreats {
    max-width: 850px;
    margin: 45px auto 85px;
    padding: 0 24px;
}

.ph-language-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-bottom: 35px;
    font-size: 14px;
    letter-spacing: 1px;
}

.ph-language-links a,
.ph-language-links strong {
    padding: 6px 10px;
    border: 1px solid #d8decf;
    border-radius: 3px;
}

.ph-language-links a {
    color: #39563f;
    text-decoration: none;
}

.ph-language-links strong {
    background: #39563f;
    color: white;
}

.ph-retreats h2 {
    margin-top: 38px;
}

.ph-retreats ul {
    padding-left: 25px;
    margin-bottom: 28px;
}

.ph-retreats li {
    margin-bottom: 8px;
}

/* PH LANGUAGES V1 END */

/* PH RANDOM TESTIMONIAL START */

.ph-testimonial-feature {
    background: #f7f5ef;
    margin: 60px 0 45px;
    padding: clamp(28px, 4vw, 50px);
    border-left: 3px solid #9cad88;
}

.ph-testimonial-feature h2 {
    color: #39563f;
    font-family: Georgia, serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    margin-bottom: 25px;
}

.ph-testimonial-card {
    display: block;
    color: #2d3b32;
    text-decoration: none !important;
}

.ph-testimonial-excerpt {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.65;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;

    overflow: hidden;
    margin-bottom: 20px;
}

.ph-testimonial-link {
    color: #39563f;
    font-family: Arial, sans-serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
}

.ph-testimonial-card:hover
.ph-testimonial-link {
    color: #ad806a;
    text-decoration: underline;
}

.ph-testimonial-card:focus-visible {
    outline: 2px solid #39563f;
    outline-offset: 6px;
}

@media (max-width: 767px) {
    .ph-testimonial-feature {
        margin: 35px 0;
        padding: 25px;
    }
}

/* PH RANDOM TESTIMONIAL END */

/* PH IMAGE CATALOGUE START */

.ph-image-catalogue {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.ph-image-catalogue section {
    margin: 45px 0;
}

.ph-image-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
}

.ph-image-grid figure {
    margin: 0;
    background: #f7f5ef;
    border: 1px solid #d8decf;
    border-radius: 6px;
    overflow: hidden;
}

.ph-image-grid img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    background: white;
}

.ph-image-grid figcaption {
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.ph-image-grid small {
    display: block;
    color: #61745c;
    margin-top: 5px;
}

/* PH IMAGE CATALOGUE END */


/* PH LOGO FIX START */

.ph-site-header .et_pb_menu__logo-wrap,
.ph-site-header .et_pb_menu__logo {
    width: 66px !important;
    max-width: 66px !important;
    flex: 0 0 66px !important;
}

.ph-site-header .et_pb_menu__logo img,
.ph-site-header .et_pb_menu img {
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    object-fit: contain;
}

.ph-site-header .et_pb_row {
    min-height: 0 !important;
}

/* PH LOGO FIX END */

/* PH LOGO SPACING V1 */

.ph-site-header .et_pb_menu__logo-wrap {
    margin-right: 24px !important;
}

/* END PH LOGO SPACING V1 */


/* PH HEADER WHITE V1 */

.ph-site-header,
.ph-site-header .et_pb_row,
.ph-site-header .et_pb_column,
.ph-site-header .et_pb_menu {
    background-color: #ffffff !important;
}

/* END PH HEADER WHITE V1 */


/* PH HEADER IVORY FINAL */

.ph-site-header,
.ph-site-header .et_pb_row,
.ph-site-header .et_pb_column,
.ph-site-header .et_pb_menu {
    background-color: #f7f5ef !important;
}

/* END PH HEADER IVORY FINAL */


/* PH IVORY LOGO V2 */

.ph-site-header,
.ph-site-header .et_pb_row,
.ph-site-header .et_pb_column,
.ph-site-header .et_pb_menu {
    background-color: #f7f5ef !important;
}

/* END PH IVORY LOGO V2 */


/* PH ORIGINAL PHOTOS V1 */

.ph-home-photo,
.ph-page-cover,
.ph-home-card-photo,
.ph-gallery-photo {
    margin: 0;
}

.ph-photo-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Grande photographie de l'accueil */

.ph-home-photo {
    margin: 0 0 35px;
}

.ph-home-photo img {
    width: 100%;
    height: clamp(260px, 36vw, 460px);
    object-fit: cover;
    object-position: center 32%;
    border-radius: 6px;
}

/* Photos des trois cartes d'accueil */

.ph-home-card-photo {
    margin: -30px -30px 22px;
}

.ph-home-card-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

/* Grande image des pages intérieures */

.ph-page-cover {
    margin: 0 0 35px;
}

.ph-page-cover img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 6px;
}

/* Galeries photographiques */

.ph-original-gallery {
    width: 90%;
    max-width: 820px;
    margin: 30px auto 70px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ph-gallery-photo img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 5px;
}

/* Mobile */

@media (max-width: 767px) {

    .ph-home-photo img {
        height: 280px;
    }

    .ph-original-gallery {
        grid-template-columns: 1fr;
    }

    .ph-gallery-photo img {
        height: auto;
        max-height: 360px;
        object-fit: contain;
    }
}

/* END PH ORIGINAL PHOTOS V1 */


/* PH HOME FINISH V1 START */

.ph-home-card {
    position: relative;
    overflow: hidden;
}

.ph-home-card p {
    margin-bottom: 0;
}

.ph-home-card .ph-card-cta {
    display: inline-block;
    margin-top: 15px;
    color: #39563f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ph-card-cta::after {
    content: "";
    position: absolute;
    inset: 0;
}

.ph-home-card:focus-within {
    outline: 2px solid #39563f;
    outline-offset: 3px;
}

.ph-home-card:has(.ph-card-cta):hover {
    box-shadow: 0 5px 20px rgba(45,59,50,.10);
}

.ph-testimonial-feature {
    margin-top: 55px;
    margin-bottom: 45px;
}

.ph-testimonial-feature .ph-testimonial-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ph-testimonial-feature {
        margin-top: 35px;
        margin-bottom: 35px;
    }
}

/* PH HOME FINISH V1 END */

/* PH CONTACT FORM V1 START */

.ph-contact-wrap {
    max-width: 680px;
    margin: 30px 0 60px;
}

.ph-contact-form {
    display: grid;
    gap: 12px;
}

.ph-contact-form > label:not(.ph-contact-consent) {
    font-weight: 600;
    color: #39563f;
    margin-top: 8px;
}

.ph-contact-form input[type="text"],
.ph-contact-form input[type="email"],
.ph-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #c9d1c2;
    border-radius: 5px;
    background: white;
    color: #2d3b32;
    font: inherit;
}

.ph-contact-form textarea {
    resize: vertical;
}

.ph-contact-form :focus-visible {
    outline: 2px solid #39563f;
    outline-offset: 2px;
}

.ph-contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0;
}

.ph-contact-consent input {
    margin-top: 5px;
}

.ph-contact-form button {
    justify-self: start;
    background: #39563f;
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 13px 25px;
    font: inherit;
    cursor: pointer;
}

.ph-contact-form button:hover {
    background: #ad806a;
}

.ph-contact-privacy {
    font-size: 13px;
    color: #61745c;
}

.ph-contact-notice {
    padding: 15px;
    border: 1px solid #9cad88;
    border-radius: 5px;
    background: #f7f5ef;
}

.ph-contact-trap {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* PH CONTACT FORM V1 END */
