/* ===========================
   AAKALYSS - Style principal
   Palette : Taupe Doux, Sable Chaud, Vieux Rose
   =========================== */

:root {
    --taupe-doux: #DCC8BE;
    --sable-chaud: #CDB3A3;
    --vieux-rose: #77625b;
    --brun-fonce: #5A3E2B;
    --blanc-creme: #FDF9F6;
    --blanc: #FFFFFF;
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--brun-fonce);
    background: linear-gradient(180deg, #C8A79D 0%, #D9C2B7 30%, #EDE0D8 60%, #F5EDE8 100%);
    background-attachment: fixed;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 1.0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   HEADER
   =========================== */
.header {
    background-color: var(--taupe-doux);
    padding: 20px 40px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brun-fonce);
}

.logo-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brun-fonce);
}

.header-slogan {
    max-width: 400px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--brun-fonce);
    line-height: 1.5;
}

.header-panier {
    display: flex;
    align-items: center;
}

.btn-panier {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sable-chaud);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--brun-fonce);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-panier:hover {
    background-color: var(--vieux-rose);
}

/* ===========================
   NAVIGATION
   =========================== */
.nav-main {
    background-color: var(--sable-chaud);
    padding: 0 40px;
}

.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 20px 35px;
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brun-fonce);
    transition: background-color 0.3s ease;
    text-align: center;
}

.nav-link:hover {
    background-color: var(--vieux-rose);
}

/* Sous-menu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--sable-chaud);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 100;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 25px;
    font-size: 1.05rem;
    color: var(--brun-fonce);
    transition: background-color 0.3s ease;
}

.submenu li a:hover {
    background-color: var(--vieux-rose);
}

/* ===========================
   MAIN CONTENT
   =========================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    flex: 1;
    width: 100%;
}

/* Hero banner */
.hero-banner {
    text-align: center;
    background-color: var(--taupe-doux);
    border-radius: 0;
    margin: -30px -40px 0;
    width: calc(100% + 80px);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 570px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-text {
    padding: 40px 20px;
}

.hero-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--brun-fonce);
}

.hero-banner p {
    font-size: 1.3rem;
    color: var(--brun-fonce);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections storytelling */
.section-story,
.section-creations,
.section-engagement {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.section-story h2,
.section-creations h2,
.section-engagement h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--brun-fonce);
    margin-bottom: 20px;
}

.section-story p,
.section-creations p,
.section-engagement p {
    font-size: 1.2rem;
    color: var(--brun-fonce);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* Placeholder images */
.section-img-placeholder {
    width: 100%;
    height: 280px;
    background-color: var(--taupe-doux);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.section-img-placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--vieux-rose);
    opacity: 0.7;
}

.creations-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.gallery-placeholder {
    height: 200px;
    background-color: var(--taupe-doux);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--vieux-rose);
    opacity: 0.7;
}

/* Strong SEO dans le texte */
.section-creations strong,
.section-engagement strong,
.hero-banner strong {
    font-weight: 400;
    color: var(--brun-fonce);
}

.seo-highlight {
    font-size: 1.15rem !important;
    font-style: italic;
    font-weight: 500;
    color: var(--vieux-rose) !important;
    margin-top: 20px !important;
}

/* Section créations - fond différent */
.section-creations {
    background-color: var(--sable-chaud);
    max-width: 100%;
    padding: 50px 40px;
    border-radius: 8px;
}

.section-creations h2,
.section-creations p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Citation finale */
.section-quote {
    text-align: center;
    padding: 50px 20px;
    margin: 30px 0;
}

.section-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--vieux-rose);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    padding: 0 30px;
}

.section-quote blockquote::before,
.section-quote blockquote::after {
    font-size: 3rem;
    color: var(--taupe-doux);
    position: absolute;
}

.section-quote blockquote::before {
    content: "\201C";
    top: -15px;
    left: -10px;
}

.section-quote blockquote::after {
    content: "\201D";
    bottom: -30px;
    right: -10px;
}

/* ===========================
   PRODUITS (chargement dynamique)
   =========================== */
.products-section {
    padding: 20px 0;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--brun-fonce);
    margin-bottom: 10px;
}

.products-header p {
    font-size: 1.15rem;
    color: var(--brun-fonce);
    max-width: 600px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Carte produit - style grille avec dropdown */
.product-card {
    background-color: var(--blanc);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-card-header {
    cursor: pointer;
    position: relative;
}

.product-image {
    width: 100%;
    height: 220px;
    background-color: var(--taupe-doux);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--vieux-rose);
    opacity: 0.6;
}

.product-info {
    padding: 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brun-fonce);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vieux-rose);
}

