/* ==================== PAGES.CSS — Styles communs aux pages de service ==================== */

/* ==================== BOUTONS (variantes pour les pages de service) ==================== */
.btn-primary {
    background: var(--green-cta);
    color: #fff !important;
    border: 2px solid var(--green-cta);
}

.btn-primary:hover {
    background: var(--green-darkest);
    border-color: var(--green-darkest);
}

.btn-outline-white {
    background: rgba(0, 0, 0, .28);
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 50px;
    backdrop-filter: blur(6px);
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary-color) !important;
    border-color: #fff;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 11rem 0 5rem;
    text-align: center;
    background: var(--green-darkest);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.35) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.5);
}

.page-hero .hero-subtitle,
.page-hero .hero-h1-sub {
    color: #fff;
}

.page-hero .hero-h1-sub {
    text-shadow: 0 1px 8px rgba(0,0,0,.6);
}

.page-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: .92;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.page-hero .hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.2rem;
}

.hero-badge {
    background: rgba(0,0,0,.28);
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
    padding: .4em 1.1em;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4em;
}

.hero-badge i {
    font-size: .8em;
    opacity: .85;
}

.page-hero .hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==================== SCROLL OFFSET (header fixe) ==================== */
.content-section,
.faq {
    scroll-margin-top: 80px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb-bar {
    background: var(--bg-breadcrumb);
    border-bottom: 1px solid var(--border-breadcrumb);
    padding: .55rem 0;
    font-size: .82rem;
    color: #777;
}

.breadcrumb-bar .container {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.breadcrumb-bar a {
    color: var(--green-medium);
    text-decoration: none;
}

.breadcrumb-bar a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #ccc;
    font-size: .8rem;
}

.breadcrumb-current {
    color: #555;
}

/* ==================== SECTIONS ==================== */
.content-section {
    padding: 70px 0;
}

.content-section.bg-light {
    background: var(--bg-warm);
}

.content-section.bg-green {
    background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
    color: #fff;
}

.content-section.bg-green .section-title {
    color: var(--green-light);
    border-color: var(--green-light);
}

.content-section.bg-green p,
.content-section.bg-green li {
    color: rgba(255,255,255,.85);
}

/* ==================== FEATURE GRID ==================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.feature-card .feature-icon {
    font-size: 1.9rem;
    color: var(--green-medium);
    margin-bottom: .7rem;
}

.feature-card h3 {
    font-size: .97rem;
    color: var(--green-darkest);
    margin-bottom: .4rem;
}

.feature-card p {
    font-size: .84rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

/* ==================== VS TABLE ==================== */
.vs-table-wrap {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    background: #fff;
    min-width: 480px;
}

.vs-table th {
    padding: .9rem 1.2rem;
    text-align: left;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.vs-table th:first-child {
    background: var(--bg-breadcrumb);
    color: #555;
    width: 28%;
}

.vs-table th.col-chenil {
    background: #fdecea;
    color: #b03030;
    width: 36%;
}

.vs-table th.col-ferme {
    background: var(--green-bg);
    color: var(--green-dark);
    width: 36%;
}

.vs-table td {
    padding: .7rem 1.2rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #444;
}

.vs-table tr:last-child td {
    border-bottom: none;
}

.vs-table td:first-child {
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

.vs-table td.bad {
    color: #c0392b;
}

.vs-table td.good {
    color: var(--green-dark);
    font-weight: 600;
}

/* ==================== PRICING BOX ==================== */
.pricing-box {
    background: linear-gradient(135deg, var(--green-darkest), var(--green-dark));
    color: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 380px;
    margin: 0 auto;
}

.pricing-box .price-label {
    font-size: .78rem;
    opacity: .75;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pricing-box .price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: .5rem 0 .3rem;
}

.pricing-box .price-unit {
    font-size: .95rem;
    opacity: .8;
    margin-bottom: 1.5rem;
}

.pricing-box .conditions {
    background: rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1.4rem;
    font-size: .85rem;
    text-align: left;
    margin-top: 1rem;
    list-style: none;
}

.pricing-box .conditions li {
    padding: .2rem 0;
    opacity: .9;
    position: relative;
    padding-left: 1.3rem;
}

.pricing-box .conditions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-light);
    font-weight: 700;
}

/* ==================== ZONE PILLS ==================== */
.zone-container {
    margin-top: 1.5rem;
}

.zone-dept {
    margin-bottom: 1.3rem;
}

.zone-dept-label {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--green-medium);
    margin-bottom: .5rem;
}

.zone-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.zone-pill {
    background: var(--green-bg);
    color: var(--green-darkest);
    border: 1px solid #b2dfdb;
    padding: .25em .85em;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
}

.zone-pill.primary {
    background: var(--green-dark);
    color: #fff;
    border-color: var(--green-dark);
    font-weight: 700;
}

/* ==================== STEPS ==================== */
.steps {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.8rem;
}

