/* Variables CSS pour la cohérence des couleurs et des valeurs */
:root {
    --color-primary: #475569;
    --color-light: #f8fafc;
    --color-dark: #1e293b;
    --transition: all 0.3s ease;
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Garder le style de fond existant et ajouter l'effet lumineux */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-primary);
    /* Garder votre dégradé existant */
    background: linear-gradient(135deg, #f0f9ff 0%, #fff7ed 50%, #fef3c7 100%);
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Animation pour la position X */
@keyframes moveX {
    0%, 100% { 
        left: 0%;
    }
    25% {
        left: 70%;
    }
    50% {
        left: 20%;
    }
    75% {
        left: 90%;
    }
}

/* Animation pour la position Y */
@keyframes moveY {
    0%, 100% {
        top: 0%;
    }
    25% {
        top: 80%;
    }
    50% {
        top: 30%;
    }
    75% {
        top: 60%;
    }
}

/* Effet de pulsation pour la luminosité */
@keyframes pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* La boule de lumière principale */
body::before {
    content: "";
    position: fixed;
    width: 900px;
    height: 900px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.6) 0%,    /* Réduit de 0.9 à 0.6 */
        rgba(255, 255, 255, 0.4) 20%,    /* Réduit de 0.7 à 0.4 */
        rgba(255, 255, 255, 0.2) 40%,    /* Réduit de 0.3 à 0.2 */
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
    animation: 
        moveX 15s ease-in-out infinite,
        moveY 13s ease-in-out infinite,
        pulse 5s ease-in-out infinite;
    mix-blend-mode: soft-light;
    filter: blur(200px);                  /* Augmenté le flou */
}

/* La seconde boule plus petite */
body::after {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.5) 0%,    /* Réduit de 0.8 à 0.5 */
        rgba(255, 255, 255, 0.3) 20%,    /* Réduit de 0.6 à 0.3 */
        rgba(255, 255, 255, 0.1) 40%,    /* Réduit de 0.2 à 0.1 */
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
    animation: 
        moveX 10s ease-in-out infinite reverse,
        moveY 8s ease-in-out infinite reverse,
        pulse 4s ease-in-out infinite;
    mix-blend-mode: soft-light;
    filter: blur(20px);                  /* Augmenté le flou */
}

/* Maintenir le contenu au-dessus des effets lumineux */
.container,
.navbar,
.hero,
.products,
.process,
footer {
    position: relative;
    z-index: 2;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}








/* Navigation ==========================================================================================*/
.navbar {
    position: fixed;
    width: 100%;
    top: 2rem;
    z-index: 1000;
    /* Ajout des propriétés de centrage */
    display: flex;
    justify-content: center;
}

.navbar .container {
    /* Suppression de la marge automatique */
    margin: 0 2rem;
    /* Définition d'une largeur maximale fixe */
    width: 100%;
    max-width: 1200px;
    
    /* Conservation des autres propriétés */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.nav-links a:hover {
    color: var(--color-dark);
    background: rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}



/* Version mobile */
@media (max-width: 768px) {
    .navbar {
        top: 1rem;
    }

    .navbar .container {
        margin: 0 1rem;
        padding: 0.75rem 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        margin: 0 1rem;
        background: rgba(0, 0, 0, 0.884); /* Couleur noire semi-transparente */
        backdrop-filter: blur(10px); /* Flou pour un effet moderne */
        border: 1px solid rgba(255, 255, 255, 0.3); /* Bordure subtile */
        border-radius: 1rem; /* Coins arrondis */
        padding: 1.5rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre douce */
        transition: opacity 0.3s ease, transform 0.3s ease; /* Transition fluide */
        opacity: 0;
        transform: translateY(-10px); /* Menu légèrement au-dessus en position initiale */
    }
    
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0); /* Menu en position normale */
    }
    
    /* Style des liens */
    .nav-links a {
        color: #fff; /* Blanc pour contraster avec le fond sombre */
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .nav-links a:hover {
        color:#c4a255;
    }
    
}







/* Hero Section ==========================================================================================*/
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/splash_2.png') center;
    background-size: 70%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: -1;
    animation: splashEffect 2.5s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes splashEffect {
    0% {
        opacity: 0;
        background-size: 50%;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        background-size: 55%;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.3;
        background-size: 50%;
        transform: scale(1);
    }
}





