* {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.header {
    height: 12vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

.titre {
    font-family: "Playfair Display SC", serif;
    font-weight: 400;
    color: #FFF4DB;
    font-size: clamp(1.5rem, 2.2vw, 2.5rem);
    /* S'adapte mieux selon l'écran */
    text-decoration: none;
}

.liens {
    display: flex;
    gap: 3vw;
    list-style: none;
    align-items: center;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    /* Modifié ici */
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #DAAB35;
    transition: width 0.3s ease;
}

/* 3. L'effet de hover reste identique */
.nav-link:hover::after {
    width: 100%;
}

/* Le style du texte quand on est sur la page */
.nav-link.active a {
    color: #d4af37;
    /* Change la couleur en or */
    font-weight: bold;
    /* Met le texte en gras */
    letter-spacing: 1px;
    /* Espace un peu les lettres pour le côté luxe */
}

/* Optionnel : Si tu veux aussi que le petit trait en dessous reste visible et prenne la même couleur */
.nav-link.active::after {
    width: 100%;
    background: #d4af37;
}

.liens li a {
    font-size: 1.5rem;
    color: whitesmoke;
    text-decoration: none;
}

.separator1 {
    width: 100%;
    border: 0;
    border-top: 1.5px solid #ffffff;
    opacity: 0.5;
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000;
    /* Toujours au-dessus du menu déroulant */
}

.burger-menu span {
    width: 35px;
    height: 3px;
    background-color: #FFF4DB;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* --- Textes au chargement --- */
/* ============================================
           HERO — Intro centrée
        ============================================ */
.hero-text {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    gap: 1rem;
}

.hero-text h1 {
    font-family: "Playfair Display SC", serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 4px;
    color: #D6B07A;
    font-weight: 700;
    margin: 0;
}

.hero-text h2 {
    font-family: "Luxurious Script", cursive;
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #e0c080;
}

.hero-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: #d4c5a9;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.8;
    max-width: 520px;
}

.separator {
    width: 120px;
    border: none;
    border-top: 1px solid rgba(209, 181, 128, 0.4);
    margin: 0.5rem auto;
}

/* ============================================
           SECTION STORYTELLING — Bouteille sticky + textes
        ============================================ */
.storytelling-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4% 8rem;
    gap: 4rem;
    align-items: start;
}

/* Colonne gauche : bouteille collante */
.bottle-col {
    position: sticky;
    top: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70vh;
}

.bottle-col img {
    max-height: 65vh;
    max-width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.8));
    transition: filter 0.5s ease;
}

/* Colonne droite : textes qui défilent */
.notes-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 10vh;
}

