/* =========================================================
   1. DESIGN SYSTEM — TECHAUTO ULTRA PREMIUM
========================================================= */
:root {
    /* Palette premium futuriste */
    --primary: #0A84FF;
    --primary-dark: #0066CC;
    --accent: #2DD4BF;

    --dark-1: #1E293B;
    --dark-2: #0F172A;

    --light-1: #F8FAFC;
    --light-2: #F1F5F9;
    --light-3: #E2E8F0;

    --text: #1E293B;
    --text-light: #64748B;

    --white: #FFFFFF;

    /* Typographie */
    --font-main: "Inter", Arial, sans-serif;

    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --ease: cubic-bezier(.25, .8, .25, 1);
}

/* =========================================================
   2. RESET & BASE
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--light-2);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.55;
}

main {
    padding: 40px 5%;
}

section {
    margin-bottom: 60px;
}

.card {
    background: white;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}


a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/*=================================================================
LANGUES
========================================================= */
.lang-switcher select {
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--glass);
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.lang-switcher select:hover {
    border-color: var(--primary);
}


/* =========================================================
   3. GLASS UI (Premium)
========================================================= */
.glass {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-md);
}

/* =========================================================
   4. GRADIENTS SIGNATURE
========================================================= */
.gradient-primary {
    background: linear-gradient(135deg, #0A84FF, #2DD4BF);
    color: white;
}

.gradient-dark {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: white;
}

/* =========================================================
   5. HEADER — PREMIUM
========================================================= */
header {
    background: var(--white);
    padding: 18px 5%;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--light-3);
}

.logo img {
    height: 55px;
}

.site-search {
    flex: 1;
    display: flex;
}

.site-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--light-3);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--light-1);
}

input {
    font-size: 0.95rem;
    width: 40%;
    height: 40px;
    padding: 10px;
    border-radius: 12px;
}
/* Formulaire de contact premium */

form.contact-form.animate-on-scroll {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

form.contact-form.animate-on-scroll input,
form.contact-form.animate-on-scroll textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
form.contact-form.animate-on-scroll button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}   

.site-search button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: background .2s var(--ease);
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--primary);
    color: white;
}

/* =========================================================
   6. FOOTER — PREMIUM
========================================================= */
footer {
    background: var(--dark-2);
    color: var(--light-3);
    padding: 50px 5%;
    margin-top: 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.footer-column a {
    display: block;
    margin-bottom: 8px;
    color: var(--light-3);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #334155;
    padding-top: 12px;
    text-align: center;
    font-size: 0.85rem;
}

/*============  IMAGES DANS LE PANIER ==============================*/
.cart-product-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

/*============  IMAGES des paiements ==============================*/

.payment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.payment-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================================================
   7. BOUTONS — ULTRA PREMIUM
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn {
    padding: 10px 18px;
    font-size: 0.95rem;
}

/* Sizes */
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-md {
    padding: 10px 18px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 14px 22px;
    font-size: 1rem;
}

/* Primary */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Accent */
.btn-accent {
    background: var(--accent);
    color: var(--dark-1);
}

.btn-accent:hover {
    background: #22c7a8;
    transform: translateY(-4px);
}

/* Outline */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Glow CTA */
.glow {
    animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 rgba(10, 132, 255, 0.0);
    }

    50% {
        box-shadow: 0 0 18px rgba(10, 132, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 0 rgba(10, 132, 255, 0.0);
    }
}

/* =========================================================
   8. CARDS — 3D PREMIUM
========================================================= */
.card {
    background: white;
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--light-3);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* =========================================================
   9. HERO — PREMIUM
========================================================= */
.hero {
    background: linear-gradient(135deg, var(--dark-1), var(--dark-2));
    color: white;
    padding: 70px 5%;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius);
}

