/* ============================================================
   AUXO — Réalisations immobilières
   Reprise fidèle de la maquette Claude Design (Mulish, accent bleu)
   Préfixé .auxo- pour ne pas entrer en conflit avec Kallyas
   ============================================================ */

.auxo-realisations-page {
    --accent: #1E5BAA;
    --accent-dark: #143A6B;
    --accent-soft: #E6EEF8;
    --ink: #1F2733;
    --ink-soft: #4A5566;
    --muted: #8A93A1;
    --line: #E2E6EC;
    --bg: #FFFFFF;
    --bg-soft: #F4F6F8;
    --container-w: 1200px;
    --font: "Mulish", "Helvetica Neue", Helvetica, Arial, sans-serif;

    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.auxo-realisations-page * { box-sizing: border-box; }

.auxo-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ HERO ============ */
.auxo-hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}
.auxo-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.auxo-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,30,46,0.55) 0%, rgba(15,30,46,0.7) 100%);
    z-index: 1;
}
.auxo-hero-content {
    position: relative; z-index: 2;
    max-width: 720px;
}
.auxo-hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.1;
}
.auxo-hero-content p {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
    color: #fff;
}

/* ============ PAGE MAIN ============ */
.auxo-page-main {
    padding: 96px 0 64px;
    background: var(--bg);
}

/* ============ REALISATION ============ */
.auxo-realisation {
    position: relative;
    margin-bottom: 140px;
}
.auxo-realisation:last-child { margin-bottom: 64px; }

.auxo-r-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: start;
    position: relative;
    z-index: 2;
}
.auxo-realisation.is-reversed .auxo-r-grid {
    grid-template-columns: 1.15fr 1fr;
}

/* Grand numéro derrière le contenu */
.auxo-r-number {
    position: absolute;
    top: -72px;
    font-family: var(--font);
    font-weight: 800;
    line-height: 0.9;
    z-index: 1;
    pointer-events: none;
    font-size: 220px;
    color: var(--accent-soft);
    letter-spacing: -0.04em;
}
.auxo-realisation:not(.is-reversed) .auxo-r-number {
    left: -10px;
    text-align: left;
}
.auxo-realisation.is-reversed .auxo-r-number {
    right: -10px;
    text-align: right;
}

/* COLONNE TEXTE */
.auxo-r-text {
    padding-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.auxo-r-category {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.auxo-r-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
}

/* STAT BOXES */
.auxo-r-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.auxo-stat-box {
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    padding: 14px 16px 16px;
    background: #fff;
}
.auxo-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.auxo-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.auxo-stat-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.auxo-r-desc {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0;
}
.auxo-r-desc p { margin: 0 0 12px; }
.auxo-r-desc p:last-child { margin-bottom: 0; }

.auxo-r-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* COLONNE MÉDIA */
.auxo-r-media {
    position: relative;
    background: var(--bg-soft);
    padding: 0 0 28px;
}

.auxo-r-video-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 0 28px;
    align-items: end;
    margin-top: -120px;
    position: relative;
    z-index: 2;
}
.auxo-r-video-meta {
    padding-bottom: 16px;
}
.auxo-r-video-label {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.auxo-r-video-desc {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 14px 0 0;
    line-height: 1.6;
    max-width: 280px;
}

/* ============ COLLAGE PHOTOS ============ */
.auxo-collage {
    position: relative;
    padding: 24px 28px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 140px 140px;
    gap: 6px;
    height: 286px;
}
.auxo-collage-tile {
    background-size: cover;
    background-position: center;
    background-color: var(--accent-soft);
}
.auxo-collage-tile.tile-tl { grid-column: 1; grid-row: 1 / span 2; }
.auxo-collage-tile.tile-tr { grid-column: 2 / span 2; grid-row: 1; }
.auxo-collage-tile.tile-br { grid-column: 3; grid-row: 2; }
.auxo-collage-tile.tile-bl { grid-column: 2; grid-row: 2; }

/* Fallback si aucune photo : dégradé sympa */
.auxo-collage-tile.is-empty {
    background-image: linear-gradient(135deg, rgba(30,91,170,0.12), rgba(30,91,170,0.32));
}

/* ============ TÉLÉPHONE ============ */
.auxo-phone-frame {
    position: relative;
    width: 196px;
    height: 410px;
    border: 9px solid #131820;
    border-radius: 36px;
    background: #131820;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(15,30,46,0.18), 0 4px 10px rgba(15,30,46,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: 8px;
}
.auxo-phone-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(15,30,46,0.24);
}
.auxo-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 18px;
    background: #131820;
    border-radius: 0 0 12px 12px;
    z-index: 3;
}
.auxo-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #2a2a2a;
}
.auxo-phone-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.auxo-phone-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.05);
    transition: background 0.2s ease;
}
.auxo-phone-frame:hover .auxo-phone-play { background: rgba(0,0,0,0.18); }
.auxo-phone-button {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: #2a313c;
    border-radius: 4px;
}

