/*
Theme Name: Maison Bertell
Theme URI: https://maisonbertell.com
Description: Thème enfant personnalisé pour Maison Bertell - Haute Joaillerie
Author: Maison Bertell
Author URI: https://maisonbertell.com
Template: astra
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: maison-bertell
*/

/* 
==================================
VARIABLES CSS
==================================
*/
:root {
    --noir: #0a0a0a;
    --blanc-ivoire: #faf8f5;
    --or: #c9a961;
    --or-fonce: #a88b4a;
    --gris-perle: #e8e6e1;
    --gris-anthracite: #2a2a2a;
}

/* 
==================================
ASTRA OVERRIDES - IMPORTANT
==================================
*/
/* Forcer les sections en pleine largeur */
.ast-container,
.site-content .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important; /* Désactiver le flex d'Astra */
}

/* Forcer le contenu principal en colonne */
.site-content,
.site-main,
#primary {
    display: block !important;
    width: 100% !important;
}

.entry-content {
    margin: 0 !important;
    display: block !important;
}

.site-content {
    padding: 0 !important;
}

/* Retirer les marges par défaut d'Astra */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    margin: 0 !important;
    padding: 0 !important;
}

.ast-separate-container .site-main > .ast-container {
    margin: 0 !important;
    max-width: 100% !important;
}

.site-main {
    margin: 0 !important;
}

/* Forcer toutes les sections à prendre 100% de largeur */
section {
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--blanc-ivoire);
    color: var(--noir);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 
==================================
TYPOGRAPHIE
==================================
*/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
}

h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.8rem;
}

/* 
==================================
NAVIGATION PERSONNALISÉE
==================================
*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 4rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-branding .site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--noir);
    text-transform: uppercase;
}

.main-navigation a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--noir);
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--or);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* 
==================================
BOUTONS
==================================
*/
.cta-button,
.wp-block-button__link,
.button,
.ast-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--or);
    color: var(--blanc-ivoire) !important;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--or-fonce);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--or);
    color: var(--or) !important;
}

.cta-button.secondary:hover {
    background: var(--or);
    color: var(--blanc-ivoire) !important;
}

/* 
==================================
SECTIONS GÉNÉRALES
==================================
*/
section {
    padding: 8rem 4rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease-out both;
}

.section-subtitle {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gris-anthracite);
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 
==================================
ANIMATIONS
==================================
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 
==================================
WOOCOMMERCE
==================================
*/
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    background: var(--gris-perle);
}

.woocommerce ul.products li.product img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.08);
}

.woocommerce ul.products li.product .price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--or);
}

.woocommerce .button,
.woocommerce button.button {
    background: var(--or);
    color: var(--blanc-ivoire);
}

/* 
==================================
FOOTER
==================================
*/
.site-footer {
    background: var(--noir);
    color: var(--gris-perle);
    padding: 5rem 4rem 3rem;
}

.site-footer a {
    color: var(--gris-perle);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--or);
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--or);
}

/* 
==================================
RESPONSIVE
==================================
*/
@media (max-width: 1024px) {
    .site-header {
        padding: 1.5rem 2rem;
    }

    h1 {
        font-size: 3.5rem;
    }

    section {
        padding: 5rem 2rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .site-header {
        padding: 1rem;
    }
}
