/* =========================================================================
   Mecanico — Main Stylesheet
   Version: 1.0.0
   Mobile-first, Core Web Vitals optimized
   ========================================================================= */

/* ----- CSS Custom Properties ----- */
:root {
    --ap-graphite: #1F2937;
    --ap-graphite-light: #374151;
    --ap-blue: #2563EB;
    --ap-blue-dark: #1D4ED8;
    --ap-blue-light: #DBEAFE;
    --ap-white: #FFFFFF;
    --ap-green: #16A34A;
    --ap-green-light: #DCFCE7;
    --ap-light: #F9FAFB;
    --ap-light-gray: #F3F4F6;
    --ap-mid-gray: #6B7280;
    --ap-border: #E5E7EB;
    --ap-dark: #111827;
    --ap-red: #DC2626;
    --ap-orange: #F59E0B;

    --ap-font-title: 'Oswald', system-ui, sans-serif;
    --ap-font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --ap-transition: 0.3s ease;
    --ap-transition-fast: 0.15s ease;
    --ap-radius: 8px;
    --ap-radius-lg: 12px;
    --ap-radius-xl: 16px;
    --ap-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --ap-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --ap-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --ap-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --ap-container: 1200px;
    --ap-header-h: 72px;
    --ap-topbar-h: 40px;
}

/* ----- Bandeau Commercial Démo ----- */
.ap-demo-banner {
    background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 10px 16px;
    text-align: center;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1100;
}

.ap-demo-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.ap-demo-banner__inner p {
    margin: 0;
    text-align: center;
}

.ap-demo-banner__icon {
    margin-right: 6px;
}

.ap-demo-banner a {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.ap-demo-banner a:hover {
    color: #FEF3C7 !important;
}

.ap-demo-banner a strong {
    font-weight: 800;
}

@media (max-width: 767px) {
    .ap-demo-banner {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.autopro-body {
    margin: 0;
    padding: 0;
    font-family: var(--ap-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ap-graphite);
    background: var(--ap-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.autopro-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.autopro-body a {
    color: var(--ap-blue);
    text-decoration: none;
    transition: color var(--ap-transition-fast);
}

.autopro-body a:hover,
.autopro-body a:focus-visible {
    color: var(--ap-blue-dark);
}

.autopro-body a:focus-visible {
    outline: 2px solid var(--ap-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6,
.ap-hero__title,
.ap-section__title,
.ap-page-hero__title {
    font-family: var(--ap-font-title);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ap-dark);
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { margin: 0 0 1em; }

/* ----- Container ----- */
.ap-container {
    width: 100%;
    max-width: var(--ap-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Section ----- */
.ap-section {
    padding: 60px 0;
}

.ap-section--alt {
    background: var(--ap-light);
}

.ap-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.ap-section__tag {
    display: inline-block;
    font-family: var(--ap-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ap-blue);
    margin-bottom: 12px;
}

.ap-section__title {
    margin-bottom: 16px;
}

.ap-section__desc {
    color: var(--ap-mid-gray);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.ap-section__cta {
    text-align: center;
    margin-top: 40px;
}

.ap-section__note {
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
    margin-top: 12px;
}

/* =========================================================================
   TOP BAR
   ========================================================================= */

.ap-topbar {
    background: var(--ap-dark);
    color: var(--ap-white);
    font-size: 0.8rem;
    height: var(--ap-topbar-h);
    display: flex;
    align-items: center;
}

.ap-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ap-topbar__left,
.ap-topbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-topbar__phone,
.ap-topbar__hours,
.ap-topbar__address {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    text-decoration: none !important;
    min-height: 40px;
    padding: 2px 0;
}

.ap-topbar__phone:hover {
    color: var(--ap-blue-light);
}

.ap-topbar svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ap-topbar__sep {
    opacity: 0.3;
}

/* =========================================================================
   HEADER
   ========================================================================= */

.ap-header {
    background: var(--ap-white);
    height: var(--ap-header-h);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--ap-shadow);
    transition: box-shadow var(--ap-transition);
}

.ap-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.ap-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ap-dark);
    flex-shrink: 0;
}

.ap-header__logo-icon svg {
    width: 36px;
    height: 36px;
    color: var(--ap-blue);
}

.ap-header__logo-text {
    font-family: var(--ap-font-title);
    font-size: 1.3rem;
    line-height: 1.2;
}

.ap-header__logo-text strong {
    color: var(--ap-blue);
}

/* Navigation */
.ap-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ap-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.ap-nav__list li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ap-graphite) !important;
    border-radius: var(--ap-radius);
    transition: all var(--ap-transition-fast);
    text-decoration: none !important;
}

.ap-nav__list li a:hover,
.ap-nav__list li.current-menu-item a,
.ap-nav__list li.current_page_item a {
    color: var(--ap-blue) !important;
    background: var(--ap-blue-light) !important;
}

/* Header CTA */
.ap-header__cta {
    flex-shrink: 0;
}

/* Burger */
.ap-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: var(--ap-light);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    cursor: pointer;
    z-index: 1002;
    transition: background var(--ap-transition);
}

.ap-burger:hover,
.ap-burger:active {
    background: var(--ap-blue-light);
}

.ap-burger__line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ap-dark);
    border-radius: 2px;
    transition: all var(--ap-transition);
    transform-origin: center;
}

.ap-burger.is-active .ap-burger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.ap-burger.is-active .ap-burger__line:nth-child(2) {
    opacity: 0;
}

.ap-burger.is-active .ap-burger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.ap-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.ap-nav-overlay.is-active {
    display: block;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */

.ap-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-family: var(--ap-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    border-radius: var(--ap-radius) !important;
    cursor: pointer;
    transition: all var(--ap-transition);
    text-decoration: none !important;
    line-height: 1.4 !important;
    white-space: nowrap;
}

.ap-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

a.ap-btn--primary,
.ap-btn--primary {
    background: var(--ap-blue) !important;
    color: #ffffff !important;
    border-color: var(--ap-blue) !important;
}

a.ap-btn--primary:hover,
a.ap-btn--primary:focus-visible,
.ap-btn--primary:hover,
.ap-btn--primary:focus-visible {
    background: var(--ap-blue-dark) !important;
    border-color: var(--ap-blue-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: var(--ap-shadow-md);
}

a.ap-btn--secondary,
.ap-btn--secondary {
    background: var(--ap-white) !important;
    color: var(--ap-blue) !important;
    border-color: var(--ap-blue) !important;
}

a.ap-btn--secondary:hover,
.ap-btn--secondary:hover {
    background: var(--ap-blue) !important;
    color: #ffffff !important;
}

a.ap-btn--outline,
.ap-btn--outline {
    background: transparent !important;
    color: var(--ap-graphite) !important;
    border-color: var(--ap-border) !important;
}

a.ap-btn--outline:hover,
.ap-btn--outline:hover {
    border-color: var(--ap-blue) !important;
    color: var(--ap-blue) !important;
}

a.ap-btn--outline-light,
.ap-btn--outline-light {
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.4) !important;
}

a.ap-btn--outline-light:hover,
.ap-btn--outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.ap-btn--lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.ap-btn--sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.ap-btn--full {
    width: 100%;
}

/* =========================================================================
   HERO (Front Page)
   ========================================================================= */

.ap-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ap-hero__bg {
    position: absolute;
    inset: 0;
}

.ap-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,24,39,0.85) 0%, rgba(31,41,55,0.7) 100%);
}

