/* ═══════════════════════════════════════════════════════
   ARTHUR ANDERSON — CATALOGUE INTERACTIF (Frontend)
   Palette : #C4070A · #111 · #fff
═══════════════════════════════════════════════════════ */

:root {
    --aac-red:    #C4070A;
    --aac-dark:   #111111;
    --aac-white:  #FFFFFF;
    --aac-off:    #F7F5F2;
    --aac-gray:   #6B6B6B;
    --aac-border: #E4E0DB;
    --aac-radius: 4px;
}

/* ── Wrapper global ── */
.aac-catalogue {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    font-family: Georgia, 'Times New Roman', serif;
    user-select: none;
}

/* ─────────────────────────────────────────────────────
   TOPBAR
───────────────────────────────────────────────────── */
.aac-topbar {
    background: var(--aac-dark);
    border-radius: var(--aac-radius) var(--aac-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.aac-topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.aac-logo-mark {
    width: 26px;
    height: 26px;
    background: var(--aac-red);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex-shrink: 0;
}
.aac-topbar-logo > span {
    color: #fff;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.aac-topbar-logo > small {
    color: rgba(255,255,255,.35);
    font-size: 10px;
    letter-spacing: 2px;
    font-family: sans-serif;
}
.aac-topbar-title {
    color: rgba(255,255,255,.4);
    font-family: sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}
.aac-topbar-page {
    color: rgba(255,255,255,.5);
    font-family: sans-serif;
    font-size: 12px;
}

/* ─────────────────────────────────────────────────────
   SPREAD CONTAINER
───────────────────────────────────────────────────── */
.aac-spread-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--aac-dark);
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   PAGE (base)
───────────────────────────────────────────────────── */
.aac-page {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: aacFadeIn .4s ease;
}
@keyframes aacFadeIn {
    from { opacity: 0; transform: scale(.985); }
    to   { opacity: 1; transform: scale(1); }
}

/* Numéro de page */
.aac-page-num {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: sans-serif;
    font-size: 10px;
    color: rgba(255,255,255,.3);
    letter-spacing: 1px;
    z-index: 2;
}
.aac-page-num-right {
    color: var(--aac-gray);
}

/* ─────────────────────────────────────────────────────
   COUVERTURE
───────────────────────────────────────────────────── */
.aac-cover {
    background: var(--aac-dark);
    display: flex;
    flex-direction: column;
}
.aac-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .45;
    filter: saturate(.8);
}
.aac-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.88) 0%,
        rgba(0,0,0,.2)  55%,
        rgba(0,0,0,.5)  100%
    );
}
.aac-cover-stripe {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--aac-red);
    z-index: 2;
}
.aac-cover-topbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 44px;
}
.aac-cover-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.aac-cover-logo > span {
    color: #fff;
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.aac-cover-year {
    color: rgba(255,255,255,.35);
    font-family: sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
}
.aac-cover-body {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 44px 52px;
    gap: 24px;
}
.aac-cover-left { max-width: 60%; }
.aac-cover-eyebrow {
    font-family: sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: 14px;
}
.aac-cover-title {
    font-size: clamp(28px, 4.5vw, 68px);
    color: #fff;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1px;
}
.aac-cover-title em {
    color: var(--aac-red);
    font-style: italic;
}
.aac-cover-sub {
    font-family: sans-serif;
    color: rgba(255,255,255,.5);
    font-size: clamp(11px, 1.1vw, 14px);
    margin-top: 14px;
    line-height: 1.7;
    max-width: 460px;
}
.aac-cover-right {
    text-align: right;
    flex-shrink: 0;
}
.aac-cover-stat {
    margin-bottom: 14px;
}
.aac-cover-stat strong {
    display: block;
    font-size: clamp(22px, 3vw, 44px);
    color: var(--aac-red);
    font-family: sans-serif;
    font-weight: 900;
    line-height: 1;
}
.aac-cover-stat span {
    font-size: 10px;
    color: rgba(255,255,255,.35);
    font-family: sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.aac-cover-cta {
    position: absolute;
    bottom: 28px;
    right: 44px;
    z-index: 4;
    padding: 12px 28px;
    background: var(--aac-red);
    color: #fff;
    border: none;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background .2s, transform .15s;
}
.aac-cover-cta:hover {
    background: #a30509;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
   DOUBLE PAGE MAISON
───────────────────────────────────────────────────── */
.aac-house-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Séparateur de reliure */
.aac-house-spread::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    background: rgba(0,0,0,.3);
    box-shadow: -4px 0 10px rgba(0,0,0,.2), 4px 0 10px rgba(0,0,0,.15);
    pointer-events: none;
    z-index: 10;
}

/* ── PAGE GAUCHE (photo) ── */
.aac-left-page {
    position: relative;
    overflow: hidden;
    background: var(--aac-dark);
}
.aac-left-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}
.aac-left-page:hover .aac-left-photo {
    transform: scale(1.04);
}
.aac-left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.05) 40%,
        rgba(0,0,0,.8)  100%
    );
}

