/* AMUSEOC - CSS global propre et harmonisé */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f1ea;
    color:#2f241b;
    line-height:1.7;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:#7a4f27;
    text-decoration:none;
}

a:hover{
    color:#b47a3c;
}

/* HEADER */

.site-header{
    position:relative;
    min-height:260px;
    background:
        linear-gradient(rgba(245,241,234,0.40), rgba(245,241,234,0.40)),
        url("images/atelier.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    text-align:center;
    padding:40px 15px;
    margin:0;
}

.logo-zone{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}

.logo-zone img{
    width:120px;
    max-width:120px;
    height:auto;
    margin:0 auto 10px;
}

.titre-site h1{
    margin:4px 0 2px;
    font-size:34px;
    color:#2f241b;
    text-shadow:0 1px 2px rgba(255,255,255,0.5);
}

.titre-site p{
    margin:0;
}

.devise{
    color:#8b5a2b;
    font-style:italic;
    margin-top:2px;
}

/* MENU */

.menu{
    position:sticky;
    top:0;
    z-index:9999;
    background:white;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:4px 8px;
    padding:10px 15px;
    margin:0;
    text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.menu a{
    display:inline-block;
    margin:4px 6px;
    color:#7a4f27;
    font-weight:bold;
}

.menu a:hover{
    color:#b47a3c;
}

.menu a[href="soutenir.html"]{
    background:#7a4f27;
    color:white;
    padding:7px 14px;
    border-radius:20px;
}

.menu a[href="soutenir.html"]:hover{
    background:#b47a3c;
    color:white;
}

/* VOUS ÊTES ICI */

.vous-etes-ici{
    text-align:center;
    margin:8px 0 15px 0;
    font-size:0.85em;
    color:#9a8c7b;
    font-style:italic;
}

.vous-etes-ici a{
    color:#9a8c7b;
    text-decoration:none;
}

.vous-etes-ici a:hover{
    text-decoration:underline;
}

/* RECHERCHE */

.search-zone{
    max-width:1100px;
    margin:0 auto;
    padding:10px 20px 5px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:8px;
}

.search-zone input{
    width:150px;
    padding:5px 9px;
    border:1px solid #d6c8b8;
    border-radius:20px;
    font-size:13px;
}

.search-zone button{
    padding:5px 10px;
    border:0;
    border-radius:20px;
    background:#7a4f27;
    color:white;
    cursor:pointer;
    font-size:13px;
    font-weight:bold;
}

.search-zone button:hover{
    background:#b47a3c;
}

/* STRUCTURE */

main{
    background:#f5f1ea;
}

.container{
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
}

section{
    padding:32px 20px;
    background:#f5f1ea;
}

.section-light{
    background:#fffaf2;
}

section h1,
section h2,
h2{
    text-align:center;
    color:#7a4f27;
}

.hero,
.hero-page,
.page-header{
    text-align:center;
    padding:28px 20px 22px;
}

.hero-page{
    padding-bottom:5px;
}

.hero-page + section{
    padding-top:5px;
}

.hero p,
.hero-page p,
.page-header p{
    max-width:900px;
    margin:0 auto 18px;
}

.highlight-box{
    text-align:center;
}

/* LISTES */

ul{
    max-width:850px;
    margin:20px auto;
    padding:0;
    list-style:none;
}

ul li{
    background:#fffaf2;
    margin:10px 0;
    padding:12px 16px;
    border-left:5px solid #7a4f27;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,0.06);
}

/* GRILLES ET CARTES */

.grid,
.cards{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    text-align:center;
    width:300px;
}

.card img{
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:8px;
    margin-bottom:15px;
    cursor:pointer;
}

.card h3{
    margin-top:10px;
    color:#7a4f27;
}

.card p{
    margin-bottom:0;
}

/* ACTUALITÉS */

.actualite-card,
.actualites-page .card{
    max-width:900px;
    width:100%;
    margin:30px auto;
    text-align:left;
}

.actualites-page .container{
    max-width:900px;
    margin:0 auto;
}

.date-actu{
    color:#7a4f27;
    font-weight:bold;
    font-style:italic;
    margin-bottom:15px;
}

/* BOUTONS */

.btn,
a.btn,
button.btn{
    display:inline-block;
    background:#7a4f27;
    color:white;
    padding:12px 25px;
    border-radius:30px;
    margin:10px;
    border:0;
    cursor:pointer;
    font-weight:bold;
    font-family:inherit;
    text-decoration:none;
}

.btn:hover,
a.btn:hover,
button.btn:hover{
    background:#b47a3c;
    color:white;
}

.btn.secondary{
    background:#8b5a2b;
}

.cta-zone{
    text-align:center;
    margin-top:25px;
}

/* GALERIE */

.gallery-section{
    max-width:1200px;
    margin:auto;
    padding:35px 20px;
    text-align:center;
}

.gallery-text{
    text-align:center;
    max-width:900px;
    margin:15px auto 35px;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.gallery-item,
.gallery-card,
.before-after-card{
    background:white;
    border-radius:14px;
    box-shadow:0 4px 12px rgba(0,0,0,0.12);
    text-align:center;
}

.gallery-item{
    overflow:hidden;
}

.gallery-item img{
    width:100%;
    height:260px;
    object-fit:cover;
}

.avant-apres-grid{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
    margin-bottom:50px;
}

.gallery-card{
    padding:15px;
}

.gallery-card img{
    width:300px;
    height:220px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
    transition:transform 0.3s;
}

.gallery-card img:hover{
    transform:scale(1.03);
}

.gallery-card p{
    margin-top:10px;
    font-weight:bold;
}

.before-after-card{
    max-width:950px;
    margin:30px auto;
    padding:25px;
}

.before-after-images{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.before-after-images img{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:12px;
}

.gallery-link{
    text-align:center;
    margin:40px 0;
}

/* PARTENAIRES */

.partner-logos{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:25px;
    margin-top:25px;
}

.partner-logos a{
    transition:transform 0.2s;
}

.partner-logos a:hover{
    transform:scale(1.05);
}

.partner-logos img{
    max-width:170px;
    max-height:90px;
    object-fit:contain;
    background:white;
    padding:15px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.partners-slider{
    overflow:hidden;
    width:100%;
    margin-top:25px;
}

.partners-track{
    display:flex;
    align-items:center;
    gap:40px;
    width:max-content;
    animation:defilementPartenaires 20s linear infinite;
}

.partners-track img{
    height:38px;
    max-width:110px;
    width:auto;
    object-fit:contain;
}

@keyframes defilementPartenaires{
    from{
        transform:translateX(0);
    }

    to{
        transform:translateX(-50%);
    }
}

.partner-logos-home img{
    width:90px;
    height:45px;
    max-width:90px;
    max-height:45px;
    object-fit:contain;
    background:white;
    padding:6px;
    border-radius:8px;
    display:inline-block;
}

/* FORMULAIRE */

.contact-form{
    max-width:700px;
    margin:0 auto;
    background:white;
    padding:25px;
    border-radius:14px;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

.contact-form label{
    display:block;
    font-weight:bold;
    margin-top:14px;
    color:#7a4f27;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:12px;
    margin-top:5px;
    border:1px solid #d6c8b8;
    border-radius:8px;
    font:inherit;
    background:#fffaf2;
}

/* BOUTONS FLOTTANTS */

.floating-buttons{
    position:fixed;
    right:10px;
    bottom:20px;
    z-index:99999;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.floating-buttons img{
    width:45px;
    height:45px;
    border-radius:12px;
}

/* LIGHTBOX */

#lightbox{
    display:none;
    position:fixed;
    z-index:99999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.92);
    justify-content:center;
    align-items:center;
}

#lightbox.active{
    display:flex;
}

#lightbox img{
    max-width:95%;
    max-height:90%;
    border-radius:10px;
    box-shadow:0 0 25px rgba(255,255,255,0.2);
}

#lightbox-close{
    position:absolute;
    top:20px;
    right:30px;
    color:white;
    font-size:40px;
    font-weight:bold;
    cursor:pointer;
}

#prev-btn,
#next-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:white;
    font-size:60px;
    font-weight:bold;
    cursor:pointer;
    user-select:none;
    padding:20px;
}

#prev-btn{
    left:20px;
}