.ap-hero__content {
    position: relative;
    z-index: 2;
    padding: 100px 20px 80px;
    max-width: 750px;
}

.ap-hero__badge {
    display: inline-block;
    background: rgba(37,99,235,0.2);
    color: var(--ap-blue-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(37,99,235,0.3);
    margin-bottom: 20px;
}

.ap-hero__title {
    color: var(--ap-white);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.ap-hero__title span {
    color: var(--ap-blue-light);
}

.ap-hero__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    margin-bottom: 32px;
}

.ap-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.ap-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.ap-hero__trust span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ap-hero__trust svg {
    width: 16px;
    height: 16px;
    color: var(--ap-green);
}

/* =========================================================================
   PAGE HERO (Inner pages)
   ========================================================================= */

.ap-page-hero {
    position: relative;
    padding: 120px 0 60px;
    background: var(--ap-dark);
    text-align: center;
    overflow: hidden;
}

.ap-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-bg, none) center/cover no-repeat;
    opacity: 0.2;
}

.ap-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17,24,39,0.6), rgba(17,24,39,0.9));
}

.ap-page-hero__content {
    position: relative;
    z-index: 2;
}

.ap-page-hero__title {
    color: var(--ap-white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.ap-page-hero__desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.ap-page-hero--compact {
    padding: 100px 0 50px;
}

.ap-page-hero--minimal {
    padding: 100px 0 40px;
    background: var(--ap-graphite);
}

.ap-page-hero--minimal::before,
.ap-page-hero--minimal::after {
    display: none;
}

/* =========================================================================
   SERVICE CARDS (Grid on homepage)
   ========================================================================= */

.ap-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ap-service-card {
    display: flex;
    flex-direction: column;
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--ap-graphite);
    transition: all var(--ap-transition);
}

.ap-service-card:hover {
    border-color: var(--ap-blue);
    box-shadow: var(--ap-shadow-lg);
    transform: translateY(-4px);
    color: var(--ap-graphite);
}

.ap-service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-blue-light);
    color: var(--ap-blue);
    border-radius: var(--ap-radius);
    margin-bottom: 16px;
}