.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
}



@media (max-width: 480px) {
    .hero::before {
        background-size: 90%; /* Pour les très petits écrans (mobiles) */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .hero::before {
        background-size: 80%; /* Pour les tablettes */ 
    }
}

@media (min-width: 769px) {
    .hero::before {
        background-size: 30%; /* Pour les écrans plus larges */
    }
}




/* DIY Section ==========================================================================================*/

.diy {
    padding: 5rem 0;
}

.diy .container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.diy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.diy h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.diy h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.diy-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
}

.benefit i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.benefit h4 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.benefit p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.diy-impact {
    background: rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}

.diy-impact h3 {
    text-align: left;
    margin-bottom: 1rem;
}

.diy-impact ul {
    list-style: none;
    padding-left: 1rem;
}

.diy-impact li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.diy-impact li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .diy-benefits {
        grid-template-columns: 1fr;
    }

    .benefit {
        padding: 1rem;
    }

    .diy h2 {
        font-size: 2rem;
    }

    .diy h3 {
        font-size: 1.2rem;
    }
}









/* Section Products - Styles de base =========================================================================== */
.products {
    padding: 5rem 0;
    border-radius: 15px;
}

.products .container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* En-tête de section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Navigation des produits */
.product-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.product-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn.active {
    background: #333;
    color: white;
}

/* Grille de produits */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;

}




.product-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: 
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    filter: blur(10px);

}

.product-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    border-radius: 15px;
    border: 1px solid #c1c1c153;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* Animation pour l'accordion */
.ingredient-type > ul {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.ingredient-type > span {
    position: relative;
    cursor: pointer;
}

.ingredient-type > span::after {
    content: '+';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
}

.ingredient-type.active > span::after {
    transform: rotate(45deg);
}

/* Hover effet */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}



.product-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Pour un ratio 16:9 */
    /* ou padding-bottom: 75% pour un ratio 4:3 */
    /* ou padding-bottom: 100% pour un carré */
    overflow: hidden;
    background-color: #c1c1c16e;
    border-radius: 15px;
}

.product-image img {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}



/* Info au survol */
.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .hover-info {
    transform: translateY(0);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Contenu des cartes */
.product-content {
    padding: 1.5rem;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}



/* Cartes d'information */
.info-cards {
    position: absolute;
    width: 100%;
    height: 65%;
    pointer-events: none;
}

.card {
    position: absolute;
    width: 440px;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
}



/* Positions spécifiques des cartes */
.card.carrier {
    top: 50%;
    left: 0;
    transform: translate(-120%, -50%);
    border-radius: 15px;
}

.card.essential {
    position: relative;
    background: white;
    border-radius: 15px;
}

.card.supplements {
    top: 50%;
    right: 0;
    transform: translate(120%, -50%);
    border-radius: 15px;
}

/* États actifs des cartes avec transition améliorée */
.central-circle.active ~ .info-cards .card {
    opacity: 1;
}

.central-circle.active ~ .info-cards .card.carrier {
    /* Suppression du rotateZ(-2deg) */
    transform: translate(-1%, -95%);
}

.central-circle.active ~ .info-cards .card.essential {
    /* Suppression du rotateZ(1deg) */
    transform: translate(159%, -10%);
}

.central-circle.active ~ .info-cards .card.supplements {
    /* Suppression du rotateZ(2deg) */
    transform: translate(-108%, 20%);
}


/* Styles communs des cartes */
.card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    margin-bottom: 1rem;
}

.card li strong {
    display: block;
    color: #444;
    margin-bottom: 0.25rem;
}