.step-num {
    min-width: 38px;
    height: 38px;
    background: var(--green-medium);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.step-body strong {
    display: block;
    font-size: 1rem;
    color: var(--green-darkest);
    margin-bottom: .25rem;
}

.step-body span {
    font-size: .88rem;
    color: #666;
    line-height: 1.6;
}

/* ==================== RACE GRID ==================== */
.race-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.5rem;
}

.race-card {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    background: #eef4e8;
    border: 1px solid #c5d9b0;
    border-radius: 999px;
    padding: .45em 1.1em;
    font-size: .92rem;
    font-weight: 600;
    color: var(--green-darkest);
    white-space: nowrap;
}

.race-card svg {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
}

/* ==================== CTA BLOCK ==================== */
.cta-block {
    background: var(--bg-cream);
    border-radius: 14px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-block h2 {
    font-size: 1.6rem;
    color: var(--green-darkest);
    margin-bottom: 2rem;
}

.cta-block p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cta-tel-link {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--green-medium);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: .85rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background .2s;
}

.cta-tel-link:hover {
    background: var(--green-darkest);
    color: #fff;
}

/* ==================== HIGHLIGHT BOX ==================== */
.highlight-box {
    background: var(--green-bg);
    border-left: 4px solid var(--green-medium);
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    font-size: .95rem;
    color: var(--green-darkest);
    line-height: 1.65;
}

/* ==================== QUOTE ==================== */
.quote-block {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-left: 4px solid var(--green-medium);
    border-radius: 0 8px 8px 0;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    font-style: italic;
    color: #444;
    font-size: .93rem;
    line-height: 1.7;
}

.quote-author {
    display: block;
    margin-top: .6rem;
    font-style: normal;
    font-size: .8rem;
    color: #888;
    font-weight: 600;
}

/* ==================== TWO COL ==================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.two-col h3 {
    font-size: 1.1rem;
    color: var(--green-darkest);
    margin-bottom: 1rem;
}

/* ==================== SEE ALSO ==================== */
.see-also {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-breadcrumb);
}

.see-also h3 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #999;
    margin-bottom: 1rem;
}

.see-also-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.see-also-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border: 1.5px solid var(--green-medium);
    border-radius: 8px;
    color: var(--green-medium);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.see-also-link:hover {
    background: var(--green-medium);
    color: #fff;
}

/* ==================== TARIF DEPLACEMENT ==================== */
.deplacement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.deplacement-card {
    background: #fff;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.deplacement-card .dep-km {
    font-size: .78rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .3rem;
}

.deplacement-card .dep-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-darkest);
}

.deplacement-card .dep-note {
    font-size: .8rem;
    color: #888;
    margin-top: .2rem;
}

/* ==================== OPTION CARDS ==================== */
.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-card {
    border: 2px solid var(--green-medium);
    border-radius: 12px;
    padding: 1.5rem;
}

.option-card h3 {
    color: var(--green-darkest);
    font-size: 1.1rem;
    margin-bottom: .8rem;
}

.option-card h3 i {
    margin-right: 10px;
}

.option-card p {
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ==================== UTILITAIRES (évite les style= inline) ==================== */

/* Span de sous-titre dans le H1 hero */
.hero-h1-sub {
    font-weight: 400;
    opacity: .85;
}

/* H3 avec espacement supérieur dans les deux-colonnes */
.h3-mt {
    margin-top: 1.5rem;
}

/* Note de bas de grille (déplacement, races…) */
.note-sm {
    font-size: .84rem;
    color: #888;
    margin-top: .7rem;
}

/* Note muted standard */
.note-muted {
    margin-top: 1.2rem;
    font-size: .9rem;
    color: #666;
}

/* Paragraphe d'intro de section (max-width + espacement bas) */
.section-intro {
    max-width: 680px;
    margin-bottom: 2rem;
}

/* Variantes de highlight-box */
.highlight-box.mt-0  { margin-top: 0; }
.highlight-box.mt-lg { margin-top: 1.5rem; }

/* Section-title centré (FAQ) */
.section-title.centered {
    text-align: center;
    margin-bottom: 2rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .page-hero {
        padding: 5rem 0 3rem;
    }
    .content-section {
        padding: 3rem 1rem;
    }
    .content-section,
    .faq {
        scroll-margin-top: 80px;
    }
    .two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    .option-grid {
        grid-template-columns: 1fr;
    }
    .cta-tel-link {
        font-size: 1.1rem;
        padding: .75rem 1.5rem;
    }
    .pricing-box {
        padding: 1.8rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .deplacement-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== MENTIONS LÉGALES ==================== */
.container--narrow {
    max-width: 820px;
}

.page-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 2.5rem;
}

.section-title--left {
    text-align: left;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-list--spaced {
    margin-bottom: 1.5rem;
}

.page-meta {
    margin-top: 2.5rem;
    font-size: .85rem;
    color: #888;
}
