:root {
    --color-primary: #0F2A1D;
    /* Deep Forest Green */
    --color-primary-light: #1a4231;
    --color-secondary: #3E2723;
    /* Earthy Brown */
    --color-accent: #D4AF37;
    /* Muted Gold */
    --color-text: #F1F8E9;
    /* Off-White */
    --color-text-muted: #aebcb2;
    --color-bg: #0a1f16;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    /* Slightly smaller padding */
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #e6c65c;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-text);
    color: var(--color-text);
    margin-left: var(--spacing-sm);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-md) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    width: 187.5px;
    /* Adjust based on logo aspect ratio */
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Reduced from var(--spacing-md) which is 2rem */
}

.main-nav a {
    font-size: 0.85rem;
    /* Slightly smaller for better fit */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Reduced letter spacing */
}

.main-nav a:not(.btn):hover {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slight zoom animation could be added here */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 42, 29, 0.3), rgba(15, 42, 29, 0.8));
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-muted);
}

/* Services */
.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    /* Essential for stretched link */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-accent);
}

.service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 512/341;
    overflow: hidden;
    position: relative;
}

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

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

.service-content {
    padding: var(--spacing-md);
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.service-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.service-content p a {
    color: var(--color-accent);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    /* Keep inner links clickable/selectable above the stretched link if needed, usually cleaner to let the card take over */
    z-index: 2;
    /* Ensures specific text links remain clickable independently */
}

.service-content p a:hover {
    color: #fff;
    text-decoration: underline;
}

.read-more {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Make the whole card clickable via the read-more link */
.read-more::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* About */
.dark-bg {
    background-color: #05110c;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

.features-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.features-list li::before {
    content: '•';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.visual-box {
    width: 100%;
    height: 400px;
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-accent);
    position: relative;
}

.visual-box::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    background-color: var(--color-primary-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.contact-details {
    margin-top: var(--spacing-md);
}

.contact-details li {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.contact-link {
    color: var(--color-accent);
    font-weight: 600;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Footer */
.main-footer {
    background-color: #020a07;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

/* Footer Logo - Main Brand */
.footer-logo-img {
    width: 188px;
    /* Reduced from 180px */
    height: auto;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Footer Nav Titles */
.footer-col h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-identity p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

/* Footer Nav */
.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

/* Footer Contact */
.footer-contact-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-contact-info a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--color-accent);
}

/* Footer Bottom Area */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credit {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* David Georges Logo Effect */
.footer-dg-logo {
    width: 60px;
    /* Small icon size to fit text flow, or slightly larger if standalone */
    height: auto;
    vertical-align: middle;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
}

.credit a:hover .footer-dg-logo {
    transform: scale(1.25) rotate(5deg);
}

.footer-legal a {
    color: var(--color-text-muted);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}



/* Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: var(--spacing-sm);
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 90;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Active Link */
.main-nav a.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

/* Sub-page Hero */
.hero-small {
    height: 50vh;
    min-height: 400px;
}

.hero-small .hero-content h1 {
    font-size: 3rem;
}

/* Content Pages */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.text-content .lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.text-content h2 {
    color: var(--color-accent);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.8rem;
}

.text-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

.text-content ul {
    margin-bottom: var(--spacing-md);
}

.content-image {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.text-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .visual-content {
        order: -1;
        /* Image on top on mobile */
        margin-bottom: var(--spacing-md);
    }

    .hero-small .hero-content h1 {
        font-size: 2rem;
    }
}

/* SEO Text Section */
.seo-text {
    background-color: var(--color-background-alt);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.seo-item h2 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* Intro Section */
.intro-section .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 900px;
    margin: 0 auto;
}

.intro-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    /* Ensure height matches other elements */
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

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

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

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(4px);
    padding: 0;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev:hover svg {
    transform: translateX(-2px);
}

.carousel-btn.next:hover svg {
    transform: translateX(2px);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Conteneur aligné avec le texte */
.footer-credit {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    /* Ajuster la couleur selon le fond */
}

/* Style du texte "Site internet par" */
.footer-credit span {
    font-weight: 500;
    opacity: 0.8;
}

/* Style du logo avec la transition "bouncy" */
.footer-credit img {
    /* C'est cette ligne qui fait toute la magie du rebond : */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* L'effet au survol : Zoom + Légère rotation */
.footer-credit:hover img {
    transform: scale(1.1) rotate(2deg);
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(46, 125, 50, 0.2);
    border: 1px solid #2e7d32;
    color: #a5d6a7;
}

.alert-danger {
    background-color: rgba(198, 40, 40, 0.2);
    border: 1px solid #c62828;
    color: #ef9a9a;
}

/* Phone Numbers Styling */
.phone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    width: fit-content;
}

.phone-item:hover {
    transform: translateX(5px);
}

.lang-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    min-width: 36px;
    text-align: center;
    transition: all 0.3s ease;
}

.phone-item:hover .lang-badge {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.phone-number {
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.phone-item:hover .phone-number {
    color: white;
}
.phone-icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    opacity: 0.8;
}

.phone-item:hover .phone-icon {
    opacity: 1;
    transform: scale(1.1);
    transition: all 0.3s ease;
}
