﻿:root {
    --am-red: #c60000;
    --am-red-bright: #ef1b1b;
    --am-bg: #050505;
    --am-surface: #0b0b0b;
    --am-surface-2: #111111;
    --am-line: rgba(255,255,255,.10);
    --am-line-strong: rgba(255,255,255,.18);
    --am-text: #f4f4f4;
    --am-muted: #9b9b9b;
}


.secondary-page {
    background: var(--am-bg);
    color: var(--am-text);
}


.secondary-page .site-header {
    background: linear-gradient(180deg, rgba(0,0,0,.98) 0%, rgba(0,0,0,.86) 70%, rgba(0,0,0,.35) 100%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}


.secondary-page .site-header.is-scrolled {
    background: rgba(5,5,5,.96);
    backdrop-filter: blur(18px);
}


.secondary-page main {
    min-height: 70vh;
}


.page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #080808;
}


.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(.75) contrast(1.05);
    transform: scale(1.02);
}


.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.74) 42%, rgba(0,0,0,.32) 74%, rgba(0,0,0,.55) 100%),
        linear-gradient(0deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,0) 56%);
}


.page-hero-tarifs::before {
    background-image: url("../photos/entete2.jpg");
}


.page-hero-simulateur::before {
    background-image: url("../photos/reprogrammation.avif");
}


.page-hero-legal::before {
    background-image:
        radial-gradient(circle at 78% 34%, rgba(198,0,0,.16), transparent 28%),
        linear-gradient(135deg, #141414 0%, #070707 55%, #030303 100%);
}


.page-hero-content {
    position: relative;
    z-index: 2;
    /* Ne pas mettre width: 100% ici : ce bloc possède aussi la classe
       .section-shell, qui gère l’alignement horizontal du site. */
    padding-top: 190px;
    padding-bottom: 76px;
}


.page-kicker {
    margin: 0 0 18px;
    color: var(--am-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
}


.page-title {
    max-width: 930px;
    margin: 0;
    color: white;
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 300;
    line-height: .94;
    letter-spacing: -.035em;
    text-transform: uppercase;
}


.page-lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.74);
    font-size: 18px;
    line-height: 1.65;
}


.page-section {
    padding: 110px 0;
}


.page-section-compact {
    padding: 80px 0;
}


.page-intro-grid {
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
    gap: clamp(40px, 8vw, 130px);
    align-items: start;
    margin-bottom: 58px;
}


.page-intro-sticky {
    position: sticky;
    top: 140px;
}


.page-intro-number {
    display: block;
    margin-bottom: 20px;
    color: var(--am-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .28em;
}


.page-intro-title {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -.025em;
}


.page-intro-copy {
    color: var(--am-muted);
    font-size: 17px;
    line-height: 1.75;
}


.page-intro-copy p {
    margin: 0 0 20px;
}


.page-rule {
    width: 72px;
    height: 1px;
    margin: 28px 0;
    background: var(--am-red);
}


.info-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    margin: 34px 0 0;
    border: 1px solid var(--am-line);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,.02);
}


.info-strip > div {
    padding: 22px;
    border-right: 1px solid var(--am-line);
}


.info-strip > div:last-child {
    border-right: 0;
}


.info-strip span {
    display: block;
    margin-bottom: 7px;
    color: var(--am-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .20em;
    text-transform: uppercase;
}


.info-strip strong {
    color: white;
    font-size: 15px;
    font-weight: 500;
}


/* TARIFS */
.price-page .price-panel {
    position: relative;
    border: 1px solid var(--am-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.035) 0%, rgba(255,255,255,.012) 100%);
    box-shadow: 0 35px 90px rgba(0,0,0,.32);
    overflow: hidden;
}


.price-page #react-table-root {
    min-height: 360px;
}


.price-page .am-table-container {
    max-width: none;
    margin: 0;
    padding: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}


.price-page .search-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    position: static;
    margin-bottom: 30px;
}


.price-page .search-container::before,
.price-page .search-container::after {
    display: none;
}