.ap-service-card__icon svg {
    width: 28px;
    height: 28px;
}

.ap-service-card__title {
    font-family: var(--ap-font-title);
    font-size: 1.15rem;
    color: var(--ap-dark);
    margin-bottom: 8px;
}

.ap-service-card__desc {
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
    flex: 1;
    margin-bottom: 16px;
}

.ap-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ap-blue);
    margin-top: auto;
}

.ap-service-card__link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--ap-transition-fast);
}

.ap-service-card:hover .ap-service-card__link svg {
    transform: translateX(4px);
}

/* =========================================================================
   WHY US / CONTENT SPLIT
   ========================================================================= */

.ap-why__grid,
.ap-content-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.ap-why__list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.ap-why__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.ap-why__list li svg {
    width: 22px;
    height: 22px;
    color: var(--ap-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.ap-why__list li strong {
    display: block;
    color: var(--ap-dark);
    margin-bottom: 2px;
}

.ap-why__list li span {
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
}

.ap-img-rounded {
    border-radius: var(--ap-radius-lg);
    box-shadow: var(--ap-shadow-lg);
}

/* =========================================================================
   ENGAGEMENT CARDS
   ========================================================================= */

.ap-engagements__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.ap-engagement-card {
    background: var(--ap-white);
    border-radius: var(--ap-radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--ap-border);
    transition: all var(--ap-transition);
}

.ap-engagement-card:hover {
    box-shadow: var(--ap-shadow-md);
    transform: translateY(-2px);
}

.ap-engagement-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-blue-light);
    color: var(--ap-blue);
    border-radius: 50%;
    margin: 0 auto 16px;
}

.ap-engagement-card__icon svg {
    width: 28px;
    height: 28px;
}

.ap-engagement-card h3 {
    font-family: var(--ap-font-title);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ap-engagement-card p {
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
    margin-bottom: 0;
}

/* =========================================================================
   PRICING (Homepage preview + Tarifs page)
   ========================================================================= */

.ap-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.ap-pricing-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: all var(--ap-transition);
}

.ap-pricing-card:hover {
    border-color: var(--ap-blue);
    box-shadow: var(--ap-shadow-md);
}

.ap-pricing-card__service {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ap-graphite);
    margin-bottom: 8px;
}

.ap-pricing-card__price small {
    display: block;
    font-size: 0.75rem;
    color: var(--ap-mid-gray);
}

.ap-pricing-card__price strong {
    font-family: var(--ap-font-title);
    font-size: 1.6rem;
    color: var(--ap-blue);
}

/* Tarifs table */
.ap-tarifs-intro {
    text-align: center;
    margin-bottom: 40px;
}

.ap-tarifs-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ap-tarifs-note {
    color: var(--ap-mid-gray);
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
}

.ap-tarifs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ap-tarifs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ap-tarifs-table th {
    background: var(--ap-graphite);
    color: var(--ap-white);
    font-family: var(--ap-font-title);
    font-weight: 500;
    padding: 14px 20px;
    text-align: left;
}

.ap-tarifs-table th:first-child {
    border-radius: var(--ap-radius) 0 0 0;
}

.ap-tarifs-table th:last-child {
    border-radius: 0 var(--ap-radius) 0 0;
}

.ap-tarifs-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ap-border);
    vertical-align: middle;
}

.ap-tarifs-table tr:hover td {
    background: var(--ap-light);
}

.ap-price strong {
    font-family: var(--ap-font-title);
    font-size: 1.15rem;
    color: var(--ap-blue);
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */

.ap-testimonials__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.ap-testimonials__score {
    font-size: 1rem;
    color: var(--ap-mid-gray);
}

.ap-stars {
    display: inline-flex;
    gap: 2px;
}

.ap-star {
    color: var(--ap-border);
}

.ap-star--filled {
    color: var(--ap-orange);
}

.ap-stars--sm svg {
    width: 16px;
    height: 16px;
}

.ap-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.ap-testimonial-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 28px 24px;
}

.ap-testimonial-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ap-testimonial-card__avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-blue);
    color: var(--ap-white);
    font-family: var(--ap-font-title);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.ap-testimonial-card__name {
    display: block;
    font-size: 0.95rem;
}

.ap-testimonial-card__service {
    display: block;
    font-size: 0.8rem;
    color: var(--ap-mid-gray);
}

.ap-testimonial-card__text {
    font-size: 0.9rem;
    color: var(--ap-graphite-light);
    margin: 12px 0;
    line-height: 1.6;
}

.ap-testimonial-card__date {
    font-size: 0.8rem;
    color: var(--ap-mid-gray);
}

/* =========================================================================
   CTA FINAL
   ========================================================================= */

.ap-cta-final {
    background: var(--ap-graphite);
    color: var(--ap-white);
    padding: 80px 0;
}

.ap-cta-final__inner {
    text-align: center;
}

