@font-face {
    font-family: 'farro';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(police/Farro/Farro-Medium.ttf) format('woff2');
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    font-family: 'Farro', sans-serif;
    font-weight: 700;
}

img {
    width: 100%;
}

#refreshButton {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

#refreshButton:hover {
    background-color: #ff9cdb;
    color: white;
    transform: scale(1.1);
}


/* ---- Image slides ---- */
.image-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.image-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 100%;
    left: 0;
    opacity: 0;
    transition: top 0.8s ease, opacity 0.8s ease;
}

.image-slide.active {
    top: 0;
    opacity: 1;
    z-index: 2;
}

.image-slide.prev-up {
    top: -100%;
    opacity: 0;
}

.image-slide.prev-down {
    top: 100%;
    opacity: 0;
}

/* ---- Texte ---- */
.text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

.text-content {
    font-family: 'Farro', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    color: white;
    padding: 20px 40px;
    max-width: 1000px;
    position: absolute;
    top: 0px;
    left: 0px;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    border: none;
    background: none;
    box-shadow: none;
}

.active .text-content {
    opacity: 1;
    font-size: 400%;
}

.text-content-small {
    font-size: 30px !important;
    line-height: 1.4;
}


.text-content-haut {
    top: 0px;
    bottom: auto;
    left: 0px;
    right: auto;
}

.text-content-bas {
    text-align: right;
    top: auto;
    bottom: 0px;
    left: auto;
    right: 0px;
}

.text-content-toubas {
    top: auto;
    bottom: 0px;
    left: auto;
    right: 0px;
}

.text-content-mid {
    top: 0px;
    bottom: auto;
    left: 0px;
    right: auto;
    color: rgb(90, 222, 255);
}

/* ---- Bento Grid ---- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.bento-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bento-item:hover {
    transform: scale(1.1);
    z-index: 3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Formulaire compact ---- */
form.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    width: 90vw;
    margin: 30px auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Farro', sans-serif;
    font-weight: 700;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    font-size: 14px;
}

form.contact-form h2,
form.contact-form p {
    grid-column: 1 / -1;
    margin-bottom: 12px;
    font-size: 18px;
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

form.contact-form textarea {
    resize: vertical;
    min-height: 60px;
    max-height: 100px;
}

form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
    border-color: #00796b;
    outline: none;
}

form.contact-form label {
    grid-column: 1 / -1;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

form.contact-form input[type="checkbox"] {
    transform: scale(1.1);
    accent-color: #00796b;
}

form.contact-form input[type="submit"],
form.contact-form button {
    grid-column: 1 / -1;
    background-color: rgb(90, 222, 255);
    ;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

form.contact-form input[type="submit"]:hover,
form.contact-form button:hover {
    background-color: #00796b;
}

@media (max-width: 600px) {
    form.contact-form {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 10px;
    }
}

#scroll-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: white;
    opacity: 1;
    animation: bounce 1.5s infinite;
    z-index: 1000;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(15px);
    }
}

.chillax {
    margin: 0;
    position: absolute;
    width: 450px;
    left: 60vw;
    top: 60vh;
}