.note-block {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(209, 181, 128, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.note-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.note-block:last-child {
    border-bottom: none;
}

.note-label {
    font-family: "Playfair Display SC", serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #f0c84a;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.note-block h3 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: #f5ede0;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.note-block h3 span {
    color: #f0c84a;
}

.note-block p {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: #c8b89a;
    font-style: italic;
    line-height: 1.8;
}

/* ============================================
           SECTION — Citation centrale
        ============================================ */
.quote-section {
    text-align: center;
    padding: 6rem 10%;
    position: relative;
}

.quote-section::before {
    content: '❝';
    display: block;
    font-size: 4rem;
    color: #DAAB35;
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 1rem;
}

.quote-section blockquote {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-style: italic;
    color: #D6B07A;
    max-width: 760px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.quote-section cite {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a09080;
    font-style: normal;
}

/* ============================================
           SECTION — Fiche technique (3 colonnes)
        ============================================ */
.specs-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 5% 6rem;
    text-align: center;
}

.specs-section h2 {
    font-family: "Playfair Display SC", serif;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: #DAAB35;
    margin-bottom: 3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border: 1px solid rgba(209, 181, 128, 0.3);
}

.spec-item {
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(209, 181, 128, 0.2);
    transition: background 0.3s ease;
}

.spec-item:hover {
    background: rgba(218, 171, 53, 0.05);
}

.spec-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.spec-label {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9e9080;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: #f0e6d2;
    font-weight: 600;
}

/* ============================================
           SECTION — Bouton CTA
        ============================================ */
.cta-section {
    text-align: center;
    padding: 3rem 5% 6rem;
}

.cta-btn {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    border: 1px solid #DAAB35;
    color: #DAAB35;
    font-family: "Playfair Display SC", serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #DAAB35;
    transform: translateX(-101%);
    transition: transform 0.4s ease;
    z-index: -1;
}

.cta-btn:hover {
    color: #0e0c0a;
}

.cta-btn:hover::before {
    transform: translateX(0);
}



/* Les parfums du catalogue */

/* From Uiverse.io by eslam-hany */



/* Variables pour un thème luxe et minimaliste */
:root {
    --color-bg: #fdfcfb;
    --color-text: #e8dcc8;
    --color-text-light: #A6A6A6;
    --color-accent: #d4af37;
    /* Or subtil */
    --color-card-bg: #1b1713;
    --font-title: 'Playfair Display', serif;
    --font-text: 'Montserrat', sans-serif;
    --shadow-base: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page-header {
    text-align: center;
    color: #d4af37;
}

.page-header h1 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-light);
    font-weight: 300;
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    color: #d4af37;
    margin: 20px 0px;
}

/* --- Layout Grid --- */
.grid-container {
    display: grid;
    /* Responsive magique : les colonnes font au min 320px, et s'adaptent à l'écran */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem 2rem;
    padding: 0 2rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Design de la Carte --- */
.perfume-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-base);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.perfume-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* --- Image et Effet Zoom --- */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    /* Crucial pour que le zoom ne déborde pas */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.perfume-card:hover .card-image {
    transform: scale(1.08);
    /* Zoom léger */
}

.concentration-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-card-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text);
}

