/****************************
   PAGE ACCUEIL (HOME)
   - fond défini UNIQUEMENT en CSS
   - chemin portable via --amup-assets-url
   - AUCUNE référence à page-id
****************************/


/* =========================================
   HOME — FOND FINAL (CORRIGÉ)
========================================= */

body.home{
    min-height:100vh;
    background-image: var(--amup-home-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width:768px){
    body.home{
        background-image: var(--amup-home-bg-mob);
    }
}

/* neutralisation */
body.home #wrap,
body.home #main,
body.home #content-wrap,
body.home #primary,
body.home #content,
body.home article,
body.home .single-page-article,
body.home .container,
body.home .entry,
body.home .site-content{
    background: transparent !important;
}

/* =========================================================
   CONTENU — RESPIRATION MINIMALE
========================================================= */

body.home .entry-content,
body.page-accueil .entry-content {
    padding: 20px 20px 0 !important;
}

/* =========================================================
   HERO / TITRE
========================================================= */

body.home .am-hero-wrap,
body.page-accueil .am-hero-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    margin: 40px 0;
    text-align: center;
}

body.home .am-hero-text,
body.page-accueil .am-hero-text {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    color: #ffffff;
    text-shadow:
        0 3px 6px rgba(0,0,0,0.45),
        0 6px 14px rgba(0,0,0,0.25),
        0 10px 22px rgba(0,0,0,0.15);
}

body.home .am-hero-logo,
body.page-accueil .am-hero-logo {
    width: clamp(80px, 12vw, 260px);
    height: auto;
}

/* =========================================================
   COLONNES GUTENBERG
========================================================= */

body.home .wp-block-columns,
body.page-accueil .wp-block-columns {
    margin: 0 !important;
    padding: 0 !important;
    justify-content: space-between !important;
}

/* =========================================================
   METASLIDER — ALIGNEMENT & ESPACES
========================================================= */

body.home .metaslider,
body.page-accueil .metaslider,
body.home .metaslider .flexslider,
body.page-accueil .metaslider .flexslider,
body.home .metaslider .slides,
body.page-accueil .metaslider .slides {
    padding: 0 !important;
    margin: 0 !important;
}

body.home .metaslider img,
body.page-accueil .metaslider img {
    height: 350px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

body.home .metaslider .slides li,
body.page-accueil .metaslider .slides li {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

body.home .metaslider ul.slides > li > img,
body.page-accueil .metaslider ul.slides > li > img {
    margin-bottom: 60px !important;
}

body.home .metaslider .caption-wrap,
body.page-accueil .metaslider .caption-wrap {
    position: static !important;
    background-color: #333 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    text-align: center !important;
    font-size: 0.95em !important;
    line-height: 1.4em !important;
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* =========================================================
   FOOTER — PAGE D’ACCUEIL
========================================================= */

body.home #footer,
body.page-accueil #footer,
body.home #footer-bottom,
body.page-accueil #footer-bottom {
    display: block !important;
    background: transparent !important;
}

/* =====================================================
   LISTE DÉROULANTE — GALERIES
===================================================== */

.am-galeries-select {
    max-width: 420px;
    margin: 40px auto 30px;
    padding: 18px 20px 22px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    text-align: center;
}

.am-galeries-select::before {
    content: "Galeries";
    display: block;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.75);
}

.am-galeries-select select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.35);
    color: #111;
    text-align: center;
    cursor: pointer;
    appearance: none;
}

.am-galeries-select select:hover,
.am-galeries-select select:focus {
    background: rgba(255, 255, 255, 0.55);
    outline: none;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
    .am-galeries-select {
        margin: 30px 16px;
    }
}