/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Tags: accessibility-ready,blog,block-patterns,e-commerce,wide-blocks,block-styles,grid-layout,one-column,two-columns,three-columns,four-columns,right-sidebar,left-sidebar,translation-ready,custom-colors,custom-logo,custom-menu,featured-images,footer-widgets,full-width-template,theme-options,threaded-comments
Version: 2.1.4.1754324197
Updated: 2025-08-04 18:16:37

/* Fond */
main,
.site-main,
.main-container {
    background: radial-gradient(circle at center, #8a4be6 0%, #d8689a 100%);
}

/* Single projet */
.projet-miniature { 
    margin-top: 30px; 
    margin-bottom: 50px; 
}

.single-projet {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.single-projet .miniature img,
.single-projet .galerie-projet img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.galerie-projet { margin-top: 40px; }

/* Galerie (grid)  */
.single-projet .galerie-projet {
    list-style: none;
    margin: 40px auto 60px;
    padding: 0;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-left: 20px;
    margin-right: 20px;
}

/* Vignette générique */
.single-projet .galerie-projet li a {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
}

/* Ratios */
.single-projet .galerie-projet li a.paysage  { 
    aspect-ratio: 16 / 10; 
}

.single-projet .galerie-projet li a.portrait {
    aspect-ratio: 3 / 4;
    width: 80%;
    max-width: 380px;
    margin: 0 auto;         /* centre la vignette portrait */
    justify-content: center;
}

.portraits{
    grid-column: span 3;    /* fait prendre toute la largeur */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    justify-self: center;
}

/* Image dans la carte */
.single-projet .galerie-projet li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
    border-radius: 10px;
}

/* Effet hover */
.single-projet .galerie-projet li a:hover img { 
    transform: scale(1.05); 
}

/* Page projets */
.hero-projets { padding: 20px 20px 40px; 
    text-align: center; 
    color: #0d1b2a; 
}

.hero-projets .titre-projets { 
    font-size: 3rem; 
    font-weight: bold; 
    margin: 0; 
}

.projets-page-wrapper { 
    min-height: 100vh; 
    padding-bottom: 100px; 
}

.projets-page-wrapper h2,
.projets-page-wrapper .entry-meta,
.projets-page-wrapper a,
.projets-page-wrapper .entry-content { 
    color: #0d1b2a; 
}

/* Boutons cartes / liens*/
.projet-lien,
.voir-projet {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, #e27ba3, #c883f4);
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
}
.voir-projet { 
    padding: 6px 10px; 
}

.projet-lien:hover,
.voir-projet:hover {
    color: #000 !important;
    border-color: #000;
    background-color: #E0B3FF;
}

/* Cartes (archive) */
.projets-page-wrapper .ct-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.projets-page-wrapper .ct-container { 
    background: transparent; 
}

/* Grille des projets (archive) */
.entries {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.entries .entry-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.entries .entry-card h2,
.entries .entry-card .entry-title {
    text-align: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* Titre de l’archive */
.projets-archive h2.page-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Cartes projets avec overlay (image + titre + bouton) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.carte-projet {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    margin: 0;
}

.carte-projet:nth-child(1) { animation-delay: .2s; }
.carte-projet:nth-child(2) { animation-delay: .4s; }
.carte-projet:nth-child(3) { animation-delay: .6s; }
.carte-projet:nth-child(4) { animation-delay: .8s; }

.carte-projet:hover { 
    transform: scale(1.03); 
}

/* dégradé bas */
.carte-projet::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30%;
    border-radius: 10px;
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
    z-index: 0;
}

/* barre du bas (titre + bouton) */
.carte-projet .overlay {
    position: absolute;
    inset: 0;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
    z-index: 1;
}

.carte-projet .titre-projet {
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
}

.projets-page-wrapper .grille-projets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}


.projets-page-wrapper .grille-projets .carte-projet {
    width: 100% !important;
    height: auto;
    margin: 0;
}


/* bouton final (bordure blanche, fond transparent) */
.carte-projet .btn-projet {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: .85rem;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

.carte-projet .btn-projet:hover {
    background: #fff;
    color: #000;
}

p{
    color:black
}

/* Bouton retour aux projets */
.retour-projets .btn-retour {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to right, #e27ba3, #c883f4);
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
}

.retour-projets .btn-retour:hover{
    color: #000 !important;
    border-color: #000;
    background-color: #E0B3FF;
}


.site-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: black;
    background-color: white;
}

/* Formulaire de contact */
.form-contact input[type="submit"] {
    display: block !important;
    float: none !important;
    margin: 20px auto 0;
    padding: 10px 20px !important;
    background: linear-gradient(to right, #e27ba3, #c883f4);
    color: white;
    border: none;
    border-radius: 30px!important;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.form-contact input[type="submit"]:hover {
    border: 2px solid #000 !important;
    background: linear-gradient(to right, #e27ba3, #c883f4);
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    margin-bottom: 50px;
    font-size: 45px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    line-height: 1;
    z-index: 9999;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-6px);
    color: black;
}

/* parallax pour le h2 projets */
.page-hero {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero .page-title {
    font-size: 3rem;
    font-weight: bold;
    color: black;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Animation des h3 sur la page a propos */
body.page-id-12 h3.elementor-heading-title {
    font-size: 2rem;
    font-weight: 600;
    color: black;
    text-align: center;
    margin: 40px 0 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

/* Quand visible */
body.page-id-12 h3.elementor-heading-title.in-view {
    opacity: 1;
    transform: translateY(0);
}









/* Responsive */
@media (max-width: 768px) {

  /* Offcanvas header */
    #offcanvas.ct-panel.ct-header.active {
        top: 117px;
        height: calc(100vh - 70px);
        width: 100vw;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    #offcanvas { 
        width: 100vw; 
        left: 0; 
    }

    #offcanvas .ct-panel-content { 
        width: 100%; 
    }

     /* Offcanvas aligné sous la navbar */
    #offcanvas.ct-panel.ct-header.active {
        top: 110px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 110px);
    }

    /* On retire les marges/paddings qui faisaient apparaître du noir */
    #offcanvas .ct-panel-content,
    #offcanvas .ct-panel-content-inner {
        padding: 0 !important;
    }

    /* Centrage parfait du menu dans le panneau */
    #offcanvas .ct-panel-content-inner {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 100%;
    }

    .ct-toggle-close {
        display: none;
    }

    #offcanvas .mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 28px;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 40px 24px;
    }

    #offcanvas .mobile-menu li {
        width: 100%;
        text-align: center;
    }

    #offcanvas .mobile-menu li a.ct-menu-link {
        font-size: 1.5rem;
        padding: 1rem;
    }

    #offcanvas .ct-panel-inner{
        max-width: 100% !important;
        background: linear-gradient(135deg, #8a4be6 0%, #d8689a 100%);
    }


    /* Liens du menu */
    #offcanvas .ct-panel-content-inner nav.mobile-menu a.ct-menu-link {
        color: #fff !important;
        text-decoration: none;
        font-weight: 700;
        transition: color .25s ease;
    }

    /* Hover / focus -> noir */
    #offcanvas .ct-panel-content-inner nav.mobile-menu a.ct-menu-link:hover{
        color: #000 !important;
    }

    /* Galerie en 1 colonne */
    .single-projet .galerie-projet {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 20px auto 40px;
    }

    /* toutes les vignettes occupent 100% */
    .single-projet .galerie-projet li a {
        width: 100%;
        margin: 0 auto;
    }

    /* ratio paysage */
    .single-projet .galerie-projet li a.paysage {
        aspect-ratio: 16 / 10;
    }

  /* ratio portrait */
    .single-projet .galerie-projet li a.portrait {
    aspect-ratio: 3 / 4;
    }


    .single-projet .galerie-projet li.portraits {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* images */
    .single-projet .galerie-projet li a img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Grille articles */
    .entries {
        grid-template-columns: 1fr; }

    /* Cartes projets */
    .carte-projet {
        width: 90%;
        margin: 0 auto;
    }

    .carte-projet .overlay,
    .carte-projet .carte-barre {
        padding: 8px 12px;
        gap: 12px;
    }

    .carte-projet h3.titre-projet,
    .carte-projet .titre-projet {
        font-size: 1rem;
        max-width: 60%;
    }

    .carte-projet a.voir-projet,
    .carte-projet .btn-projet {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .projets-page-wrapper .grille-projets,
    .projets-page-wrapper .entries {
        display:grid;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 32px 20px;
    }

    .back-to-top {
        display: none;
    }

    .hero-projets{ 
        min-height:40vh; 
    }

}





