/* Reset et Variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000835;
    --secondary-color: #142baf;
    --accent-color: #2061da;
    --text-light: #f4f1eb;
    --text-dark: #2c1810;
    --background-dark: #1a1a1a;
    --background-light: #ffffff;
    --potion-red: #dc143c;
    --potion-blue: #4169e1;
    --potion-green: #228b22;
    --potion-purple: #8a2be2;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e0d0 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #13258b;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 2px solid var(--accent-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    overflow: hidden; /* pour que les effets restent dans le conteneur */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://cdn.pixabay.com/animation/2024/10/23/21/58/21-58-08-368_512.gif') center/cover no-repeat;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    mix-blend-mode: screen;
    animation: magic 3s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes magic {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(30px, -20px) scale(1.1); opacity: 0.7; }
}

@keyframes twinkle {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-color), #2061da);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #2061da);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* Potion Showcase */
.potion-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    perspective: 1000px;
}

.potion-bottle {
    width: 80px;
    height: 120px;
    background: linear-gradient(45deg, #2c2c2c, #1a1a1a);
    border-radius: 40px 40px 20px 20px;
    position: relative;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.potion-bottle:nth-child(2) {
    animation-delay: -2s;
}

.potion-bottle:nth-child(3) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(10deg); }
}

.potion-liquid {
    position: absolute;
    bottom: 20px;
    left: 10px;
    right: 10px;
    height: 60px;
    border-radius: 30px 30px 10px 10px;
    animation: bubble 3s ease-in-out infinite;
}

.potion-1 .potion-liquid {
    background: linear-gradient(45deg, var(--potion-red), #ff6b6b);
}

.potion-2 .potion-liquid {
    background: linear-gradient(45deg, var(--potion-blue), #74b9ff);
}

.potion-3 .potion-liquid {
    background: linear-gradient(45deg, var(--potion-green), #55efc4);
}

@keyframes bubble {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Sections Générales */
section {
    padding: 100px 0;
}

section h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), #2061da);
    border-radius: 2px;
}

/* Boutique */
.boutique {
    background: var(--background-light);
}

.boutique-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.potion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.potion-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.potion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-color), #2061da);
}

.potion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.potion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.potion-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.potion-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.potion-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.potion-effects {
    margin-bottom: 20px;
}

.effect-tag {
    display: inline-block;
    background: var(--background-light);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
    border: 1px solid var(--secondary-color);
}

.potion-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    flex: 1;
}


/* Sélection de potions multiples */
.potion-selection {
    margin-bottom: 20px;
}

.potion-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    transition: var(--transition);
}

.potion-row:hover {
    border-color: var(--accent-color);
}

.potion-row select {
    flex: 2;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.potion-row select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.potion-row input[type="number"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.potion-row input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.potion-row .remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.potion-row .remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.potion-price-display {
    flex: 1;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.total-price {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: var(--accent-color) !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--accent-color) !important;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background: #2061da !important;
    color: var(--text-dark) !important;
    border-color: #2061da !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: 'Cinzel', serif;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Stocks */
.stocks {
    background: var(--background-light);
}

.stocks-overview {
    margin-bottom: 50px;
}

.stock-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.stock-actions .btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.stock-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-color), #2061da);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.summary-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.summary-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stock-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Cinzel', serif;
}

.stock-table-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.stock-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-table th {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.stock-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.stock-table tr:hover {
    background: var(--background-light);
}

.stock-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-low {
    background: #fff3cd;
    color: #856404;
}

.status-out {
    background: #f8d7da;
    color: #721c24;
}

/* Commandes */
.commandes {
    background: var(--background-light);
}

.commande-form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.commande-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.commande-info {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.commande-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.commande-info ul {
    list-style: none;
}

.commande-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.commande-info i {
    color: var(--accent-color);
    margin-top: 3px;
}

/* Info HRP */
.info {
    background: var(--background-light);
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-color), #2061da);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Cinzel', serif;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .tirage-info {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 15px;
    }

    .commande-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .potion-grid {
        grid-template-columns: 1fr;
    }

    .stock-summary {
        grid-template-columns: 1fr;
    }

    .info-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .potion-showcase {
        gap: 15px;
    }

    .potion-bottle {
        width: 60px;
        height: 90px;
    }

    section h2 {
        font-size: 2rem;
    }

    .commande-form,
    .commande-info {
        padding: 25px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #72bdfa;
}

.magic-text {
    display: inline-block;
    font-weight: bold;
    font-size: 2.5rem;
    color: #0379da; /* or magique */
    text-shadow: 0 0 10px #0b006e, 0 0 20px #0b006e, 0 0 30px #0b006e;
    animation: floatMagic 3s ease-in-out infinite;
}

@keyframes floatMagic {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2px, -2px) rotate(1deg); }
    50% { transform: translate(-2px, 2px) rotate(-1deg); }
    75% { transform: translate(2px, 1px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
