/* =========================================================================
 *  Page individuelle d'un domaine d'intervention (single-domaine.php)
 * ====================================================================== */

.domaine-detail {
    padding: 5rem 0 6rem;
    background-color: #fff;
    color: #111;
    font-family: 'Inter', sans-serif;
}

.domaine-detail__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
}

/* --- Contenu (rendu de l'éditeur) --- */
.domaine-detail__content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}

.domaine-detail__content > :first-child {
    margin-top: 0;
}

.domaine-detail__content h2,
.domaine-detail__content h3 {
    font-family: 'Montserrat', sans-serif;
    color: #111;
    line-height: 1.2;
}

.domaine-detail__content h2 {
    margin: 2.75rem 0 1rem;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
}

.domaine-detail__content h3 {
    margin: 2rem 0 0.85rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.domaine-detail__content p {
    margin: 0 0 1.1rem;
}

.domaine-detail__content strong {
    color: #111;
}

.domaine-detail__content ul {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.domaine-detail__content ul li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.65rem;
}

.domaine-detail__content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--color-red, #f20000);
}

/* Variante « points de réassurance » (✔️) : <ul class="domaine-checks"> */
.domaine-detail__content ul.domaine-checks li::before {
    content: '✓';
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--color-blue, #0c5cc0);
    font-weight: 800;
}

/* Ligne mise en avant (👉) : la saisir comme citation dans l'éditeur */
.domaine-detail__content blockquote {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background-color: #f4f7fb;
    border-left: 4px solid var(--color-blue, #0c5cc0);
    border-radius: 0 0.75rem 0.75rem 0;
    font-weight: 600;
    color: #1f2937;
}

.domaine-detail__content blockquote p {
    margin: 0;
}

/* --- Encart devis --- */
.domaine-detail__cta {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 2.25rem;
    background-color: var(--color-dark, #1a1a1a);
    color: #fff;
    border-radius: 1.25rem;
}

.domaine-detail__cta-pill {
    padding: 0.4rem 1rem;
    background-color: rgba(242, 0, 0, 0.85);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.domaine-detail__cta-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.15;
}

.domaine-detail__cta-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.domaine-detail__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.85rem 1.5rem;
    background-color: var(--color-red, #f20000);
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.domaine-detail__cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(242, 0, 0, 0.3);
}

.domaine-detail__cta-icon {
    display: inline-flex;
    align-items: center;
}

.domaine-detail__cta-phone {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.domaine-detail__cta-phone strong {
    color: #fff;
}

/* --- Retour --- */
.domaine-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 3.5rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.domaine-detail__back:hover {
    color: var(--color-red, #f20000);
}

.domaine-detail__back-icon {
    display: inline-flex;
    align-items: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .domaine-detail {
        padding: 3.5rem 0 4.5rem;
    }

    .domaine-detail__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .domaine-detail__cta {
        position: static;
    }
}
