/* Base et reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #004956;
    --secondary-color: #FD9774;
    --accent-color: #4e99aa;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'LightFont';
    src: url('assets/font/Light.ttf') format('truetype');
}

body {
    font-family: 'LightFont', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: url('img/back-flou.png');
}

/* En-tête modernisé */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    width: 200px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    width: 100%;
    max-width: 280px;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    position: relative;
}

nav ul li::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background-color: var(--secondary-color);
}

nav ul li:last-child::after {
    display: none;
}

nav ul li a {
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 20px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: calc(100% - 40px);
}

nav ul li a:hover {
    color: var(--secondary-color);
    background-color: rgba(78, 153, 170, 0.2);
    border-radius: 4px;
}

/* Menu déroulant amélioré */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--primary-color);
    min-width: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.dropdown-content a {
    padding: 14px 20px;
    display: block;
    color: white;
    border-bottom: 1px solid rgba(253, 151, 116, 0.3);
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--accent-color);
    padding-left: 25px;
}

/* Sections de contenu modernisées */
section {
    display: flex;
    background-color: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    box-shadow: var(--shadow);
    border-radius: 15px;
    overflow: hidden;
    flex: 1;
}

.section-left {
    width: 60%;
    padding: 30px;
}

.section-right {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f9f9f9;
}

.section-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.section-right img:hover {
    transform: scale(1.03);
}

.section-left h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.section-left h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-left p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Container pour les prestations */
.container {
    padding: 30px;
    width: 100%;
}

.title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color);
}

.sections-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: nowrap;
}

.section-mlt {
    flex: 1;
    min-width: 220px;
    max-width: 290px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-mlt:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.section-mlt h4 {
    padding: 20px 20px 10px;
    font-size: 22px;
    color: var(--primary-color);
}

.section-mlt img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.section-mlt .description {
    padding: 15px;
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    max-height: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.voir-plus {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 10px auto 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: fit-content;
}

.voir-plus:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.voir-plus a {
    color: white;
    text-decoration: none;
}

@media (max-width: 992px) {
    .sections-container {
        flex-wrap: wrap;
    }
    
    .section-mlt {
        min-width: 45%;
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    .section-mlt {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Formulaire de contact modernisé */
.ccontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    flex: 1;
}

.contact-container {
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
}

.contact-left {
    padding: 40px;
    flex: 1;
}

.contact-right {
    flex: 1;
    overflow: hidden;
}

.contact-title-left h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contact-title-left h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.contact-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 153, 170, 0.2);
}

textarea.contact-input {
    min-height: 150px;
    resize: vertical;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 50%;
    margin: 20px auto 0;
}

button[type="submit"]:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.contact-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer compact */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 25px 0 15px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.footer-left {
    flex: 1;
    min-width: 200px;
}

.footer-left h4 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.btn-footer {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.btn-footer:hover {
    background-color: white;
    transform: translateY(-2px);
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a, .footer-contact a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
    font-size: 14px;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

.footer-contact {
    display: flex;
    gap: 20px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 15px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-right {
        margin-top: 10px;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* Menu hamburger pour mobile */
.menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    z-index: 101;
}

.menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: var(--transition);
}

/* Media queries pour le responsive */
@media (max-width: 992px) {
    section {
        flex-direction: column;
        width: 95%;
    }
    
    .section-left, .section-right {
        width: 100%;
    }
    
    .section-right {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }
    
    .menu {
        display: block;
    }
    
    .menu-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: var(--transition);
        z-index: 100;
        overflow-y: auto;
    }
    
    .menu-right.active {
        right: 0;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li::after {
        display: none;
    }
    
    nav ul li a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-left: 20px;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-right {
        min-height: 250px;
    }
    
    .sections-container {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 28px;
    }
}

/* Animation du menu hamburger */
.menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 6px);
}

.menu.active span:nth-child(2) {
    opacity: 0;
}

.menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}