/* ===================================================
   TAMPON ANIMÉ — emplacement réservé illustration animée
   =================================================== */

.tampon-anime {
    position: relative;
    border-radius: 28px;
    background: rgba(26, 107, 74, 0.05);
    border: 2px dashed rgba(26, 107, 74, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px 48px;
    overflow: hidden;
}

.tampon-fallback {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
}

/* Badge "illustration animée" visible en développement */
.tampon-anime::after {
    content: "Illustration animée";
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 11px;
    border-radius: 999px;
    background: rgba(26, 107, 74, 0.10);
    color: var(--accent-1);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}


/* ===================================================
   HERO
   =================================================== */

.ordinia-hero {
    width: 100%;
    background: #ffffff;
}

/* ── Mobile (base) : texte centré, illustration en filigrane derrière ── */
.hero-inner {
    position: relative;
    width: min(100%, 1200px);
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 88px 24px 64px;
}

/* Texte au premier plan */
.hero-texte {
    position: relative;
    z-index: 1;
}

/* Illustration en arrière-plan */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media-lottie {
    display: none;
}

.hero-media .tampon-anime {
    width: 88%;
    max-width: 380px;
    min-height: unset;
    padding: 0;
    background: transparent;
    border: none;
    opacity: 0.16;
}

/* Masquer le badge "illustration animée" sur mobile (il est derrière le texte) */
.hero-media .tampon-anime::after {
    display: none;
}

/* Badge kicker */
.hero-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(26, 107, 74, 0.10);
    color: var(--accent-1);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-texte h1 {
    margin: 0;
    color: #0c1f17;
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.hero-accent {
    color: var(--couleur-accent2);
}

.hero-subtitle {
    margin: 20px auto 0;
    color: rgba(12, 31, 23, 0.66);
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.72;
    max-width: 40ch;
}

.hero-cta-groupe {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

@media (max-width: 580px) {
    .hero-inner {
        padding: 80px 20px 56px;
    }

    .hero-badge {
        margin-bottom: 14px;
    }

    .hero-cta-groupe {
        margin-top: 24px;
    }
}

/* ── Desktop : 2 colonnes, illustration pleine dans la colonne droite ── */
@media (min-width: 860px) {
    .ordinia-hero {
        display: flex;
        align-items: center;
    }

    .hero-inner {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: flex-start;
        gap: 72px;
        padding: 80px 60px;
        min-height: 100dvh;
    }

    .hero-texte {
        flex: 0 0 52%;
        position: static;
        z-index: auto;
    }

    .hero-media {
        position: static;
        flex: 1;
        inset: auto;
        overflow: visible;
        pointer-events: auto;
    }

    .hero-media-lottie {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 480px;
    }

    .hero-media .tampon-anime {
        display: none;
    }

    .hero-subtitle {
        max-width: 42ch;
        margin-left: 0;
    }

    .hero-cta-groupe {
        justify-content: flex-start;
    }
}


/* ===================================================
   PROBLÉMATIQUE
   =================================================== */

.problematique {
    padding: 88px 20px;
    background: #ffffff;
}

.problematique-layout {
    width: min(100%, 1160px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
}

.problematique-grille {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Carte */
.probleme-carte {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(26, 107, 74, 0.10);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(16, 35, 28, 0.05),
        0 0 0 1px rgba(26, 107, 74, 0.04);
    transition: box-shadow 240ms ease, transform 240ms ease;
}

.probleme-carte:hover {
    box-shadow:
        0 8px 28px rgba(16, 35, 28, 0.10),
        0 0 0 1px rgba(26, 107, 74, 0.10);
    transform: translateY(-3px);
}

/* Illustration en haut de carte */
.probleme-illu {
    padding: 32px 24px 24px;
    background: linear-gradient(160deg, #f2f8f5 0%, #e8f1ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.probleme-illu img {
    display: block;
    width: min(100%, 180px);
    height: auto;
}

/* Texte en bas de carte */
.probleme-corps {
    padding: 22px 24px 28px;
}

.probleme-corps h3 {
    margin: 0 0 10px;
    color: #0c1f17;
    font-size: clamp(1rem, 1.6vw, 1.05rem);
    font-weight: 700;
    line-height: 1.4;
}

.probleme-corps p {
    margin: 0;
    color: rgba(12, 31, 23, 0.62);
    font-size: 0.92rem;
    line-height: 1.7;
}

@media (min-width: 660px) {
    .problematique-grille {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 580px) {
    .problematique {
        padding: 64px 16px;
    }

    .probleme-illu {
        min-height: 150px;
    }
}


/* ===================================================
   SOLUTION
   =================================================== */

.solution {
    padding: 88px 20px;
    background: linear-gradient(160deg, #f2f8f5 0%, #e8f1ec 100%);
}

.solution-layout {
    width: min(100%, 1160px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.solution-contenu {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sur desktop, titre aligné à gauche */
.solution-titre {
    align-items: flex-start;
}

.solution-titre .section-kicker {
    margin-left: 0;
}

.solution-titre h2 {
    text-align: left;
}

/* Étapes */
.solution-etapes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.solution-etape {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 24px 0;
}

.etape-separateur {
    width: 2px;
    height: 24px;
    background: rgba(26, 107, 74, 0.20);
    margin-left: 23px;
    border-radius: 2px;
}

.etape-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #124d35 0%, #1a6b4a 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(26, 107, 74, 0.28);
}

.etape-corps {
    padding-top: 6px;
}

.etape-corps h3 {
    margin: 0 0 8px;
    color: #0c1f17;
    font-size: clamp(1rem, 1.6vw, 1.05rem);
    font-weight: 700;
    line-height: 1.4;
}

.etape-corps p {
    margin: 0;
    color: rgba(12, 31, 23, 0.62);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* CTA */
.solution-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Media (tampon) */
.solution-media {
    display: flex;
    justify-content: center;
}

.solution-media .tampon-anime {
    width: min(100%, 380px);
    min-height: 320px;
}

@media (min-width: 860px) {
    .solution-layout {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .solution-contenu {
        flex: 1;
        min-width: 0;
    }

    .solution-media {
        flex: 0 0 360px;
    }

    .solution-media .tampon-anime {
        width: 100%;
        min-height: 420px;
    }
}

@media (max-width: 580px) {
    .solution {
        padding: 64px 16px;
    }
}


/* ===================================================
   RÉSULTATS
   =================================================== */

.resultats {
    padding: 88px 20px;
    background: #ffffff;
}

.resultats-layout {
    width: min(100%, 960px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.resultats-grille {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.resultat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.resultat-chiffre {
    color: var(--accent-1);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.resultat-libelle {
    color: rgba(12, 31, 23, 0.60);
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: 22ch;
}

.resultat-sep {
    width: 40px;
    height: 2px;
    background: rgba(26, 107, 74, 0.14);
    border-radius: 2px;
    flex-shrink: 0;
}

@media (min-width: 660px) {
    .resultats-grille {
        flex-direction: row;
        justify-content: center;
        gap: 0;
        align-items: stretch;
    }

    .resultat-item {
        flex: 1;
        padding: 0 32px;
    }

    .resultat-sep {
        width: 1px;
        height: auto;
        align-self: stretch;
        min-height: 80px;
    }

    .resultat-libelle {
        max-width: 18ch;
    }
}

@media (max-width: 580px) {
    .resultats {
        padding: 64px 16px;
    }
}


/* ===================================================
   CRÉDIBILITÉ + CTA FINAL
   =================================================== */

.credibilite {
    padding: 64px 20px;
    background: linear-gradient(135deg, #124d35 0%, #1a6b4a 60%, #22835c 100%);
    margin-bottom: 0;
}

.credibilite-layout {
    width: min(100%, 960px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* Bande de 3 items */
.credibilite-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.credibilite-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.credibilite-valeur {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.credibilite-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    font-weight: 400;
}

.credibilite-sep {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    flex-shrink: 0;
}

/* CTA final */
.credibilite-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.credibilite-cta-accroche {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 500;
    line-height: 1.5;
}

.credibilite-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--accent-1);
    font-size: var(--txt-md);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.credibilite-cta-btn:hover,
.credibilite-cta-btn:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.93);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    outline: 3px solid rgba(255, 255, 255, 0.24);
    outline-offset: 3px;
}

.credibilite-cta-btn:active {
    transform: translateY(0);
}

@media (min-width: 660px) {
    .credibilite-items {
        flex-direction: row;
        justify-content: center;
        gap: 0;
        align-items: stretch;
    }

    .credibilite-item {
        flex: 1;
        padding: 0 32px;
    }

    .credibilite-sep {
        width: 1px;
        height: auto;
        align-self: stretch;
        min-height: 56px;
    }
}

@media (max-width: 580px) {
    .credibilite {
        padding: 48px 16px;
    }

    .credibilite-cta-btn {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

/* ===================================================
   RESERVATION INDEX
   =================================================== */

.reservation-index {
    padding: 0 20px 72px;
    background: #ffffff;
}

.reservation-index-layout {
    width: min(100%, 820px);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.reservation-index-layout h2 {
    color: #0c1f17;
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.reservation-index-copy {
    max-width: 52ch;
    color: rgba(12, 31, 23, 0.66);
    line-height: 1.72;
}

.reservation-index-cta {
    margin-top: 10px;
}

/* ===================================================
   CALENDLY OVERLAY
   =================================================== */

body.contact-overlay-open {
    overflow: hidden;
}

.contact-calendly-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.contact-calendly-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.contact-calendly-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 31, 23, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-calendly-dialog {
    position: relative;
    width: min(100%, 1040px);
    transform: translateY(18px) scale(0.985);
    opacity: 0;
    transition: transform 260ms ease, opacity 240ms ease;
}

.contact-calendly-overlay.is-open .contact-calendly-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.contact-calendly-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0c1f17;
    box-shadow: 0 12px 26px rgba(16, 35, 28, 0.16);
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.contact-calendly-close:hover,
.contact-calendly-close:focus-visible {
    transform: scale(1.04);
    background: #f4faf7;
    color: var(--accent-1);
    outline: none;
}

.contact-calendly-close span {
    font-size: 1.5rem;
    line-height: 1;
}

.contact-calendly-panel,
.contact-panel-head,
.calendly-inline-widget {
    position: relative;
    z-index: 1;
}

.contact-calendly-panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.contact-panel-head {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
    justify-items: center;
    text-align: center;
}

.contact-panel-head h2 {
    color: #ffffff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.calendly-inline-widget {
    width: 100%;
    min-width: 280px;
    height: 700px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(26, 107, 74, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 12px 28px rgba(16, 35, 28, 0.06);
}

.site-footer {
    margin-top: 0;
}

@media (max-width: 580px) {
    .reservation-index {
        padding: 0 16px 56px;
    }

    .contact-calendly-overlay {
        padding: 14px;
    }

    .contact-calendly-dialog {
        width: 100%;
    }

    .contact-calendly-close {
        top: -4px;
        right: -2px;
    }

    .calendly-inline-widget {
        height: 660px;
        border-radius: 18px;
    }
}
