body{
    background-color: #D2B48C;
    background-image: url('../assets/img/ressources/fond.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Rockwell', 'Rockwell Std', 'Rockwell Nova', 'Serifa', Georgia, 'Times New Roman', serif;
    overflow-x: hidden;
}

.info-banner {
    width: 100%;
    background-color: transparent;
    background: linear-gradient(90deg, #f3e3ae 0%, #e5c97f 60%, #d2b166 100%);
    color: #2b210f;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 0 18px 0;
    margin: 90px 0 18px 0;
    opacity: 0;
    transform: translateY(-24px);
    animation: infoBannerFadeIn 1.2s cubic-bezier(.22,.61,.36,1) 0.2s forwards;
    z-index: 100;
    position: relative;
}
.info-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}
.info-banner h1 {
    font-family: 'Caesar Dressing', cursive;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    letter-spacing: 1.5px;
    animation: infoBannerTitlePop 1.1s cubic-bezier(.22,.61,.36,1) 0.5s both;
}
.info-banner p {
    font-size: 1.15rem;
    margin: 0 auto;
    line-height: 1.6;
    max-width: 800px;
    animation: infoBannerTextFade 1.2s cubic-bezier(.22,.61,.36,1) 0.9s both;
}
@keyframes infoBannerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes infoBannerTitlePop {
    0% { opacity: 0; transform: scale(0.95) translateY(-18px); }
    60% { opacity: 1; transform: scale(1.08) translateY(2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes infoBannerTextFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@media (max-width: 700px) {
    .info-banner {
        padding: 18px 0 10px 0;
    }
    .info-banner h1 {
        font-size: 1.25rem;
    }
    .info-banner p {
        font-size: 0.98rem;
    }
}

*, *::before, *::after{ box-sizing: border-box; }
html, body{ width: 100%; }
img, video, svg{ max-width: 100%; height: auto; }

.site-header{
    background: transparent;
    color: #fff;
    font-family: 'Rockwell', 'Rockwell Std', 'Rockwell Nova', 'Serifa', Georgia, 'Times New Roman', serif;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 7000;
}

.site-header::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.73;
    background-color: #9b866b;
    background-image: linear-gradient(90deg, #9b866b, #a79070, #9b866b);
    background-size: 200% 100%;
    animation: headerGradient 12s ease-in-out infinite;
}

body.has-fixed-header{ padding-top: 92px; }

.site-header .header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    padding-right: 56px;
    position: relative;
    z-index: 1;
}

.brand{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
}

.brand-logo{
    height: 70px;
    width: auto;
    transition: transform 200ms ease;
}

.brand-text{
    font-weight: 700;
    letter-spacing: 1px;
}

.brand:hover .brand-logo{
    transform: scale(1.06) rotate(-2deg);
}

.brand-logo.is-clicking{
    animation: logoClick 650ms ease both;
}

@keyframes logoClick{
    0%{ transform: scale(1) rotate(0); filter: brightness(1); }
    20%{ transform: scale(1.12) rotate(-6deg); filter: brightness(1.1); }
    45%{ transform: scale(0.96) rotate(3deg); }
    70%{ transform: scale(1.06) rotate(-2deg); }
    100%{ transform: scale(1) rotate(0); filter: brightness(1); }
}

.main-nav{
    display: inline-flex;
    align-items: center;
    gap: 25px;
}

.nav-link{
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    transition: color 180ms ease, transform 180ms ease;
}

.nav-link:hover{
    color: #ffd38a;
    transform: translateY(-1px);
}

.nav-link.active{
    color: #d8a35b;
}

/* Lien Photos mis en avant en rouge */
.nav-link.photos-link{
    color: #ff4040 !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255,64,64,0.8);
    animation: pulse-red 2s ease-in-out infinite;
}

.nav-link.photos-link:hover{
    color: #ff7070 !important;
    text-shadow: 0 0 15px rgba(255,64,64,1);
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.sep{
    color: #e7d9c7;
    opacity: 0.8;
}

.nav-close{ display: none; }

.menu-toggle{
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.menu-toggle .bar{
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 260ms ease, opacity 260ms ease;
}

@media (max-width: 880px){
    .menu-toggle{ display: inline-block; }
    .nav-backdrop{
        position: fixed; z-index: 8999;
        background: rgba(0,0,0,0.35);
        opacity: 0; visibility: hidden;
        transition: opacity 420ms ease, visibility 0s linear 420ms;
    }
    body.nav-open .nav-backdrop{ opacity: 1; visibility: visible; transition: opacity 420ms ease; }

    .main-nav{
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
        width: clamp(280px, 82vw, 520px);
        background-color: #efe2bf;
        background-image:
          repeating-linear-gradient(0deg, rgba(100,69,15,0.06) 0 2px, transparent 3px 14px),
          repeating-linear-gradient(90deg, rgba(100,69,15,0.045) 0 1px, transparent 2px 10px),
          radial-gradient(1200px 400px at 100% 0%, rgba(0,0,0,0.08), transparent 65%),
          linear-gradient(90deg, rgba(165,141,99,0.22), rgba(199,170,120,0.18));
        box-shadow: -24px 0 36px rgba(0,0,0,0.35), inset 0 0 18px rgba(82,58,20,0.25);
        border-left: 3px solid rgba(120,90,40,0.45);
        visibility: hidden; opacity: 0;
        transform: translateX(100%);
        transition: transform 420ms cubic-bezier(.22,.61,.36,1), opacity 420ms ease, visibility 0s linear 420ms;
        display: flex; flex-direction: column; align-items: flex-start;
        gap: 18px;
        padding: calc(16px + env(safe-area-inset-top)) 22px 28px 22px;
        -webkit-overflow-scrolling: touch; overflow-y: auto;
        pointer-events: none;
    }
    .main-nav::before{
        content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 14px;
        background: repeating-linear-gradient(0deg, rgba(92,67,28,0.3) 0 8px, transparent 8px 16px);
        opacity: 0.4;
    }
    .header-inner{ position: relative; }
    .sep{ display: none; }
    .nav-link{ font-size: 18px; padding: 6px 2px; }

    .nav-close{
        align-self: flex-end; margin: 4px 0 8px 0; border: 0; background: transparent; color: #4b3b22;
        font-size: 28px; line-height: 1; cursor: pointer; padding: 6px; border-radius: 6px;
        transition: transform 160ms ease;
    }
    .nav-close:active{ transform: scale(0.95); }

    .main-nav .nav-link{
        font-family: 'Caesar Dressing', cursive;
        color: #3f2f18;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 6px 10px;
        border-radius: 6px;
        position: relative;
    }
    .main-nav .nav-link:hover{
        color: #654416;
        background: linear-gradient(180deg, rgba(240,218,160,0.65), rgba(233,205,140,0.55));
        box-shadow: inset 0 0 0 2px rgba(128,96,40,0.35), 0 2px 0 rgba(0,0,0,0.08);
    }
    /* Lien Photos en rouge dans le menu mobile */
    .main-nav .nav-link.photos-link{
        color: #ff4040 !important;
        font-weight: 800;
        text-shadow: 0 0 8px rgba(255,64,64,0.6);
    }
    .main-nav .nav-link.photos-link:hover{
        color: #ff7070 !important;
        background: linear-gradient(180deg, rgba(255,200,200,0.65), rgba(255,180,180,0.55));
    }
    .main-nav .nav-link::before{
        content: ""; position: absolute; left: -12px; top: 50%; width: 8px; height: 8px; transform: translateY(-50%);
        background: radial-gradient(circle at 30% 30%, #caa253 0 40%, #8a6a2e 41% 100%);
        border-radius: 50%; box-shadow: 0 0 0 1px rgba(80,60,20,0.4);
    }

    .main-nav .nav-link{ opacity: 0; transform: translateY(-6px); transition: transform 300ms ease, opacity 300ms ease; }
    .main-nav .nav-link:nth-of-type(1){ transition-delay: 100ms; }
    .main-nav .nav-link:nth-of-type(2){ transition-delay: 150ms; }
    .main-nav .nav-link:nth-of-type(3){ transition-delay: 200ms; }
    .main-nav .nav-link:nth-of-type(4){ transition-delay: 250ms; }

    body.nav-open .main-nav{
        visibility: visible; opacity: 1;
        transform: translateX(0);
        transition: transform 460ms cubic-bezier(.22,.61,.36,1), opacity 420ms ease;
        pointer-events: auto; display: flex;
    }
    
    body.nav-open{ overflow: hidden; }
    body.nav-open .main-nav .nav-link{ opacity: 1; transform: translateY(0); }

    body.nav-open .menu-toggle .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
    body.nav-open .menu-toggle .bar:nth-child(2){ opacity: 0; }
    body.nav-open .menu-toggle .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

.nav-link::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.nav-link:hover::after, .nav-link.active::after{
    transform: scaleX(1);
}

@keyframes headerGradient{
    0%{ background-position: 0% 50%; }
    50%{ background-position: 100% 50%; }
    100%{ background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce){
    .site-header{ animation: none; }
    .brand-logo, .nav-link{ transition: none; }
}

/* ===== NOUVELLE MISE EN PAGE PROJETS ===== */

.projects-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.project-header {
    background: linear-gradient(135deg, #9b866b 0%, #a79070 100%);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.project-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.project-logo.flyblind-logo {
    height: 80px;
}

.project-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.project-category {
    background: rgba(255, 255, 255, 0.9);
    color: #2b210f;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.instagram-link svg {
    width: 20px;
    height: 20px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.project-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
}

.gallery-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 300ms ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #2b210f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 200ms ease;
    z-index: 10;
}

.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}

.gallery-arrow svg {
    width: 24px;
    height: 24px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    text-align: center;
    margin: 0;
}

.team-members {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #9b866b;
    text-align: center;
}

.team-members h3 {
    margin: 0 0 15px 0;
    color: #2b210f;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.team-members ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    align-items: center;
}

.team-members li {
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    color: #333;
    font-size: 15px;
    transition: all 200ms ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    text-align: center;
}

.team-members li:hover {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    transform: translateX(5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .projects-container {
        gap: 50px;
        padding: 0 15px;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .project-gallery {
        min-height: 350px;
    }

    .project-header {
        padding: 25px 30px;
        flex-direction: column;
        text-align: center;
    }

    .project-logo {
        height: 100px;
        margin: 0 auto;
    }
    
    .project-meta {
        align-items: center;
        width: 100%;
    }

    .project-logo.flyblind-logo {
        height: 70px;
    }
}

/* Responsive Mobile */
@media (max-width: 640px) {
    body.has-fixed-header {
        padding-top: 80px;
    }

    .projects-container {
        gap: 40px;
        margin: 20px auto;
        padding: 0 10px;
    }

    .project-card {
        border-radius: 15px;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .project-logo {
        height: 80px;
    }

    .project-logo.flyblind-logo {
        height: 60px;
    }

    .project-meta {
        align-items: center;
        width: 100%;
    }

    .instagram-link {
        font-size: 13px;
        padding: 8px 16px;
    }

    .instagram-link span {
        display: none;
    }

    .instagram-link svg {
        width: 24px;
        height: 24px;
    }

    .project-content {
        padding: 20px;
        gap: 20px;
    }

    .project-gallery {
        min-height: 280px;
        padding: 15px;
    }

    .gallery-image {
        max-height: 350px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-arrow svg {
        width: 20px;
        height: 20px;
    }

    .gallery-arrow.left {
        left: 5px;
    }

    .gallery-arrow.right {
        right: 5px;
    }

    .project-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .team-members {
        padding: 20px;
    }

    .team-members h3 {
        font-size: 18px;
    }

    .team-members li {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* ===== FOOTER ===== */

.site-footer{
    margin-top: 60px;
    color: #2b210f;
    position: relative;
}

.site-footer::before{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.73;
    background-color: #a88138;
    background-image:
        radial-gradient(70px 70px at 6% 0, #a88138 99%, rgba(0,0,0,0) 100%),
        radial-gradient(95px 95px at 24% 0, #a88138 99%, rgba(0,0,0,0) 100%),
        radial-gradient(80px 80px at 42% 0, #a88138 99%, rgba(0,0,0,0) 100%),
        radial-gradient(110px 110px at 62% 0, #a88138 99%, rgba(0,0,0,0) 100%),
        radial-gradient(85px 85px at 80% 0, #a88138 99%, rgba(0,0,0,0) 100%),
        radial-gradient(70px 70px at 96% 0, #a88138 99%, rgba(0,0,0,0) 100%),
        radial-gradient(60px 60px at 10% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
        radial-gradient(75px 75px at 28% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
        radial-gradient(85px 85px at 46% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
        radial-gradient(95px 95px at 64% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
        radial-gradient(75px 75px at 82% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
        linear-gradient(0deg, rgba(0,0,0,0.08), rgba(0,0,0,0.00));
}

.site-footer .footer-inner{
    max-width: 1500px;
    margin: 0 auto;
    padding: 12px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-logo{ height: 40px; width: auto; display: block; }

.footer-nav{ display: flex; justify-content: center; gap: 10px }
.footer-pill{
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Caesar Dressing', cursive;
    text-transform: uppercase; letter-spacing: 1px;
    color: #2b210f;
    background-image: linear-gradient(180deg, #f3e3ae, #e5c97f 60%, #d2b166);
    border: 1.5px solid rgba(80,58,20,0.5);
    box-shadow: 0 2px 0 rgba(0,0,0,0.22);
}
.footer-pill::before, .footer-pill::after{
    content: ""; position: absolute; top: 50%; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%);
    background: radial-gradient(circle at 30% 30%, #caa253 0 40%, #8a6a2e 41% 100%);
    box-shadow: 0 0 0 1px rgba(80,60,20,0.35);
    opacity: 0.85;
}
.footer-pill::before{ left: -8px; }
.footer-pill::after{ right: -8px; }
.footer-pill:hover{ filter: saturate(1.03); transform: translateY(-1px); box-shadow: 0 3px 0 rgba(0,0,0,0.25); }
.footer-pill:active{ transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,0.22); }
.footer-pill:focus-visible{ outline: 2px solid rgba(60,40,10,0.5); outline-offset: 2px; }

.footer-social{ list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.social-btn{
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 28px; padding: 4px 0; border-radius: 6px;
    color: #2b210f; text-decoration: none; border: 2px solid #2b210f;
    background: rgba(255,255,255,0.35);
}
.social-btn svg{ width: 16px; height: 16px; fill: currentColor; display: block; }

@media (max-width: 700px){
    .site-footer .footer-inner{ grid-template-columns: 1fr; gap: 12px; padding: 16px; justify-items: center; text-align: center; }
    .footer-left{ justify-self: center; }
    .footer-nav{ justify-content: center; flex-wrap: wrap; gap: 10px; }
    .footer-social{ justify-content: center; }
}

@media (min-width: 701px){
    .site-footer .footer-nav{
        gap: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: min(100%, 640px);
        margin: 0 auto;
    }
    .site-footer .footer-nav > *{ margin-left: 0 !important; flex: 0 0 auto; }
}

@media (max-width: 560px){
    .site-footer::before{
        background-image:
            radial-gradient(50px 50px at 8% 0, #a88138 99%, rgba(0,0,0,0) 100%),
            radial-gradient(70px 70px at 30% 0, #a88138 99%, rgba(0,0,0,0) 100%),
            radial-gradient(72px 72px at 54% 0, #a88138 99%, rgba(0,0,0,0) 100%),
            radial-gradient(60px 60px at 78% 0, #a88138 99%, rgba(0,0,0,0) 100%),
            radial-gradient(55px 55px at 94% 0, #a88138 99%, rgba(0,0,0,0) 100%),
            radial-gradient(48px 48px at 14% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
            radial-gradient(62px 62px at 46% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
            radial-gradient(56px 56px at 78% 100%, rgba(125,87,25,0.65) 60%, rgba(0,0,0,0) 61%),
            linear-gradient(0deg, rgba(0,0,0,0.08), rgba(0,0,0,0.00));
    }
}

/* ===== BOUTON RETOUR EN HAUT ===== */

.back-to-top{
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 6500;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1.5px solid rgba(80,58,20,0.5);
    background-image: linear-gradient(180deg, #f3e3ae, #e5c97f 60%, #d2b166);
    color: #2b210f;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0,0,0,0.22), 0 8px 18px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
}
.back-to-top.is-visible{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
}
.back-to-top:hover{ transform: translateY(-2px); }
.back-to-top:active{ transform: translateY(0); }
.back-to-top:focus-visible{ outline: 2px solid rgba(60,40,10,0.5); outline-offset: 2px; }

@media (max-width: 560px){
    .back-to-top{ width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce){
    .back-to-top{ transition: none; }
}