.price-page .search-select {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 14px 42px 14px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-color: #0b0b0b;
    background-image:
        linear-gradient(45deg, transparent 50%, #777 50%),
        linear-gradient(135deg, #777 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 22px,
        calc(100% - 13px) 22px;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.price-page .search-select:focus {
    border-color: rgba(198, 0, 0, 0.9);
    background-color: #101010;
    box-shadow: 0 0 0 3px rgba(198, 0, 0, 0.12);
}

.price-page .search-select option {
    background: #0b0b0b;
    color: white;
}


.price-page .am-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--am-line);
    border-radius: 16px;
    scrollbar-width: thin;
}


.price-page .am-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: #090909;
}


.price-page .header-cell {
    min-width: 230px;
    padding: 22px 24px;
    background: #111;
    border-right: 1px solid var(--am-line);
    border-bottom: 1px solid var(--am-line-strong);
    color: var(--am-red);
    text-align: left;
    vertical-align: top;
}


.price-page .operation-header {
    min-width: 300px;
    color: #fff;
    letter-spacing: .08em;

    /* Colonne OPÉRATIONS fixe pendant le scroll horizontal */
    position: sticky;
    left: 0;
    z-index: 6;
    background: #111;
    box-shadow: 12px 0 24px rgba(0,0,0,.28);
}


.price-page .vehicule-marque {
    margin-bottom: 7px;
    color: var(--am-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}


.price-page .vehicule-modele {
    color: white;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}


.price-page .operation-cell,
.price-page .price-cell {
    padding: 22px 24px;
    border-right: 1px solid var(--am-line);
    border-bottom: 1px solid var(--am-line);
    vertical-align: top;
}


.price-page .operation-cell {
    min-width: 300px;
    background: #0d0d0d;
    color: white;

    /* Garde la première colonne visible pendant le scroll horizontal */
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 12px 0 24px rgba(0,0,0,.22);
}


.price-page .price-cell {
    min-width: 230px;
    color: #ddd;
    line-height: 1.5;
}


.price-page .operation-title {
    margin-bottom: 7px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}


.price-page .operation-subtitle {
    color: #989898;
    font-size: 12px;
    line-height: 1.55;
}


.price-page .operation-interval {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(198,0,0,.28);
    border-radius: 8px;
    color: #e7bcbc;
    background: rgba(198,0,0,.07);
    font-size: 11px;
}


.price-note {
    margin: 18px 0 0;
    color: #767676;
    font-size: 12px;
    line-height: 1.6;
}


.page-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    margin-top: 70px;
    padding: 34px;
    border: 1px solid var(--am-line);
    border-radius: 20px;
    background: #0a0a0a;
}


.page-cta h2 {
    margin: 0 0 8px;
    color: white;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 300;
}


.page-cta p {
    margin: 0;
    color: var(--am-muted);
    line-height: 1.6;
}


/* LEGAL */
.legal-main {
    background:
        linear-gradient(180deg, #050505 0%, #080808 45%, #050505 100%);
}


.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0,1fr);
    gap: clamp(38px, 7vw, 100px);
    align-items: start;
}


.legal-aside {
    position: sticky;
    top: 135px;
}


.legal-aside-title {
    margin: 0 0 16px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}


.legal-aside p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}


.legal-content {
    display: grid;
    gap: 14px;
}


.legal-card {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr);
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--am-line);
    border-radius: 18px;
    background: rgba(255,255,255,.018);
}


.legal-card:hover {
    border-color: rgba(255,255,255,.17);
}


.legal-index {
    color: var(--am-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}


.legal-card h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 22px;
    font-weight: 400;
}


.legal-card p,
.legal-card li {
    color: #a6a6a6;
    font-size: 15px;
    line-height: 1.75;
}


.legal-card p {
    margin: 0;
}


.legal-card ul {
    margin: 8px 0 0;
    padding-left: 20px;
}


.legal-card a {
    color: #fff;
    text-decoration-color: var(--am-red);
    text-underline-offset: 4px;
}


.legal-highlight {
    border-color: rgba(198,0,0,.28);
    background: linear-gradient(135deg, rgba(198,0,0,.08), rgba(255,255,255,.018));
}


/* FOOTER + COOKIES */
.secondary-footer {
    border-top: 1px solid var(--am-line);
    background: #030303;
}


.secondary-footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 34px;
}


.secondary-footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}


.secondary-footer-brand img {
    width: 120px;
    height: auto;
}


