:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #d4af37;
    --text-color: #333333;
    --bg-light: #f9f9f9;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    font-weight: normal;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

header {
    background-color: var(--secondary-color);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    color: var(--primary-color);
    font-weight: bold;
}

nav a:hover {
    color: var(--accent-color);
}

.hero {
    position: relative;
    background-color: var(--primary-color);
    text-align: center;
    padding: 150px 20px;
    overflow: hidden;
    color: var(--secondary-color);
    min-height: 80vh; /* Permet d'avoir une section assez grande */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Assure que la vidéo couvre tout sans se déformer */
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #ddd;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.text-section-wrapper {
    background-color: var(--secondary-color);
    padding: 80px 20px;
}

.text-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-section h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.text-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.text-section .btn {
    margin-top: 20px;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.services {
    padding: 80px 50px;
    text-align: center;
    background-color: var(--bg-light);
}

.services h2 {
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img, .card video {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.card-content {
    padding: 25px;
}

.card h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    color: #555;
    font-size: 15px;
}

.contact {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid #eee;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact p {
    margin-bottom: 30px;
    font-size: 18px;
    color: #555;
}

.contact .btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.contact .btn:hover {
    background-color: var(--accent-color);
}

.contact-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 20px;
    color: #555;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.05);
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.contact-item a, .contact-item span.copyable {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-item span.copyable {
    cursor: pointer;
}

.social-combined {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.social-icons a {
    display: block;
    line-height: 1;
}

.social-icons span i {
    width: 30px;
    text-align: center;
    color: var(--accent-color);
}

.copy-toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-align: center;
    border-radius: 5px;
    padding: 15px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s, visibility 0.5s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.copy-toast.show {
    visibility: visible;
    opacity: 1;
}

footer {
    background-color: #786d67;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .logo img {
        max-height: 60px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    nav a {
        font-size: 12px;
    }

    .hero { 
        padding: 100px 20px; 
    }
    
    .hero h1 { 
        font-size: 32px; 
    }
    
    .hero h2 {
        font-size: 18px !important;
    }

    .hero p {
        font-size: 16px;
    }

    .text-section h2, .services h2, .contact h2 {
        font-size: 28px;
    }

    .services, .text-section-wrapper, .contact {
        padding: 50px 20px;
    }

    .grid {
        gap: 25px;
    }

    .contact-item {
        font-size: 16px;
    }
}