:root{--navy:#081827;--navy2:#102b43;--blue:#2389c7;--ice:#d5edf9;--ink:#132538;--muted:#708395;--line:#dce5eb;--paper:#f3f7fa}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}button{cursor:pointer}.wrap{max-width:1180px;margin:auto;padding:0 24px}.top{background:#061421;color:white}.top-inner{height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:14px;font-weight:800;letter-spacing:.02em;font-size:20px}.brand svg{width:57px;height:38px}.brand small{display:block;font-size:10px;letter-spacing:.24em;color:#9dc7e2;margin-top:5px}.nav{display:flex;gap:27px;align-items:center;font-size:13px;color:#c8d9e7}.nav a:hover{color:white}.nav .pill{border:1px solid #50768e;padding:10px 16px;border-radius:6px}.hero{background:radial-gradient(circle at 76% 48%,#28739c 0,#10354e 35%,#071725 78%);color:white;position:relative;overflow:hidden}.hero:after{content:'✈';position:absolute;font-size:460px;right:4%;top:-70px;opacity:.12;transform:rotate(-17deg)}.hero-inner{min-height:470px;display:flex;align-items:center;position:relative;z-index:1}.eyebrow{font-size:12px;letter-spacing:.22em;color:#6abce9;font-weight:800;text-transform:uppercase}.hero h1{font-size:clamp(40px,5vw,69px);line-height:1.06;letter-spacing:-.04em;margin:19px 0;max-width:740px}.hero p{font-size:17px;line-height:1.8;color:#d0e1ed;max-width:570px}.btn{display:inline-block;border:0;background:#2089c8;color:white;border-radius:7px;padding:13px 20px;font-weight:700;font-size:13px}.btn.secondary{background:white;color:#18344c;border:1px solid #d7e3ea}.btn.ghost{background:transparent;border:1px solid #8aafc8;color:white}.hero .btn{margin-top:20px}.section{padding:70px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.section h2{font-size:35px;letter-spacing:-.03em;margin:10px 0}.sub{color:#6c7e8d;line-height:1.7}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 6px 26px #102d4510}.card-body{padding:24px}.card h3{margin:0 0 10px;font-size:19px}.card p{font-size:14px;line-height:1.7;color:#64778a}.cover{height:205px;background:linear-gradient(135deg,#194968,#0c243a);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#c4e6f7;font-size:85px}.cover img{width:100%;height:100%;object-fit:cover}.cover:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#061c3850,transparent 65%);pointer-events:none}.badge{font-size:11px;letter-spacing:.08em;font-weight:800;color:#2789c2;text-transform:uppercase}.album-foot{display:flex;justify-content:space-between;align-items:center;color:#7c8d9b;font-size:12px;margin-top:19px}.service-icon{font-size:32px;margin-bottom:16px}.dark-section{background:#0b2033;color:white}.dark-section .sub{color:#abc4d5}.dark-section .card{color:var(--ink)}.contact{display:flex;justify-content:space-between;gap:50px}.contact>div{flex:1}.footer{background:#061421;color:#a4b6c5;padding:27px 0;font-size:12px}.footer .wrap{display:flex;justify-content:space-between;gap:15px}.overlay{position:fixed;inset:0;background:#03111de8;display:none;z-index:40;align-items:center;justify-content:center;padding:30px}.overlay.open{display:flex}.modal{background:white;max-width:940px;width:100%;max-height:92vh;overflow:auto;border-radius:12px;padding:24px}.modal-top{display:flex;justify-content:space-between;align-items:center}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;cursor:pointer}.close{background:#eaf1f6;border:0;border-radius:6px;padding:8px 12px}.viewer{position:fixed;inset:0;background:#000e;z-index:70;display:none;align-items:center;justify-content:center;gap:12px}.viewer.open{display:flex}.viewer img{max-width:78vw;max-height:84vh;object-fit:contain}.viewer button{border:0;border-radius:8px;padding:12px;background:#fff;color:#111}.viewer .exit{position:absolute;right:20px;top:20px}.admin{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{background:#091d2f;color:white;padding:26px 17px}.sidebar .brand{font-size:15px;margin-bottom:42px}.sidebar .brand svg{width:43px}.sidebar .brand small{font-size:8px}.sidebar a{display:block;padding:14px;border-radius:7px;margin-bottom:6px;font-size:14px;color:#b7c9d8}.sidebar a.active,.sidebar a:hover{background:#183a53;color:white}.sidebar .side-label{font-size:10px;letter-spacing:.16em;color:#688ba5;margin:25px 12px 10px}.main{min-width:0}.admin-head{height:80px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.admin-content{padding:35px 38px;max-width:1380px;margin:auto}.admin-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.admin-title h1{font-size:29px;letter-spacing:-.04em;margin:0 0 8px}.admin-title p{color:#718496;margin:0;font-size:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:10px;padding:23px}.stat strong{display:block;font-size:32px;margin:10px 0}.stat span{color:#728494;font-size:13px}.panel{background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden;margin-bottom:24px}.panel-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.panel-head h2{font-size:17px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8a9baa;background:#fafcfd}th,td{padding:17px 22px;border-bottom:1px solid #e8eef2}td{font-size:13px}tr:last-child td{border-bottom:0}.thumb{height:52px;width:77px;border-radius:5px;object-fit:cover;background:#173b55;display:flex;align-items:center;justify-content:center;color:#b6d9e9;font-size:28px}.row-title{font-weight:700;font-size:14px}.row-meta{color:#8998a5;font-size:12px;margin-top:5px}.status{display:inline-block;background:#e4f6eb;color:#16804d;border-radius:30px;padding:6px 10px;font-weight:700;font-size:11px}.status.draft{background:#fff3dd;color:#9c6715}.linkbtn{background:none;border:0;color:#1878b1;font-weight:700;padding:7px}.danger{color:#bf4650}.editor{padding:25px;display:none}.editor.open{display:block}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{margin-bottom:17px}.field label{display:block;font-weight:700;font-size:12px;margin-bottom:8px}.field input,.field textarea{width:100%;border:1px solid #cfdae3;border-radius:7px;padding:12px;background:white}.field textarea{min-height:100px;resize:vertical}.drop{border:2px dashed #a7c7da;background:#f3f9fc;padding:30px;text-align:center;border-radius:9px;cursor:pointer}.drop strong{display:block;margin-bottom:9px}.drop span{font-size:12px;color:#7791a5}.previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:13px;margin:18px 0}.preview{border:1px solid #dae5eb;border-radius:7px;overflow:hidden;position:relative}.preview img{width:100%;height:110px;object-fit:cover}.preview button{position:absolute;right:5px;top:5px;background:#fff;border:0;border-radius:5px}.preview small{display:block;padding:7px;font-size:10px;color:#637788}.editor-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.hint{font-size:12px;color:#7a8d9b;line-height:1.6}.toast{position:fixed;bottom:24px;right:24px;background:#113b55;color:white;padding:15px 20px;border-radius:9px;display:none;z-index:90}.toast.show{display:block}@media(max-width:850px){.cards{grid-template-columns:1fr 1fr}.nav{gap:12px}.admin{grid-template-columns:1fr}.sidebar{display:flex;gap:15px;align-items:center;padding:14px;overflow:auto}.sidebar .brand{margin:0}.sidebar a{margin:0;white-space:nowrap}.sidebar .side-label{display:none}.admin-head{height:65px;padding:0 20px}.admin-content{padding:24px 18px}}@media(max-width:600px){.top-inner{height:auto;padding-top:15px;padding-bottom:15px;display:block}.nav{margin-top:17px;flex-wrap:wrap}.hero-inner{min-height:400px}.cards,.stats,.form-grid{grid-template-columns:1fr}.contact{display:block}.section{padding:45px 0}.admin-title{align-items:start;flex-direction:column}.photo-grid{grid-template-columns:1fr 1fr}.footer .wrap{display:block}}

/* ==========================================
   CORRECTION AFFICHAGE ALBUMS ADMINISTRATION
   ========================================== */

.admin .thumb {
    width: 77px !important;
    height: 52px !important;
    min-width: 77px !important;
    max-width: 77px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    border-radius: 5px;
    position: relative;
}

.admin .thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.admin .row-title {
    font-size: 14px;
    font-weight: 700;
    color: #132538;
}

.admin .row-meta {
    font-size: 12px;
    color: #708395;
    margin-top: 5px;
}

.admin .table-wrap td {
    vertical-align: middle;
}

.admin .table-wrap td:first-child {
    min-width: 280px;
}

.admin .table-wrap td:last-child {
    min-width: 260px;
    white-space: nowrap;
}


/* BAM COVER PATCH */
.admin .thumb{width:77px!important;height:52px!important;min-width:77px!important;overflow:hidden!important;flex-shrink:0!important}.admin .thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}

