/* General Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FAF3DD;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    padding: 15px 50px;
    background-color: #c58e5f;
    color: white;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.company-name {
    margin-left: 15px;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a.active {
    border-bottom: 2px solid white;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    nav ul li a.active {
        border-bottom: 2px solid white;
        padding-bottom: 2px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    nav ul li a.active {
        border-bottom: 2px solid white;
        padding-bottom: 2px;
        font-size: 13px;
    }
}

/* About Page Layout */
.about-layout {
    display: flex;
    gap: 20px;
    padding: 40px;
}

.resume-box {
    position: sticky;
    top: 20px;
    width: 300px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-self: flex-start;
    box-sizing: border-box;
}

.resume-box img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.resume-box h2 {
    margin: 10px 0;
    color: #A63446;
}

.resume-box p {
    color: #2E2E2E;
}

.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #c58e5f;
}

.contact-info p {
    margin: 8px 0;
    font-size: 14px;
}

.contact-info strong {
    color: #A63446;
}

.contact-info a {
    color: #2E2E2E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #A63446;
    text-decoration: underline;
}

.certifications {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cert-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 80px;
    justify-content: space-between;
}

.cert-score {
    font-size: 12px;
    color: #A63446;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.cert-img {
    width: 55px !important;
    height: auto !important;
    max-width: 55px !important;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Specific styling for Voltaire logo (circular) */
.cert-img[alt="Certification Voltaire"] {
    height: 55px !important;
    border-radius: 50%;
    object-fit: cover;
}

/* Specific styling for Le Robert logo (rectangular) */
.cert-img[alt="Certification Le Robert"] {
    border-radius: 5px;
    object-fit: contain;
}

.cert-img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.text-image {
    display: flex;
    align-items: center;
    gap: 20px;
}

.text-image img {
    width: 40%;
    border-radius: 10px;
}

.text-image p {
    line-height: 1.6;
    text-align: justify;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 60px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #A63446;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #8B2538;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    display: flex;
}

/* Responsive design for about page */
@media (max-width: 1024px) {
    .about-layout {
        gap: 20px;
        padding: 30px;
    }
    
    .resume-box {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        padding: 20px;
    }
    
    .resume-box {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    
    .text-image {
        flex-direction: column;
        text-align: center;
    }
    
    .text-image img {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .text-image p {
        text-align: left;
    }
    
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 15px;
        font-size: 20px;
    }
    
    .company-name {
        font-size: 16px;
        margin-left: 10px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .about-layout {
        padding: 15px;
    }
    
    .resume-box {
        padding: 15px;
    }
    
    .resume-box img {
        width: 80px;
        height: 80px;
    }
    
    .about-content {
        gap: 25px;
    }
    
    .text-image {
        gap: 15px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav ul li a {
        font-size: 14px;
        padding: 3px 8px;
    }
}

/* Footer Styles */
footer {
    background-color: #c58e5f;
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.footer-section p {
    margin: 0;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FAF3DD;
}

small {
    color: #A63446;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu overlay */
.menu-overlay {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #c58e5f;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin: 0;
        list-style: none;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    nav ul li {
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        font-size: 16px;
        padding: 20px 10px;
        display: block;
        text-align: left;
        color: white;
        text-decoration: none;
        transition: background-color 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    nav ul li a:hover,
    nav ul li a:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    nav ul li a.active {
        border-bottom: none;
        border-left: 4px solid white;
        background-color: rgba(255, 255, 255, 0.2);
        font-weight: bold;
    }
}

@media (max-width: 480px) {
    nav {
        width: 90%;
    }
    
    nav ul li a {
        font-size: 15px;
    }
}

/* Large tablets and small laptops */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }
    
    .split-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .left, .right {
        padding: 30px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    nav ul li a {
        font-size: 14px;
    }
    
    .contact-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Medium tablets */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        height: auto;
    }
    
    .left, .right {
        padding: 20px;
    }
    
    .left h1 {
        font-size: 28px;
    }
    
    .about-layout {
        flex-direction: column;
        padding: 20px;
    }
    
    .resume-box {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .text-image {
        flex-direction: column;
        text-align: center;
    }
    
    .text-image img {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .service-page {
        padding: 20px;
    }
    
    .service-header h1 {
        font-size: 28px;
    }
    
    .service-section {
        padding: 20px;
    }
    
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
    
    .logo {
        margin-bottom: 0;
        font-size: 20px;
    }
    
    .company-name {
        font-size: 16px;
        margin-left: 10px;
    }
    
    /* Footer responsive */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 20px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    /* CGV responsive */
    .cgv-nav {
        padding: 15px;
    }
    
    .cgv-section {
        padding: 20px;
    }
    
    /* Offers page responsive */
    .main-offers {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .offer-card {
        margin-bottom: 20px;
    }
    
    .offer-header {
        padding: 20px;
    }
    
    .offer-content {
        padding: 20px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .services-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .services-table th,
    .services-table td {
        padding: 10px 8px;
    }
    
    .contact-section {
        padding: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 50px;
    }
    
    .company-name {
        font-size: 14px;
        margin-left: 8px;
    }
    
    nav ul {
        gap: 10px;
        font-size: 12px;
    }
    
    .left, .right {
        padding: 15px;
    }
    
    .left h1 {
        font-size: 24px;
    }
    
    .intro-text {
        font-size: 13px;
    }
    
    .right img {
        width: 90%;
    }
    
    .image-controls {
        width: 90%;
    }
    
    .image-controls button {
        padding: 8px;
        font-size: 16px;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-card {
        padding: 25px 15px;
        gap: 12px;
    }
    
    .contact-header {
        padding: 30px 15px;
    }
    
    .contact-header h1 {
        font-size: 28px;
    }
    
    .contact-subtitle {
        font-size: 14px;
    }
    
    .map-section {
        padding: 20px 15px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .logo img {
        height: 45px;
    }
    
    .company-name {
        font-size: 12px;
    }
    
    nav ul li a {
        font-size: 11px;
    }
    
    .left h1 {
        font-size: 22px;
    }
    
    .contact-header h1 {
        font-size: 24px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .split-layout {
        min-height: auto;
        height: auto;
    }
    
    .left, .right {
        padding: 20px;
    }
    
    .left h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .intro-text {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .right img {
        max-height: 300px;
        width: auto;
    }
    
    header {
        padding: 10px 20px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
}

/* Improve text readability */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Better tap targets */
    nav ul li a {
        padding: 8px 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-links li a {
        padding: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}