/* =========================================================
   10. SCROLL REVEAL
========================================================= */
.reveal {
    transform: translateY(20px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   11. RESPONSIVE
========================================================= */
@media (max-width: 900px) {

    nav ul {
        display: none;
    }

    .grid-3,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .site-search {
        display: none;
    }
}

/*==========================================================
   NOTIFICATIONS PREMIUM
===========================================================*/
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0a84ff;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s ease;
    z-index: 9999;
    font-weight: 600;
}

.toast-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

/*==========================================================
   Produits  premium
===========================================================*/
.product-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.product-image-container {
    flex: 1;
}

.product-page-image {
    width: 100%;
    border-radius: 12px;
}

.product-info {
    flex: 1;
}

.product-description-full {
    margin: 20px 0;
    line-height: 1.6;
}

.favorite-icon-page {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 64px;
    font-size: 100px;
    cursor: pointer;
    user-select: none;
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 80px;
    cursor: pointer;
    user-select: none;
}

.favorite-icon::before {
    content: 'Ajouter aux favoris';
    color: #d80909;
    font-size: 14px;
    position: absolute;
    top: 100px;
    left: -20px;
}

/*==========================================================
   MEGA MENU PREMIUM
===========================================================*/
.mega-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    position: relative;
}

.mega-item {
    position: relative;
}

.mega-item>a {
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 700px;
    background: white;
    padding: 20px 30px;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    z-index: 100;
}

.mega-item:hover .mega-menu {
    display: flex;
    gap: 40px;
}

.mega-column {
    display: flex;
    flex-direction: column;
}

.mega-column h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.mega-column a {
    text-decoration: none;
    color: #555;
    margin-bottom: 6px;
    font-size: 14px;
}

.mega-column a:hover {
    color: #0a84ff;
}

@media (max-width: 800px) {
    .mega-menu {
        position: static;
        width: 100%;
        flex-direction: column;
        box-shadow: none;
        padding: 10px 0;
    }

    .mega-item:hover .mega-menu {
        display: block;
    }
}

/* =========================================================
   12. Inscription — PREMIUM
========================================================= */
.signup-box {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.signup-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.signup-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
/* --- NEWSLETTER PREMIUM --- */

.newsletter-box {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.newsletter-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.newsletter-box p {
    color: #555;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 12px;
    width: 280px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
    border-color: #0a84ff;
}

.newsletter-success {
    margin-top: 15px;
    font-weight: 600;
    opacity: 0;
    color: #0a8f00;
    transition: opacity 0.4s ease;
}

.newsletter-success.visible {
    opacity: 1;
}
/* =========================================================
   13. Gerer les deux  formulaire de newsletter — PREMIUM
========================================================= */
/* --- MINI NEWSLETTER --- */
.newsletter-mini {
    gap: 10px;
    align-items: center;
    margin: 20px 0;
}

.newsletter-mini input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.newsletter-mini .newsletter-success {
    margin-top: 10px;
    font-size: 14px;
    color: #0a8f00;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-mini .newsletter-success.visible {
    opacity: 1;
}

/* --- NEWSLETTER BOX --- */
.newsletter-box {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.newsletter-box .newsletter-success {
    margin-top: 15px;
    font-weight: 600;
    opacity: 0;
    color: #0a8f00;
    transition: opacity 0.4s ease;
}

.newsletter-box .newsletter-success.visible {
    opacity: 1;
}

/* --- Animation premium pour le message newsletter --- */

.newsletter-success 
    .newsletter-success {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(3px);
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

.newsletter-success.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
/* Quand le message devient visible */
.newsletter-success.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quand le message devient visible */
.newsletter-success.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- Animation premium pour les boutons newsletter --- */

.btn.btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.25s ease;
}

/* Effet hover : léger zoom + couleur plus profonde */
.btn.btn-primary:hover {
    transform: translateY(-2px);
    background-color: #006edc; /* bleu premium plus foncé */
}

/* Effet click : petit shrink pour feedback tactile */
.btn.btn-primary:active {
    transform: scale(0.96);
}

/* Effet pulse subtil quand la souris passe dessus */
.btn.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.25);
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.btn.btn-primary:hover::after {
    opacity: 1;
    transform: scale(1);
}



/* --- FIN NEWSLETTER PREMIUM --- */