/* BAM SLIDESHOW */
.hero:after{display:none!important}
.hero-inner{gap:35px;justify-content:space-between}
.hero-inner>div:first-child{flex:1 1 55%;min-width:0}
.bam-slideshow{flex:0 1 43%;height:325px;min-width:0;position:relative;overflow:hidden;border-radius:12px;background:#102b43;box-shadow:0 12px 35px #0005}
.bam-slides,.bam-slide{position:absolute;inset:0}.bam-slide{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.1s ease}.bam-slide.active{opacity:1}
.bam-slideshow button{position:absolute;top:50%;transform:translateY(-50%);background:#061421a8;color:white;border:0;border-radius:6px;padding:9px 12px;z-index:2}.bam-prev{left:10px}.bam-next{right:10px}
.bam-slideshow.empty{display:none}
@media(max-width:850px){.hero-inner{flex-direction:column;align-items:stretch;padding-top:45px;padding-bottom:45px}.bam-slideshow{flex:auto;width:100%;height:280px}}
@media(prefers-reduced-motion:reduce){.bam-slide{transition:none}}

/* Diaporama accueil : masquer les flèches */
.hero-slide-prev,
.hero-slide-next,
.slideshow-prev,
.slideshow-next,
.slide-prev,
.slide-next {
    display: none !important;
}


/* Supprimer les flèches du diaporama d'accueil */
.bam-slideshow .bam-prev,
.bam-slideshow .bam-next {
    display: none !important;
}


/* Logo personnalisé Belledonne */
.top .brand .site-custom-logo {
    display: block;
    width: auto;
    max-width: 420px;
    max-height: 65px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .top .brand .site-custom-logo {
        max-width: 220px;
        max-height: 55px;
    }
}

/* Mention THIELERT dans le bandeau Notre atelier */
.thielert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.thielert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #e0f2fe;
    border: 2px solid #65b8ed;
    border-radius: 10px;
    color: #075985;
    font-size: 19px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.thielert-badge:hover {
    background: #bae6fd;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .thielert-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .thielert-badge {
        white-space: normal;
        font-size: 16px;
    }
}

/* Formulaire de contact */
.bam-contact-form {
    margin-top: 24px;
    max-width: 650px;
}

.bam-contact-form .field {
    margin-bottom: 16px;
}

.bam-contact-form input,
.bam-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.bam-contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.bam-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

#contactResult {
    margin-top: 15px;
    font-weight: 600;
}

