@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;600&display=swap');

:root {
    --vert-profond: #1F6F4A;
    --beige-creme: #F5F1EA;
    --marron-cacao: #6B4F3F;
    --or-doux: #D4A94E;
    --gris-fonce: #2E2E2E;
    --blanc-pur: #FFFFFF;

    --bs-primary: var(--vert-profond);
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-color: var(--gris-fonce);
}

body {
    color: var(--gris-fonce);
}

.hero {
    padding: 46px 0 34px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 22px;
    align-items: center;
    min-height: min(620px, calc(100vh - 88px));
}

.hero-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.55);
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

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

.hero-media-left {
    aspect-ratio: 4 / 5;
    transform: translateY(18px);
}

.hero-media-right {
    aspect-ratio: 4 / 5;
    transform: translateY(-18px);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 22px 18px;
    border-radius: 20px;
    background: rgba(245, 241, 234, 0.42);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.10);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: clamp(56px, 7vw, 86px);
    line-height: 0.95;
    letter-spacing: 1px;
    color: var(--gris-fonce);
    margin: 16px 0 12px;
    position: relative;
    z-index: 2;
    text-shadow:
        0 10px 28px rgba(0, 0, 0, 0.18),
        0 0 0 rgba(0, 0, 0, 0);
}

.hero-title::before {
    content: '';
    position: absolute;
    inset: -14px -18px;
    z-index: -1;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.65);
    padding: 5px;
}

.hero-subtitle {
    margin: 0 auto;
    max-width: 40ch;
    font-weight: 600;
    color: rgba(46, 46, 46, 0.82);
    padding: 5px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(31, 111, 74, 0.20);
    border: 1px solid rgba(31, 111, 74, 0.22);
}

.hero-actions .btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
    }

    .hero-media-left,
    .hero-media-right {
        aspect-ratio: auto;
        transform: none;
    }

    .hero-media img {
        height: auto;
        object-fit: contain;
    }

    .hero-content {
        order: -1;
        padding: 8px 6px;
    }

    .hero-title::before {
        inset: -10px -12px;
    }
}

@media (max-width: 520px) {
    .hero {
        padding: 34px 0 22px;
    }

    .hero-inner {
        gap: 12px;
    }

    .hero-title {
        font-size: clamp(44px, 12vw, 60px);
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 360px;
    }

    .hero-media-left,
    .hero-media-right {
        aspect-ratio: auto;
    }

    .hero-media img {
        height: auto;
    }
}

/* Services et objectifs */
.services-points {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.service-point {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(31, 111, 74, 0.14);
}

.objectif-block {
    padding: 22px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(31, 111, 74, 0.14);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.10);
    font-size: clamp(16px, 1.2vw, 18px);
    line-height: 1.65;
}

.objectif-headline {
    font-weight: 700;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.05;
    letter-spacing: 0.2px;
    margin: 0;
}

.objectif-label {
    color: var(--vert-profond);
    font-weight: 700;
}

.objectifs-diagonal {
    display: grid;
    gap: 14px;
    justify-items: center;
    width: min(220px, 100%);
    margin: 0 auto;
}

.objectifs-diagonal img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
}

.objectifs-diagonal img:nth-child(1) {
    transform: translateX(-18px) rotate(-2deg);
}

.objectifs-diagonal img:nth-child(2) {
    transform: translateX(18px) rotate(2deg);
}

@media (max-width: 991.98px) {

    .objectifs-diagonal img:nth-child(1),
    .objectifs-diagonal img:nth-child(2) {
        transform: translateX(0) rotate(0);
    }
}

.services-diagonal {
    display: grid;
    gap: 14px;
    justify-items: center;
    /* centre le bloc global */
    width: min(560px, 100%);
    margin: 0 auto;
    max-width: 100%;
    /* s’adapte à son parent */
}

.services-diagonal img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
}

/* première image → droite */
.services-diagonal img:nth-child(1) {
    transform: translateX(30px) rotate(-3deg);
    /* décale vers la droite et légère rotation */
}

/* deuxième image → gauche */
.services-diagonal img:nth-child(2) {
    transform: translateX(-30px) rotate(2deg);
    /* décale vers la gauche */
}

/* troisième image → droite */
.services-diagonal img:nth-child(3) {
    transform: translateX(20px) rotate(-2deg);
    /* décale légèrement vers la droite */
}

/* responsive pour mobile → tout centré */
@media (max-width: 991.98px) {

    .services-diagonal img:nth-child(1),
    .services-diagonal img:nth-child(2),
    .services-diagonal img:nth-child(3) {
        transform: translateX(0) rotate(0);
    }
}

/* Animation service */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-18px);
}

.reveal-right {
    transform: translateX(18px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}



.services-diagonal .reveal:nth-child(1) {
    transition-delay: 80ms;
}

.services-diagonal .reveal:nth-child(2) {
    transition-delay: 180ms;
}

.services-diagonal .reveal:nth-child(3) {
    transition-delay: 280ms;
}

.objectifs-diagonal .reveal:nth-child(1) {
    transition-delay: 80ms;
}

.objectifs-diagonal .reveal:nth-child(2) {
    transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Base (éléments contact) */
.contact-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

/* le soulignement */
.contact-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #fff534;
    /* vert BIO MADA */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

/* état animé déclenché par JS */
.contact-flash::after {
    transform: scaleX(1);
}