#next-btn{
    right:20px;
}

/* FOOTER */

footer,
.footer{
    background:#2f241b;
    color:white;
    text-align:center;
    padding:20px 15px;
    margin-top:25px;
    line-height:1.3;
}

footer h3,
.footer h3{
    margin:0 0 6px;
}

footer p,
.footer p{
    margin:4px 0;
}

footer a,
.footer a{
    color:#fffaf2;
    text-decoration:underline;
}

/* MOBILE */

@media(max-width:768px){

    .site-header{
        min-height:190px;
        padding:25px 12px;
    }

    .logo-zone img{
        width:80px;
        max-width:80px;
    }

    .titre-site h1{
        font-size:24px;
    }

    .titre-site p{
        font-size:13px;
        line-height:1.4;
    }

    .menu{
        position:relative;
        padding:8px 6px;
        gap:4px;
    }

    .menu a{
        font-size:13px;
        margin:2px;
        padding:5px 7px;
    }

    .menu a[href="soutenir.html"]{
        padding:6px 10px;
        border-radius:16px;
    }

    .vous-etes-ici{
        font-size:0.8em;
        margin:8px 0 10px;
    }

    .search-zone{
        justify-content:center;
        padding:10px;
        flex-wrap:wrap;
    }

    .search-zone input{
        width:160px;
        padding:6px 10px;
    }

    .search-zone button{
        padding:6px 10px;
    }

    section{
        padding:24px 14px;
    }

    .hero,
    .hero-page,
    .page-header{
        padding:22px 14px 16px;
    }

    .container{
        padding:0 12px;
    }

    section h1{
        font-size:26px;
        line-height:1.2;
    }

    section h2,
    h2{
        font-size:22px;
        line-height:1.3;
    }

    .grid,
    .cards{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:18px;
    }

    .card{
        width:100%;
        max-width:340px;
        padding:20px;
    }

    .card img{
        height:210px;
    }

    .gallery-section{
        padding:25px 12px;
    }

    .gallery-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .gallery-card img{
        width:100%;
        max-width:320px;
        height:220px;
    }

    .before-after-card{
        padding:18px;
        margin:22px auto;
    }

    .before-after-images{
        grid-template-columns:1fr;
    }

    .before-after-images img{
        height:220px;
    }

    .partner-logos{
        gap:15px;
    }

    .partner-logos img{
        max-width:130px;
        max-height:75px;
        padding:10px;
    }

    .partners-track{
        gap:25px;
    }

    .partners-track img{
        height:32px;
        max-width:90px;
    }

    .floating-buttons{
        right:6px;
        bottom:10px;
        gap:6px;
    }

    .floating-buttons img{
        width:36px;
        height:36px;
        border-radius:10px;
    }

    footer,
    .footer{
        font-size:13px;
        padding:18px 12px;
    }

    #prev-btn,
    #next-btn{
        font-size:38px;
        padding:8px;
    }

    #lightbox-close{
        font-size:34px;
        top:15px;
        right:22px;
    }
}