.card li p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Volume badge */
.volume {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #333;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}



/* Styles de l'accordion */
.ingredient-type {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.ingredient-type > span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.ingredient-type > span::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.ingredient-type.active > span::after {
    transform: rotate(45deg);
}

.ingredient-type > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ingredient-type.active > ul {
    max-height: none;
}

/* Style des listes dans l'accordion */
.ingredient-type ul li {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.ingredient-type ul li:first-child {
    border-top: none;
}






/* Responsive adjustments */
@media (max-width: 768px) {
    .ingredient-type > span {
        font-size: 0.9rem;
    }
    
    .ingredient-type ul li {
        font-size: 0.85rem;
    }
}




/* Media Queries */
@media (max-width: 768px) {
    .card {
        width: 300px;
    }
    
    .central-circle {
        width: 250px;
        height: 250px;
    }

    .featured {
        grid-template-columns: 1fr;
    }
    
    .featured .product-image {
        aspect-ratio: 16/9;
    }
}











/*===========================================================================
Process Section
===========================================================================*/

.process {
    padding: 5rem 0;
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: scale(1.05);
}

.process-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}


/* Media Query for iPads (Portrait and Landscape) */
@media screen and (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process h2 {
        font-size: 1.8em;
    }
    .process-card h3 {
        font-size: 1.4em;
    }
    .process-card p {
        font-size: 0.95em;
    }
}

/* Media Query for iPhones and Smaller Devices */
@media screen and (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process h2 {
        font-size: 1.6em;
    }
    .process-card {
        padding: 15px;
    }
    .process-card h3 {
        font-size: 1.2em;
    }
    .process-card p {
        font-size: 0.9em;
    }
}

/* Fine-Tuning for Very Small Devices (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
    .process {
        padding: 30px 10px;
    }
    .process h2 {
        font-size: 1.4em;
    }
    .process-card h3 {
        font-size: 1.1em;
    }
    .process-card p {
        font-size: 0.85em;
    }
}






/*===========================================================================
Create your oil Section
===========================================================================*/

.oil-calculator {
    padding: 5rem 2rem;
    position: relative;
    z-index: 2;
}

.calculator-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.calculator-container h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-dark);
    text-align: center;
    margin-bottom: 3rem;
}

/* Controls Layout */
.calculator-controls {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.select-wrapper {
    grid-column: 2 / 3;
    position: relative;
}

.volume-wrapper {
    grid-column: 3 / 4;
}

/* Form Elements Base */
.select-wrapper,
.volume-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Unified Input Styles */
.select-selected,
.volume-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Custom Select Styles */
.custom-select {
    position: relative;
    width: 100%;
}

.select-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding-right: 2.5rem;
    user-select: none;
}

.select-selected::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.custom-select.open .select-selected::after {
    transform: rotate(-135deg) translateY(3px);
}

