/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    background: linear-gradient(180deg, #1b1b1b, #111);
    color: #f0f0f0;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #1f1f1f;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    position: relative;
    z-index: 10;
}

.header-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-center {
    text-align: center;
}

.header-center h1 {
    margin: 0;
    font-size: 2em;
}

.slogan {
    margin: 8px 0;
    font-style: italic;
    opacity: 0.85;
}

/* Contact */
.contact-link {
    margin-top: 10px;
}

.contact-link a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #1f1f1f;
    color: #9ad0ff;
    text-decoration: none;
    font-size: 0.85em;
    box-shadow: inset 0 0 0 1px #333;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-link a:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

/* Logo */
.header-logo {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.header-logo img {
    height: 80px;          
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header:not(.minimal) .header-logo img {
    height: 170px;
}



.header-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Panier header */
.header-cart {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 100;

    /* Apparence */
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);

    /* IMPORTANT */
    font-size: 1.8em;   
}





.cart-count {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #9ad0ff;
    color: #111;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 50%;
    padding: 4px 8px;
}



/* =========================
   HERO
========================= */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;   /* 🔥 au lieu de center */
    padding-top: 80px;        /* 🔥 ajuste cette valeur */
}




.hero-overlay {
    background: rgba(0,0,0,0.55);
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
}


.hero-overlay h2 {
    font-size: 3em;
    letter-spacing: 3px;
    margin: 0;
}

.hero-overlay p {
    margin-top: 10px;
    font-size: 1.1em;
    opacity: 0.85;
}

.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    border: 2px solid #9ad0ff;
    color: #9ad0ff;
    text-decoration: none;
    font-size: 1em;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.hero-btn span {
    position: relative;
    z-index: 2;
}

.hero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #9ad0ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.hero-btn:hover::before {
    transform: scaleX(1);
}

.hero-btn:hover {
    color: #111;
}



/* =========================
   SECTION TITRE
========================= */
.section-title {
    text-align: center;
    padding: 50px 20px 30px;
}

.section-title h2 {
    font-size: 2.5em;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

/* =========================
   SHOP / CATALOGUE
========================= */
#shop {
    padding: 30px;
}

#catalog {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product-card {
    max-width: 260px;
    background: #222;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.product-card h3 {
    margin: 10px 0 5px;
}

.price {
    color: #9ad0ff;
}

/* =========================
   FICHE PRODUIT
========================= */
.product-detail-content {
    display: flex;
    gap: 30px;
    padding: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Galerie */
.product-gallery {
    position: relative;
    width: 300px;
}

.product-gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
    transition: opacity 0.3s ease;
}

/* Flèches */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 1.8em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.arrow:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.1);
}

.arrow.left { left: -15px; }
.arrow.right { right: -15px; }

.product-info {
    max-width: 400px;
}

.price-big {
    font-size: 1.6em;
    color: #9ad0ff;
}

/* =========================
   PANIER & COMMANDE
========================= */
.order {
    max-width: 900px;
    margin: 40px auto;
    background: #1f1f1f;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.order-layout {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.order-summary {
    flex: 1;
    background: #181818;
    padding: 15px;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #333;
}

.order-total {
    font-size: 1.1em;
    color: #9ad0ff;
}

/* Copier montant */
.copy-btn {
    width: 100%;
    margin-top: 10px;
}

.copy-feedback {
    margin-top: 8px;
    font-size: 0.9em;
    color: #9ad0ff;
    text-align: center;
}