.secondary-footer-brand p {
    margin: 0;
    color: #666;
    font-size: 12px;
}


.secondary-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}


.secondary-footer-links a {
    color: #8b8b8b;
    font-size: 12px;
    text-decoration: none;
}


.secondary-footer-links a:hover {
    color: white;
}


.secondary-page .cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: none;
    padding: 18px 20px;
    border: 1px solid rgba(198,0,0,.6);
    border-radius: 14px;
    background: rgba(6,6,6,.96);
    box-shadow: 0 18px 70px rgba(0,0,0,.42);
    color: white;
    backdrop-filter: blur(14px);
}


.secondary-page .cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}


.secondary-page .cookie-content p {
    margin: 0;
    color: #bbb;
    font-size: 13px;
}


.secondary-page .cookie-actions {
    display: flex;
    gap: 8px;
}


.secondary-page .cookie-btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--am-line-strong);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}


.secondary-page .cookie-btn.accept {
    border-color: var(--am-red);
    background: var(--am-red);
    color: white;
}


.secondary-page .cookie-btn.refuse {
    background: transparent;
    color: white;
}


@media (max-width: 980px) {
    .page-hero {
        min-height: 470px;
    }


    .page-intro-grid,
    .legal-layout {
        grid-template-columns: 1fr;
    }


    .page-intro-sticky,
    .legal-aside {
        position: static;
    }


    .info-strip {
        grid-template-columns: 1fr;
    }


    .info-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--am-line);
    }


    .info-strip > div:last-child {
        border-bottom: 0;
    }


    .secondary-footer-inner {
        grid-template-columns: 1fr;
    }


    .secondary-footer-links {
        justify-content: flex-start;
    }
}


@media (max-width: 700px) {
    .page-hero {
        min-height: 430px;
    }


    .page-hero-content {
        padding-top: 150px;
        padding-bottom: 48px;
    }


    .page-title {
        font-size: clamp(42px, 14vw, 64px);
    }


    .page-lead {
        font-size: 15px;
    }


    .page-section {
        padding: 72px 0;
    }


    .price-page .am-table-container {
        padding: 18px;
    }

    .price-page .operation-header,
    .price-page .operation-cell {
        min-width: 220px;
        width: 220px;
    }


    .price-page .search-container {
        grid-template-columns: 1fr;
    }


    .page-cta {
        grid-template-columns: 1fr;
        padding: 24px;
    }


    .legal-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 22px;
    }


    .legal-index {
        margin-bottom: 2px;
    }


    .secondary-footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }


    .secondary-page .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }


    .secondary-page .cookie-actions {
        width: 100%;
    }


    .secondary-page .cookie-btn {
        flex: 1;
    }
}

/* =========================================================
   ALIGNEMENT HERO — MÊME PROPORTION QUE « L'ATELIER EN IMAGES »
   ========================================================= */

/*
 * Les héros des pages secondaires reprennent désormais la même
 * largeur de colonne de texte et le même rythme que le bandeau
 * « RÉALISATIONS / L'ATELIER EN IMAGES » de la page d'accueil.
 */
.page-hero {
    min-height: 610px;
    align-items: stretch;
}

.page-hero-content {
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 96px;
    padding-bottom: 0;
}

.page-kicker {
    margin: 0 0 20px;
    font-size: 12px;
    letter-spacing: .22em;
    line-height: 1.2;
}

.page-title {
    max-width: 720px;
    font-size: clamp(54px, 6vw, 92px);
    font-weight: 300;
    letter-spacing: -.05em;
    line-height: .93;
}

.page-lead {
    max-width: 620px;
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .page-hero,
    .page-hero-content {
        min-height: 540px;
    }

    .page-hero-content {
        padding-top: 88px;
    }
}

@media (max-width: 700px) {
    .page-hero,
    .page-hero-content {
        min-height: 500px;
    }

    .page-hero-content {
        justify-content: flex-end;
        padding-top: 118px;
        padding-bottom: 56px;
    }

    .page-title {
        max-width: 100%;
        font-size: clamp(48px, 14vw, 66px);
    }

    .page-lead {
        max-width: 100%;
        margin-top: 24px;
        font-size: 15px;
    }
}
