/*
Theme Name: FAM Theme
Theme URI: https://example.com
Author: FAM
Author URI: https://example.com
Description: Thème personnalisé pour FAM - Structure de base minimaliste
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fam-theme
*/

/* ============================================
   TABLE DES MATIÈRES
   ============================================
   1. Reset & Base
   2. Layout & Container
   3. Header & Navigation
   4. Main Content
   5. Footer
   6. Home Page
   7. Projects
   8. Animations
   9. Responsive
   ============================================ */

/* ============================================
   1. RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F0F2B9;
    line-height: 1.6;
    color: #101103;
}

.no-margin-padding {
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   2. LAYOUT & CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */
/* Header */
.site-header {
    background: #F0F2B9;
    border-bottom: none;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 50;
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 1rem 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Burger menu (caché par défaut) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 60;
}

.burger-menu span {
    width: 25px;
    height: 2px;
    background: #1d1d1b;
    transition: all 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #F0F2B9;
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #101103;
    padding: 0.5rem;
}

.mobile-menu-booking {
    background: #101103;
    color: #FFF9E7;
    padding: 0.5rem 1rem;
    border: 2px solid #F0F2B9;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.mobile-menu-booking:hover {
    border: 2px solid #101103;
    background: transparent;
    color: #101103;
}

.mobile-navigation {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 0.5rem;
    padding-top: 6rem;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
}

.mobile-menu li {
    margin: 0;
}

.mobile-menu a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    color: #101103;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.mobile-menu .current-menu-item a,
.mobile-menu .current_page_item a {
    padding-bottom: 0.2rem;
}

.mobile-menu .current-menu-item a::after,
.mobile-menu .current_page_item a::after {
    content: '';
    position: absolute;
    bottom: -0.2rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #101103;
}

.mobile-menu-logo {
    max-width: 180px;
    height: auto;
    align-self: center;
    margin-bottom: 2rem;
    margin-top: auto;
}

.show-mobile {
    display: none !important;
}


.site-header .container {
    margin: 0 2rem;
    max-width: 1400px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0;
}

/* Bouton Réservation */
.booking-button {
    background: #101103;
    color: #FFF9E7;
    padding: 0.5rem 1rem;
    border: 2px solid #F0F2B9;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: all 0.2s ease;
    position: absolute;
    right: 0;
    letter-spacing: 0.5px;
}

.booking-button:hover {
    border: 2px solid #101103;
    background: transparent;
    color: #101103;
}



/* Navigation */
.main-navigation ul {
    font-family: 'JetBrains Mono', monospace;
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #101103;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.1s ease;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Active - barre en dessous */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a,
.main-navigation .current-menu-ancestor a,
body.home .main-navigation .menu-item-home a {
    padding-bottom: 0.75rem;
}

.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after,
.main-navigation .current-menu-ancestor a::after,
body.home .main-navigation .menu-item-home a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: #101103;
    border-radius: 2px;
}

/* Hover - rectangle noir */
.main-navigation a:hover {
    background: #101103;
    color: #FFF9E7;
}

/* ============================================
   4. MAIN CONTENT
   ============================================ */
.site-main {
    padding-top: 4rem;
    min-height: 60vh;
}

/* Full width pages for Gutenberg blocks */
.page-full-width .site-main {
    padding: 0;
}

.page-content-full {
    width: 100%;
    max-width: 100%;
}

