@font-face {
    font-family: haritzaga;
    src: url(../haritzag.woff) format("woff");
    font-display: swap;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 18px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: #001227;
    background-image: url(../photos_index/Anglet_3.webp);
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: Arial, Helvetica, sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: .35rem;
}

img {
    max-width: 100%;
}

.barre_adix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem .75rem;
    margin: .2rem;
    padding: .35rem .55rem;
    color: #004b14;
    background: #dff6ffcc;
    border: .08rem solid #005f91;
    border-radius: .5rem;
    box-shadow: 0 .18rem .5rem #003c5f33;
    font-family: haritzaga, Arial, sans-serif;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #004b14;
    text-decoration: none;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1;
    white-space: nowrap;
}

.logo_adix {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

nav {
    flex: 1 1 30rem;
}

ul {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .28rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .35rem .42rem;
    color: #002e80;
    background: linear-gradient(180deg, #ffffffd9, #a7e4ffdb);
    border: .06rem solid #005f91;
    border-radius: .38rem;
    box-shadow: inset 0 .04rem .08rem #ffffffcc, 0 .08rem .18rem #003c5f26;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #006615;
    background: linear-gradient(180deg, #fff, #d8ffd9);
    border-color: #006615;
    transform: translateY(-.05rem);
    outline: none;
}

nav a:active {
    transform: translateY(0);
}

main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: .3rem;
    min-height: 0;
}

@keyframes defilement-rtl {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.text_defil {
    width: 100%;
    height: 2.25rem;
    overflow: hidden;
    font-family: haritzaga, Arial, sans-serif;
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    line-height: 2.1rem;
}

.text_defil > div {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    white-space: nowrap;
    animation: defilement-rtl 20s infinite linear;
}

.text_defil img {
    vertical-align: middle;
    border-radius: .35rem;
    margin: 0 .15rem;
}

.r-25 {
    width: 2.5rem;
}

.r-20 {
    width: 2rem;
}

#defil_red {
    color: #c60000;
}

#defil_white {
    color: #fff;
    text-shadow: 0 .04rem .08rem #003c5f;
}

#defil_green {
    color: #006615;
}

.img_centrale {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: .1rem .55rem .35rem;
}

.img_centrale picture {
    display: contents;
}

.img_centrale img {
    display: block;
    width: auto;
    max-width: min(96vw, 1180px);
    max-height: calc(100dvh - 11rem);
    object-fit: contain;
    border: .18rem solid #003d5c;
    border-radius: .8rem;
    box-shadow: 0 .35rem 1rem #001d2fcc;
    background: #003d5c;
    cursor: zoom-in;
    transition: transform .16s ease, filter .16s ease;
}

.img_centrale img:hover {
    filter: brightness(1.05);
    transform: translateY(-.04rem);
}

body.adix-lightbox-open {
    overflow: hidden;
}

.adix-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000000ed;
    touch-action: none;
}

.adix-lightbox__image {
    display: block;
    max-width: 94vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    transform-origin: center center;
    transition: transform .08s linear;
    filter: drop-shadow(0 0 .35rem #ffffffcc);
}

.adix-lightbox__image.is-dragging {
    cursor: grabbing;
    transition: none;
}

.adix-lightbox__image.is-zoomed {
    cursor: move;
}

.adix-lightbox button {
    appearance: none;
    border: .08rem solid #ffffffb3;
    border-radius: .35rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: .15rem .45rem;
    color: #fff;
    background: #111111c9;
    font: 700 .85rem Arial, sans-serif;
    cursor: pointer;
}

.adix-lightbox button:hover,
.adix-lightbox button:focus-visible {
    background: #fff;
    color: #111;
    outline: none;
}

.adix-lightbox__close {
    position: fixed;
    top: .55rem;
    right: .55rem;
}

.adix-lightbox__toolbar {
    position: fixed;
    left: 50%;
    bottom: .65rem;
    display: flex;
    gap: .35rem;
    transform: translateX(-50%);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    width: calc(100% - .4rem);
    margin: 0 .2rem .2rem;
    padding: .12rem .55rem;
    color: #001227;
    background: #dff6ffbf;
    border: .06rem solid #7ad2f4;
    border-radius: .4rem;
    font-size: .68rem;
    font-weight: 700;
}

footer div {
    text-align: center;
}

footer p {
    margin: 0;
}

footer a img {
    display: block;
    width: 2.25rem;
    padding: .18rem .22rem;
    background: #008cd7cc;
    border-radius: .4rem;
}

@media all and (max-width: 980px) {
    .barre_adix {
        justify-content: center;
    }

    nav {
        flex-basis: 100%;
    }

    ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media all and (max-width: 640px) {
    body {
        background-attachment: scroll;
        gap: .25rem;
    }

    .barre_adix {
        margin: .15rem;
        padding: .32rem;
    }

    .brand {
        font-size: 1.75rem;
    }

    ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    nav a {
        min-height: 2.2rem;
        padding: .34rem .25rem;
        font-size: .78rem;
    }

    .text_defil {
        height: 2rem;
        line-height: 1.9rem;
    }

    .img_centrale {
        padding-inline: .25rem;
    }

    .img_centrale img {
        max-width: 97vw;
        max-height: calc(100dvh - 16rem);
        border-width: .12rem;
        border-radius: .55rem;
    }

    .adix-lightbox__image {
        max-width: 96vw;
        max-height: 82vh;
    }

    footer {
        flex-wrap: wrap;
        justify-content: center;
        padding: .15rem .35rem;
        font-size: .62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .text_defil > div {
        animation-duration: 45s;
    }

    nav a {
        transition: none;
    }
}