/* Animation 3D à l'ouverture des photographies */

@keyframes bamPhotoRotation {
    0% {
        opacity: 0;
        transform: perspective(1200px)
                   rotateY(-75deg)
                   rotateZ(-8deg)
                   scale(0.35);
        filter: blur(8px);
    }

    55% {
        opacity: 1;
        transform: perspective(1200px)
                   rotateY(12deg)
                   rotateZ(2deg)
                   scale(1.05);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: perspective(1200px)
                   rotateY(0deg)
                   rotateZ(0deg)
                   scale(1);
        filter: blur(0);
    }
}

.viewer.open #largePhoto.bam-animate {
    animation: bamPhotoRotation 0.65s
               cubic-bezier(.22,.8,.25,1) both;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .viewer.open #largePhoto.bam-animate {
        animation: none;
    }
}

/* Rotation 3D complète des photos */

@keyframes bamRotation360 {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateY(0deg) scale(.35);
    }

    30% {
        opacity: 1;
        transform: perspective(1200px) rotateY(120deg) scale(.65);
    }

    65% {
        opacity: 1;
        transform: perspective(1200px) rotateY(260deg) scale(.9);
    }

    100% {
        opacity: 1;
        transform: perspective(1200px) rotateY(360deg) scale(1);
    }
}

.viewer.open #largePhoto.bam-rotate360 {
    animation: bamRotation360 .9s ease-in-out both !important;
    transform-origin: center;
    backface-visibility: visible;
}

.viewer.open #largePhoto.bam-rotate360.reverse {
    animation-direction: reverse !important;
}

@media (prefers-reduced-motion: reduce) {
    .viewer.open #largePhoto.bam-rotate360 {
        animation: none !important;
    }
}

/* Neutralisation des anciennes animations */
.viewer.open #largePhoto {
    animation: none !important;
    transform-origin: center center;
    backface-visibility: visible;
}

.viewer.open #largePhoto.bam-animate,
.viewer.open #largePhoto.bam-rotate360 {
    animation: none !important;
}
