/* ==========================================================================
   LES VERTUS DES SIMPLES — PHYTOTHÉRAPIE (STYLES PREMIUM V2.0)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Spécifique — Split Layout Inventif
   -------------------------------------------------------------------------- */
.phyto-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 80vh;
    background: radial-gradient(circle at 80% 50%, rgba(143, 169, 140, 0.15) 0%, transparent 60%), 
                var(--cream);
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Offset for fixed navbar */
    border-bottom: 1px solid rgba(155, 126, 164, 0.12);
}

/* Background organic noise overlay */
.phyto-hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

.phyto-hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 8% 8rem 10%;
    position: relative;
    z-index: 2;
}

.phyto-hero-left .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.phyto-hero-left .hero-eyebrow::before {
    content: '';
    display: block;
    width: 30px; height: 1px;
    background: var(--mauve);
}

.phyto-hero-left .hero-eyebrow span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--mauve-deep);
    text-shadow: none !important;
}

.phyto-hero-left .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    color: var(--forest);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: none !important;
}

.phyto-hero-left .hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--mauve-deep);
    display: block;
    font-size: 0.8em;
    margin-top: 0.25em;
    font-weight: 300;
    text-shadow: none !important;
}

.phyto-hero-left .hero-description {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--text-mid);
    margin-bottom: 3.5rem;
    max-width: 580px;
    text-shadow: none !important;
}

.phyto-hero-left .hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Éléments Floraux Illustratifs en Arrière-Plan */
.hero-floral-accent {
    position: absolute;
    top: 5%;
    left: 2%;
    width: 180px;
    height: 180px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    animation: floatSlow 6s ease-in-out infinite;
}

.hero-floral-accent-right {
    position: absolute;
    bottom: 8%;
    right: 52%;
    width: 140px;
    height: 140px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    transform: rotate(180deg);
    animation: floatSlow 8s ease-in-out infinite alternate;
}

@keyframes floatSlow {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.phyto-hero-left .btn-premium {
    padding: 1.1rem 2.4rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 40px;
    display: inline-block;
    transition: var(--t-smooth);
    font-weight: 500;
}

.phyto-hero-left .btn-premium.gold {
    background: var(--forest);
    color: var(--white);
    border: 1px solid var(--forest);
}

.phyto-hero-left .btn-premium.gold:hover {
    background: var(--mauve-deep);
    border-color: var(--mauve-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(122, 95, 131, 0.2);
}

.phyto-hero-left .btn-premium.outline-light {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgba(27, 74, 36, 0.25);
}

.phyto-hero-left .btn-premium.outline-light:hover {
    background: rgba(27, 74, 36, 0.04);
    border-color: var(--forest);
    transform: translateY(-2px);
}

.phyto-hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 10% 4rem 0;
    position: relative;
    z-index: 2;
}

.botanical-frame {
    position: relative;
    width: 100%;
    max-width: 445px;
    aspect-ratio: 4/5;
    border-radius: 24px; /* clean modern soft cornered rectangle */
    overflow: hidden;
    border: 1px solid rgba(155, 126, 164, 0.18);
    box-shadow: 0 20px 45px rgba(13, 26, 17, 0.08);
    background: var(--white);
    padding: 0.8rem;
    transition: var(--t-smooth);
}

.botanical-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 1.5s var(--ease-out);
}

.botanical-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 65px rgba(13, 26, 17, 0.14);
    border-color: rgba(155, 126, 164, 0.35);
}

.botanical-frame:hover img {
    transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Pêle-Mêle (Mosaïque de Photos - Moodboard Organique)
   -------------------------------------------------------------------------- */
.pelemele-moodboard {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1.1;
    margin: 0 auto;
}

.pelemele-item {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 26, 17, 0.15);
    border: 6px solid var(--white); /* Effet cadre photo */
    transition: transform 0.5s var(--ease-out), z-index 0s, box-shadow 0.5s var(--ease-out);
}

.pelemele-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Disposition des 5 photos en chevauchement */
.pelemele-1 { /* Tisane fumante */
    width: 55%;
    height: 65%;
    top: 5%;
    left: 5%;
    transform: rotate(-3deg);
    z-index: 2;
}

.pelemele-2 { /* Herbes suspendues */
    width: 45%;
    height: 50%;
    top: 0;
    right: 0;
    transform: rotate(4deg);
    z-index: 1;
}

.pelemele-3 { /* Bâton smudge haut */
    width: 40%;
    height: 40%;
    top: 45%;
    right: 5%;
    transform: rotate(-2deg);
    z-index: 3;
}

.pelemele-4 { /* Cheminée large */
    width: 60%;
    height: 35%;
    bottom: 5%;
    left: 10%;
    transform: rotate(2deg);
    z-index: 4;
}

.pelemele-5 { /* Bâton composition bas */
    width: 35%;
    height: 35%;
    bottom: -5%;
    right: 15%;
    transform: rotate(-5deg);
    z-index: 5;
}

/* Effet au survol : la photo passe au premier plan et se redresse */
.pelemele-item:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(13, 26, 17, 0.25);
}

/* --------------------------------------------------------------------------
   Sections de Contenu Alterné
   -------------------------------------------------------------------------- */
