/*
 Theme Name:   La Pin Up Ose
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  Thème enfant Storefront
 Author:       SLWD
 Author URI:   http://www.slwd.fr
 Template:     storefront
 Version:      1.0.0
*/


@font-face {
    font-family: 'Breathing';
    src: url('fonts/Breathing.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary-color: #F5F5F5;
    /* Blanc cassé */
    --secondary-color: #0B0B0B;
    /* Noir */
    --accent-color: #B80028;
    /* Rouge */
}

html {
    scroll-behavior: smooth;
}

.content-area {
    width: 100%;
    margin: 0;
}

h1 {
    font-size: 42px;
    font-family: 'Montserrat';
    color: var(--secondary-color);
    font-weight: 600;
}

h2 {
    font-size: 34px;
    font-family: 'Montserrat';
    color: var(--secondary-color);
    font-weight: 500;
}

h3 {
    font-size: 28px;
    font-family: 'Montserrat';
    color: var(--secondary-color);
    font-weight: 500;
}

p {
    color: var(--secondary-color);
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 14px;
}

ul,
li {
    color: var(--secondary-color);
    font-family: 'Montserrat';
    font-weight: 400;
    font-size: 14px;
}

a {
    text-decoration: none !important;
}

a:focus {
    outline: unset !important;
}

/* Masquer les titres uniquement sur les pages */
.page .entry-title {
    display: none;
}

/* Base Layout */

header {
    margin-bottom: 20px;
}

.container-header,
.navbar {
    width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1000 !important;
}

body {
    margin: auto;
}

.header-socials {
    display: flex;
    flex-direction: row;
    justify-content: baseline;
    flex: 1;
    gap: 15px;
}

.header-socials a:hover {
    color: var(--accent-color);
}

.logo_header {
    display: flex;
    justify-content: center;
    flex: 1;
}

.logo_header img {
    width: 200px;
    /* Adjust based on your actual logo size */
    height: auto;
}

.collapse {
    display: flex;
    justify-content: end;
    flex: 1;
}

/* Navbar Menu */
nav {
    width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0px;

    ul {
        list-style-type: none;
        display: contents;
    }

    ul li {
        float: left;
        text-align: center;
        position: relative;
        gap: 25px;
    }

    ul::after {
        display: table;
        clear: both;
    }

    a {
        font-size: 14px;
        display: block;
        text-decoration: none;
        font-weight: 600;
        font-family: 'Montserrat';
        text-transform: uppercase;
        color: var(--secondary-color);
        border-bottom: 2px solid transparent;
        padding: 5px 0px;
        transition: all .2s ease-in-out;
    }

    .collapse a:hover {
        color: var(--accent-color);
        transform: scale(1.05);
    }
}


.deroulant li {
    list-style: none;
}

.sub-menu {
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: white;
    position: absolute;
    width: max-content;
    z-index: 1000;
    padding-left: 0;

    li {
        float: none;
        width: 100%;
        text-align: left;
    }

    a {
        font-size: 13px;
        font-weight: 500;
        padding: 10px;
        border-bottom: none;
        transition: 0.3s;
        transition: none !important;
    }

    a:hover,
    .current-menu-item>a {
        border-bottom: none !important;
        background-color: RGBa(200, 200, 200, 0.1);
        color: var(--accent-color);
        transform: none !important;
    }

}

ul li:hover .sub-menu {
    display: block;
}

.deroulant>a::after {
    content: "\f078";
    /* Unicode for Font Awesome chevron-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-left: 5px;
}

/* Hamburger menu styles for mobile view */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
    /* Adjust size as needed */
    background: none;
    border: none;
}

/* Collapsible Menu for Mobile */
.collapse {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.collapse.show {
    display: block;
}

/* Styles de base */
.hamburger {
    display: none;
    /* Le bouton hamburger est caché par défaut et s'affichera sur les mobiles */
    cursor: pointer;
    font-size: 30px;
    /* Taille du bouton hamburger */
}

#menu-toggle {
    display: none;
    /* La checkbox est cachée */
}

/********* ACCUEIL *********/

.hero,
.about {
    width: 1140px;
    margin: 0 auto;
}

.page-classique {
    width: 1140px;
    margin: 0 auto;
}


/* HERO ITEMS */

.grid-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: auto auto auto -150px;
    width: 140%;

}

.col-items {
    margin-top: -20px !important;
    z-index: 1;
}