.ap-cta-final__content h2 {
    color: var(--ap-white);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 12px;
}

.ap-cta-final__content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.ap-cta-final__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* =========================================================================
   LOCATION
   ========================================================================= */

.ap-location__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.ap-location__address {
    font-style: normal;
    margin: 24px 0;
}

.ap-location__address p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ap-location__address svg {
    width: 20px;
    height: 20px;
    color: var(--ap-blue);
    flex-shrink: 0;
}

.ap-location__address a {
    color: var(--ap-graphite);
}

.ap-location__address a:hover {
    color: var(--ap-blue);
}

.ap-location__transport h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.ap-location__transport p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.ap-location__map iframe {
    border-radius: var(--ap-radius-lg);
}

/* =========================================================================
   SERVICE DETAIL (Services page)
   ========================================================================= */

.ap-service-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
}

.ap-service-detail__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-blue-light);
    color: var(--ap-blue);
    border-radius: var(--ap-radius);
    margin-bottom: 16px;
}

.ap-service-detail__icon svg {
    width: 28px;
    height: 28px;
}

.ap-service-detail__price {
    font-size: 1rem;
    margin: 20px 0;
}

.ap-service-detail__price strong {
    font-family: var(--ap-font-title);
    font-size: 1.3rem;
    color: var(--ap-blue);
}

.ap-service-detail__price--lg strong {
    font-size: 2rem;
}

.ap-divider {
    border: none;
    border-top: 1px solid var(--ap-border);
    margin: 0;
}

/* =========================================================================
   CHECK LIST
   ========================================================================= */

.ap-check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.ap-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.ap-check-list li svg {
    width: 18px;
    height: 18px;
    color: var(--ap-green);
    flex-shrink: 0;
}

.ap-check-list--lg li {
    padding: 10px 0;
    font-size: 1rem;
}

/* =========================================================================
   BADGES
   ========================================================================= */

.ap-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ap-green-light);
    color: var(--ap-green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}

.ap-badge svg {
    width: 14px;
    height: 14px;
}

.ap-badge--lg {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* =========================================================================
   MINI CARDS (Pneus/Freinage page)
   ========================================================================= */

.ap-services-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.ap-mini-card {
    background: var(--ap-light);
    border-radius: var(--ap-radius);
    padding: 20px;
}

.ap-mini-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.ap-mini-card h3 svg {
    width: 18px;
    height: 18px;
    color: var(--ap-blue);
}

.ap-mini-card p {
    font-size: 0.85rem;
    color: var(--ap-mid-gray);
    margin-bottom: 8px;
}

.ap-mini-card__price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ap-blue);
}

/* =========================================================================
   ALERT CARDS
   ========================================================================= */

.ap-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.ap-alert-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-left: 4px solid var(--ap-blue);
    border-radius: var(--ap-radius);
    padding: 28px 24px;
}

.ap-alert-card h3 {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.ap-alert-card--icon {
    text-align: center;
    border-left: 1px solid var(--ap-border);
}

.ap-alert-card__icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* =========================================================================
   PROCESS STEPS (Diagnostic page)
   ========================================================================= */

.ap-process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step;
}

.ap-process-step {
    background: var(--ap-white);
    border-radius: var(--ap-radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--ap-border);
}

.ap-process-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--ap-blue);
    color: var(--ap-white);
    font-family: var(--ap-font-title);
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.ap-process-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.ap-process-step p {
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
    margin: 0;
}

/* =========================================================================
   AVIS PAGE
   ========================================================================= */

.ap-avis-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

.ap-avis-score {
    text-align: center;
}

.ap-avis-score__number {
    font-family: var(--ap-font-title);
    font-size: 4rem;
    font-weight: 700;
    color: var(--ap-dark);
    line-height: 1;
}

.ap-avis-score__max {
    font-size: 1.5rem;
    color: var(--ap-mid-gray);
}

.ap-avis-score__count {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
}

.ap-avis-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ap-avis-bar__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    width: 40px;
    flex-shrink: 0;
}

.ap-avis-bar__label svg {
    width: 14px;
    height: 14px;
    color: var(--ap-orange);
}

.ap-avis-bar__track {
    flex: 1;
    height: 8px;
    background: var(--ap-light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.ap-avis-bar__fill {
    height: 100%;
    background: var(--ap-orange);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.ap-avis-bar__count {
    font-size: 0.85rem;
    color: var(--ap-mid-gray);
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.ap-avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.ap-avis-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 28px 24px;
}

.ap-avis-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ap-avis-card__avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ap-blue);
    color: var(--ap-white);
    font-family: var(--ap-font-title);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
}

.ap-avis-card__meta strong {
    display: block;
    font-size: 0.95rem;
}

.ap-avis-card__vehicule {
    font-size: 0.8rem;
    color: var(--ap-mid-gray);
}

.ap-avis-card__text {
    font-size: 0.9rem;
    color: var(--ap-graphite-light);
    margin: 12px 0;
    line-height: 1.6;
}

.ap-avis-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--ap-mid-gray);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ap-border);
}