.phyto-content-section {
    padding: 10rem 8%;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.phyto-content-section::before {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 40%; height: 60%;
    background: radial-gradient(circle, rgba(143, 169, 140, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.phyto-content-section.dark {
    background: rgba(155, 126, 164, 0.08);
    color: var(--text-dark);
    border-top: 1px solid rgba(155, 126, 164, 0.12);
    border-bottom: 1px solid rgba(155, 126, 164, 0.12);
}

.phyto-content-section.dark::before {
    background: radial-gradient(circle, rgba(155, 126, 164, 0.06) 0%, transparent 70%);
}

.phyto-content-section.dark .section-header h2 {
    color: var(--forest);
}

.phyto-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.phyto-container.reverse {
    grid-template-columns: 1fr 1.1fr;
}

.phyto-text {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.phyto-text p {
    font-size: 1.18rem;
    line-height: 1.85;
    color: var(--text-mid);
}

.phyto-text p strong {
    color: var(--forest);
    font-weight: 500;
}

.phyto-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
}

.phyto-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    border: 1px solid rgba(155, 126, 164, 0.15);
    box-shadow: 0 15px 45px rgba(13, 26, 17, 0.06);
    background: var(--white);
    padding: 0.5rem;
    transition: var(--t-smooth);
}

.phyto-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0.5rem;
    border: 1px dashed rgba(155, 126, 164, 0.25);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
    transition: var(--t-smooth);
}

.phyto-image-wrapper:nth-child(2) {
    transform: translateY(3.5rem);
}

.phyto-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 1.5s var(--ease-out);
    z-index: 1;
}

.phyto-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(155, 126, 164, 0.15);
    border-color: rgba(155, 126, 164, 0.4);
}

.phyto-image-wrapper:hover::before {
    border-color: var(--mauve);
    border-style: solid;
}

.phyto-image-wrapper:hover img {
    transform: scale(1.08);
}

.phyto-image-wrapper:nth-child(2):hover {
    transform: translateY(3rem);
}

/* --------------------------------------------------------------------------
   Section Sagesse Ancestrale (Histoire) - Version V3.0 Split
   -------------------------------------------------------------------------- */
.history-section {
    padding: 10rem 8%;
    background: var(--sage-light);
    position: relative;
    border-top: 1px solid rgba(143, 169, 140, 0.2);
    border-bottom: 1px solid rgba(143, 169, 140, 0.2);
    overflow: hidden;
}

.history-section::before {
    content: '🍂';
    position: absolute;
    top: 3rem; right: 5%;
    font-size: 3.5rem;
    opacity: 0.12;
}

.history-split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.history-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.history-text-col p {
    font-size: 1.18rem;
    line-height: 1.85;
    color: var(--text-mid);
}

.botanical-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--forest);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.history-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.herbarium-frame {
    position: relative;
    background: #FAF8F5;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(155, 126, 164, 0.15);
    box-shadow: 0 20px 50px rgba(13, 26, 17, 0.08);
    max-width: 440px;
    width: 100%;
    aspect-ratio: 4/5;
    display: flex;
    flex-direction: column;
    transition: var(--t-smooth);
}

.herbarium-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px dashed rgba(155, 126, 164, 0.25);
}

.herbarium-tag {
    margin-top: 1rem;
    border-top: 1px solid rgba(155, 126, 164, 0.15);
    padding-top: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.herbarium-tag .tag-title {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-mid);
    font-weight: 600;
}

.herbarium-tag .tag-meta {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--mauve-deep);
}

.herbarium-frame:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 30px 65px rgba(13, 26, 17, 0.15);
}

/* --------------------------------------------------------------------------
   Section Apothicaire (L'art de l'Apothicaire)
   -------------------------------------------------------------------------- */
.apothecary-section {
    padding: 10rem 8%;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.apothecary-section::before {
    content: '';
    position: absolute;
    bottom: -10%; left: -10%;
    width: 40%; height: 50%;
    background: radial-gradient(circle, rgba(155, 126, 164, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.apothecary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 5rem auto 0;
    position: relative;
    z-index: 1;
}

.apothecary-card {
    background: var(--cream);
    border: 1px solid rgba(155, 126, 164, 0.12);
    padding: 4rem 2.5rem;
    text-align: center;
    border-radius: 20px;
    transition: var(--t-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 30px rgba(13, 26, 17, 0.02);
}

.apothecary-card::before {
    content: '✦';
    font-size: 1.5rem;
    color: var(--mauve);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.5;
    transition: var(--t-smooth);
}

.apothecary-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(155, 126, 164, 0.12);
    border-color: rgba(155, 126, 164, 0.4);
    background: var(--white);
}

.apothecary-card:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.apothecary-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--forest);
    margin-bottom: 1.2rem;
}

.apothecary-card p {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.apothecary-badge {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mauve-deep);
    border: 1px solid rgba(155, 126, 164, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-top: auto;
    background: var(--white);
    transition: var(--t-smooth);
}

.apothecary-card:hover .apothecary-badge {
    background: var(--gold);
    color: var(--forest);
    border-color: var(--gold);
}

/* --------------------------------------------------------------------------
   Responsive et Adaptabilité
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .phyto-hero-split {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 6rem;
    }
    .phyto-hero-right {
        padding: 2rem 8%;
    }
    .botanical-frame {
        max-width: 400px;
        margin: 0 auto;
    }
    .pelemele-moodboard {
        max-width: 100%;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 968px) {
    .phyto-container {
        grid-template-columns: 1fr !important;
        gap: 5rem;
    }
    
    .phyto-image-grid {
        max-width: 550px;
        margin: 0 auto;
    }
    
    .apothecary-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .history-split-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .phyto-hero-left {
        padding: 4rem 6%;
    }
    
    .phyto-hero-left .hero-title {
        font-size: 2.8rem;
    }
    
    .phyto-hero-left .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .phyto-hero-left .btn-premium {
        width: 100%;
    }
    
    .phyto-image-wrapper:nth-child(2) {
        transform: translateY(2rem);
    }
    
    .phyto-image-wrapper:nth-child(2):hover {
        transform: translateY(1.5rem);
    }
    
    .phyto-content-section {
        padding: 6rem 6%;
    }
}
