/* ================================================== */
/* STYLES SPÉCIFIQUES - troubles.css */
/* ================================================== */

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

.troubles-hero.hero-cover {
    position: relative;
    min-height: 55vh;           /* Hauteur comparable à Parcours */
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);

    background-image:
        linear-gradient(
            120deg,
            rgba(15, 15, 40, 0.85) 0%,
            rgba(70, 35, 95, 0.75) 40%,
            rgba(70, 35, 95, 0.5) 70%,
            rgba(10, 10, 20, 0.35) 100%
        ),
        url("../img/julien-michon-alpha-training-64-troubles.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* On masque le <picture> pour ne garder que le fond CSS (comme Parcours) */
.troubles-hero.hero-cover .hero-media {
    display: none;
}

.troubles-hero .container {
    position: relative;
    z-index: 1;
}

.troubles-hero h1 {
    font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.5rem);
    color: #ffffff;
}

.troubles-hero .subtitle {
    color: var(--accent);
    font-size: clamp(1.1rem, 0.8rem + 1vw, 1.6rem);
    margin-top: 10px;
    margin-bottom: 10px;
}

.troubles-hero .hero-intro {
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 25px;
    color: #f5f2ff;
}

.troubles-hero .btn-row {
    justify-content: center;
}

@media (max-width: 768px) {
    .troubles-hero.hero-cover {
        min-height: 45vh;
        padding: 80px 0;
    }
}

/* ========================= */
/* TROUBLES LISTE           */
/* ========================= */

.troubles-list {
    background-color: var(--text-light);
}

.troubles-list .section-intro {
    font-size: 1.05rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.trouble-detail {
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background-color: var(--neutral);
    border-left: 5px solid var(--secondary);
}

.trouble-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.trouble-content.reverse {
    flex-direction: row-reverse;
}
@media (max-width: 992px) {
    .trouble-content,
    .trouble-content.reverse {
        flex-direction: column;
    }
}

.trouble-text {
    flex: 1;
}

.trouble-text h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.trouble-badge {
    display: inline-block;
    padding: 4px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--highlight);
    border-radius: 50px;
    margin-bottom: 10px;
}

.trouble-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 20px;
}

.trouble-manifestations {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.trouble-manifestations li {
    padding: 5px 0;
    font-size: 1rem;
    color: var(--text-muted);
}
.trouble-manifestations li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Bloc solution */
.trouble-solution {
    background-color: var(--text-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid var(--accent);
}
.trouble-solution h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 700;
}
.trouble-solution p {
    font-size: 0.95rem;
}

/* Image */
.trouble-image {
    flex-shrink: 0;
    max-width: 40%;
}
.trouble-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
@media (max-width: 992px) {
    .trouble-image {
        max-width: 100%;
    }
}

/* ========================= */
/* CAUSES DES TROUBLES       */
/* ========================= */

.troubles-causes {
    background-color: var(--neutral);
}

.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cause-item {
    text-align: center;
    background: var(--text-light);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border-top: 3px solid var(--highlight);
}

.cause-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cause-item h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.cause-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ========================= */
/* PROCESSUS D'ACCOMPAGNEMENT */
/* ========================= */

.troubles-process {
    background-color: var(--text-light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: var(--accent);
    transition: transform 0.3s ease;
}
.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
}

.process-step h3 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
}

.process-step p {
    font-size: 0.9rem;
}

/* ========================= */
/* ALERTE VÉTÉRINAIRE        */
/* ========================= */

.vet-alert {
    padding: 40px 0;
}

.alert-box {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #fff3cd;
    border: 1px solid var(--highlight);
    border-radius: 12px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.alert-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.alert-content h3 {
    color: #e67e22;
    margin-top: 0;
}

.alert-content .cta-button {
    margin-top: 10px;
    background: #e67e22;
    color: var(--text-light);
    border: none;
    padding: 8px 20px;
}
.alert-content .cta-button:hover {
    background: #d35400;
}

@media (max-width: 600px) {
    .alert-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================= */
/* CTA FINALE                */
/* ========================= */

.troubles-cta {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--text-light);
    text-align: center;
}

.troubles-cta h2,
.troubles-cta p {
    color: var(--text-light);
}

.troubles-cta p {
    max-width: 650px;
    margin: 0 auto;
}

.troubles-cta .btn-row {
    justify-content: center;
    margin-top: 30px;
}

.troubles-cta .cta-button.secondary {
    border-color: var(--highlight);
    color: var(--highlight);
}
.troubles-cta .cta-button.secondary:hover {
    background-color: rgba(243, 156, 18, 0.15);
}