.page-content-full > *:not(.fam-section--container-normal) {
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   5. FOOTER
   ============================================ */
.site-footer {
    background: #101103;
    color: #FFF9E7;
    padding: 2.75rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer .container {
    margin: 0 2rem;
    max-width: 1400px;
    width: 100%;
    padding: 0;
}   

.site-footer a {
    color: #FFF9E7;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    opacity: 0.7;
}

.footer-main {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: flex-end;
}

.footer-logo svg {
    width: 8rem;
    height: auto;
}

.footer-logo {
    fill: #FFF9E7;
}

.footer-columns {
    display: flex;
    gap: 0;
    align-items: flex-end;
    flex: 1;
}

.footer-column {
    padding: 0 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-column a {
    color: #FFF9E7;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-column a:hover {
    opacity: 0.8;
}

.footer-column .phone-highlight {
    background: #FFF9E7;
    color: #101103;
    padding: 0.5rem 1rem;
    display: inline-block;
    font-weight: 600;
}

.footer-column .phone-highlight:hover {
    opacity: 1;
    background: #F0F2B9;
}

.footer-column .address-link {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-column .address-link p {
    margin: 0;
}

.footer-column:nth-child(2) {
    gap: 0;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social .social-link {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.footer-social .social-link svg {
    flex-shrink: 0;
}

.footer-social .social-link span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.footer-social .social-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    padding-left: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-icons img {
    height: 32px;
    width: auto;
    transition: transform 0.6s ease;
}

.footer-icons img:hover {
    transform: rotate(-15deg);
}

.footer-copyright p {
    margin: 0;
    text-align: right;
}

/* ============================================
   6. HOME PAGE
   ============================================ */
body.home {
    background-color: #F0F2B9;
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: none;
}

body.home::-webkit-scrollbar {
    display: none;
}

body.home .site-header {
    position: fixed;
}

body.home .site-main {
    width: 100%;
    min-height: 100svh;
    padding: 0;
    z-index: 30;
    display: grid;
    place-items: center;
}

body.home .site-main .container {
    padding: 0;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
}

body.home .ticker-wrapper {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 40;
}

body.home .site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    z-index: 100;
    margin: 0;
    display: flex;
    justify-content: center;
}

body.home.footer-visible .site-footer {
    transform: translateY(0);
}

body.footer-visible .contact-trigger-wrapper {
    opacity: 0;
    pointer-events: none;
}

/* Typography Home Page */
body.home h1 {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #1d1d1b;
    text-align: center;
    margin-bottom: 0.05rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

body.home h2 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 200;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #1d1d1b;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0rem;
}

.fam_studio_home_logo {
    max-width: 27rem;
    height: auto;
    margin: 0 auto;
}

/* Home Content */
.home-content {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Home Illustration */
.home-illustration {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.illustration-img {
    max-height: 40vh;
    min-height: 30vh;
    object-fit: contain;
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.illustration-img.active {
    opacity: 1;
}

/* Contact Trigger Button */
.contact-trigger-wrapper {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 45;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.contact-trigger {
    background: transparent;
    border: none;
    color: #101103;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-trigger span,
.contact-trigger .arrow-down {
    animation: bounce 2s ease-in-out infinite;
}

.contact-trigger .arrow-down {
    display: block;
}

.contact-trigger:hover {
    opacity: 0.7;
}

/* Ticker Bandeau */
.ticker-wrapper {
    width: 100%;
    background-color: #1d1d1b;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 90s linear infinite;
    will-change: transform;
}

.ticker-content::after {
    content: attr(data-content);
}

.ticker-item {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 1.4rem;
    color: #FFF9E7;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    line-height: 1;
}

.ticker-icon {
    height: 1.5rem;
    width: auto;
    display: inline-flex;
    align-items: center;
    margin: 0 1rem;
    flex-shrink: 0;
}

/* ============================================
   7. PROJECTS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.project-card h3 {
    margin-bottom: 10px;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    margin-bottom: 10px;
}

/* ============================================
   8. ANIMATIONS
   ============================================ */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   9. RESPONSIVE
   ============================================ */
/* Mobile Menu */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: flex !important;
    }

    .contact-trigger-wrapper {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .burger-menu {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
}

/* Tablet - Footer */
@media (max-width: 1024px) {
    .footer-columns {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-column {
        padding: 0 1.5rem;
    }
    
    .footer-column:nth-child(2) {
        flex: 1 1 100%;
        order: 3;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {

    .site-main {
        padding-top: 1rem;
    }

    .site-footer .container {
        margin: 0 2rem;
    }
    
    .footer-main {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 2rem 3rem;
        align-items: end;
    }
    
    .footer-logo {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }
    
    .footer-logo svg {
        width: 8rem;
    }
    
    .footer-columns {
        grid-column: 2;
        grid-row: 1 / 3;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .footer-column {
        padding: 0;
        border-right: none;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .footer-copyright {
        grid-column: 1;
        grid-row: 2;
        padding-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        justify-content: flex-end;
    }
    
    .footer-icons {
        order: 1;
    }
    
    .footer-copyright p {
        order: 2;
        text-align: left;
    }

    .home-content {
        padding: 0 2rem !important;
    }
}

/* Small Height - Home adjustments */
@media (max-height: 800px) {
    .home-illustration {
        max-width: 25rem;
    }
    
    .fam_studio_home_logo {
        max-width: 20rem;
    }
    
    body.home h1 {
        font-size: 1.5rem;
    }
    
    body.home h2 {
        font-size: 1.5rem;
    }
}
