* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #ddd;
    background-color: #000;
}

/* Header */
header {
    background-color: #000;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #FFD700;
}

/* Menu déroulant Produits */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    min-width: 800px;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,215,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    margin-top: 15px;
    border: 2px solid rgba(255,215,0,0.2);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 20px;
}

.dropdown-item {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    margin: 8px;
}

.dropdown-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255,215,0,0.05);
    border-color: rgba(255,215,0,0.3);
    box-shadow: 0 15px 35px rgba(255,215,0,0.2);
}

.dropdown-item-link {
    display: block;
    text-decoration: none;
    color: #fff;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dropdown-item-image {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease;
}

.dropdown-item:hover .dropdown-item-image {
    transform: scale(1.1);
}

.dropdown-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    transition: opacity 0.3s ease;
}

.dropdown-item:hover .dropdown-item-image::before {
    opacity: 0.8;
}

.dropdown-item-content {
    padding: 15px;
    position: relative;
}

.dropdown-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    transition: color 0.3s ease;
}

.dropdown-item:hover .dropdown-item-title {
    color: #FFD700;
}

.dropdown-item-desc {
    font-size: 13px;
    color: #ccc;
    line-height: 1.4;
    opacity: 0.9;
}

.dropdown-item::after {
    content: '→';
    position: absolute;
    top: 15px;
    right: 15px;
    color: #FFD700;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dropdown-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-item:nth-child(1) .dropdown-item-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/card-fenetre.jpeg');
}

.dropdown-item:nth-child(2) .dropdown-item-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/card-porte.jpeg');
}

.dropdown-item:nth-child(3) .dropdown-item-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/card-volet.jpeg');
}

.dropdown-item:nth-child(4) .dropdown-item-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/card-portail.jpeg');
}

.dropdown-item:nth-child(5) .dropdown-item-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/card-garage.jpeg');
}

.dropdown-item:nth-child(6) .dropdown-item-image {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../img/card-pergola.png');
}

.dropdown > a::after {
    content: '▼';
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: transparent;
    border: none;
    margin-left: auto;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #FFD700;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.8;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 12px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
}

/* Table of contents */
.toc {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.toc h3 {
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 22px;
}

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

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc a:hover {
    color: #FFD700;
}

.toc-number {
    background: #FFD700;
    color: #000;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.legal-section {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.legal-section:hover {
    border-color: #FFD700;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
}

.legal-section h2 {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-section h4 {
    font-size: 1.2rem;
    color: #FFD700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-section p {
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.legal-section li {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.8;
}

.article-number {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,165,0,0.05) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    border-left: 4px solid #FFD700;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.highlight-box h4 {
    color: #FFD700;
    margin-bottom: 10px;
}

.highlight-box p {
    color: #ddd;
}

.warning-box {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-left: 4px solid #ff4500;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.warning-box h4 {
    color: #ff4500;
    margin-top: 0;
    margin-bottom: 15px;
}

.warning-box p,
.warning-box li {
    color: #ddd;
}

.info-box {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-left: 4px solid #007bff;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
}

.info-box h4 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-box p,
.info-box li {
    color: #ddd;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: #ddd;
    padding: 80px 40px 30px;
    border-top: 1px solid #222;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-text {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-description {
    color: #888;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-contact-item {
    color: #ddd;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-contact-item:hover {
    color: #FFD700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    main {
        margin-top: 80px;
        padding: 0 20px;
    }

    .legal-section {
        padding: 25px;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    nav {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background-color: #000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.5);
        padding: 20px 0;
        align-items: flex-start;
        padding-left: 40px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown-content {
        position: static !important;
        transform: none !important;
        min-width: auto;
        max-width: none;
        width: 100%;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .dropdown.open .dropdown-content {
        max-height: 600px !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 10px !important;
    }

    .dropdown:hover .dropdown-content {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
    }

    .dropdown.open:hover .dropdown-content {
        max-height: 600px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown-item-image,
    .dropdown-item-desc {
        display: none !important;
    }

    .dropdown-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    .dropdown-item {
        background: rgba(255,215,0,0.05) !important;
        margin: 5px 0 !important;
        border: 1px solid rgba(255,215,0,0.2) !important;
    }

    .dropdown-item-content {
        padding: 10px 15px !important;
    }

    .dropdown-item-title {
        font-size: 14px !important;
    }

    .dropdown > a::after {
        content: '+';
        font-size: 20px;
        margin-left: 10px;
        transform: none !important;
    }

    .dropdown.open > a::after {
        content: '−';
    }

    .logo img {
        height: 40px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 15px;
    }

    .toc {
        padding: 20px;
    }
}