/*
Theme Name: Portfolio Jerome Haremza
Description: Thème enfant OceanWP pour mon portfolio de développeur WordPress
Author: Jerome Haremza
Template: oceanwp
Version: 1.0.0
Text Domain: portfolio-jerome-haremza
*/

/* ========================================
   1. GLOBAL - RESET ET BASE
   ======================================== */

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    background: #F9F6F2 !important;
    padding-top: 70px !important; 
}

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

/* Containers */
.container {
    max-width: 100%;
    padding: 0 2%;
}

/* Padding global 2.5% sur le contenu */
body .site-content,
body main,
body #main,
body #content {
Padding: 0 2VW;  
margin: 0 auto;
}

/* Header et Footer en pleine largeur */
body .site-header,
body header,
body .site-footer,
body footer {
    padding: 0 !important;
    max-width: 100% !important;
}


#wpadminbar {
    position: fixed !important;
    top: 0 !important;
    z-index: 999999 !important;
}

html body.admin-bar .site-header {
    top: 32px !important;
}

html body.admin-bar {
    padding-top: 102px !important;
}

@media (max-width: 782px) {
    html body.admin-bar .site-header {
        top: 46px !important;
    }
    html body.admin-bar {
        padding-top: 116px !important;
    }
}


/* ========================================
   2. HEADER FIXE
   ======================================== */

.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    z-index: 99999 !important;
    background: #F9F6F2 !important;
    box-shadow: 0 2px 10px rgba(199, 122, 102, 0.10), 0 1px 3px rgba(0,0,0,0.04);
    border-bottom: 1px solid #eee;
}

.header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    width: 100%;
    padding: 15px 20px;
    margin: 0 auto;
    position: relative;
    z-index: 100000 !important;
    background: #F9F6F2 !important;
}

/* Logo */
.branding {
    flex: 0 0 auto;
    position: relative;
    z-index: 100001 !important;
}

.custom-logo {
    max-width: 200px;
    width: auto;
    height: auto;
    display: block;
}

/* ========================================
   3. BOUTON BURGER
   ======================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100001 !important;
    position: relative;
    width: 40px;
    height: 40px;
}

.menu-toggle-bar {
    width: 28px;
    height: 3px;
    background: #C77A66;
    border-radius: 2px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Animation burger vers X */
.menu-toggle.active .menu-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-toggle.active .menu-toggle-bar {
    background: #C77A66 !important;
}

/* ========================================
   4. NAVIGATION DESKTOP
   ======================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

#primary-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu li {
    display: inline-block;
}

#primary-menu a {
    font-family: 'Roboto', sans-serif;
    color: #2F3E46;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: font-weight 0.2s, color 0.2s;
}

#primary-menu a:hover {
    font-weight: 900;
}

/* ========================================
   5. FOOTER
   ======================================== */

.site-footer {
   
    padding: 2.5vw 0 1.2vw 0;
    text-align: center;
    color: #2F3E46;
}

.footer-separator {
    border: none;
    border-top: 2px solid #C77A66;
    margin-bottom: 1.5vw;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.footer-bas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6vw;
    font-size: 18px;
    color: #2F3E46;
}

.footer-mentions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
}

.footer-mentions li {
    display: inline;
}

.footer-bas .divider {
    color: #C77A66;
    margin: 0 0.5vw;
}

.site-footer,
.site-footer a,
.footer-menu a,
.footer-mentions a,
.footer-bas,
.footer-bas span {
    font-family: 'Roboto', sans-serif;
}

.site-footer a,
.footer-menu a,
.footer-mentions a {
    color: #C77A66;
    text-decoration: none;
    font-weight: 600;
    transition: font-weight 0.2s, color 0.2s;
}

.site-footer a:hover,
.footer-menu a:hover,
.footer-mentions a:hover {
    font-weight: 700;
}





.container-projets {
    width: 85vw;
    max-width: 1200px;
    margin: 5vw auto;
    font-family: "Roboto', sans-serif";
    line-height: 1.6;
}

.page-title {

    text-align: center;
    font-size: 45px;
    color: #2F3E46;
    font-weight: 600;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Grille de projets */
.projets-grid {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    max-width: 1400px;
    margin: 5vw auto;
   
}

/* Carte projet horizontale */
.projet-card-horizontal {
display: grid;
gap: 4vw;
align-items: center;
padding: 4vw;
background: #ffffff;
border: 1px solid #C77A66;
border-radius: 2vw;
transition: box-shadow 0.3s ease;
}

.projet-card-horizontal:hover {
    box-shadow: 0 0.6vw 1vw #5b64772e;
}

.projet-card-image {
    position: relative;
    overflow: hidden;
    width: 380px; 
    height: 450px; 
    flex-shrink: 0 

      
}

.image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projet-card-image img{
    width: 100% ;
    height: 100% ;
    display: block;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}




.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0; /
}

