:root {
    --primary-color: #2e2e2e;
    --secondary-color: #cf7500;
    --accent-color: #e09f3e;
    --light-color: #f9f7f3;
    --dark-color: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--primary-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1.2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 80px;		  
    margin-right: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./img/forgeillu.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
    padding-top: 70px;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 25%;
}

/* About Section */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Section */
.gallery {
    background-color: #e8e4da;
    padding: 5rem 1rem;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border-radius: 10px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: center;
}

.carousel-caption h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: white;
}

.gallery-description {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

/* Discovery Section */
.discovery {
    background: linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 100%);
    color: var(--light-color);
    padding: 5rem 1rem;
}

.discovery .section-header h2 {
    color: var(--light-color);
}

.discovery-content {
    max-width: 1200px;
    margin: 0 auto;
}

.discovery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.discovery-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.feature-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.discovery-highlight {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 15px 40px rgba(207, 117, 0, 0.3);
}

.discovery-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.highlight-item {
    flex: 1;
    min-width: 200px;
}

.highlight-item strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.discovery-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(207, 117, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(207, 117, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* Products Section */
.products {
    background-color: #f0ece2;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
}

.product-info .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 1rem;
}

.product-info .btn {
    width: 100%;
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: flex;
    gap: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item i {
    margin-right: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 3rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    margin-top: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-product-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.modal h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.modal .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ===== Header auto-hide ===== */
header {
  position: fixed;           /* reste en haut mais peut se cacher */
  top: 0; left: 0; right: 0;
  transform: translateY(0);
  transition: transform 220ms ease, background-color 200ms ease;
  z-index: 9999;
}

/* caché quand on scrolle vers le bas */
header.header-hidden {
  transform: translateY(-100%);
}

/* On laisse le JS régler le padding-top dynamique du body
   en fonction de la hauteur réelle du header (évite les décalages). */

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0px at 100% 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: circle(1000px at 100% 0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }

    .carousel {
        height: 350px;
    }

    .discovery-features {
        grid-template-columns: 1fr;
    }

    .highlight-content {
        flex-direction: column;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}