.ap-avis-card__service {
    background: var(--ap-blue-light);
    color: var(--ap-blue);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
}

/* =========================================================================
   STATS (À propos page)
   ========================================================================= */

.ap-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.ap-stat__number {
    display: block;
    font-family: var(--ap-font-title);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ap-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.ap-stat__label {
    font-size: 0.95rem;
    color: var(--ap-mid-gray);
}

/* =========================================================================
   GALLERY
   ========================================================================= */

.ap-gallery {
    text-align: center;
}

.ap-gallery img {
    margin: 0 auto;
    max-height: 450px;
    width: auto;
    object-fit: cover;
}

/* =========================================================================
   FAQ
   ========================================================================= */

.ap-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.ap-faq__item {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--ap-transition);
}

.ap-faq__item[open] {
    border-color: var(--ap-blue);
    box-shadow: var(--ap-shadow);
}

.ap-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: background var(--ap-transition-fast);
}

.ap-faq__question::-webkit-details-marker {
    display: none;
}

.ap-faq__question:hover {
    background: var(--ap-light);
}

.ap-faq__toggle {
    font-size: 1.5rem;
    color: var(--ap-blue);
    transition: transform var(--ap-transition);
    flex-shrink: 0;
}

.ap-faq__item[open] .ap-faq__toggle {
    transform: rotate(45deg);
}

.ap-faq__answer {
    padding: 0 24px 18px;
    color: var(--ap-mid-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================================================
   FORMS
   ========================================================================= */

.ap-form-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-xl);
    padding: 40px 32px;
    box-shadow: var(--ap-shadow-md);
}

.ap-form-card__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ap-form-card__subtitle {
    color: var(--ap-mid-gray);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.ap-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.ap-form__row {
    margin-bottom: 20px;
}

.ap-form__row--2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ap-form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ap-dark);
}

.ap-form__label span {
    color: var(--ap-red);
}

.ap-form__input,
.ap-form__select,
.ap-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--ap-font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-white);
    color: var(--ap-dark);
    transition: border-color var(--ap-transition-fast), box-shadow var(--ap-transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ap-form__input:focus,
.ap-form__select:focus,
.ap-form__textarea:focus {
    outline: none;
    border-color: var(--ap-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.ap-form__input.is-error,
.ap-form__select.is-error,
.ap-form__textarea.is-error {
    border-color: var(--ap-red);
}

.ap-form__error {
    display: none;
    font-size: 0.8rem;
    color: var(--ap-red);
    margin-top: 4px;
}

.ap-form__error.is-visible {
    display: block;
}

.ap-form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    min-height: 48px;
    height: auto;
    cursor: pointer;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ap-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.ap-form__submit {
    margin-top: 24px;
}

.ap-btn__loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--ap-white);
    border-radius: 50%;
    animation: ap-spin 0.6s linear infinite;
}

.ap-btn.is-loading .ap-btn__text {
    display: none;
}

.ap-btn.is-loading .ap-btn__loader {
    display: block;
}

@keyframes ap-spin {
    to { transform: rotate(360deg); }
}

.ap-form__feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--ap-radius);
    font-size: 0.9rem;
    display: none;
}

.ap-form__feedback.is-success {
    display: block;
    background: var(--ap-green-light);
    color: var(--ap-green);
    border: 1px solid var(--ap-green);
}

.ap-form__feedback.is-error {
    display: block;
    background: #FEF2F2;
    color: var(--ap-red);
    border: 1px solid var(--ap-red);
}

.ap-form__note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--ap-mid-gray);
    margin-top: 16px;
}

.ap-form__note svg {
    width: 16px;
    height: 16px;
    color: var(--ap-green);
    flex-shrink: 0;
}

/* =========================================================================
   INFO CARDS (Sidebar RDV/Contact)
   ========================================================================= */

.ap-info-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-lg);
    padding: 24px 20px;
    margin-bottom: 16px;
}

.ap-info-card__icon {
    margin-bottom: 12px;
}

.ap-info-card__icon svg {
    width: 32px;
    height: 32px;
    color: var(--ap-blue);
}

.ap-info-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.ap-info-card p {
    font-size: 0.9rem;
    color: var(--ap-mid-gray);
    margin-bottom: 4px;
}

.ap-info-card__link {
    display: inline-block;
    font-weight: 600;
    color: var(--ap-blue);
}

.ap-info-card__link--lg {
    font-size: 1.2rem;
}

.ap-info-card__hours {
    font-weight: 500;
    color: var(--ap-dark) !important;
}

