/* --- Conteneur pour aligner plusieurs bannières --- */
.pub-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 12px;
}

/* --- Pub Oxygen --- */
.pub-oxygen {
    display: inline-block;
    width: 110px;
    height: 90px;
    position: relative;
    background: var(--paper, #F6F4EC);
    border: 1px solid var(--mint, #D8EAE1);
    border-radius: 5px;
    overflow: hidden;
    font-family: var(--font-body, sans-serif);
    box-shadow: 0 1px 3px rgba(22, 48, 42, 0.15);
    flex: 0 0 auto;
}

@media (min-width: 480px) {
    .pub-oxygen {
        width: 150px;
        height: 110px;
    }
}

.pub-oxygen__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--forest, #234B3D);
    position: relative;
}

.pub-oxygen__close {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: var(--coral, #E8563F);
    color: #fff;
    font-size: 8px;
    line-height: 12px;
    text-align: center;
    font-family: var(--font-mono, monospace);
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.pub-oxygen__frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 16px 6px 6px;
    box-sizing: border-box;
    font-family: var(--font-display, serif);
    font-weight: 500;
    font-size: 0.65rem;
    line-height: 1.15;
    color: var(--forest, #234B3D);
    opacity: 0;
}

@media (min-width: 480px) {
    .pub-oxygen__frame {
        font-size: 0.8rem;
        padding: 8px 20px 8px 8px;
    }
}

.pub-oxygen__frame--1 { animation: pubOxyText1 18s infinite; }
.pub-oxygen__frame--2 { animation: pubOxyText2 18s infinite; }
.pub-oxygen__frame--3 {
    animation: pubOxyLogo 18s infinite;
    padding: 2px 8px 2px 2px;
}

@media (min-width: 480px) {
    .pub-oxygen__frame--3 {
        padding: 3px 10px 3px 3px;
    }
}

.pub-oxygen__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@keyframes pubOxyText1 {
    0%, 3%   { opacity: 0; }
    6%, 22%  { opacity: 1; }
    26%, 100% { opacity: 0; }
}

@keyframes pubOxyText2 {
    0%, 29%  { opacity: 0; }
    32%, 48% { opacity: 1; }
    52%, 100% { opacity: 0; }
}

@keyframes pubOxyLogo {
    0%, 55%  { opacity: 0; }
    58%, 96% { opacity: 1; }
    100%     { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pub-oxygen__frame { animation: none; opacity: 0; }
    .pub-oxygen__frame--3 { opacity: 1; }
}


/* --- Pub Origami Onirique --- */
.pub-origami {
    display: inline-block;
    width: 110px;
    height: 90px;
    position: relative;
    background: #16302A;
    border: 1px solid #5B9279;
    border-radius: 5px;
    overflow: hidden;
    font-family: sans-serif;
    box-shadow: 0 1px 3px rgba(22, 48, 42, 0.15);
    flex: 0 0 auto;
}

@media (min-width: 480px) {
    .pub-origami {
        width: 150px;
        height: 110px;
    }
}

.pub-origami__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.pub-origami__close {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #E8563F;
    color: #fff;
    font-size: 8px;
    line-height: 12px;
    text-align: center;
    font-family: monospace;
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.pub-origami__frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 16px 6px 6px;
    box-sizing: border-box;
    font-weight: 600;
    font-size: 0.65rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    opacity: 0;
    background-size: cover;
    background-position: center;
}

@media (min-width: 480px) {
    .pub-origami__frame {
        font-size: 0.8rem;
        padding: 8px 20px 8px 8px;
    }
}

.pub-origami__frame--1 {
    animation: pubOriScene1 18s infinite;
    background: #16302A;
}

.pub-origami__frame--2 {
    animation: pubOriScene2 18s infinite;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url("/bordeaux.png");
}

.pub-origami__frame--3 {
    animation: pubOriScene3 18s infinite;
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url("/concert.png");
}


.pub-origami__frame--4 {
    animation: pubOriScene4 18s infinite;
    background: #16302A;
    flex-direction: column;
    gap: 2px;
}

.pub-origami__title {
    font-weight: 700;
    font-size: 0.75rem;
}

@media (min-width: 480px) {
    .pub-origami__title {
        font-size: 0.9rem;
    }
}

.pub-origami__subtitle {
    font-weight: 400;
    font-size: 0.55rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (min-width: 480px) {
    .pub-origami__subtitle {
        font-size: 0.65rem;
    }
}

@keyframes pubOriScene1 {
    0%, 2%   { opacity: 0; }
    5%, 20%  { opacity: 1; }
    23%, 100% { opacity: 0; }
}

@keyframes pubOriScene2 {
    0%, 24%  { opacity: 0; }
    27%, 42% { opacity: 1; }
    45%, 100% { opacity: 0; }
}

@keyframes pubOriScene3 {
    0%, 46%  { opacity: 0; }
    49%, 64% { opacity: 1; }
    67%, 100% { opacity: 0; }
}

@keyframes pubOriScene4 {
    0%, 68%  { opacity: 0; }
    71%, 97% { opacity: 1; }
    100%     { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pub-origami__frame { animation: none; opacity: 0; }
    .pub-origami__frame--4 { opacity: 1; }
}


/* --- Pub Éric Antony & Associés --- */
.pub-antony {
    display: inline-block;
    width: 110px;
    height: 90px;
    position: relative;
    background: #14110F;
    border: 1px solid #E8A33D;
    border-radius: 5px;
    overflow: hidden;
    font-family: 'Vollkorn', Georgia, serif;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    flex: 0 0 auto;
}

@media (min-width: 480px) {
    .pub-antony {
        width: 150px;
        height: 110px;
    }
}

.pub-antony__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.pub-antony__close {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    background: #8C2F2F;
    color: #EFE8D8;
    font-size: 8px;
    line-height: 12px;
    text-align: center;
    font-family: 'Courier Prime', 'Courier New', monospace;
    border-radius: 2px;
    z-index: 5;
    pointer-events: none;
}

.pub-antony__frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 16px 6px 6px;
    box-sizing: border-box;
    font-size: 0.62rem;
    line-height: 1.2;
    color: #EFE8D8;
    opacity: 0;
}

@media (min-width: 480px) {
    .pub-antony__frame {
        font-size: 0.75rem;
        padding: 8px 20px 8px 8px;
    }
}

.pub-antony__frame--1 {
    animation: pubAntScene1 18s infinite;
    font-family: 'Courier Prime', 'Courier New', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #D9C9A3;
}

.pub-antony__frame--2 {
    animation: pubAntScene2 18s infinite;
    flex-direction: column;
    gap: 2px;
}

.pub-antony__title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #F4C165;
    text-shadow: 0 0 8px rgba(232, 163, 61, 0.4);
}

@media (min-width: 480px) {
    .pub-antony__title {
        font-size: 0.9rem;
    }
}

.pub-antony__subtitle {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D9C9A3;
    opacity: 0.85;
}

@media (min-width: 480px) {
    .pub-antony__subtitle {
        font-size: 0.65rem;
    }
}

.pub-antony__frame--3 {
    animation: pubAntScene3 18s infinite;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-style: italic;
    color: #F4C165;
}

@keyframes pubAntScene1 {
    0%, 2%   { opacity: 0; }
    5%, 30%  { opacity: 1; }
    34%, 100% { opacity: 0; }
}

@keyframes pubAntScene2 {
    0%, 38%  { opacity: 0; }
    42%, 78% { opacity: 1; }
    82%, 100% { opacity: 0; }
}

@keyframes pubAntScene3 {
    0%, 86%  { opacity: 0; }
    90%, 97% { opacity: 1; }
    100%     { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pub-antony__frame { animation: none; opacity: 0; }
    .pub-antony__frame--2 { opacity: 1; }
}

/* --- Correctif mobile portrait : empêche le retour à la ligne des pubs --- */
@media (max-width: 479px) {
    .pub-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pub-oxygen,
    .pub-origami,
    .pub-antony {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        aspect-ratio: 110 / 90; /* conserve les proportions d'origine */
    }
}