/* ============ BOUTONS ============ */
.auxo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-radius: 0;
}
.auxo-btn-primary {
    background: var(--accent);
    color: #fff !important;
}
.auxo-btn-primary:hover { background: var(--accent-dark); color: #fff !important; }
.auxo-btn-sm { padding: 9px 18px; font-size: 11px; }
.auxo-btn-ghost {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}
.auxo-btn-ghost:hover { background: #fff; color: var(--accent) !important; }
.auxo-btn-lg { padding: 14px 30px; font-size: 13px; }

/* ============ BANNIÈRE CTA ============ */
.auxo-cta-banner {
    position: relative;
    padding: 88px 24px;
    text-align: center;
    overflow: hidden;
    color: #fff;
}
.auxo-cta-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.auxo-cta-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,91,170,0.92), rgba(20,58,107,0.94));
    z-index: 1;
}
.auxo-cta-content {
    position: relative; z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.auxo-cta-content h2 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: 0.01em;
    color: #fff;
}
.auxo-cta-content p {
    font-size: 16px;
    margin: 0 0 28px;
    opacity: 0.95;
    color: #fff;
}

/* ============ MODAL VIDÉO ============ */
.auxo-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,20,32,0.86);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: auxoFadeIn 0.18s ease;
}
@keyframes auxoFadeIn { from { opacity: 0; } to { opacity: 1; } }
.auxo-modal-shell {
    background: #fff;
    width: min(420px, 100%);
    max-height: 92vh;
    overflow: auto;
    position: relative;
    border-radius: 4px;
    animation: auxoPop 0.22s ease;
}
@keyframes auxoPop {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.auxo-modal-close {
    position: absolute;
    top: -42px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    z-index: 2;
}
.auxo-modal-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
}
.auxo-modal-video iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.auxo-modal-caption {
    padding: 20px 22px 24px;
}
.auxo-modal-cat {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.auxo-modal-caption h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
    color: var(--ink);
}
.auxo-modal-caption p {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

/* ============ BOUTON SHORTCODE (Particuliers) ============ */
.auxo-cta-btn-wrap {
    text-align: center;
    margin: 30px 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .auxo-hero { min-height: 280px; padding: 60px 24px; }
    .auxo-hero-content h1 { font-size: 32px; }
    .auxo-page-main { padding: 64px 0 32px; }
    .auxo-realisation { margin-bottom: 96px; }
    .auxo-r-grid,
    .auxo-realisation.is-reversed .auxo-r-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .auxo-r-number {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        text-align: left !important;
        margin-bottom: -36px;
        font-size: 140px;
    }
    .auxo-r-text { padding-top: 0; }
    .auxo-r-title { font-size: 22px; }
    .auxo-r-video-wrap {
        grid-template-columns: auto 1fr;
        gap: 18px;
        padding: 0 18px;
        margin-top: -100px;
    }
    .auxo-phone-frame { width: 150px; height: 320px; }
    .auxo-cta-content h2 { font-size: 22px; }
}
@media (max-width: 600px) {
    .auxo-r-stats { grid-template-columns: 1fr; }
    .auxo-r-video-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .auxo-r-video-desc { margin: 14px auto 0; }
    .auxo-container { padding: 0 20px; }
    .auxo-collage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 120px 120px;
        height: auto;
    }
    .auxo-collage-tile.tile-tl,
    .auxo-collage-tile.tile-tr,
    .auxo-collage-tile.tile-br,
    .auxo-collage-tile.tile-bl {
        grid-column: auto;
        grid-row: auto;
    }
}