.col-1,
.col-1-1,
.col-2,
.col-3 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.col-1 {
    margin-top: 220px;
}

.col-2 {
    margin-top: 30px;
}

.col-3 {
    margin-top: -20px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
    transform: translateX(50px);
    z-index: 2;
}



.grid-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.grid-item .image {
    width: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.4s ease-in-out;
    border-radius: 20px;
}

.grid-item .one {
    height: 280px !important;
}

.grid-item .two {
    height: 150px !important;
}

.grid-item .three {
    height: 200px !important;
}

.grid-item .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
    border-radius: 20px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Montserrat';
    padding: 0 5px;
}

.grid-item:hover .overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.button-hero a {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 4px !important;
    border: 2px solid var(--secondary-color) !important;
    font-family: 'Montserrat' !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: 0.3s !important;
}

.button-hero a:hover {
    background-color: var(--primary-color) !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;    
}




.last-posts {
    margin-top: 50px;
}

.button-lire a {
    text-decoration: none !important;
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.button-lire a:hover {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background-color: rgb(255, 255, 255, 0);
}

.posts-wrapper {
    width: 1000px;
    margin: 40px auto 60px auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    gap: 30px;
}

.post-card {
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.10);
    padding-bottom: 15px;
}

.post-thumb {
    background-size: cover;
    background-position: center;
    height: 35vh;
}

.post-category {
    font-size: 14px;
    font-family: 'Breathing';
    color: var(--secondary-color);
    text-decoration: none;
    margin: 10px 0 5px 0;
}

.post-date {
    font-size: 10px;
    color: var(--secondary-color);
    font-family: 'Montserrat';
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 10px;
}

.post-info h3 {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Montserrat';
    text-transform: uppercase;
    color: var(--secondary-color);
    margin: 10px 0;
    padding: 0 15px;
}

.post-excerpt {
    font-size: 12px;
    font-family: 'Montserrat';
    font-weight: 400;
    color: var(--secondary-color);
    padding: 0 15px;
}

.lire-plus span {
    display: inline-block;
    background-color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 5px 10px;
    border-radius: 3px;
    text-align: center;
    transition: 0.3s;
    color: var(--primary-color);
    font-family: 'Montserrat';
    font-size: 8px;
    font-weight: 400;
    text-transform: uppercase;
}

.lire-plus span:hover {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background-color: rgb(255, 255, 255, 0);
}

.swiper-container {
    display: none;
}

.section {
    width: 1140px;
    margin: 60px auto 0 auto;
}

/********** ARCHIVE CATEGORIES **********/

.container-archive {
    width: 1140px;
    margin: 0 auto 60px auto;
}

.archive-title {
    font-size: 38px;
    text-transform: uppercase;
    font-family: 'Montserrat';
    color: var(--secondary-color);
    text-align: center;
    font-weight: 600;
}


.archive-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
}