.select-items {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-select.open .select-items {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-option:hover {
    background: rgba(71, 85, 105, 0.1);
}

.select-option.selected {
    background: rgba(71, 85, 105, 0.15);
    font-weight: 500;
}

/* Hover and Focus States */
.select-selected:hover,
.volume-wrapper input:hover {
    background: white;
    border-color: var(--color-primary);
}

.select-selected:focus,
.volume-wrapper input:focus {
    outline: none;
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

/* Calculate Button */
.calculate-btn {
    grid-column: 2 / 4;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculate-btn:hover {
    background: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Recipe Results */
.recipe-result {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: none;
}

.recipe-result.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
    display: flex;
    justify-content: center;
}

.recipe-section {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
}

.recipe-section h3 {
    color: var(--color-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section-content {
    margin-bottom: 2rem;
}

.section-content h4 {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ingredient-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
}

.ingredient-name {
    font-weight: 500;
    color: var(--color-dark);
}

.ingredient-amount {
    color: var(--color-primary);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    min-width: 60px;
    text-align: center;
}

.scale-info {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    text-align: center;
}

/* Overlay Error Styles */
.calculator-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(71, 85, 105, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 1rem;
}

.calculator-overlay.show {
    opacity: 1;
    visibility: visible;
}

.overlay-message {
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.calculator-overlay.show .overlay-message {
    transform: translateY(0);
}

/* Scrollbar Styling */
.select-items::-webkit-scrollbar {
    width: 6px;
}

.select-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.3);
    border-radius: 3px;
}




/* Responsive Adjustments */
@media screen and (max-width: 992px) {
    .calculator-container {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
    }

    .calculator-controls {
        grid-template-columns: repeat(6, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }
    
    .select-wrapper {
        grid-column: 2 / 4;
    }
    
    .volume-wrapper {
        grid-column: 4 / 6;
    }
    
    .calculate-btn {
        grid-column: 2 / 6;
        margin-top: 0.5rem;
    }

    .select-selected,
    .volume-wrapper input,
    .calculate-btn {
        height: 44px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 768px) {
    .oil-calculator {
        padding: 2rem 1rem;
    }

    .calculator-container {
        padding: 2rem 1rem;
        margin: 0;
        border-radius: 0.75rem;
    }

    .calculator-container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .calculator-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
        max-width: 500px;
    }
    
    .select-wrapper,
    .volume-wrapper,
    .calculate-btn {
        grid-column: 1 / -1;
    }

    .select-selected,
    .volume-wrapper input,
    .calculate-btn {
        height: 44px;
        font-size: 0.95rem;
    }

    label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .recipe-section {
        padding: 1.5rem 1rem;
    }

    .recipe-section h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ingredient-item {
        flex-direction: row; /* Gardons la disposition horizontale */
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
    }

    .ingredient-amount {
        align-self: center;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.3);
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        min-width: 70px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .calculator-container {
        padding: 1.5rem 1rem;
    }

    .calculator-container h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .calculator-controls {
        gap: 0.875rem;
    }

    label {
        font-size: 0.85rem;
    }

    .select-selected,
    .volume-wrapper input,
    .calculate-btn {
        height: 42px;
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }

    .recipe-section {
        padding: 1rem 0.75rem;
    }

    .ingredient-item {
        padding: 0.625rem;
    }

    .ingredient-name {
        font-size: 0.9rem;
    }

    .ingredient-amount {
        font-size: 0.85rem;
        min-width: 65px;
    }

    .overlay-message {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Optimisations tactiles */
@media (hover: none) {
    .select-selected,
    .volume-wrapper input,
    .calculate-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .calculate-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/*===========================================================================
/* Contact Section styles 
===========================================================================*/
.contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Card base styles */
.contact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 4rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

/* Typography */
.contact-card h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}



/* Buttons container */
.buttons-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Base button styles */
.back-btn,
.connect-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.75rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Back button specific styles */
.back-btn {
    color: #475569;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.2);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}




/* Connect button specific styles */
.connect-btn {
    color: white;
    background: linear-gradient(135deg, #d5b366 0%, #c4a255 100%);
    animation: buttonFadeIn 0.6s ease-out forwards;
}

.connect-btn:hover {
    background: linear-gradient(135deg, #c4a255 0%, #b39144 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(213, 179, 102, 0.4);
}

/* Button hover effects */
.back-btn::before,
.connect-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.back-btn:hover::before,
.connect-btn:hover::before {
    opacity: 1;
}

/* Icon styles and animations */
.back-btn i,
.connect-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.connect-btn:hover i {
    transform: translateX(3px);
}

/* Active states */
.back-btn:active,
.connect-btn:active {
    transform: translateY(1px);
}

/* Button fade in animation */
@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .contact-card {
        padding: 3rem 1.5rem;
    }

    .buttons-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .back-btn,
    .connect-btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    .back-btn:hover,
    .connect-btn:hover {
        transform: translateY(-1px);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .back-btn,
    .connect-btn {
        transition: background-color 0.3s ease;
    }
    
    .connect-btn {
        animation: none;
    }
    
    .back-btn:hover,
    .connect-btn:hover {
        transform: none;
    }
    
    .back-btn:hover i,
    .connect-btn:hover i {
        transform: none;
    }
}







.contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
    margin-bottom: 5rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}











/* Card Styles */
.contact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 4rem;
    text-align: center;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.04);
}

.contact-card:hover::before {
    opacity: 1;
}

/* Typography */
.contact-card h2 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-card p {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Email Section */
.email-copy {
    margin-top: 2rem;
}

.email-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-badge i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.email-badge span {
    font-size: 1.1rem;
    color: var(--color-dark);
}

.email-badge:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.email-badge:focus-within {
    background: rgba(255, 255, 255, 0.5);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .email-badge {
        padding: 0.875rem 1.25rem;
    }
    
    .email-badge span {
        font-size: 1rem;
    }
}


/* Media Queries */
@media (max-width: 768px) {
    .contact-section {
        margin-bottom: 3rem;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .contact-card h2 {
        font-size: 2rem;
    }

    .contact-card p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .email-field {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        font-size: 1rem;
    }
}







/* Footer Styles */
.footer-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

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

.footer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-primary);
}

.footer-item i {
    font-size: 1.1rem;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* Media Queries pour le footer */
@media (max-width: 768px) {
    .footer-card {
        margin: 0 1rem;
        padding: 2rem 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-details {
        align-items: center;
    }
}