/* --- Contenu de la Carte --- */
.card-content {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-name {
    font-weight: 500;
    color: var(--color-accent);
}

.perfume-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.perfume-year {
    font-size: 1rem;
    color: var(--color-text-light);
    font-family: var(--font-text);
    font-style: italic;
    font-weight: 300;
}

.perfume-genre {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.perfume-notes {
    margin-top: auto;
    /* Pousse les notes vers le bas si la carte est haute */
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    color: var(--color-text-light);

}

.perfume-notes strong {
    font-weight: 500;
    color: var(--color-text);
}

/* Formulaire de recherche */
.container {
    margin: 0 auto;
    width: 500px;
}

.container form {
    display: grid;
    justify-content: center;
    margin-top: 100px;
    gap: 20px;
}

.container label {
    color: white;
    font-size: 2rem;
}

.container input {
    background-color: transparent;
    color: white;
}

.submit {
    padding: 10px;
}

.container p {
    color: white;
    font-size: 2rem;
}


.container1 {
    border: solid 1px #8d8d8d;
    padding: 20px;
    border-radius: 20px;
    background-color: #fff;
    max-width: 250px;
    margin: 0 auto;
}

.container1 .heading {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: bolder;
}

.form {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form .btn-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.form .btn {
    padding: 10px 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 10px;
    border: solid 1px #1034aa;
    border-bottom: solid 1px #90c2ff;
    background: linear-gradient(135deg, #0034de, #006eff);
    color: #fff;
    font-weight: bolder;
    transition: all 0.2s ease;
    box-shadow: 0px 2px 3px #000d3848, inset 0px 4px 5px #0070f0,
        inset 0px -4px 5px #002cbb;
}

.form .btn:active {
    box-shadow: inset 0px 4px 5px #0070f0, inset 0px -4px 5px #002cbb;
    transform: scale(0.995);
}

.input-field {
    position: relative;
}

.input-field label {
    position: absolute;
    color: #8d8d8d;
    pointer-events: none;
    background-color: transparent;
    left: 15px;
    transform: translateY(0.6rem);
    transition: all 0.3s ease;
}

.input-field input {
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 8px;
    border: solid 1px #8d8d8d;
    letter-spacing: 1px;
    max-width: 300px;
}

.input-field input:focus,
.input-field input:valid {
    outline: none;
    border: solid 1px #0034de;
}

.input-field input:focus~label,
.input-field input:valid~label {
    transform: translateY(-51%) translateX(-10px) scale(0.8);
    background-color: #fff;
    padding: 0px 5px;
    color: #0034de;
    font-weight: bold;
    letter-spacing: 1px;
    border: none;
    border-radius: 100px;
}

.form .passicon {
    cursor: pointer;
    font-size: 1.3rem;
    position: absolute;
    top: 6px;
    right: 8px;
}

.form .close {
    display: none;
}

/* Footer */

footer {
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #FFF4DB;
    font-family: "Playfair Display", serif;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer-title {
    font-family: "Playfair Display SC", serif;
    font-size: 1rem;
    color: #DAAB39;
    letter-spacing: 2px;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 244, 219, 0.5);
    font-style: italic;
}

/* --- RESPONSIVE MOBILE (<= 576px) --- */
@media screen and (max-width: 576px) {

    /* On affiche le burger */
    .burger-menu {
        display: flex;
    }

    /* Le menu se transforme en menu plein écran caché sur la droite */
    .liens {
        position: fixed;
        top: 12vh;
        /* Se place sous le header */
        right: -100%;
        /* Caché en dehors de l'écran par défaut */
        flex-direction: column;
        justify-content: center;
        background-color: rgba(20, 20, 20, 0.98);
        /* Fond sombre */
        width: 100%;
        height: 88vh;
        /* Prend le reste de l'écran */
        transition: right 0.4s ease-in-out;
        z-index: 999;
        margin: 0;
        padding: 0;
        gap: 2rem;
    }

    /* Quand le JS ajoute la classe 'active', le menu glisse dans l'écran */
    .liens.active {
        right: 0;
    }

    .liens li a {
        font-size: 1.5rem;
    }

    /* Animation du burger qui se transforme en croix 'X' */
    .burger-menu.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* --- Ajustements supplémentaires pour le reste du site sur mobile --- */
    .storytelling-section {
        grid-template-columns: 1fr;
        padding: 0 5% 4rem;
        gap: 0;
    }

    .bottle-col {
        position: relative;
        top: auto;
        height: auto;
        padding: 2rem 0;
    }

    .bottle-col img {
        max-height: 40vh;
    }

    .notes-col {
        padding-top: 1rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .quote-section {
        padding: 4rem 8%;
    }

    .container {
        width: 90%;
        /* Pour éviter que le formulaire déborde de l'écran */
    }

    .grid-container {
        padding: 0 1rem 3rem;
        grid-template-columns: 1fr;
        /* 1 seule colonne pour les cartes de parfums */
    }

    .page-header p {
        left: 0;
        font-size: 1.5rem;
        padding-top: 10px;
        padding-bottom: 10px;
    }
}


/* ============================================
   PAGE RECHERCHE (Luxe / Glassmorphism)
============================================ */
.search-page {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
}

.search-container {
    background: rgba(14, 12, 10, 0.7);
    /* Fond noir semi-transparent */
    border: 1px solid rgba(209, 181, 128, 0.2);
    /* Bordure or très fine */
    padding: 4rem 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    /* Effet flou sur l'arrière-plan */
}

.search-title {
    font-family: "Playfair Display", serif;
    color: #D6B07A;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.search-subtitle {
    color: #d4c5a9;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* --- Animation de l'input flottant --- */
.input-group {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 1.2rem;
    color: #f5ede0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(209, 181, 128, 0.4);
    outline: none;
    font-family: 'Cormorant Garamond', serif;
    transition: border-color 0.3s ease;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #9e9080;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Le label monte et devient or quand on clique OU quand il y a du texte */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: #DAAB35;
    letter-spacing: 2px;
}

.input-group input:focus {
    border-bottom: 1px solid #DAAB35;
}

/* --- Bouton & Messages --- */
.search-btn {
    background: transparent;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 1rem 3rem;
    color: white;
}

.error-msg {
    color: #c0392b;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    margin-top: -1.5rem;
}