/* =========================
   BOUTONS
========================= */
button {
    background: linear-gradient(180deg, #444, #222);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background: linear-gradient(180deg, #666, #333);
}

.back {
    background: none;
    color: #9ad0ff;
    padding: 0;
    margin-bottom: 15px;
}

.paypal {
    background: linear-gradient(180deg, #0070ba, #003d7a);
}

/* =========================
   WARNING
========================= */
.warning {
    font-size: 0.9em;
    color: #ffb3b3;
}

/* =========================
   TOAST PANIER
========================= */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #222;
    color: #fff;
    padding: 16px 22px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================
   POPUP CGV
========================= */

#cgv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#cgv-overlay.hidden {
    display: none;
}


.cgv-modal {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.cgv-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cgv-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.cgv-btn.accept {
    background: #7CFC9A;
    color: #111;
}

.cgv-btn.refuse {
    background: #e74c3c;
    color: white;
}


/* =========================
   UTILITAIRES
========================= */
.hidden {
    display: none !important;
}



/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .header-logo img {
        height: 70px;
    }

    .hero-overlay h2 {
        font-size: 2em;
    }

    .product-detail-content {
        padding: 15px;
    }
}

/* SUPPRIMER STYLE LIEN SUR CARTES PRODUITS */
.product-card {
    text-decoration: none;
    color: inherit;
}

.product-card h3,
.product-card p {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 768px) {
    .header-logo img {
        height: 80px;
    }

    .header-cart {
        font-size: 1.8em;
    }
}

/* TRANSITION DE PAGE */
body {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.danger {
    background: linear-gradient(180deg, #a83232, #6f1f1f);
}

.danger:hover {
    background: linear-gradient(180deg, #c94444, #8a2626);
}

.site-header.minimal {
    text-align: center;
    padding: 25px;
}

.site-header.minimal h1 {
    margin: 0;
    font-size: 1.8em;
}


.header-cart:hover {
    transform: translateY(-50%) scale(1.08);
}

/* BOUTON RETOUR AMÉLIORÉ */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
    padding: 10px 18px;
    background: rgba(0,0,0,0.55);
    color: #9ad0ff;
    border: 1px solid rgba(154,208,255,0.3);
    border-radius: 30px;
    font-size: 0.95em;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.back-btn:hover {
    background: rgba(0,0,0,0.75);
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.back-arrow {
    font-size: 1.2em;
}

.back-text {
    font-weight: 500;
}

/* BOUTON RETOUR FORCÉ À GAUCHE (PAGE COMMANDE) */
.back-left {
    position: absolute;
    left: 20px;
    top: 20px;
}

/* BOUTON PAYPAL PREMIUM */
.paypal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    max-width: 420px;
    margin: 40px auto 0;

    padding: 14px 20px;
    font-size: 1.05em;
    font-weight: 600;

    color: #003087;
    background: linear-gradient(180deg, #ffc439, #ffb347);
    border: none;
    border-radius: 40px;

    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paypal-btn img {
    height: 26px;
    width: auto;
}

.paypal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.paypal-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

/* =========================
   PANIER – AFFICHAGE AMÉLIORÉ
========================= */

#cart-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.cart-line {
    background: #181818;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px #333;
}

.cart-line-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-line-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-line-controls button {
    width: 32px;
    height: 32px;
    font-size: 1.2em;
    padding: 0;
}

.cart-line-controls .qty {
    min-width: 24px;
    text-align: center;
}

.cart-line-controls .subtotal {
    margin-left: auto;
    font-weight: bold;
    color: #9ad0ff;
}



/* =========================
   DESCRIPTIF COMMANDE
========================= */

.order-description {
    background: #181818;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 0.9em;
    line-height: 1.5;
    box-shadow: inset 0 0 0 1px #333;
    white-space: pre-wrap;
    color: #f0f0f0;
}

.stock-info {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* =========================
   FORMULAIRE COMMANDE
========================= */

.order-form {
    background: #161616;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #222;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    flex: 1;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #ccc;
}

.form-group input {
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #0f0f0f;
    color: white;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #7CFC9A;
    outline: none;
}

.optional {
    font-size: 0.75rem;
    opacity: 0.6;
}

.submit-btn {
    width: 100%;
    margin-top: 15px;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: #2a2a2a;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.submit-btn:hover {
    background: #7CFC9A;
    color: #111;
}

/* Responsive */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
}


/* =========================
   LAYOUT PAGE COMMANDE
========================= */

.order-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.order-summary {
    flex: 1;
    background: #141414;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #222;
}

.order-form-wrapper {
    flex: 1;
}

.order-form {
    background: #161616;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #222;
}

/* Responsive */
@media (max-width: 900px) {
    .order-layout {
        flex-direction: column;
    }
}


/* =========================
   ADMIN LOGIN
========================= */

.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #111;
}

.login-box {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 14px;
    width: 320px;
    text-align: center;
    border: 1px solid #222;
}

.login-box input {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    background: #0f0f0f;
    border: 1px solid #333;
    color: white;
    border-radius: 8px;
}

.login-box button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #7CFC9A;
    font-weight: bold;
    cursor: pointer;
}

.error {
    color: #ff6b6b;
    margin-bottom: 10px;
}


/* =========================
   ADMIN DASHBOARD
========================= */

.admin-dashboard {
    padding: 40px;
    background: #111;
    color: white;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
    text-align: left;
}

.admin-table th {
    background: #1a1a1a;
}


/* =========================
   ADMIN ACTIONS
========================= */

.admin-actions {
    margin-top: 20px;
}

.admin-actions button {
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-paid {
    background: #3498db;
    color: white;
}

.btn-shipped {
    background: #2ecc71;
    color: white;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

body.cgv-open {
    overflow: hidden;
}

/* Contact header left */
.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  background: rgba(0,0,0,.35);
}

/* Espace sous header sur pages simples */
.page-contact main,
.page-contact .order {
  margin-top: 30px;
}