.ap-info-card--highlight {
    background: var(--ap-blue-light);
    border-color: var(--ap-blue);
}

/* =========================================================================
   CONTACT / RDV GRIDS
   ========================================================================= */

.ap-rdv-grid,
.ap-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.ap-contact-map {
    margin-top: 40px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.ap-footer-cta {
    background: var(--ap-blue);
    padding: 48px 0;
}

.ap-footer-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.ap-footer-cta__text h2 {
    color: var(--ap-white);
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 8px;
}

.ap-footer-cta__text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.ap-footer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Footer CTA : Boutons blancs sur fond bleu ---- */
.ap-footer-cta .ap-btn--primary {
    background: #ffffff !important;
    color: var(--ap-blue) !important;
    border: 2px solid #ffffff !important;
}

.ap-footer-cta .ap-btn--primary:hover {
    background: rgba(255,255,255,0.9) !important;
    color: var(--ap-blue-dark) !important;
}

.ap-footer-cta .ap-btn--outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
}

.ap-footer-cta .ap-btn--outline:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.ap-footer-cta .ap-btn--outline svg {
    color: #ffffff !important;
}

.ap-footer__main {
    background: var(--ap-dark);
    padding: 60px 0 40px;
    color: rgba(255,255,255,0.7);
}

.ap-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.ap-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ap-footer__brand-icon svg {
    width: 32px;
    height: 32px;
    color: var(--ap-blue);
}

.ap-footer__brand-text {
    font-family: var(--ap-font-title);
    font-size: 1.2rem;
    color: var(--ap-white);
}

.ap-footer__brand-text strong {
    color: var(--ap-blue);
}

.ap-footer__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ap-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ap-footer__badges .ap-badge {
    background: rgba(22,163,74,0.15);
    color: var(--ap-green);
    font-size: 0.75rem;
}

.ap-footer__title {
    color: var(--ap-white);
    font-family: var(--ap-font-title);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.ap-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-footer__links li {
    margin-bottom: 10px;
}

.ap-footer__links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color var(--ap-transition-fast);
}

.ap-footer__links a:hover {
    color: var(--ap-white);
}

.ap-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.ap-footer__contact svg {
    width: 18px;
    height: 18px;
    color: var(--ap-blue);
    flex-shrink: 0;
}

.ap-footer__contact a {
    color: rgba(255,255,255,0.65);
}

.ap-footer__contact a:hover {
    color: var(--ap-white);
}

.ap-footer__hours {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    table-layout: fixed;
}

.ap-footer__hours td {
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.ap-footer__hours td:first-child {
    width: 55%;
    color: rgba(255,255,255,0.7);
}

.ap-footer__hours td:last-child {
    width: 45%;
    text-align: right;
    color: #ffffff;
}

.ap-footer__bottom {
    background: var(--ap-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.ap-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.ap-footer__bottom p {
    margin: 0;
}

.ap-footer__legal a {
    color: rgba(255,255,255,0.5);
}

.ap-footer__legal a:hover {
    color: var(--ap-white);
}

.ap-footer__legal span {
    margin: 0 8px;
}

/* =========================================================================
   STICKY MOBILE CTA
   ========================================================================= */

.ap-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--ap-white);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 10px 16px;
    gap: 10px;
}

.ap-sticky-cta__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--ap-graphite) !important;
    color: #ffffff !important;
    border-radius: var(--ap-radius);
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    flex: 1;
}

.ap-sticky-cta__phone svg {
    width: 18px;
    height: 18px;
}

.ap-sticky-cta__rdv {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: var(--ap-blue) !important;
    color: #ffffff !important;
    border-radius: var(--ap-radius);
    font-size: 0.9rem;
    text-decoration: none !important;
    font-weight: 600;
    text-decoration: none;
    flex: 1.5;
}

.ap-sticky-cta__rdv:hover {
    background: var(--ap-blue-dark) !important;
    color: #ffffff !important;
}

/* =========================================================================
   LEGAL PAGE
   ========================================================================= */

.ap-legal__content {
    max-width: 800px;
    margin: 0 auto;
}

.ap-legal__content h2 {
    font-size: 1.4rem;
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--ap-border);
}

.ap-legal__content h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.ap-legal__content h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
}

.ap-legal__content ul {
    padding-left: 20px;
    margin: 12px 0;
}

.ap-legal__content li {
    margin-bottom: 6px;
}

.ap-legal__update {
    color: var(--ap-mid-gray);
    font-size: 0.85rem;
    margin-top: 40px;
}

.ap-hours-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ap-hours-mini td {
    padding: 4px 0;
}

.ap-hours-mini td:last-child {
    text-align: right;
}

/* =========================================================================
   ANIMATIONS (Scroll reveal)
   ========================================================================= */

.ap-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================================================
   SUB-MENUS (Dropdown)
   ========================================================================= */

.ap-nav__list li {
    position: relative;
}