.archive-post {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.archive-post:hover {
    transform: translateY(-5px);
}

.archive-post a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.archive-info {
    padding: 25px 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.archive-date {
    font-size: 0.85rem;
    text-align: center;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.archive-post-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.archive-excerpt {
    font-size: 12px;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}



/******** PAGE POST SINGLE *********/


.content {
    width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 40px;
    font-size: 15px;
    font-weight: 300;

}

.content .post-thumbnail img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.content h1 {
    font-size: 42px;
    color: var(--secondary-color);
    font-family: 'Montserrat';
    font-weight: 600;
    text-align: center;

}

.hero-date-single {
    font-size: 12px;
    text-transform: uppercase;
    font-family: 'Montserrat';
    font-weight: 300;
    text-align: center;
    color: var(--accent-color);
}

.hero-category-single {
    font-size: 18px;
    font-family: 'Breathing';
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 40px;
}




.navigation-projects {
    padding: 30px 0;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid rgb(0, 0, 0, 0.2);
}

.navigation-projects-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.navigation-project-item {
    width: 48%;
}

.nav-prev {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: center;
}

.nav-next {
    display: flex;
    flex-direction: column;
    align-items: end;
    text-align: center;
}

.nav-label {
    font-size: 15px;
    color: var(--accent-color);
    margin-top: 5px;
    font-family: 'Montserrat';
    font-weight: 500;
    transition: 0.3s;
}

.nav-label:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/********* MODELE FORMULAIRE DE CONTACT ********/

.contact-section {
    width: 900px;
    margin: 60px auto 0 auto;

}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--accent-color);
    padding: 10px 0;
    font-size: 14px;
    background-color: transparent;
    color: var(--secondary-color);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
    box-shadow: none !important;
    border-radius: 0;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-bottom: 1px solid var(--accent-color);
}

.wpcf7-form textarea {
    height: 120px;
    resize: vertical;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #777;
    font-weight: 400;
}

/* Bouton envoyer */
.wpcf7-submit {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    border: none;
    padding: 10px 20px !important;
    width: 100%;
    font-size: 14px;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wpcf7-submit:hover {
    background-color: #960025 !important;
}


.page-wrapper {
    width: 1140px;
    margin: 0 auto;
}



/******** FOOTER ********/


.footer-pinup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-bottom: 10px;

    p {
        color: var(--secondary-color);
        font-size: 14px;
        font-weight: 400;
        font-family: 'Montserrat';
    }

    a {
        color: var(--secondary-color);
        font-size: 14px;
        font-weight: 400;
        transition: all .3;
        font-family: 'Montserrat';
    }

    a:hover {
        color: var(--accent-color);
    }

    .fa-solid {
        color: var(--secondary-color);
    }

    .logo-footer {
        padding-top: 10px;
        width: 160px;
        height: auto;
    }
}

.reseaux {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.infos-legales {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.infos-legales a {
    font-size: 12px;
}

.copyright p {
    margin-bottom: 0;
    font-size: 12px;
    text-align: center;
}







/***************************************************/
/********* RESPONSIVE MOBILE ***********************/
/***************************************************/



@media (max-width: 768px) {

    h2 {
        font-size: 28px;
    }

    p,
    ul,
    li {
        font-size: 12px;
    }



    /** HEADER **/

    header {
        margin-bottom: 40px;
    }

    .container-header {
        justify-content: flex-start;
    }

    .header-socials {
        position: absolute;
        margin-left: 20px;
    }

    .logo_header img {
        width: 150px;
    }

    .hamburger {
        display: block;
        /* Le bouton hamburger s'affiche sur les mobiles */
        position: absolute;
        font-size: 30px;
        right: 20px;
        /* Positionnement à droite */
        top: 15px;
        /* Positionnement en haut */
        z-index: 2;
        /* S'assure que le hamburger est cliquable */
    }

    .navbar {
        padding: 0;
        width: auto;
    }

    .navbar-collapse.collapse {
        max-height: 0;
        /* Menu caché initialement */
        overflow: hidden;
        opacity: 0;
        transform: translateY(-20px);
        /* Menu légèrement décalé vers le haut */
        transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
        /* Transition fluide pour l'apparition */
        position: absolute;
        top: 80px;
        /* Ajuster pour positionner sous la barre de navigation */
        width: 100%;
        background-color: #fff;
        z-index: 1;

    }



    #menu-toggle:checked~.navbar-collapse.collapse {
        display: block;
        /* Affiche le menu lorsque la checkbox est cochée */
    }

    .navbar-collapse.collapse.show {
        transform: translateY(0);
        opacity: 1;
        max-height: none;
    }

    .navbar-collapse.collapse .nav_menu li {
        display: block;
        /* Affiche les éléments du menu en bloc pour une disposition verticale */
        text-align: left;

        /* Centre le texte des éléments du menu */
        a {
            padding-left: 10px;
        }

        a:hover {
            transform: none;
        }

    }


    .nav_menu ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: transform 0.5s ease-in-out, max-height 0.5s ease-in-out;
        /* Transition fluide pour l'apparition */
    }

    .nav_menu ul.open {
        transform: translateY(0);
        opacity: 1;
        max-height: none;
    }


    .nav_menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        align-items: flex-start;
        padding: 0;
        margin: 0;

    }

    .nav_menu li {
        margin: 0;
        padding: 0;
        border-top: 1px solid var(--accent-color);
        width: 100%;
    }

    .nav a {
        padding: 10px 0;
    }

    header .container {
        width: 100%;
        height: auto;
        margin-top: 5px;
    }

    .thumbnail-home {
        display: none;
    }

    .nav_menu>li {
        position: relative;
        /* S'assurer que chaque élément de menu est en position relative */
    }

    .nav_menu>li ul {
        position: relative;
        /* Changer de absolute à relative */
        display: none;
        /* Masquer les sous-menus par défaut */
        width: 100%;
        /* S'assurer que le sous-menu occupe toute la largeur disponible */
        overflow: hidden;
        height: 0;
        /* Par défaut, le sous-menu est caché */
    }

    .nav_menu>li:hover ul,
    .nav_menu>li:focus-within ul {
        display: block;
        /* Afficher les sous-menus au survol ou au focus */
        overflow: hidden;
        /* Cacher tout débordement */
    }

    .nav_menu>li ul li {
        width: 100%;
        /* S'assurer que chaque élément du sous-menu prend toute la largeur */
        border-top: 1px solid black;
        /* Ajouter une bordure pour séparer les éléments */
    }

    .nav_menu>li ul li a {
        display: block;
        padding-left: 20px !important;
    }

    .hamburger+.navbar-collapse {
        position: absolute;
        z-index: 1;
    }

    .nav_menu>li ul.open {
        height: auto;
        /* Le sous-menu prend sa hauteur naturelle */
    }

    .sub-menu {
        margin-left: 0 !important;
    }



    /**** ACCUEIL *****/

    .grid-categories {
        width: 100%;
        gap: 5px;
        grid-template-columns: repeat(4, 1fr);
        margin: 0;
    }

    .col-1 {
        margin-top: 50px;
    }

    .hero,
    .about,
    .page-classique {
        width: auto;
        margin: 0 10px;
    }

    .hero-last-post-row .hero-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: auto;
        margin: 0 10px;
    }

    .hero-last-post-row .hero-image {
        width: 100%;
        min-height: 40vh;
        background-size: cover;
        background-position: center;
        border-radius: 5px;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
    }

    .hero-last-post-row .hero-text h1 {
        font-size: 24px;
    }

    .extract {
        font-size: 12px;
    }

    .next-posts-grid {
        display: none;
    }

    .swiper-container {
        display: block;
        width: 80%;
        margin-left: 15px;
    }

    .swiper-slide {
        box-sizing: border-box;
        padding: 10px;
    }

    .post-thumb {
        background-size: cover;
        background-position: center;
        height: 200px;
        border-radius: 8px;
    }

    .swiper-pagination {
        position: relative;
        bottom: 0 !important;
        top: 0 !important;
    }

    .swiper-pagination-bullet {
        background-color: #ccc;
        opacity: 0.7;

    }

    .swiper-pagination-bullet-active {
        background-color: var(--accent-color);
        opacity: 1;
    }

    .about {
        text-align: center;
    }

    .about figure {
        display: flex !important;
        justify-content: center;
    }

    .about img {
        height: auto !important;
        width: 60% !important;
    }

    .about p {
        font-size: 12px;
    }

    .contact-section {
        width: auto;
        margin: 40px 10px 0 10px;

    }

    

    /*** ARCHIVES CATEGORIES ****/


    .container-archive {
        width: auto;
        margin: 0 10px 40px 10px;
    }

    .archive-title {
        font-size: 28px;
    }


    .archive-posts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px 5px;
    }

    .archive-thumbnail img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

    .archive-info {
        padding: 10px 5px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
    }

    .archive-date {
        font-size: 0.85rem;
        text-align: center;
        color: #888;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .archive-post-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .archive-excerpt {
        font-size: 12px;
        line-height: 1.2;
        color: var(--secondary-color);
        margin-bottom: 15px;
        text-align: center;
    }


    /**** SINGLE *****/

    .content {
        width: auto;
        margin: 0 15px;
        padding: 15px;
        font-size: 12px;

    }

    .content .post-thumbnail img {
        width: auto;
        height: 250px;
        object-fit: cover;
    }

    .content h1 {
        font-size: 28px;
    }

    .hero-date-single {
        font-size: 10px;
    }

    .hero-category-single {
        font-size: 15px;
    }

    .navigation-projects {
        padding: 30px 0;
        margin: 0 15px;
        width: auto;
    }

    .navigation-project-item {
        width: 48%;
    }

    .nav-prev {
        display: flex;
        flex-direction: column;
        align-items: baseline;
        text-align: center;
    }

    .nav-next {
        display: flex;
        flex-direction: column;
        align-items: end;
        text-align: center;
    }

    .nav-label {
        font-size: 12px;
    }


    .page-wrapper {
        width: auto;
        margin: 0 10px;
    }



    /**** FOOTER ***/

    footer {
        width: auto;
    }

    .footer-pinup {
        gap: 10px;

        p {
            font-size: 12px;
        }

        a {
            font-size: 12px;
        }
    }

    .infos-legales a {
        font-size: 10px;
    }

    .copyright p {
        margin-bottom: 0;
        font-size: 10px;
    }


}