/* Badge */
.aac-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background: var(--aac-red);
    color: #fff;
    padding: 4px 12px;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
}

/* Miniatures */
.aac-thumbs {
    position: absolute;
    bottom: 72px;
    left: 16px;
    z-index: 3;
    display: flex;
    gap: 6px;
}
.aac-thumb {
    width: 48px;
    height: 36px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: .55;
    border: 2px solid transparent;
    transition: opacity .2s, border-color .2s;
}
.aac-thumb.active,
.aac-thumb:hover {
    opacity: 1;
    border-color: var(--aac-red);
}

/* Caption */
.aac-left-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 22px 20px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    z-index: 3;
}
.aac-left-ref {
    font-family: sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,.45);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.aac-left-title {
    font-size: clamp(18px, 2.5vw, 34px);
    color: #fff;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .3px;
}
.aac-type-tag {
    display: inline-block;
    margin-top: 10px;
    background: var(--aac-red);
    color: #fff;
    padding: 3px 12px;
    font-family: sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
}

/* ── PAGE DROITE (infos) ── */
.aac-right-page {
    background: var(--aac-white);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* En-tête rouge */
.aac-right-head {
    background: var(--aac-red);
    padding: clamp(8px, 1.2vw, 16px) clamp(14px, 2vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 8px;
}
.aac-right-chapter {
    font-family: sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
}
.aac-right-price {
    font-size: clamp(16px, 2vw, 26px);
    color: #fff;
    font-weight: 300;
    letter-spacing: -.5px;
    white-space: nowrap;
}

/* Indicateurs */
.aac-specs-row {
    display: flex;
    border-bottom: 1px solid var(--aac-border);
    flex-shrink: 0;
}
.aac-spec-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: clamp(8px, 1.2vw, 14px) 8px;
    border-right: 1px solid var(--aac-border);
}
.aac-spec-cell:last-child { border-right: none; }
.aac-spec-ico {
    font-size: clamp(14px, 1.6vw, 20px);
    line-height: 1;
}
.aac-spec-val {
    font-size: clamp(12px, 1.4vw, 18px);
    color: var(--aac-dark);
    font-family: sans-serif;
    font-weight: 700;
    line-height: 1;
}
.aac-spec-lbl {
    font-size: clamp(8px, .8vw, 10px);
    color: var(--aac-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: sans-serif;
    text-align: center;
}

/* Corps : plan + prestations */
.aac-right-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    overflow: hidden;
}

/* Colonne plan */
.aac-plan-col {
    border-right: 1px solid var(--aac-border);
    padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Colonne prestations */
.aac-presta-col {
    padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Titres colonnes */
.aac-col-title {
    font-family: sans-serif;
    font-size: clamp(8px, .85vw, 10px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--aac-red);
    font-weight: 700;
    margin-bottom: clamp(6px, 1vw, 12px);
    flex-shrink: 0;
}

/* Cadre plan */
.aac-plan-frame {
    flex: 1;
    border: 1px solid var(--aac-border);
    border-radius: 4px;
    background: var(--aac-off);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.aac-plan-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.aac-plan-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ccc;
    font-family: sans-serif;
    font-size: 12px;
    padding: 20px;
    text-align: center;
}
.aac-plan-empty span:first-child { font-size: 28px; }

/* Description courte */
.aac-description {
    font-family: sans-serif;
    font-size: clamp(9px, .9vw, 11px);
    color: var(--aac-gray);
    margin-top: 8px;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Liste prestations */
.aac-presta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(4px, .6vw, 7px);
    overflow: hidden;
}
.aac-presta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-family: sans-serif;
    font-size: clamp(9px, .95vw, 12px);
    color: var(--aac-dark);
    line-height: 1.4;
}
.aac-presta-bullet {
    width: 10px;
    height: 10px;
    background: var(--aac-red);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    flex-shrink: 0;
    margin-top: 2px;
}
.aac-empty-col {
    font-family: sans-serif;
    font-size: 12px;
    color: #ccc;
    font-style: italic;
}

/* Ligne rouge bas */
.aac-right-bar {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 4px;
    background: var(--aac-red);
}

/* ─────────────────────────────────────────────────────
   PAGE DE FIN
───────────────────────────────────────────────────── */
.aac-end {
    background: var(--aac-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 28px);
    padding: 40px;
    text-align: center;
}
.aac-end-logo-mark {
    width: clamp(40px, 5vw, 64px);
    height: clamp(40px, 5vw, 64px);
    background: var(--aac-red);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.aac-end-title {
    font-size: clamp(22px, 3.5vw, 48px);
    color: #fff;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.5px;
}
.aac-end-title em {
    color: var(--aac-red);
    font-style: italic;
}
.aac-end-sub {
    font-family: sans-serif;
    font-size: clamp(11px, 1.1vw, 14px);
    color: rgba(255,255,255,.45);
    max-width: 520px;
    line-height: 1.7;
}
.aac-end-contacts {
    display: flex;
    gap: clamp(16px, 4vw, 56px);
    flex-wrap: wrap;
    justify-content: center;
}
.aac-end-contact strong {
    display: block;
    color: #fff;
    font-family: sans-serif;
    font-size: clamp(12px, 1.2vw, 16px);
    font-weight: 600;
    margin-bottom: 4px;
}
.aac-end-contact span {
    font-family: sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,.35);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.aac-end-cta {
    padding: 13px 36px;
    background: var(--aac-red);
    color: #fff;
    border: none;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background .2s, transform .15s;
}
.aac-end-cta:hover {
    background: #a30509;
    transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────── */
.aac-nav {
    background: var(--aac-dark);
    border-radius: 0 0 var(--aac-radius) var(--aac-radius);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
}
.aac-dots {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.aac-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.aac-dot.active {
    background: var(--aac-red);
    transform: scale(1.4);
}
.aac-dot:hover:not(.active) {
    background: rgba(255,255,255,.4);
}
.aac-nav-btn {
    padding: 9px 24px;
    border: none;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all .2s;
    white-space: nowrap;
}
.aac-nav-prev {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.55);
}
.aac-nav-prev:hover:not(:disabled) {
    background: rgba(255,255,255,.13);
    color: #fff;
}
.aac-nav-next {
    background: var(--aac-red);
    color: #fff;
}
.aac-nav-next:hover:not(:disabled) {
    background: #a30509;
}
.aac-nav-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────
   VIDE
───────────────────────────────────────────────────── */
.aac-empty {
    text-align: center;
    padding: 40px;
    color: #999;
    font-family: sans-serif;
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE — Tablette
───────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .aac-cover-body  { padding: 0 24px 40px; }
    .aac-cover-title { letter-spacing: -.5px; }
    .aac-cover-right { display: none; }
    .aac-cover-left  { max-width: 100%; }
    .aac-cover-topbar, .aac-cover-cta { padding-left: 24px; padding-right: 24px; }
}

/* ─────────────────────────────────────────────────────
   RESPONSIVE — Mobile : passage en portrait vertical
───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .aac-spread-wrap {
        aspect-ratio: unset;
        min-height: 80vh;
    }
    .aac-house-spread {
        grid-template-columns: 1fr;
        grid-template-rows: 45vh 1fr;
    }
    .aac-house-spread::after { display: none; }
    .aac-right-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    .aac-plan-col { border-right: none; border-bottom: 1px solid var(--aac-border); }
    .aac-topbar-title { display: none; }
    .aac-nav-btn { padding: 8px 14px; font-size: 10px; }
}