.ap-nav__list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Desktop sub-menus (dropdown) */
@media (min-width: 1024px) {
    .ap-nav__list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--ap-white);
        border: 1px solid var(--ap-border);
        border-radius: var(--ap-radius);
        box-shadow: var(--ap-shadow-lg);
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: all var(--ap-transition);
        z-index: 100;
    }

    .ap-nav__list li:hover > .sub-menu,
    .ap-nav__list li:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .ap-nav__list .sub-menu li a {
        display: block;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        color: var(--ap-graphite) !important;
        background: transparent !important;
        border-radius: 0 !important;
        white-space: nowrap;
    }

    .ap-nav__list .sub-menu li a:hover {
        background: var(--ap-light) !important;
        color: var(--ap-blue) !important;
    }
}

/* Mobile/Tablet sub-menus (accordion style) */
@media (max-width: 1023px) {
    .ap-nav__list .sub-menu {
        padding-left: 16px;
        border-left: 2px solid var(--ap-blue-light);
        margin: 0;
    }

    .ap-nav__list .sub-menu li a {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        color: var(--ap-mid-gray) !important;
        border-bottom: 1px solid var(--ap-light-gray) !important;
    }

    .ap-nav__list .sub-menu li a:hover {
        color: var(--ap-blue) !important;
    }
}

/* =========================================================================
   RESPONSIVE — Tablet (768px+)
   ========================================================================= */

@media (min-width: 768px) {
    .ap-container {
        padding: 0 32px;
    }

    .ap-section {
        padding: 80px 0;
    }

    .ap-form__row--2col {
        grid-template-columns: 1fr 1fr;
    }

    .ap-why__grid,
    .ap-content-split {
        grid-template-columns: 1fr 1fr;
    }

    .ap-content-split--reverse .ap-content-split__image {
        order: -1;
    }

    .ap-service-detail {
        grid-template-columns: 1fr 1fr;
    }

    .ap-service-detail--reverse .ap-service-detail__image {
        order: -1;
    }

    .ap-location__grid {
        grid-template-columns: 1fr 1fr;
    }

    .ap-rdv-grid,
    .ap-contact-grid {
        grid-template-columns: 2fr 1fr;
    }

    .ap-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ap-footer-cta__inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .ap-avis-summary {
        grid-template-columns: auto 1fr;
    }

    .ap-avis-score {
        text-align: left;
        padding-right: 40px;
        border-right: 1px solid var(--ap-border);
    }

    .ap-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =========================================================================
   RESPONSIVE — Desktop (1024px+)
   ========================================================================= */

@media (min-width: 1024px) {
    .ap-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .ap-hero {
        min-height: 700px;
        max-height: 900px;
    }

    .ap-hero__content {
        padding: 140px 20px 100px;
    }
}

/* Ultra-wide screens (1440px+) */
@media (min-width: 1440px) {
    .ap-hero {
        max-height: 85vh;
    }

    .ap-container {
        padding: 0 40px;
    }
}

/* =========================================================================
   RESPONSIVE — Mobile (<768px)
   ========================================================================= */

@media (max-width: 1023px) {
    .ap-topbar__right {
        display: none !important;
    }

    .ap-header__cta {
        display: none !important;
    }

    .ap-burger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .ap-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--ap-white);
        z-index: 1001;
        padding: 80px 24px 24px;
        transition: right var(--ap-transition);
        box-shadow: -4px 0 12px rgba(0,0,0,0.15);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .ap-nav.is-open {
        right: 0;
    }

    .ap-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .ap-nav__list li a {
        padding: 12px 16px;
        font-size: 1rem;
        border-bottom: 1px solid var(--ap-border);
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .ap-topbar__hours {
        display: none;
    }

    .ap-topbar__sep {
        display: none;
    }

    .ap-sticky-cta {
        display: flex;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .ap-footer__main {
        padding-bottom: 100px;
    }

    /* Footer CTA en colonne sur mobile */
    .ap-footer-cta {
        padding: 32px 0;
    }

    .ap-footer-cta__text h2 {
        font-size: 1.3rem;
    }

    .ap-footer-cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .ap-footer-cta__actions .ap-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Footer colonnes — espacement réduit */
    .ap-footer__grid {
        gap: 28px;
    }

    /* Horaires table — plus compact en mobile */
    .ap-footer__hours {
        font-size: 0.8rem;
    }

    .ap-footer__hours td {
        padding: 6px 2px;
    }

    .ap-services-mini-grid {
        grid-template-columns: 1fr;
    }

    .ap-tarifs-table thead {
        display: none;
    }

    .ap-tarifs-table tr {
        display: block;
        margin-bottom: 16px;
        background: var(--ap-white);
        border: 1px solid var(--ap-border);
        border-radius: var(--ap-radius);
        padding: 16px;
    }

    .ap-tarifs-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--ap-light-gray);
    }

    .ap-tarifs-table td:last-child {
        border-bottom: none;
        justify-content: center;
        padding-top: 12px;
    }

    .ap-tarifs-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: var(--ap-mid-gray);
        font-size: 0.85rem;
    }

    .ap-hero__content {
        padding: 80px 16px 60px;
    }

    .ap-hero__actions {
        flex-direction: column;
    }

    .ap-hero__trust {
        flex-direction: column;
        gap: 8px;
    }

    .ap-cta-final__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================================================
   PRINT
   ========================================================================= */

