/* VARIABLES DE COULEURS ET DE POLICES */
:root {
    --bg-color: #FAF8F5;       /* Crème doux naturel */
    --text-color: #2E2B2A;     /* Charbon chaud */
    --accent-color: #D17A5D;   /* Terracotta chaleureux */
    --secondary-color: #8E9D82;/* Vert sauge apaisant */
    --card-bg: #FFFFFF;
    --border-color: #E6E2DE;
    --font-title: 'Instrument Serif', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* BOUTONS GENERIQUES */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b86246;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: white;
    transform: translateY(-2px);
}

/* HEADER (NAVIGATION) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: italic;
    color: var(--text-color);
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav .btn-nav {
    background-color: var(--text-color);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
}

.nav .btn-nav:hover {
    background-color: var(--accent-color);
    color: white;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #5C5552;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* SECTION CREATIONS / GRILLE DE PRODUITS */
.creations-section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.section-title p {
    color: #5C5552;
}

.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.product-image-placeholder {
    height: 320px;
    background-color: #E6E2DE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8C8480;
    font-size: 0.9rem;
    font-style: italic;
}

.product-info {
    padding: 20px;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.description {
    font-size: 0.9rem;
    color: #706763;
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #FAF8F5;
    padding-top: 15px;
}

.price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn-buy {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.btn-buy:hover {
    opacity: 0.8;
}

/* SECTION A PROPOS */
.about-section {
    padding: 100px 5%;
    background-color: #F3EFEA;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image-placeholder {
    height: 450px;
    background-color: #E1DBD4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C746E;
    font-style: italic;
}

.about-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.about-text h2 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 15px;
    color: #5C5552;
}

/* SECTION CONTACT / FORMULAIRE */
.contact-section {
    padding: 100px 5%;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-container h2 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.contact-container p {
    color: #5C5552;
    margin-bottom: 40px;
}

.contact-form {
    text-align: left;
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #5C5552;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: center;
}

.btn-submit:hover {
    background-color: #b86246;
}

/* FOOTER */
.footer {
    background-color: var(--text-color);
    color: #CBC4C0;
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.socials a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

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

/* RESPONSIVE DESIGN FOR MOBILE */
@media (max-width: 768px) {
    .header {
        padding: 15px 5%;
    }
    .nav {
        display: none; /* Cache la nav sur mobile pour simplifier au début */
    }
    .hero {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .socials a {
        margin: 0 10px;
    }
}

/* Force l'image à avoir une taille fixe et harmonieuse sans se déformer */
.product-image {
    width: 100%;
    height: 350px; /* Tu peux augmenter ou réduire cette hauteur selon tes goûts */
    object-fit: cover; /* C'est l'option magique : elle recadre l'image proprement sans la déformer */
    object-position: center; /* Centre la photo dans son cadre */
    border-radius: 8px 8px 0 0; /* Arrondit joliment les coins du haut pour correspondre à la carte */
}


/* Bannière d'annonce (version plus fine et ajustée) */
.announcement-banner {
    background-color: #D17A5D !important;
    color: #FAF8F5 !important;
    text-align: center;
    padding: 5px 15px; /* On a réduit la marge interne de moitié pour l'affiner */
    font-size: 11px; /* Écriture légèrement plus petite et élégante */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 99999 !important;
    backdrop-filter: none !important;
    filter: none !important;
}

.announcement-banner p {
    margin: 0;
    padding: 0;
}

/* Ce petit réglage magique pousse ton en-tête vers le bas pour ne plus qu'il touche ton nom */
header, .main-navigation, .navbar {
    margin-top: 0px !important;
}

/* Force la div qui contient l'image à avoir la bonne taille */
.product-card-color-anims {
    height: 350px !important; /* Force la hauteur */
    overflow: hidden !important; /* Cache ce qui dépasse */
    border-radius: 8px 8px 0 0 !important; /* Garde les coins arrondis */
}

/* Force l'image à l'intérieur à se comporter correctement */
.product-card-color-anims img {
    width: 100% !important;
    height: 100% !important; /* L'image remplit 100% de la div, qui fait 350px */
    object-fit: cover !important; /* Force le recadrage */
    object-position: center !important; /* Centre l'image */
    display: block !important;
}

/* Tricher pour le tote bag : changer le fond gris en blanc */
.product-card-color-anims {
    background-color: #ffffff !important; /* Force le fond en blanc */
}