/* ===========================
   MODAL FICHE PRODUIT
   =========================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 62, 43, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--blanc-creme);
    border-radius: 12px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--brun-fonce);
    cursor: pointer;
    z-index: 1;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--vieux-rose);
}

.modal-content {
    display: flex;
    gap: 0;
}

.modal-image {
    width: 300px;
    min-width: 300px;
    min-height: 300px;
    background-color: var(--taupe-doux);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image .product-placeholder {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--vieux-rose);
    opacity: 0.6;
}

.modal-info {
    flex: 1;
    padding: 35px 30px;
}

.modal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brun-fonce);
    margin-bottom: 8px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vieux-rose);
    margin-bottom: 18px;
}

.modal-desc {
    font-size: 1.1rem;
    color: var(--brun-fonce);
    line-height: 1.7;
    margin-bottom: 25px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.spec-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vieux-rose);
}

.spec-value {
    font-size: 1rem;
    color: var(--brun-fonce);
}

.products-top {
    margin-bottom: 20px;
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: var(--sable-chaud);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    color: var(--brun-fonce);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-retour:hover {
    background-color: var(--vieux-rose);
}

.nav-link.active {
    background-color: var(--vieux-rose);
    font-weight: 700;
}

/* ===========================
   BOUTON AJOUTER AU PANIER
   =========================== */
.btn-ajouter-panier {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--vieux-rose);
    color: var(--blanc);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-ajouter-panier:hover {
    background: var(--brun-fonce);
}

/* ===========================
   BADGE PANIER
   =========================== */
.panier-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--brun-fonce);
    color: var(--blanc);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===========================
   PANNEAU PANIER (SLIDE-IN)
   =========================== */
.panier-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(90, 62, 43, 0.4);
    z-index: 2000;
}

.panier-overlay.active {
    display: block;
}

.panier-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100%;
    background: var(--blanc-creme);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.panier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--taupe-doux);
}

.panier-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.panier-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--brun-fonce);
    line-height: 1;
}

.panier-vide {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: var(--sable-chaud);
}

.panier-body {
    flex: 1;
    padding: 15px 25px;
}

.panier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--taupe-doux);
}

.panier-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panier-item-nom {
    font-weight: 700;
    font-size: 0.95rem;
}

.panier-item-prix {
    font-size: 0.9rem;
    color: var(--vieux-rose);
}

.panier-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panier-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--taupe-doux);
    background: var(--blanc);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panier-qty {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.panier-remove-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #C0392B;
    cursor: pointer;
    padding: 0 4px;
}

.panier-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--taupe-doux);
}

.panier-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.panier-total-row span:first-child {
    font-size: 1.1rem;
    font-weight: 700;
}

.panier-total {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vieux-rose);
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--vieux-rose);
    color: var(--blanc);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: var(--brun-fonce);
}

/* Formulaire checkout dans le panneau */
.checkout-form-section {
    padding: 20px 25px;
}

.checkout-form-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.checkout-back {
    background: none;
    border: none;
    color: var(--vieux-rose);
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 15px;
    padding: 0;
}

.checkout-field {
    margin-bottom: 14px;
}

.checkout-field label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--taupe-doux);
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--brun-fonce);
}

.checkout-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.btn-payer {
    display: block;
    width: 100%;
    padding: 14px;
    background: #635BFF;
    color: var(--blanc);
    border: none;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-payer:hover {
    background: #4B45C6;
}

.btn-payer:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: var(--taupe-doux);
    padding: 40px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.footer-col h3.logo {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--brun-fonce);
}

.footer-col p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--vieux-rose);
}

.footer-social {
    margin-top: 15px;
}

.footer-social p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--vieux-rose);
}

.social-link svg {
    vertical-align: middle;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-slogan {
        max-width: 100%;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        padding: 12px 20px;
    }

    .submenu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .hero-banner {
        margin: -60px -15px 0;
        width: calc(100% + 30px);
    }

    .hero-image {
        height: 40vh;
    }

    .hero-text {
        padding: 25px 15px;
    }

    .hero-banner h2 {
        font-size: 1.8rem;
    }

    .section-story,
    .section-creations,
    .section-engagement {
        margin: 30px auto;
    }

    .section-creations {
        padding: 30px 20px;
    }

    .creations-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-img-placeholder {
        height: 200px;
    }

    .section-quote blockquote {
        font-size: 1.3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .modal-content {
        flex-direction: column;
    }

    .modal-image {
        width: 100%;
        min-width: auto;
        min-height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .modal-info {
        padding: 25px 20px;
    }

    .product-specs {
        grid-template-columns: 1fr 1fr;
    }

    .modal-overlay {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 1.6rem;
    }
}