.eye-icon {
    width: 3.5vw;
    height: 3.5vw;
    min-width: 40px;
    min-height: 40px;
    max-width: 60px;
    max-height: 60px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.projet-card-horizontal:hover .image-overlay {
    opacity: 1;
}

.projet-card-horizontal:hover .eye-icon {
    transform: scale(1);
}

.projet-card-horizontal:hover .projet-card-image img {
    transform: scale(1.05);
}


/* Overlay invisible par defaut */
.projet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* Contenu carte */
.projet-card-content {
    padding-left: 1.5vw;
}

.projet-card-title {
    font-size: 45px;
    font-weight: 600;
    text-align: center;
    color: #2F3E46;
    margin-bottom: 1vw;
    line-height: 1.2;
}

.projet-card-title a {
    text-decoration: none;
    color: #2F3E46;
    transition: color 0.3s ease;
}

.projet-card-title a:hover {
    color: #C77A66;
}

.projet-card-description {
    font-size: 20px;
    line-height: 1.8;
    color: #2F3E46;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projet-card-description p {
    margin-bottom: 1.2vw;
}




/* ========================================
   7. RESPONSIVE TABLETTE (< 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .header-inner {
        padding: 2vw 3vw;
    }

    #primary-menu {
        gap: 3vw;
    }

    #primary-menu a {
        font-size: 17px;
    }

    .custom-logo {
        max-width: 25vw;
    }

  

    .projet-card-horizontal {
        grid-template-columns: 1fr;
        gap: 3vw;
        padding: 3vw;
    }

    .projet-card-title {
        font-size: 42px;
    }

    .projet-card-content {
        padding-left: 0;
    }

    .projet-card-description {
        font-size: 17px;
    }
}

/* ========================================
   8. RESPONSIVE MOBILE (< 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Compensation header plus petite */
    body {
        padding-top: 65px !important;
    }

    /* Header mobile */
    .header-inner {
        padding: 12px 15px !important;
    }

    /* Logo plus petit */
    .custom-logo {
        max-width: 140px !important;
    }

    /* Afficher le burger */
    .menu-toggle {
        display: flex !important;
    }

    /* OVERLAY */
    .main-navigation {
        position: fixed !important;
        top: 100px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 65px) !important;
        background: #C77A66 !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.4s ease, visibility 0.4s ease !important;
        z-index: 9998 !important;
    }

    .main-navigation.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Menu vertical centré */
    #primary-menu,
    .main-navigation ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 35px !important;
        text-align: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #primary-menu li,
    .main-navigation li {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #primary-menu a,
    .main-navigation a {
        color: #fff !important;
        font-size: 26px !important;
        font-weight: 600 !important;
        letter-spacing: 0.15em !important;
        text-decoration: none !important;
        padding: 12px 24px !important;
        display: block !important;
        transition: color 0.3s ease !important;
    }

    #primary-menu a:hover,
    .main-navigation a:hover {
        color: #ffffff !important;
        font-weight: 900 !important;
    }

    /* Footer mobile */
    .site-footer {
        padding: 5vw 0 3vw 0;
    }

    .footer-separator {
        width: 100%;
        margin-bottom: 3vw;
    }

    .footer-bas {
        flex-direction: column;
        gap: 1vw;
        font-size: 15px;
    }

    .footer-mentions {
        display: flex;
        flex-wrap: wrap;
        gap: 1vw;
        justify-content: center;
        width: 100%;
    }

  /* ========== PROJETS MOBILE ========== 
    
    .page-projets {
        padding: 8vw 0;
    }*/

   

    .page-title {
        font-size: 30px;
        margin-top: 14vw;
     
    };

    .projets-grid {
        gap: 6vw;
        margin: 8vw auto;
        padding: 0 4vw;
    }

    /* Carte verticale sur mobile */
    .projet-card-horizontal {
        grid-template-columns: 1fr;
        gap: 4vw;
        padding: 5vw;
        border-radius: 15px;
    }

    .projet-card-image {
        border-radius: 10px;
    }

    .image-link {
        border-radius: 10px;
    }

    .projet-card-image img {
        border-radius: 10px;
        
    }

    .image-overlay {
        border-radius: 10px;
    }

    .projet-card-content {
        padding-left: 0;
    }

    .projet-card-title {
        font-size: 28px;
        margin-bottom: 2vw;
        text-align: center;
    }

    .projet-card-description {
        font-size: 16px;
        line-height: 1.6;
        text-align: center;
    }

    .projet-card-description p {
        margin-bottom: 3vw;
    }

    
   

    /* Icône œil */
    .eye-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
 }
    

 .projet-card-horizontal {
    display: flex;
    flex-direction: column; 
    width: 100%;
}

    .projet-card-horizontal {
        flex-direction: column; 
    }
    
    .projet-card-image,
    .projet-card-content {
        width: 100% !important;
        max-width: 100%;
    }


.projets-grid-accueil .projet-card-content,
.projets-grid-accueil .projet-card-title,
.projets-grid-accueil .projet-card-description {
    text-align: center !important;
}


@media (max-width: 900px) {
    .projet-card-content {
        max-width: 95vw !important;
        width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }
}




@media (max-width: 480px) {
    body {
        padding-top: 60px !important;
    }

    .main-navigation {
        top: 100px ;
        height: calc(100vh - 60px) !important;
    }

    .custom-logo {
        max-width: 120px !important;
    }

    #primary-menu a {
        font-size: 22px !important;
    }

    
    }

    .projets-grid {
        gap: 8vw;
        padding: 0 5vw;
    }

    .projet-card-horizontal {
      
        border-radius: 12px;
    }

    .projet-card-title {
        font-size: 25px;
        
    }

    .projet-card-description {
        font-size: 18px;
        line-height: 1.5;
    }

    .badge-nouveau {
        padding: 6px 14px;
        font-size: 11px;
    }

    .eye-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

  