@media print {
    .ap-topbar,
    .ap-header,
    .ap-sticky-cta,
    .ap-footer-cta,
    .ap-cta-final,
    .ap-nav-overlay,
    .ap-burger {
        display: none !important;
    }

    .ap-section {
        padding: 20px 0;
    }

    .ap-hero {
        min-height: auto;
        padding: 20px 0;
    }

    .ap-hero__overlay {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* =========================================================================
   ASTRA THEME OVERRIDE
   Force our styles over Astra parent theme defaults
   ========================================================================= */

.autopro-body .ap-header__logo,
.autopro-body .ap-header__logo:hover {
    text-decoration: none !important;
    color: var(--ap-graphite) !important;
}

.autopro-body .ap-header__logo-text strong {
    color: var(--ap-blue) !important;
}

.autopro-body .ap-footer a {
    text-decoration: none !important;
}

.autopro-body .ap-footer__links a {
    color: rgba(255,255,255,0.7) !important;
}

.autopro-body .ap-footer__links a:hover {
    color: #ffffff !important;
}

.autopro-body .ap-footer__contact a {
    color: rgba(255,255,255,0.7) !important;
}

.autopro-body .ap-footer__contact a:hover {
    color: #ffffff !important;
}

.autopro-body .ap-footer-cta .ap-btn {
    text-decoration: none !important;
}

.autopro-body .ap-footer-cta .ap-btn--primary,
.autopro-body .ap-footer-cta a.ap-btn--primary {
    background: #ffffff !important;
    color: var(--ap-blue) !important;
    border-color: #ffffff !important;
}

.autopro-body .ap-footer-cta .ap-btn--outline,
.autopro-body .ap-footer-cta a.ap-btn--outline {
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.autopro-body .ap-footer-cta .ap-btn--outline svg {
    color: #ffffff !important;
}

.autopro-body .ap-hero a {
    text-decoration: none !important;
}

.autopro-body .ap-service-card a,
.autopro-body .ap-cta-final a {
    text-decoration: none !important;
}

/* ---- Astra form overrides ---- */
.autopro-body .ap-form__select,
.autopro-body select.ap-form__select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 12px 40px 12px 16px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    min-height: 48px !important;
    height: auto !important;
    border: 1px solid var(--ap-border) !important;
    border-radius: var(--ap-radius) !important;
    background-color: var(--ap-white) !important;
    color: var(--ap-dark) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
}

.autopro-body .ap-form__input,
.autopro-body input.ap-form__input {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    min-height: 48px !important;
    border: 1px solid var(--ap-border) !important;
    border-radius: var(--ap-radius) !important;
    background-color: var(--ap-white) !important;
    color: var(--ap-dark) !important;
}

.autopro-body .ap-form__textarea,
.autopro-body textarea.ap-form__textarea {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    border: 1px solid var(--ap-border) !important;
    border-radius: var(--ap-radius) !important;
    background-color: var(--ap-white) !important;
    color: var(--ap-dark) !important;
}

.autopro-body .ap-form__select:focus,
.autopro-body .ap-form__input:focus,
.autopro-body .ap-form__textarea:focus {
    border-color: var(--ap-blue) !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15) !important;
    outline: none !important;
}

/* =========================================================================
   ASTRA CLEANUP — Neutraliser les résidus Astra qui pourraient persister
   Le CSS Astra est désenregistré côté PHP, mais au cas où des éléments
   HTML Astra seraient injectés via hooks, on les masque ici.
   ========================================================================= */

.autopro-body .ast-above-header-wrap,
.autopro-body .ast-below-header-wrap,
.autopro-body #ast-desktop-header,
.autopro-body .ast-mobile-header-wrap,
.autopro-body .site-header,
.autopro-body .site-footer,
.autopro-body .ast-footer-overlay,
.autopro-body .ast-small-footer,
.autopro-body #astra-footer-markup,
.autopro-body .site-below-footer-wrap,
.autopro-body .ast-above-footer-wrap,
.autopro-body .ast-footer-copyright {
    display: none !important;
}

/* Si Astra injecte un wrapper #page, on le rend transparent */
.autopro-body #page,
.autopro-body .hfeed.site,
.autopro-body #content,
.autopro-body .site-content {
    display: contents !important;
}
