/* ========================= */
/* FONTS                     */
/* ========================= */
@font-face {
    font-family: 'adelphe';
    src: url('FONT/Adelphe-FructidorItalic.otf') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'herthey';
    src: url('FONT/BBB-Herthey-Futural-40.otf') format('woff');
    font-weight: thin;
    font-style: serif;
}

@font-face {
    font-family: 'Ludd';
    src: url('FONT/LUDDS.ttf') format('truetype');
}

@font-face {
    font-family: 'Interlope';
    src: url('FONT/Interlope-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'AdelpheTrouble';
    src: url('FONT/Adelphe-Trouble-GerminalRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'TribaliumNeue';
    src: url('FONT/TribaliumNeue-Poster.otf') format('opentype');
}

@font-face {
    font-family: 'SnellRoundhand';
    src: url('FONT/SnellRoundhand.ttc') format('truetype');
}

/* ========================= */
/* RESET                     */
/* ========================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Ludd', 'adelphe', Georgia, serif;
    background: #fff;
}

/* ========================= */
/* MENU FIXE                 */
/* ========================= */
.fixed-layer {
    position: fixed;
    z-index: 10;
    inset: 0;
    pointer-events: none;
}
.text-blocks {
    width: 100%;
    height: 100%;
    position: relative;
}
.bloc {
    position: fixed;
    padding: 0;
    pointer-events: auto;
}
.bloc:nth-child(1) { top: 12px; left: 12px; }

.svg-btn {
    position: relative;
    display: inline-block;
    width: 500px;
}
.svg-btn img { width: 100%; display: block; }
.svg-btn .svg-hover {
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.1s ease;
}
.svg-btn:hover .svg-hover  { opacity: 1; }
.svg-btn:hover .svg-default { opacity: 0; }

.my-cursor {
    cursor: url(./IMG/vis.png) 34 0, pointer;
}
.my-cursor-nord-ouest {
    cursor: url(./IMG/vis_nord_ouest.png) 100 100, pointer;
}

/* ========================= */
/* CONTENEUR + PAIRES        */
/* ========================= */
.container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    padding-top: 30px;
    width: 100%;
}

/* ========================= */
/* CELLULES — BASE           */
/* ========================= */
.cell {
    min-height: 320px;
}

/* ========================= */
/* GALERIE CLIQUABLE         */
/* ========================= */
.cell-img {
    overflow: hidden;
    background: #fff;
    position: relative;
}

.gallery-single {
    width: 100%;
    position: relative;
}

.gallery-single img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease, opacity 0.15s ease;
}

.gallery-single img.hidden {
    display: none;
}

.gallery-single:hover img:not(.hidden) {
    transform: scale(1.06);
}

.counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-family: 'Ludd', 'adelphe', Georgia, serif;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(0,0,0,0.45);
    padding: 2px 7px;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: 0.05em;
}

.gallery-single::after {
    content: ']';
    font-family: 'Ludd';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: rgba(255,255,255,0);
    transition: color 0.2s ease;
    pointer-events: none;
}
.gallery-single:hover::after {
    color: rgba(255,255,255,0.6);
}

/* ========================= */
/* BLOCS TEXTE               */
/* ========================= */
.cell-text {
    display: flex;
    flex-direction: column;
}

.richtext {
    flex: 1;
    padding: 22px 20px;
    position: relative;
    line-height: 1.7;
    color: #111;
    outline: none;
    min-height: 280px;
    background: #fff;
}

.richtext:has(.sound-btn) {
    padding-bottom: calc(3rem + 40px);
}

.sound-btn {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Ludd', Georgia, serif;
    font-weight: bold;
    color: inherit;
    font-size: 3rem;
    line-height: 1;
    outline: none;
}
.sound-btn:hover {
    opacity: 0.6;
    cursor: url(./IMG/vis_nord_ouest.png) 100 100, pointer;
}

p {
    font-size: 1rem;
    font-family:'herthey', Georgia, serif;
       letter-spacing: -0.05em;
}

p:not([class]) {
    margin-bottom: -5px;
    
}

b {
    font-size: 2rem;
    font-family: 'Ludd', Georgia, serif;
}

.t1 {
    font-family: 'Interlope', Georgia, serif;
    font-size: clamp(1rem, 8vw, 4rem);
    font-weight: bold;
    white-space: nowrap;
}

.t2 {
    font-family: 'AdelpheTrouble', Georgia, serif;
    font-size: 1.5rem;
    font-weight: bold;
}

.t3 {
    font-family: 'TribaliumNeue', Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.quote-text {
    font-family: 'Ludd', Georgia, serif;
    font-size: 1.2rem;
}


/* ========================= */
/* TITRE SECTION BLEU        */
/* ========================= */
.section-title {
    text-align: end;
    padding-right: 32px;
    margin-top: 170px;
    color: white;
    font-size: 14px;
    text-shadow: -1px -1px 0 #0800ff, 1px -1px 0 #0800ff,
                 -1px  1px 0 #0800ff, 1px  1px 0 #0800ff;
    outline: 2px dotted #0800ff;
}

/* ========================= */
/* BOUTONS NOTICE            */
/* ========================= */
.notice-links {
    text-align: end;
    padding-right: 32px;
    margin-top: 6px;
}

.notice-btn {
    display: inline-block;
    color: #0800ff;
    text-decoration: underline;
    font-family: 'Ludd', Georgia, serif;
    font-size: 1.15rem;
    margin-left: 14px;
    background: none;
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
}

.notice-btn:hover {
    opacity: 0.6;
    cursor: url(./IMG/vis_nord_ouest.png) 100 100, pointer;
}

/* ========================= */
/* BOUTON SON                */
/* ========================= */
.sound-btn {
    position: absolute;
    bottom: 16px;
    right: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: 'Ludd', Georgia, serif;
    font-weight: bold;
    color: inherit;
    font-size: 3rem;
    line-height: 1;
    outline: none;
}
.sound-btn:hover {
    opacity: 0.6;
}


.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 900px) {
    .container { padding-top: 20px; }
    .section-title { margin-top: 110px; }
}

@media (max-width: 768px) {
    .svg-btn { width: 200px; }
}

@media (max-width: 560px) {
    .container {
        padding-top: 20px;
        gap: 0;
    }
    .pair {
        display: flex;
        flex-direction: column;
    }
    .pair .cell-img  { order: 1; }
    .pair .cell-text { order: 2; }
    .cell { min-height: 0; }

    .svg-btn { width: 200px; }

    .gallery-single img { aspect-ratio: 4 / 3; }

    .richtext {
        min-height: 0;
        padding: 16px 14px 56px;
        font-size: 0.9rem;
    }

    b { font-size: 1.4rem; }

    .section-title {
        margin-top: 80px;
        padding-right: 14px;
        font-size: 12px;
    }

    .sound-btn {
        font-size: 2rem;
        bottom: 10px;
        right: 14px;
    }

    .notice-links {
        padding-right: 14px;
    }
}

/*mode paysage*/
@media (max-height: 500px) {
    .svg-btn { width: 150px; }
    .container { padding-top: 20px; }
    .section-title { margin-top: 70px; }
}
